1(function ($) { 2 "use strict"; 3/*-- 4Commons Variables 5-----------------------------------*/ 6var windows = $(window); 7 8/*-- 9 Menu Sticky 10-----------------------------------*/ 11var sticky = $('.header-sticky'); 12 13windows.on('scroll', function() { 14 var scroll = windows.scrollTop(); 15 if (scroll < 300) { 16 sticky.removeClass('is-sticky'); 17 }else{ 18 sticky.addClass('is-sticky'); 19 } 20}); 21 22/*-- 23 Header Search 24-----------------------------------*/ 25var $headerSearchToggle = $('.header-search-toggle'); 26var $headerSearchForm = $('.header-search-form'); 27 28$headerSearchToggle.on('click', function() { 29 var $this = $(this); 30 if(!$this.hasClass('open')) { 31 $this.addClass('open').find('i').removeClass('icofont-search-2').addClass('icofont-close-line'); 32 $headerSearchForm.slideDown(); 33 } else { 34 $this.removeClass('open').find('i').removeClass('icofont-close-line').addClass('icofont-search-2'); 35 $headerSearchForm.slideUp(); 36 } 37}); 38 39/*--
40 Youtube Background Video 41-----------------------------------*/ 42$(".player").YTPlayer(); 43 44/*-- 45 Mobile Menu 46-----------------------------------*/ 47var mainMenuNav = $('.main-menu'); 48mainMenuNav.meanmenu({ 49 meanScreenWidth: '991', 50 meanMenuContainer: '.mobile-menu', 51 meanMenuClose: '<span class="menu-close"></span>', 52 meanMenuOpen: '<span class="menu-bar"></span>', 53 meanRevealPosition: 'right', 54 meanMenuCloseSize: '0', 55}); 56 57/*-- 58 Sliders 59-----------------------------------*/ 60// Hero Slider 61$('.hero-slider').slick({ 62 infinite: true, 63 fade: true, 64 dots: false, 65 prevArrow: '<button class="slick-prev"><i class="icofont-long-arrow-left"></i>'+_onceki+'</button>', 66 nextArrow: '<button class="slick-next">'+_sonraki+'<i class="icofont-long-arrow-right"></i></button>', 67 responsive: [ 68 { 69 breakpoint: 992, 70 settings: { 71 dots: false, 72 arrows: true, 73 } 74 }, 75 ] 76}); 77// Hero Slider Three 78$('.hero-slider-three').slick({ 79 infinite: true, 80 arrows: false, 81 fade: false, 82 dots: false, 83 autoplaySpeed: 1000, 84 autoplay: false, 85 slidesToShow: 3, 86 slidesToScroll: 1, 87 responsive: [ 88 { 89 breakpoint: 768, 90 settings: { 91 slidesToShow: 1, 92 } 93 }, 94 ] 95}); 96// Hero Slider Three 97$('.hero-game-slide').slick({ 98 infinite: true, 99 arrows: false, 100 fade: false, 101 dots: false, 102 autoplaySpeed: 1000, 103 autoplay: false, 104 centerMode: true, 105 centerPadding: '0', 106 slidesToShow: 3, 107 slidesToScroll: 1, 108 responsive: [ 109 { 110 breakpoint: 767, 111 settings: { 112 slidesToShow: 1, 113 centerPadding: '25%', 114 } 115 }, 116 { 117 breakpoint: 575, 118 settings: { 119 slidesToShow: 1, 120 centerPadding: '0', 121 } 122 }, 123 ] 124}); 125// Hero Slider Four 126$('.hero-slider-four').slick({ 127 infinite: true, 128 fade: true, 129 dots: false, 130 prevArrow: '<button class="slick-prev"><i class="icofont-long-arrow-left"></i>Ãnceki</button>', 131 nextArrow: '<button class="slick-next">Sonraki<i class="icofont-long-arrow-right"></i></button>', 132 responsive: [ 133 { 134 breakpoint: 992, 135 settings: { 136 dots: false, 137 arrows: true, 138 } 139 }, 140 ] 141}); 142 143// Testimonial Slider (Content) 144$('.testimonial-slider-content').slick({ 145 infinite: true, 146 arrows: false, 147 fade: false, 148 dots: false, 149 slidesToShow: 1, 150 slidesToScroll: 1 151}); 152// blog image Slider (Content) 153$('.blog-img-slider').slick({ 154 infinite: true, 155 arrows: true, 156 fade: false, 157 dots: false, 158 slidesToShow: 1, 159 slidesToScroll: 1, 160 prevArrow: '<button class="slick-prev"><i class="fa fa-angle-left"></i></button>', 161 nextArrow: '<button class="slick-next"><i class="fa fa-angle-right"></i></button>' 162}); 163// Featured Slider 164$('.featured-slide').slick({ 165 infinite: true, 166 arrows: false, 167 fade: false, 168 dots: false, 169 autoplaySpeed: 1000, 170 autoplay: true, 171 slidesToShow: 4, 172 slidesToScroll: 1, 173 responsive: [ 174 { 175 breakpoint: 1201, 176 settings: { 177 slidesToShow: 4, 178 } 179 }, 180 { 181 breakpoint: 993, 182 settings: { 183 slidesToShow: 3, 184 } 185 }, 186 { 187 breakpoint: 577, 188 settings: { 189 slidesToShow: 2, 190 } 191 }, 192 { 193 breakpoint: 481, 194 settings: { 195 slidesToShow: 1, 196 } 197 }, 198 ] 199}); 200// Upcoming Game Slider 201$('.upcoming-game-slider').slick({ 202 infinite: true, 203 arrows: false, 204 fade: false, 205 dots: false, 206 autoplaySpeed: 1000, 207 autoplay: true, 208 slidesToShow: 4, 209 slidesToScroll: 1, 210 responsive: [ 211 { 212 breakpoint: 1201, 213 settings: { 214 slidesToShow: 3, 215 } 216 }, 217 { 218 breakpoint: 993, 219 settings: { 220 slidesToShow: 2, 221 } 222 }, 223 { 224 breakpoint: 577, 225 settings: { 226 slidesToShow: 2, 227 } 228 }, 229 { 230 breakpoint: 481, 231 settings: { 232 slidesToShow: 1, 233 } 234 }, 235 ] 236}); 237// Game Slider 238$('.game-slide').slick({ 239 arrows: true, 240 row: 2, 241 fade: false, 242 dots: false, 243 infinite: true, 244 autoplaySpeed: 1000, 245 slidesToShow: 3, 246 slidesToScroll: 1, 247 prevArrow: '<button class="slick-prev"><i class="fa fa-angle-left"></i></button>', 248 nextArrow: '<button class="slick-next"><i class="fa fa-angle-right"></i></button>', 249 responsive: [ 250 { 251 breakpoint: 1199, 252 settings: { 253 slidesToShow: 2, 254 } 255 }, 256 { 257 breakpoint: 768, 258 settings: { 259 slidesToShow: 1, 260 } 261 }, 262 ] 263}); 264// Video Slider 265$('.video-slider-active').slick({ 266 arrows: true, 267 autoplay: false, 268 dots: false, 269 autoplaySpeed: 800, 270 infinite: true, 271 centerMode: true, 272 centerPadding: '0', 273 slidesToShow: 3, 274 focusOnSelect: true, 275 prevArrow: '<button class="slick-prev"><i class="icofont-long-arrow-left"></i>Ãnceki</button>', 276 nextArrow: '<button class="slick-next">Sonraki<i class="icofont-long-arrow-right"></i></button>', 277 responsive: [ 278 { 279 breakpoint: 1201, 280 settings: { 281 slidesToShow: 3, 282 } 283 }, 284 { 285 breakpoint: 993, 286 settings: { 287 slidesToShow: 3, 288 } 289 }, 290 { 291 breakpoint: 577, 292 settings: { 293 slidesToShow: 2, 294 } 295 }, 296 { 297 breakpoint: 481, 298 settings: { 299 slidesToShow: 1, 300 } 301 }, 302 ] 303 304}); 305 306 307 308 309// Forum Note Active 310$('#summernote').summernote({ 311 height: 410, 312 minHeight: null, 313 maxHeight: null, 314 focus: true 315}); 316 317// Nice Select Active 318$('select').niceSelect(); 319 320/*----------------------------------- 321 Game Tab Slider Active 322--------------------------------------*/ 323$('.game-image-large').each(function () { 324 var $this = $(this); 325 var $thumb = $this.siblings('.game-image-thumbs'); 326 $this.slick({
327 arrows: false, 328 slidesToShow: 1, 329 slidesToScroll: 1, 330 autoplay: false, 331 autoplaySpeed: 5000, 332 dots: false, 333 infinite: true, 334 centerMode: false, 335 centerPadding: 0, 336 asNavFor: $thumb, 337 }); 338}); 339$('.game-image-thumbs').each(function () { 340 var $this = $(this); 341 var $details = $this.siblings('.game-image-large'); 342 $this.slick({ 343 slidesToShow: 4, 344 slidesToScroll: 1, 345 autoplay: false, 346 autoplaySpeed: 5000, 347 dots: false, 348 infinite: true, 349 focusOnSelect: true, 350 centerMode: true, 351 centerPadding: 0, 352 arrows: false, 353 prevArrow: '<span class="slick-prev"><i class="fa fa-angle-left"></i></span>', 354 nextArrow: '<span class="slick-next"><i class="fa fa-angle-right"></i></span>', 355 asNavFor: $details, 356 responsive: [ 357 { 358 breakpoint: 1024, 359 settings: {} 360 }, 361 { 362 breakpoint: 600, 363 settings: {} 364 }, 365 { 366 breakpoint: 480, 367 settings: { 368 slidesToShow: 2, 369 } 370 } 371 ] 372 373 }); 374}); 375 376// gallery Slider 377$('.gallery-slider-2-column').slick({ 378 infinite: true, 379 arrows: true, 380 dots: false, 381 slidesToShow: 2, 382 slidesToScroll: 1, 383 prevArrow: '<button class="slick-prev"><i class="icofont-long-arrow-up"></i></button>', 384 nextArrow: '<button class="slick-next"><i class="icofont-long-arrow-down"></i></button>', 385 responsive: [ 386 { 387 breakpoint: 1501, 388 settings: { 389 slidesToShow: 2, 390 } 391 }, 392 { 393 breakpoint: 1199, 394 settings: { 395 slidesToShow: 2, 396 } 397 }, 398 { 399 breakpoint: 992, 400 settings: { 401 slidesToShow: 2, 402 } 403 }, 404 { 405 breakpoint: 768, 406 settings: { 407 slidesToShow: 1, 408 } 409 }, 410 { 411 breakpoint: 575, 412 settings: { 413 slidesToShow: 1, 414 } 415 }, 416 ] 417}); 418 419// One PageNav JS 420 $('.main-menu ul').onePageNav({ 421 currentClass: 'active', 422 changeHash: false, 423 scrollSpeed: 750, 424 scrollThreshold: 0.5, 425 filter: '', 426 easing: 'swing', 427 offsetHeight: 80, 428 }); 429 430 431// ScrollUp Active 432 433$.scrollUp({ 434 scrollText: '<i class="fa fa-angle-double-up"></i>', 435 easingType: 'linear', 436 scrollSpeed: 900, 437 animation: 'fade' 438}); 439 440/*----- 441 Shipping Form Toggle 442--------------------------------*/ 443$('[data-shipping]').on('click', function(){ 444 if( $('[data-shipping]:checked').length > 0 ) { 445 $('#shipping-form').slideDown(); 446 } else { 447 $('#shipping-form').slideUp(); 448 } 449}) 450 451/*----- 452 Payment Method Select 453--------------------------------*/ 454$('[name="payment-method"]').on('click', function(){ 455 456 var $value = $(this).attr('value'); 457 458 $('.single-method p').slideUp(); 459 $('[data-method="'+$value+'"]').slideDown(); 460 461}) 462 463/*-- 464 Wow Active 465-----------------------------------*/ 466 new WOW().init(); 467 468/*-- 469 Magnific Popup 470-----------------------------------*/ 471$('.image-popup').magnificPopup({ 472 type: 'image', 473}); 474$('.gallery-popup').magnificPopup({ 475 type: 'image', 476 gallery: { 477 enabled: true, 478 }, 479}); 480$('.video-popup').magnificPopup({ 481 type: 'iframe', 482}); 483 484/*-- 485 MailChimp 486-----------------------------------*/ 487$('#mc-form').ajaxChimp({ 488 language: 'en', 489 callback: mailChimpResponse, 490 // ADD YOUR MAILCHIMP URL BELOW HERE! 491 url: 'http://devitems.us11.list-manage.com/subscribe/post?u=6bbb9b6f5827bd842d9640c82&id=05d85f18ef' 492 493}); 494function mailChimpResponse(resp) { 495 496 if (resp.result === 'success') { 497 $('.mailchimp-success').html('' + resp.msg).fadeIn(900);
498 $('.mailchimp-error').fadeOut(400); 499 500 } else if(resp.result === 'error') { 501 $('.mailchimp-error').html('' + resp.msg).fadeIn(900); 502 } 503} 504 505})(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.