1function do_run() { 2 $(function () { 3 $("form[ajax_method='get']").unbind("submit").on("submit", function () { 4 data = $(this).serialize(); 5 //window.location.replace($(this).attr("action") + "&" + data); 6 window.location.href = ($(this).attr("action") + "&" + data); 7 return false 8 }); 9 $("form[ajax_method!='get']").not(".not_ajax").ham3dform({ 10 start_form_validate: function (e, t) { 11 $(t).each(function () { 12 if ($(this).val() == $(this).attr("error") || $(this).val() == $(this).attr("check")) { 13 $(t).val("") 14 } 15 }) 16 }, 17 start_load: function (e) { 18 $(e).css("position", "relative"); 19 //show_load(); 20 //if (!$.browser.msie) { 21 var t = new Sonic({ 22 width: 10, 23 height: 10, 24 padding: 15, 25 strokeColor: "#000", 26 pointDistance: .01, 27 stepsPerFrame: 3, 28 trailLength: .7, 29 step: "fader", 30 setup: function () { 31 this._.lineWidth = 5 32 }, 33 path: [ 34 ["arc", 10, 10, 10, 0, 360] 35 ] 36 }); 37 t.play(); 38 if ($(e).find(".loader").length == 0) { 39 $('<div class="loader"><span class="cloader"></span></div>').css({ 40 position: "absolute", 41 right: "40%", 42 top: "40%" 43 }).appendTo(e); 44 $("form").find(".cloader").append(t.canvas) 45 } 46 //} 47 }, 48 elements_no: function (e, t) { 49 if (!t) t = ""; 50 $(".alert").removeClass("alert"); 51 if($(e).parents(".selector:first").length > 0) { 52 $(".selector").removeClass("alert1"); 53 $(e).parents(".selector:first").addClass("alert1"); 54 } 55 $(e).focus().addClass("alert").val(t).bind("keydown click", function () { 56 if ($(this).val() == t) { 57 $(this).val("").unbind("keydown").unbind("click") 58 } 59 }) 60 }, 61 elements_ok: function (e) {}, 62 response: function (e, t) { 63 now_form = e; 64 if ($(e).prev().hasClass("error") || $(e).prev().hasClass("success")) { 65 $(e).prev().removeClass("success").addClass("error").html(t) 66 } else { 67 $('<div class="error">' + t + "</div>").insertBefore(e) 68 } 69 $(".loader").fadeOut(function () { 70 $(this).remove() 71 }); 72 //hide_load(); 73 if (typeof $(e).attr("noscroll") == "undefined") { 74 pos = $(e).position(); 75 $("html, body").animate({ 76 scrollTop: pos.top - 30 77 }, 600) 78 } 79 }, 80 check: function (e, t, n) { 81 return $(e).attr("check_error") 82 } 83 }); 84 /*$("test").each(function () { 85 $(this).unbind("click").click(function () { 86 load_page($(this).attr("href")); 87 return false 88 }) 89 });*/ 90 //check_hash(); 91 /*setInterval(function () { 92 check_hash() 93 }, 500)*/ 94 }); 95 $(function() { 96 $("select").each(function() { 97 $(this).val($(this).attr("myvalue")); 98 }); 99 }); 100} 101do_run();
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.