1var $j = jQuery.noConflict(); 2$j(function(){ 3 4 $j('#toTop').click(function(event) { 5 event.preventDefault(); 6 $j('body,html').animate({scrollTop:0},800); 7 }); 8 9}); 10 11 function subscribe(subscribe_field_id, onoff, lang) { 12 13 var email = document.getElementById(subscribe_field_id).value; 14 if (!email.match(/.+@.+\..+/)) { 15 alert("ÐведиÑе, пожалÑйÑÑа, коÑÑекÑнÑй адÑеÑ."); 16 return false; 17 } 18 19 //alert(email); 20 21 JsHttpRequest.query( 22 23 // '<?php bloginfo("template_directory"); ?>/xa_subscribe.php?onoff='+onoff, // backend 24 'https://maxime-and-co.com/wp-content/themes/Max2/xa_subscribe.php?onoff='+onoff, // backend 25 26 { 27 // pass a text value 28 'email': email, 29 'onoff': onoff, 30 'lang': lang 31 }, 32 33 // Function is called when an answer arrives. 34 function(result, errors) { 35 //alert("ok"); 36 // Write errors to the debug div. 37 //document.getElementById("debug").innerHTML = errors + 'errors'; 38 // Write the answer. 39 40 if (result['result'] == 1) { 41 alert("ok2"); 42 document.getElementById(subscribe_field_id + "_result").innerHTML = "<span style='background-color: yellow; '>СпаÑибо! ÐаÑа заÑвка пÑинÑÑа.<\/span>"; 43 } else { 44 //alert("not ok2"); 45 document.getElementById(subscribe_field_id + "_result").innerHTML = "<span style='background-color: yellow; font-size: .8em;'>ÐÑоизоÑла оÑибка.<\/span>"; 46 } 47 48 //alert("ok3"); 49 }, 50 false // do not disable caching 51 ); 52 } 53 54 55 56 function max3(var1, var2, var3){ 57 return Math.max(Math.max(var1, var2), var3); 58 } 59 60 <!-- Script for dropping down menu --> 61 var $j = jQuery.noConflict(); 62 $j(document).ready(function(){ 63 64 //alert('ttt'); 65 66 $j("#lsb_menu dd").hide(); 67 $j("#lsb_russ_france dd").hide(); 68 var cb = $j("#center_bar").height(); 69 var lsb = $j("#left_sidebar").height(); 70 var rsb = $j("#right_sidebar").height(); 71 var mpwr = $j("#midpart_wraper").height(); 72 73 $j("#ten_left").height(mpwr+6); 74 $j("#ten_right").height(mpwr+6); 75 $j("#lsb_menu dt a").click(function(){ 76 if ($j(this).parent("dt").attr("class") == "lsb_not_chosen"){ 77 $j(this).parent("dt").removeClass("lsb_not_chosen").addClass("lsb_chosen"); 78 $j(this).parent().next().slideDown("slow", function(){ 79 mpwr = $j("#midpart_wraper").height(); 80 lsb = $j("#left_sidebar").height(); 81 if(mpwr < lsb+75){ 82 mpwr = lsb+81; 83 $j("#midpart_wraper").height(mpwr); 84 $j("#ten_left").height(mpwr); 85 $j("#ten_right").height(mpwr); 86 } 87 return false; 88 }); 89 } 90 else{ 91 92 $j(this).parent("dt.lsb_chosen").removeClass("lsb_chosen").addClass("lsb_not_chosen"); 93 $j(this).parent().next().slideUp("slow", function(){ 94 lsb = $j("#left_sidebar").height(); 95 mpwr = $j("#midpart_wraper").height(); 96 if(max3(cb, rsb, lsb)+81< mpwr){ 97 mpwr = max3(cb, rsb, lsb)+81; 98 $j("#midpart_wraper").height(mpwr); 99 $j("#ten_left").height(mpwr); 100 $j("#ten_right").height(mpwr); 101 } 102 return false; 103 }); 104 } 105 return false; 106 }); 107 }); 108 109 <!-- Script for russian france --> 110 $j(document).ready(function(){ 111 112 var cb = $j("#center_bar").height(); 113 var lsb = $j("#left_sidebar").height(); 114 var rsb = $j("#right_sidebar").height(); 115 var mpwr = $j("#midpart_wraper").height(); 116 $j("#lsb_russ_france dt a").click(function(){ 117 if ($j(this).parent("dt").attr("class") == "lsb_not_chosen"){ 118 $j(this).parent("dt").removeClass("lsb_not_chosen").addClass("lsb_chosen"); 119 $j(this).parent().next().slideDown("slow", function(){ 120 mpwr = $j("#midpart_wraper").height(); 121 lsb = $j("#left_sidebar").height(); 122 if(mpwr < lsb+75){ 123 mpwr = lsb+81; 124 $j("#midpart_wraper").height(mpwr); 125 $j("#ten_left").height(mpwr); 126 $j("#ten_right").height(mpwr); 127 } 128 return false;
129 }); 130 } 131 132 else{ 133 134 $j(this).parent("dt.lsb_chosen").removeClass("lsb_chosen").addClass("lsb_not_chosen"); 135 $j(this).parent().next().slideUp("slow", function(){ 136 lsb = $j("#left_sidebar").height(); 137 mpwr = $j("#midpart_wraper").height(); 138 if(max3(cb, rsb, lsb)+81< mpwr){ 139 mpwr = max3(cb, rsb, lsb)+81; 140 $j("#midpart_wraper").height(mpwr); 141 $j("#ten_left").height(mpwr); 142 $j("#ten_right").height(mpwr); 143 } 144 return false; 145 }); 146 } 147 return false; 148 }); 149 });
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.