1$(function(){ 2 ///////////////// 3 //Image Gallery// 4 ///////////////// 5 try { 6 $(".swipebox").swipebox({ 7 useCSS : true, // false will force the use of jQuery for animations 8 hideBarsDelay : 3000 // 0 to always show caption and action bar 9 }); 10 11 $(".wide-gallery-item").swipebox({ 12 useCSS : true, // false will force the use of jQuery for animations 13 hideBarsDelay : 3000 // 0 to always show caption and action bar 14 }); 15 16 }catch(e){} 17 18 19 20 21 var time = 4; // time in seconds 22 23 var $progressBar, 24 $bar, 25 $elem, 26 isPause, 27 tick, 28 percentTime; 29 //Init the carousel 30 // $(".homepage-slider").owlCarousel({ 31 // slideSpeed : 500, 32 // paginationSpeed : 500, 33 // singleItem : true, 34 // pagination:false, 35 // afterInit : progressBar, 36 // afterMove : moved, 37 // startDragging : pauseOnDragging 38 // }); 39 try { 40 41 $('.homepage-slider').easyBanner({ 42 // arrow: false, 43 serial: false 44 }); 45 }catch(e){} 46 47 //Init progressBar where elem is $("#owl-demo") 48 function progressBar(elem){ 49 $elem = elem; 50 //build progress bar elements 51 buildProgressBar(); 52 //start counting 53 start(); 54 } 55 56 //create div#progressBar and div#bar then prepend to $("#owl-demo") 57 function buildProgressBar(){ 58 $progressBar = $("<div>",{ 59 id:"progressBar" 60 }); 61 $bar = $("<div>",{ 62 id:"bar" 63 }); 64 $progressBar.append($bar).prependTo($elem); 65 } 66 67 function start() { 68 //reset timer 69 percentTime = 0; 70 isPause = false; 71 //run interval every 0.01 second 72 tick = setInterval(interval, 10); 73 }; 74 75 function interval() { 76 if(isPause === false){ 77 percentTime += 1 / time; 78 $bar.css({ 79 width: percentTime+"%" 80 }); 81 //if percentTime is equal or greater than 100 82 if(percentTime >= 100){ 83 //slide to next item 84 $elem.trigger('owl.next') 85 } 86 } 87 } 88 89 //pause while dragging 90 function pauseOnDragging(){ 91 isPause = true; 92 } 93 94 //moved callback 95 function moved(){ 96 //clear interval 97 clearTimeout(tick); 98 //start again 99 start(); 100 } 101 })
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.