1/* 2Name: View - Home 3Written by: Okler Themes - (http://www.okler.net) 4Version: 3.0.0 5*/ 6 7jQuery(document).ready(function ($) { 8 9 "use strict"; 10 11 var Home = { 12 13 initialized: false, 14 15 initialize: function() { 16 17 if (this.initialized) return; 18 this.initialized = true; 19 20 this.build(); 21 this.events(); 22 23 }, 24 25 build: function(options) { 26 27 // Circle Slider 28 if($("#fcSlideshow").get(0)) { 29 $("#fcSlideshow").flipshow(); 30 31 setInterval( function() { 32 $("#fcSlideshow div.fc-right span:first").click(); 33 }, 3000); 34 35 } 36 37 // Revolution Slider Initialize 38 $("#revolutionSlider").each(function() { 39 40 var slider = $(this); 41 42 var defaults = { 43 delay: 9000, 44 startheight: 495, 45 startwidth: 960, 46 47 hideThumbs: 10, 48 49 thumbWidth: 100, 50 thumbHeight: 50, 51 thumbAmount: 5, 52 53 navigationType: "both", 54 navigationArrows: "verticalcentered", 55 navigationStyle: "round", 56 57 touchenabled: "on", 58 onHoverStop: "on", 59 60 navOffsetHorizontal: 0, 61 navOffsetVertical: 20, 62 63 stopAtSlide: 0, 64 stopAfterLoops: -1, 65 66 shadow: 0, 67 fullWidth: "on", 68 videoJsPath: "vendor/rs-plugin/videojs/" 69 } 70 71 var config = $.extend({}, defaults, options, slider.data("plugin-options")); 72 73 // Initialize Slider 74 var sliderApi = slider.revolution(config).addClass("slider-init"); 75 76 // Set Play Button to Visible 77 sliderApi.bind("revolution.slide.onloaded ",function (e,data) { 78 $(".home-player").addClass("visible"); 79 }); 80 81 }); 82 83 // Revolution Slider One Page 84 if($("#revolutionSliderFullScreen").get(0)) { 85 var rev = $("#revolutionSliderFullScreen").revolution({ 86 delay: 9000, 87 startwidth: 1170, 88 startheight: 600, 89 90 hideThumbs: 200, 91 92 thumbWidth: 100, 93 thumbHeight: 50, 94 thumbAmount: 5, 95 96 navigationType: "both", 97 navigationArrows: "verticalcentered", 98 navigationStyle: "round", 99 100 touchenabled: "on", 101 onHoverStop: "on", 102 103 navOffsetHorizontal: 0, 104 navOffsetVertical: 20, 105 106 stopAtSlide: -1, 107 stopAfterLoops: -1, 108 109 shadow: 0, 110 fullWidth: "on", 111 fullScreen: "on", 112 fullScreenOffsetContainer: ".header", 113 videoJsPath: "vendor/rs-plugin/videojs/" 114 }); 115 116 } 117 118 // Nivo Slider 119 if($("#nivoSlider").get(0)) { 120 $("#nivoSlider").nivoSlider(); 121 } 122 123 }, 124 125 events: function() { 126 127 this.moveCloud(); 128 129 }, 130 131 moveCloud: function() { 132 133 var $this = this; 134 135 $(".cloud").animate( {"top": "+=20px"}, 3000, "linear", function() { 136 $(".cloud").animate( {"top": "-=20px"}, 3000, "linear", function() { 137 $this.moveCloud(); 138 }); 139 }); 140 141 } 142 143 }; 144 145 Home.initialize(); 146 147});
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.