1// JavaScript Document 2/** 3* @package Mozen - Responsive Zencart Template 4* @copyright (C) 2012 by Dasinfomedia - All rights reserved! 5* JS Document 6*/ 7 8 9//Scroll to top Script 10var jq = jQuery.noConflict(); 11jq(function() { 12 jq.fn.scrollToTop = function() { 13 jq(this).hide().removeAttr("href"); 14 if (jq(window).scrollTop() != "0") { 15 jq(this).fadeIn("slow") 16 } 17 var scrollDiv = jq(this); 18 jq(window).scroll(function() { 19 if (jq(window).scrollTop() == "0") { 20 jq(scrollDiv).fadeOut("slow") 21 } else { 22 jq(scrollDiv).fadeIn("slow") 23 } 24 }); 25 jq(this).click(function() { 26 jq("html, body").animate({ 27 scrollTop: 0 28 }, "slow") 29 }) 30 } 31}); 32 33 34jq(function() { 35 jq("#w2b-StoTop").scrollToTop(); 36}); 37 38 39//Slider Script 40var sli = jQuery.noConflict(); 41 sli(window).load(function() { 42 sli('.flexslider').flexslider(); 43 }); 44 45 46 47//Accordian 48var acc = jQuery.noConflict(); 49acc(document).ready(function(){ 50 51//Set default open/close settings 52acc('.acc_container').hide(); //Hide/close all containers 53acc('.acc_trigger:first').addClass('active').next().show(); //Add "active" class to first trigger, then show/open the immediate next container 54 55//On Click 56acc('.acc_trigger').click(function(){ 57if( $(this).next().is(':hidden') ) { //If immediate next container is closed... 58acc('.acc_trigger').removeClass('active').next().slideUp(); //Remove all .acc_trigger classes and slide up the immediate next container 59acc(this).toggleClass('active').next().slideDown(); //Add .acc_trigger class to clicked trigger and slide down the immediate next container 60} 61return false; //Prevent the browser jump to the link anchor 62}); 63 64}); 65 66//Cloud Zoom 67var cld = jQuery.noConflict(); 68cld('#zoom01, .cloud-zoom-gallery').CloudZoom(); 69
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.