1$(function(){ 2 $("body").append("<div id='to_top' title='ÐвеÑÑ ' class='hide-print pos-fixed pos10-r pos10-b bg-color2 hover-bg-colorA2 t-white hover-t-white cursor-pointer t18px i-angle-up icon-circle trans05-bg-color bor-gray500 bor-solid'></div>"); 3 $("#to_top").hide(); 4 $(window).scroll(function () {if ($(this).scrollTop() > 30) { $("#to_top").fadeIn();} else {$("#to_top").fadeOut(); } }); 5 $("#to_top").click(function() {$("body,html").animate({scrollTop: 0}, 800); return false; }); 6 7 // Ð¼ÐµÐ½Ñ 8 var is_touch = Modernizr.touch; 9 var menu = $('ul.menu'); 10 11 if (is_touch) 12 { 13 menu.removeClass('menu-hover'); 14 menu.addClass('menu-click'); 15 } 16 else 17 { 18 if ($('ul.menu-tablet > li').css('float') != 'left') 19 { 20 menu.removeClass('menu-hover'); 21 menu.addClass('menu-click'); 22 } 23 24 $(window).resize(function() { 25 if ($('ul.menu-tablet > li').css('float') != 'left') 26 { 27 menu.removeClass('menu-hover'); 28 menu.addClass('menu-click'); 29 } 30 else 31 { 32 menu.addClass('menu-hover'); 33 menu.removeClass('menu-click'); 34 $('ul.menu li ul').css('display', 'none'); 35 $('ul.menu li').removeClass('group-open'); 36 } 37 }); 38 } 39 40 $('nav').on('click', 'ul.menu-click li > a', function(e) { 41 var href = $(this).attr("href"); 42 var ul = $(this).next(); 43 var li = $(this).parent('li'); 44 45 if (href === "#") { 46 e.preventDefault(); 47 48 $('ul.menu li.group ul:visible').slideUp(200); 49 $('ul.menu li.group').removeClass('group-open'); 50 51 if ( ul.is(':visible') ) 52 { 53 ul.slideUp(200); 54 li.removeClass('group-open'); 55 } 56 else 57 { 58 ul.stop().slideDown(200); 59 li.addClass('group-open'); 60 } 61 } 62 }); 63 64 $('nav').on('mouseenter', 'ul.menu-hover li.group', function(e) { 65 // $(this).children('ul').hide().slideDown(200); 66 $(this).children('ul').hide().fadeIn(200); 67 }); 68 69 $('nav').on('mouseleave', 'ul.menu-hover li.group', function(e) { 70 // $(this).children('ul').slideUp(200); 71 $(this).children('ul').fadeOut(200); 72 }); 73 74 menu.removeClass('menu-no-load'); 75 76 /* search */ 77 var searchForm = $(".f_search"); 78 var searchInput = $(".my-search"); 79 var searchLabel = $(".label-search"); 80 81 searchForm.submit(function (e) { 82 e.preventDefault(); 83 window.location.href = window.search_url + encodeURIComponent(searchInput.val()).replace(/%20/g, '+'); 84 }); 85 86 searchLabel.click(function (e) { 87 if (searchInput.val() === "") { 88 searchInput.animate({width: "toggle"}, 500); 89 } 90 else { 91 e.preventDefault(); 92 searchForm.submit(); 93 } 94 }); 95 96 $(document).click(function(e) { 97 if ( !$(e.target).hasClass("label-search") && !$(e.target).hasClass("my-search") && (searchInput.val() === "") ) { 98 searchInput.hide(200); 99 } 100 }); 101 102 if (is_touch) 103 { 104 menu.removeClass('menu-hover'); 105 menu.addClass('menu-click'); 106 } 107 108 $('.menuToFixed').scrollToFixed({ 109 marginTop: 0 110 }); 111 112 $('.scrollToFixed').scrollToFixed({ 113 marginTop: 0 114 }); 115 116 117});
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.