1jQuery(document).ready(function ($) { 2"use strict"; 3 4////////////////////////////////////////////////////////////////////////// 5// Review 6////////////////////////////////////////////////////////////////////////// 7$(".post_review_bar").knob(); 8 9////////////////////////////////////////////////////////////////////////// 10// Scroll box 11////////////////////////////////////////////////////////////////////////// 12$('.scroll_list_post').slimScroll({color: '#FFF', size: '7px', height: '566px', alwaysVisible: true}); 13 14////////////////////////////////////////////////////////////////////////// 15// Infinite Scroll 16////////////////////////////////////////////////////////////////////////// 17 var $container = $('#content_masonry'); 18 $container.infinitescroll({ 19 navSelector : "div.pagination-more", 20 nextSelector : "div.more-previous a", 21 itemSelector : "#content_masonry div.loop-post-content", 22 loading: { 23 msgText: "", 24 finishedMsg: '<span>No more posts to load.</span> <style type="text/css">.pagination-more{ display:none !important;}</style>' 25 } 26 }, 27 28 function( newElements ) { 29jQuery().waypoint && (jQuery(".appear_animation").waypoint(function () { 30 if (!jQuery(this).hasClass("animate_css_stlye animate_start")) { 31 var e = jQuery(this); 32 setTimeout(function () { 33 e.addClass("animate_css_stlye animate_start") 34 }, 20) 35 } 36 }, { 37 offset: "85%", 38 triggerOnce: !0 39 })); 40 41$(".post_review_bar").knob(); 42 }); 43 44 jQuery(window).unbind('.infscr'); 45 jQuery('div.more-previous a').click(function(){jQuery('#content_masonry').infinitescroll('retrieve'); 46 return false; 47 }); 48 49//Grid more 50 51 var $container = $('#content_masonry_grid'); 52 $container.infinitescroll({ 53 navSelector : "div.pagination-more-grid", 54 nextSelector : "div.more-previous-grid a", 55 itemSelector : "#content_masonry_grid div.medium-two-columns", 56 loading: { 57 msgText: "", 58 finishedMsg: '<span>No more posts to load.</span> <style type="text/css">.pagination-more-grid{ display:none !important;}</style>' 59 } 60 }, 61 62 function( newElements ) { 63jQuery().waypoint && (jQuery(".appear_animation").waypoint(function () { 64 if (!jQuery(this).hasClass("animate_css_stlye animate_start")) { 65 var e = jQuery(this); 66 setTimeout(function () { 67 e.addClass("animate_css_stlye animate_start") 68 }, 20) 69 } 70 }, { 71 offset: "85%", 72 triggerOnce: !0 73 })); 74 75$(".post_review_bar").knob(); 76$( ".new_div_clear" ).after( '<div class="clearfix"></div>' ); 77 }); 78 79 jQuery(window).unbind('.infscr'); 80 jQuery('div.more-previous-grid a').click(function(){jQuery('#content_masonry_grid').infinitescroll('retrieve'); 81 return false; 82 }); 83 84////////////////////////////////////////////////////////////////////////// 85// Mobile menu 86////////////////////////////////////////////////////////////////////////// 87 88 $(".open").pageslide() 89////////////////////////////////////////////////////////////////////////// 90// Ticker 91////////////////////////////////////////////////////////////////////////// 92 93 var marquee = jQuery("#mycrawler"); 94 var time_multiplier = 18; 95 var current; 96 97 marquee.hover(function(){ 98 current.pause(); 99 }, function(){ 100 current.resume(); 101 }) 102 103 var reset = function() { 104 current = jQuery(this); 105 var item_width = jQuery(this).outerWidth(); 106 107 var time = time_multiplier * jQuery(this).outerWidth(); 108 jQuery(this).animate({ 'margin-left': -item_width }, time, 'linear', function(){ 109 var clone_item = jQuery(this).clone(); 110 clone_item.css({ 'margin-left': '0' }); 111 marquee.append(clone_item); 112 113 jQuery(this).remove(); 114 reset.call(marquee.children().filter(':first')); 115 }); 116 }; 117 118 reset.call(marquee.children().filter(':first')); 119 120 121////////////////////////////////////////////////////////////////////////// 122// Menu 123////////////////////////////////////////////////////////////////////////// 124 125 var mainmenu = $('#menu-top, #mainmenu').superfish({ 126 delay: 400, 127 animation: { 128 opacity: 'show' 129 }, 130 speed: 'fast',
131 autoArrows: false 132 }); 133 134////////////////////////////////////////////////////////////////////////// 135// Audio / Video 136////////////////////////////////////////////////////////////////////////// 137 138 $('audio').mediaelementplayer({ 139 audioWidth: '100%' 140 }); 141 142 143////////////////////////////////////////////////////////////////////////// 144// Slider 145////////////////////////////////////////////////////////////////////////// 146 147 $(".slider-large, .slider-medium").owlCarousel({ 148 autoPlay: 8000, 149 slideSpeed : 500, 150 paginationSpeed : 500, 151 singleItem : true, 152 navigation: true, 153 pagination: false, 154 stopOnHover: true, 155 autoHeight : true 156 }); 157 158 $(".jazzs-large").owlCarousel({ 159 autoPlay: 5000, 160 slideSpeed : 500, 161 paginationSpeed : 500, 162 singleItem : true, 163 navigation: true, 164 pagination: false, 165 stopOnHover: true, 166 autoHeight : true 167 }); 168 169 $(".slider-large-widget").owlCarousel({ 170 slideSpeed : 500, 171 paginationSpeed : 500, 172 singleItem : true, 173 navigation: true, 174 pagination: false, 175 stopOnHover: true, 176 autoHeight : true 177 }); 178 179////////////////////////////////////////////////////////////////////////// 180// Carousel 181////////////////////////////////////////////////////////////////////////// 182 183 $(".owl_carousel").owlCarousel({ 184 items : 4, 185 itemsDesktop : [1199,3], 186 itemsDesktopSmall : [979,3], 187 itemsMobile : [767,1], 188 pagination: false, 189 navigation: true, 190 autoHeight: true 191 }); 192 193 $(".owl_carousel_builder").owlCarousel({ 194 items : 3, 195 itemsDesktop : [1199,2], 196 itemsDesktopSmall : [979,3], 197 itemsMobile : [767,1], 198 pagination: false, 199 navigation: true 200 }); 201 202////////////////////////////////////////////////////////////////////////// 203// Carousel vertical 204////////////////////////////////////////////////////////////////////////// 205 $('.slider8').bxSlider({ 206 mode: 'vertical', 207 minSlides: 4, 208 slideMargin: 10, 209 infiniteLoop: true, 210 pager: false 211 }); 212////////////////////////////////////////////////////////////////////////// 213// Add class 214////////////////////////////////////////////////////////////////////////// 215 216jQuery().waypoint && (jQuery(".appear_animation").waypoint(function () { 217 if (!jQuery(this).hasClass("animate_css_stlye animate_start")) { 218 var e = jQuery(this); 219 setTimeout(function () { 220 e.addClass("animate_css_stlye animate_start") 221 }, 20) 222 } 223 }, { 224 offset: "85%", 225 triggerOnce: !0 226 })); 227 228jQuery().waypoint && (jQuery(" .reviewbox").waypoint(function () { 229 if (!jQuery(this).hasClass("animation_bar_width")) { 230 var e = jQuery(this); 231 setTimeout(function () { 232 e.addClass("animation_bar_width") 233 }, 20) 234 } 235 }, { 236 offset: "85%", 237 triggerOnce: !0 238 })); 239 240////////////////////////////////////////////////////////////////////////// 241// Tab 242////////////////////////////////////////////////////////////////////////// 243 244 var $tabsNav = $('.tabs'), 245 $tabsNavLis = $tabsNav.children('li'); 246 $tabsNav.each(function () { 247 var $this = $(this); 248 $this.next().children('.tab-content').stop(true, true).hide() 249 .first().show(); 250 $this.children('li').first().addClass('active').stop(true, true).show(); 251 }); 252 $tabsNavLis.on('click', function (e) { 253 var $this = $(this); 254 $this.siblings().removeClass('active').end() 255 .addClass('active'); 256 $this.parent().next().children('.tab-content').stop(true, true).hide() 257 .siblings($this.find('a').attr('href')).fadeIn(); 258 e.preventDefault(); 259 }); 260 261 var $tabsNav = $('.tabs1'), 262 $tabsNavLis = $tabsNav.children('li'); 263 $tabsNav.each(function () { 264 var $this = $(this); 265 $this.next().children('.tab-content1').stop(true, true).hide() 266 .first().show(); 267 $this.children('li').first().addClass('active').stop(true, true).show(); 268 });
269 $tabsNavLis.on('click', function (e) { 270 var $this = $(this); 271 $this.siblings().removeClass('active').end() 272 .addClass('active'); 273 $this.parent().next().children('.tab-content1').stop(true, true).hide() 274 .siblings($this.find('a').attr('href')).fadeIn(); 275 e.preventDefault(); 276 }); 277 278 279 var $tabsNav = $('.hover_tab_post_large'), 280 $tabsNavLis = $tabsNav.children('li'); 281 $tabsNav.each(function () { 282 var $this = $(this); 283 $this.next().children('.tab-content').stop(true, true).hide() 284 .first().show(); 285 $this.children('li').first().addClass('active').stop(true, true).show(); 286 }); 287 $tabsNavLis.on('hover', function (e) { 288 var $this = $(this); 289 $this.siblings().removeClass('active').end() 290 .addClass('active'); 291 $this.parent().next().children('.tab-content').stop(true, true).hide() 292 .siblings($this.find('a').attr('rel')).fadeIn(); 293 e.preventDefault(); 294 }); 295 296 297 298////////////////////////////////////////////////////////////////////////// 299// Go to top 300////////////////////////////////////////////////////////////////////////// 301 302 jQuery(window).scroll(function () { 303 if (jQuery(this).scrollTop() > 500) { 304 jQuery("#go-top").fadeIn(); 305 } else { 306 jQuery("#go-top").fadeOut(); 307 } 308 }); 309 $("#go-top").click(function () { 310 jQuery("body,html").animate({ scrollTop: 0 }, 800 ); 311 return false; 312 }); 313 314////////////////////////////////////////////////////////////////////////// 315// Video responsive 316////////////////////////////////////////////////////////////////////////// 317 318fluidvids.init({ 319 selector: 'iframe', 320 players: ['www.youtube.com', 'player.vimeo.com'] 321 }); 322 323////////////////////////////////////////////////////////////////////////// 324// Sticky 325////////////////////////////////////////////////////////////////////////// 326 327$(".menu_sticky").sticky({topSpacing:0}); 328$(".image-flickr-widget a, .twitter_widget_feed a").attr('target','_blank'); 329 330}); 331 332 333 334
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.