1jQuery(function($) { 2 3 $('ul li:last-child').addClass('lastItem'); 4 $('ul li:first-child').addClass('firstItem'); 5 6 // Tips 7 $('*[rel=tooltip], .hasTooltip').tooltip() 8 $('*[rel=popover]').popover() 9 $('.tip-bottom').tooltip({placement: "bottom"}) 10 11 // Modal Window 12 $('[href="#modal"]').click(function(e){ 13 $('#modal').modal('toggle'); 14 e.preventDefault(); 15 }); 16 17 $('#modal button.modalClose').click(function(e){ 18 $('#modal').modal('hide'); 19 e.preventDefault(); 20 }); 21 22 $('.articleGalleryZoom').magnificPopup({ 23 type: 'image', 24 mainClass: 'mfp-with-zoom', 25 zoom: { 26 enabled: true, 27 duration: 300, 28 easing: 'ease-in-out', 29 opener: function(openerElement) { 30 return openerElement.is('img') ? openerElement : openerElement.find('img'); 31 } 32 } 33 }); 34 35 //Dropdown icons 36 $('.dropdown-toggle').dropdown() 37 var iconTest=/icon-/i; 38 var iconReplace = "fa fa-"; 39 function iconSet(){ 40 $('[class*="icon-"]').each(function(){ 41 iconClass = $(this).attr('class'); 42 var newString = iconClass.replace(iconTest, iconReplace); 43 $(this).addClass(newString); 44 }) 45 } 46 iconSet() 47 48 // hide #back-top first 49 $("#back-top").hide(); 50 51 // fade in #back-top 52 $(window).scroll(function () { 53 if ($(this).scrollTop() > 100) { 54 $('#back-top').fadeIn(); 55 } else { 56 $('#back-top').fadeOut(); 57 } 58 }); 59 60 // scroll body to 0px on click 61 $('#back-top a').click(function () { 62 $('body,html').animate({ 63 scrollTop: 0 64 }, 400); 65 return false; 66 }); 67 /* 68 if($('.lightboxlink').length){ 69 var lightboxlink = ($('.lightboxlink').attr('onclick').split(';')[0]).replace(/javascript:MOOdalBox\.open\(/,'').split(',')[0].replace(/"/g,'') 70 $('.lightboxlink').attr({href:'#'+lightboxlink,onclick:''}).magnificPopup({ 71 type: 'inline', 72 preloader: false, 73 closeBtnInside:false, 74 mainClass: 'map-popup', 75 callbacks: { 76 open: function() { 77 78 } 79 } 80 }) 81 } 82 */ 83 84 /*Pagination Active Button*/ 85 $('div.pagination ul li:not([class])').addClass('num'); 86 $('.modal.loginPopup').alwaysCenterIn(window); 87 /*if (typeof $.ScrollToFixed == 'function') { 88 $('#content-row [class*="span"]').each(function(){ 89 if($(this).outerHeight(true)<$(this).parent().height()){ 90 $(this).scrollToFixed({ 91 marginTop: function(){ 92 $(this).next().css({float:'left'}) 93 var marginTop = $('.sf-menu.sticky').parents('[id*="-row"]').outerHeight(true) 94 return marginTop 95 }, 96 limit : function(){ 97 var limit = $(this).parent().height()+$(this).parent().offset().top-$(this).outerHeight(true) 98 return limit 99 }, 100 zIndex:1, 101 minWidth: 768 102 }); 103 } 104 }); 105 }*/ 106 107 $('.offers .item_content').each(function(num){ 108 $(this).prepend('<span class="dropcap">'+(num+1)+'</span>'); 109 }) 110 111 112 113});
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.