PageSourceSearch

https://www.tecnicodilaboratorio.it/wp-content/themes/hueman/assets/front/js/myscripts.js

js tecnicodilaboratorio.it collected 2026-10-02 01:04:11 UTC 2,166 bytes, 60 lines download raw bytes

1jQuery(document).ready(function(){
2    var act_slide = 0;
3    jQuery("a.faq-question").click(function(){
4        act_id = jQuery(this).attr('id');
5        if(act_slide != act_id){
6            jQuery('#li_'+act_id).addClass('faq-open');
7            jQuery('#li_'+act_slide).removeClass('faq-open');
8      jQuery('#answer_'+act_id).slideToggle("fast");
9         jQuery('#answer_'+act_slide).slideToggle("fast");   
10        act_slide = jQuery(this).attr('id');
11        }
12      });
13    
14    jQuery("#newsbtn").click(function(){
15		var email = jQuery("#newsmail").val().trim();
16		var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/;
17		if(email == ''){
18		jQuery("#newsmail").addClass("error-shadow");	
19		jQuery("#newsletter-help").html("* Campo obbligatorio");
20		jQuery("#newsletter-help").show();
21    	jQuery("#newsmail").focus();
22	}
23        else if(!email.match(mailformat)){
24        jQuery("#newsmail").addClass("error-shadow");	
25		jQuery("#newsletter-help").html("* Indirizzo non valido");
26		jQuery("#newsletter-help").show();
27		jQuery("#newsmail").focus();
28		}else{
29		jQuery("#newsletter-help").hide();
30		jQuery("#newsmail").removeClass("error-shadow");	
31		jQuery("#newsletter-help").html("");
32		jQuery("#newsletter-loading").css("visibility","visible");
33		jQuery.ajax({
34  type: "POST",
35  url: "/wp-content/themes/hueman/assets/front/js/newsletter-send.php",
36  data: "ml="+email,
37  dataType: "json",
38  success: function(msg){
39	  jQuery("#newsletter-loading").css("visibility","hidden");
40if(msg['code'] == '0'){
41		alert("Servizio temporaneamente non disponibile");	
42}  
43if(msg['code'] == '1'){
44		jQuery("#newsletter-help").html("L'indirizzo email risulta già iscritto alla newsletter");
45		jQuery("#newsletter-help").show();	
46}
47if(msg['code'] == '2'){
48	    jQuery("#newsmail").val('')
49		jQuery("#newsletter-help").html("<span style='color: #4E9E3E;'>Iscrizione newsletter confermata!</span>");
50		jQuery("#newsletter-help").show();	
51}
52  },
53  error: function(){
54    jQuery("#newsletter-loading").css("visibility","hidden");
55		alert("Servizio temporaneamente non disponibile");
56  }
57});
58		}
59    });
60});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.