1/* 2 * Copyright (c) kentooz 3 * Kentooz Theme Custom Javascript 4 */ 5 6var $ = jQuery.noConflict(); 7 8(function( $ ) { 9 /* http://www.w3schools.com/js/js_strict.asp */ 10 "use strict"; 11 12$( document ).ready( function () { 13 14 // JS TOOLTIPS 15 $('ul.icon24px a').tooltip() 16 $('a[rel=tooltip]').tooltip() 17 // JS TABS 18 $('#ktztab a:first').tab('show') 19 $('#ktzsbtab a:first').tab('show') 20 21 // JS SCROLL TOP 22 $(window).scroll(function(){ 23 if ($(this).scrollTop() > 100) { 24 $('#back-top').fadeIn(); 25 } else { 26 $('#back-top').fadeOut(); 27 } 28 }); 29 $('#back-top').click(function(){ 30 $("html, body").animate({ scrollTop: 0 }, 600); 31 return false; 32 }); 33 34 // Simple add marquee to top effect 35 function tick(){ 36 $('#listmodule-ticker li:first').animate({'opacity':0}, 200, function () { $(this).appendTo($('#listmodule-ticker')).css('opacity', 1); }); 37 } 38 setInterval(function(){ tick () }, 4000); 39 function toptick(){ 40 $('#top-ticker li:first').animate({'opacity':0}, 200, function () { $(this).appendTo($('#top-ticker')).css('opacity', 1); }); 41 } 42 setInterval(function(){ toptick () }, 4000); 43 44 // JS SELECT NAV FOR SMALL SCREEN 45 selectnav('topmenu', { 46 label: '-- SELECT MENU --', 47 nested: true, 48 indent: '-' 49 }); 50 // NEWS JQUERY CAROUSEL 51 $("#newscarausel").carouFredSel({ 52 width : "100%", 53 scroll : 1, 54 auto : true, 55 prev: '#prev-1', 56 next: '#next-1' 57 }); 58 59 // NIVO SLIDER 60 $(window).load(function() { 61 $("#slider").nivoSlider({ 62 effect:"fade", 63 startSlide:0, 64 directionNav:false, 65 controlNav:true, 66 controlNavThumbs:false, 67 pauseOnHover:true, 68 manualAdvance:false 69 }); 70 }); 71 72}); // End document Ready 73})(jQuery);
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.