PageSourceSearch

https://www.philmair.com/wp-content/themes/aqura/assets/js/main.js?ver=1.0

js philmair.com collected 2026-10-08 23:01:02 UTC 32,052 bytes, 2,029 lines download raw bytes

1<!-- ================================================== -->
2
3<!-- =============== START BREACRUMB OPTIONS ================ -->
4
5<!-- ================================================== -->
6
7
8
9jQuery(function(){
10
11
12
13    "use strict";
14
15
16
17    var wH = jQuery(window).height();
18
19
20
21    jQuery('.breadcrumb-fullscreen').css('height',wH);
22
23
24
25    jQuery('.breadcrumb:not(.breadcrumb-fullscreen)').each(function(){
26
27          
28
29          jQuery('header.header').addClass('no-breadcrumb-fullscreen');
30
31
32
33      });
34
35
36
37      jQuery('.breadcrumb.breadcrumb-video-content').each(function(){
38
39          
40
41          jQuery('header.header').removeClass('no-breadcrumb-fullscreen');
42
43
44
45      });
46
47
48
49    var breadcrumbH = jQuery(window).height();
50
51
52
53    if (jQuery(window).width() >= 1200){  
54
55      jQuery('.breadcrumb-video-content').each(function(){
56
57
58
59        breadcrumbH = (jQuery('.breadcrumb').outerHeight() - 250);
60
61
62
63      });
64
65    };
66
67
68
69    if ( jQuery('.link-yaku').length > 0 ) {
70
71
72
73      jQuery('.link-yaku').each(function(){
74
75
76
77          var $this = jQuery(this),
78
79              breadcrumbLength = $this.text();
80
81
82
83          $this.html('');
84
85
86
87          for (var i = 0, len = breadcrumbLength.length; i < len; i++) {
88
89            var actualTitleString = $this.html();
90
91
92
93            $this.html(actualTitleString + '<span>' + breadcrumbLength[i] + '</span>');
94
95          }
96
97
98
99      });
100
101
102
103    }
104
105
106
107    jQuery('.breadcrumb-video-content').each(function(){
108
109
110
111      breadcrumbH = (jQuery('.breadcrumb').outerHeight() - 75);
112
113
114
115    });
116
117
118
119    jQuery('.breadcrumb-fullscreen-parent').after('<div class="before-affix-breadcrumb"></div>');
120
121
122
123    var wH = jQuery(window).height();
124
125
126
127    jQuery('.starTitle > *').each(function(){
128
129
130
131      var fadeStart= 0
132
133          ,fadeUntil= 400
134
135          ,fading = jQuery(this);
136
137
138
139      jQuery(window).bind('scroll', function(){
140
141          var offset = jQuery(document).scrollTop()
142
143              ,opacity=0
144
145          ;
146
147          if( offset<=fadeStart ){
148
149              opacity=1;
150
151          }else if( offset<=fadeUntil ){
152
153              opacity=1-offset/fadeUntil;
154
155          }
156
157          fading.css('opacity',opacity);
158
159      });
160
161
162
163    });
164
165
166
167    function affixPhoneMenu() {
168
169
170
171      jQuery('header.header').addClass('phone-menu-bg');
172
173
174
175      jQuery('.phone-menu-bg').affix({
176
177          offset: {
178
179            top: 50
180
181          }
182
183      });
184
185
186
187    };
188
189
190
191    function unAffixPhoneMenu() {
192
193
194
195      jQuery('header.header').removeClass('phone-menu-bg');
196
197
198
199    };
200
201
202
203    if (jQuery(window).width() <= 768){
204
205          affixPhoneMenu();
206
207        } else {
208
209         jQuery(window).resize(function(){
210
211          if (jQuery(window).width() <= 768){
212
213            affixPhoneMenu();
214
215          }
216
217      });
218
219    };
220
221
222
223    if (jQuery(window).width() >= 768){
224
225          unAffixPhoneMenu();
226
227        } else {
228
229         jQuery(window).resize(function(){
230
231          if (jQuery(window).width() >= 768){
232
233            unAffixPhoneMenu();
234
235          }
236
237      });
238
239    };
240
241
242
243    jQuery('.breadcrumb-fullscreen-parent').affix({
244
245        offset: {
246
247          top: function () {
248
249            return (this.top = (breadcrumbH - 75))
250
251          }
252
253        }
254
255    });
256
257
258
259    jQuery('header.header').affix({
260
261        offset: {
262
263          top: function () {
264
265            return (this.top = (breadcrumbH - 120))
266
267          }
268
269        }
270
271    });
272
273
274
275    jQuery('header.header').on('affix.bs.affix', function () {
276
277
278
279            jQuery('.project-single').addClass('affix');
280
281
282
283        });
284
285
286
287        jQuery('header.header').on('affix-top.bs.affix', function () {
288
289
290
291            jQuery('.project-single').removeClass('affix');
292
293
294
295        });
296
297
298
299    function fullScreenBreadcrumb() {
300
301
302
303        jQuery('.breadcrumb-fullscreen-parent').on('affix-top.bs.affix', function () {
304
305
306
307            jQuery('.before-affix-breadcrumb').css('height',0);
308
309
310
311            if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {
312
313
314
315              jQuery(this).css('bottom',0);
316
317
318
319            };
320
321
322
323        });
324
325
326
327        jQuery('.breadcrumb-fullscreen-parent').on('affix.bs.affix', function () {
328
329
330
331            jQuery('.before-affix-breadcrumb').css('height',breadcrumbH);
332
333
334
335            if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {
336
337
338
339              jQuery(this).css('bottom',wH - 69);
340
341
342
343            };
344
345
346
347        });
348
349
350
351    };
352
353
354
355    function splitEqual() {
356
357
358
359        jQuery('.split-equal').each(function(){
360
361
362
363          var bigImageH = jQuery(this).find('.big-image').outerHeight();
364
365
366
367          jQuery('.padding-content > div').css('height', bigImageH - 160 );
368
369
370
371        });
372
373
374
375    };
376
377
378
379    fullScreenBreadcrumb();
380
381
382
383    jQuery(window).resize(function(){
384
385
386
387        fullScreenBreadcrumb();
388
389
390
391        splitEqual();
392
393
394
395    });
396
397
398
399});
400
401
402
403<!-- ================================================== -->
404
405<!-- =============== END BREACRUMB OPTIONS ================ -->
406
407<!-- ================================================== -->
408
409
410
411<!-- ================================================== -->
412
413<!-- =============== START STARTER JS ================ -->
414
415<!-- ================================================== -->
416
417  
418
419jQuery(document).ready(function(){
420
421
422
423  "use strict";
424
425
426
427  // FitVides Option
428
429  jQuery("html").fitVids({ customSelector: "iframe"});
430
431
432
433  // LightBox Options
434
435  jQuery(".attachment").find('a > img:not(.attachment-thumbnail)').parent().attr('rel','gallery').fancybox({
436
437    fitToView: true,
438
439    autoSize :  true,
440
441    margin : 30,
442
443    autoScale : true,
444
445    width : '100%',
446
447    height : '100%',
448
449    showNavArrows: true,
450
451    showCloseButton: true,
452
453    helpers : {
454
455      media : {}
456
457    }
458
459  });
460
461
462
463  //Page Loader
464
465
466
467  jQuery('.page-loader').delay(800).fadeOut('slow');
468
469
470
471  jQuery(".lightbox").attr('rel','gallery').fancybox({
472
473    fitToView: true,
474
475    autoSize :  true,
476
477    margin : 30,
478
479    autoScale : true,
480
481    width : '100%',
482
483    height : '100%',
484
485    showNavArrows: true,
486
487    showCloseButton: true,
488
489    helpers : {
490
491      media : {}
492
493    }
494
495  });
496
497  
498
499 /******************************/
500
501  /* START HEADER HOVER
502
503  /******************************/
504
505  jQuery('.baseBgk').each(function(){
506
507
508
509    var bgk = jQuery(this).attr('data-image-src'); 
510
511
512
513    jQuery(this).css('background-image', 'url('+ bgk +')');
514
515
516
517  });
518
519
520
521  
522
523  jQuery('.hoverHeader li').hover(function(){
524
525
526
527    var value = jQuery(this).attr('data-image-src');
528
529
530
531    jQuery('.baseBgk').css('background-image', 'url('+ value +')');
532
533
534
535  });
536
537
538
539  jQuery('.hoverHeader ul').hover(function(){
540
541
542
543
544
545  },function(){
546
547
548
549    var inheritBgk = jQuery('.baseBgk').attr('data-image-src');
550
551
552
553    jQuery('.baseBgk').css('background-image', 'url('+ inheritBgk +')');
554
555
556
557  });
558
559  /******************************/
560
561  /* END HEADER HOVER
562
563/******************************/
564
565  
566
567  // "single-post-content" is the class of blog-single content container
568
569  jQuery(".single-post-content").find('a > img').parent().attr('rel','gallery').fancybox({
570
571    fitToView: true,
572
573    autoSize :  true,
574
575    margin : 30,
576
577    autoScale : true,
578
579    width : '100%',
580
581    height : '100%',
582
583    showNavArrows: true,
584
585    showCloseButton: true,
586
587    helpers : {
588
589      media : {}
590
591    }
592
593  });
594
595
596
597  //Activate the "star" plugin from StarHomePage
598
599  jQuery(".star").each(function() {
600
601      postars(jQuery('.cover').get(0)).init();
602
603  });
604
605
606
607  //Start Home-Video-Player
608
609  jQuery(function(){
610
611    jQuery(".player").YTPlayer();
612
613  });
614
615
616
617  jQuery(window).load(function(){
618
619
620
621    //Start RyalSlider
622
623    function royalSliderAva() {
624
625
626
627      jQuery('#ava-slider').each(function(){
628
629
630
631        var wH = jQuery(window).height();
632
633
634
635        jQuery(this).parent().css('height',wH);
636
637        
638
639        jQuery(this).css('height',wH);
640
641
642
643        jQuery(this).royalSlider({
644
645          arrowsNav: true,
646
647          loop: false,
648
649          keyboardNavEnabled: true,
650
651          controlsInside: false,
652
653          fadeinLoadedSlide: true,
654
655          imageScaleMode: 'fill',
656
657          arrowsNavAutoHide: false,
658
659          autoScaleSlider: false,
660
661          controlNavigation: false,
662
663          thumbsFitInViewport: false,
664
665          navigateByClick: true,
666
667          startSlideId: 0,
668
669          autoPlay: false,
670
671          transitionType:'move',
672
673          globalCaption: false,
674
675          slidesSpacing: 0,
676
677          deeplinking: {
678
679          enabled: true,
680
681          change: false,
682
683
684
685          },
686
687        });
688
689      });
690
691    };
692
693
694
695    function afterRSInit() {
696
697
698
699      jQuery('.rsContent .rsImg').each(function(){
700
701
702
703        var thisSrc = jQuery(this).attr('src');
704
705
706
707        jQuery(this).hide();
708
709
710
711      });
712
713
714
715      jQuery(window).scroll(function(){
716
717
718
719        var actualScroll = jQuery(window).scrollTop() * 0.5;
720
721
722
723        jQuery('.rsContent').css({
724
725          'background-position': '50% ' + actualScroll + 'px'
726
727        });
728
729
730
731      });
732
733
734
735    }
736
737
738
739    afterRSInit();
740
741
742
743    royalSliderAva();
744
745
746
747    jQuery(window).resize(function(){
748
749
750
751      afterRSInit();
752
753
754
755      royalSliderAva();
756
757
758
759    });
760
761
762
763  });
764
765
766
767  /***********************************************************************************************/
768
769  /* MENU */
770
771  /***********************************************************************************************/
772
773  jQuery('.open-menu').on('click', function(){
774
775
776
777    jQuery(this).toggleClass('active');
778
779
780
781    jQuery('.menu-fixed-container').toggleClass('open');
782
783
784
785  });
786
787
788
789  jQuery('.x-filter').on('click',function(){
790
791
792
793    jQuery('.open-menu').toggleClass('active');
794
795
796
797    jQuery('.menu-fixed-container').toggleClass('open');
798
799
800
801  });
802
803
804
805  jQuery('.menu-fixed-container > nav > ul > li > a').on('click',function(){
806
807
808
809        jQuery(this).parent().siblings().toggleClass('no-hovered');
810
811        jQuery(this).parent().toggleClass('click');
812
813        jQuery(this).parent().siblings().removeClass('click'); 
814
815    });
816
817
818
819  jQuery('.menu-fixed-container > nav > ul > li > .sub-menu').parent().addClass('hover-sub-menu');
820
821
822
823  jQuery('.menu-fixed-container > nav > ul > li > .sub-menu').on('click',function(){
824
825
826
827      jQuery(this).parent().toggleClass('hovered-sub-menu ');
828
829
830
831  });
832
833
834
835  jQuery('.menu-fixed-container nav ul li .sub-menu').parent().find('> a').on('click', function(e){
836
837
838
839    e.preventDefault();
840
841
842
843  });
844
845/***********************************************************************************************/
846
847/* END MENU */
848
849/***********************************************************************************************/
850
851/***********************************************************************************************/
852
853/* COUNTER */
854
855/***********************************************************************************************/
856
857   jQuery('.clock').each(function(){
858
859    var aquraDate = jQuery(this).attr("data-date");
860
861    jQuery(this).countdown(aquraDate)
862
863    .on('update.countdown', function(event) {
864
865     var format = '%H:%M:%S';
866
867     if(event.offset.days > 0) {
868
869        format = '%-d <p><span>d</span><span>a</span><span>y</span><span>%!d</span></p> ' + format;
870
871      }
872
873      if(event.offset.weeks > 0) {
874
875        format = '%-w <p><span>w</span><span>e</span><span>e</span><span>k</span><span>%!w</span></p> ' + format;
876
877      }
878
879     jQuery(this).html(event.strftime(format));
880
881   })
882
883   .on('finish.countdown', function(event) {
884
885     jQuery(this).html('The show had Start!')
886
887       .parent().addClass('disabled');
888
889   });
890
891   })
892
893/***********************************************************************************************/
894
895/* END COUNTER */
896
897/***********************************************************************************************/
898
899/***********************************************************************************************/
900
901  /* GO TO TOP BUTTON */
902
903  /***********************************************************************************************/
904
905  // Go to top button
906
907      jQuery(window).load(function(){
908
909         jQuery(window).scroll(function(){
910
911
912
913            if(jQuery(document).scrollTop() > 300)
914
915            {    
916
917                jQuery('.goTop').css({bottom:"50px"});
918
919            }
920
921            else
922
923            {  
924
925               jQuery('.goTop').css({bottom:"-80px"});
926
927            }
928
929        }); 
930
931        jQuery('#overlay').fadeOut();
932
933      });
934
935       
936
937    jQuery('.goTop').on("click",function(){
938
939        jQuery('html, body').animate({scrollTop:0}, 'slow');
940
941        return false;
942
943    }); 
944
945  // End button top
946
947  /***********************************************************************************************/
948
949  /* END GO TO TOP BUTTON */
950
951  /***********************************************************************************************/
952
953
954
955/***********************************************************************************************/
956
957  /* COUNTER */
958
959  /***********************************************************************************************/
960
961  if ( jQuery( '.sm-countdown' ).length > 0 ) {
962
963  
964
965      jQuery( '.sm-countdown' ).each( function() {
966
967        var $this = jQuery( this );
968
969        var mode = $this.hasClass( 'sm-style1' ) ? 'val' : 'text';
970
971        $this.ccountdown( $this.data( 'date' ), mode );
972
973      } );
974
975      jQuery( '.sm-countdown.sm-style1 .element' ).knob({
976
977        draw : function () {
978
979          var a = this.angle(this.cv)  // Angle
980
981            , sa = this.startAngle     // Start angle
982
983            , ea = sa + a        // End angle
984
985            , r = true
986
987            , delta_deg = 6
988
989            , delta_rad = delta_deg / 180 * Math.PI;
990
991  
992
993          this.g.lineWidth = this.lineWidth;
994
995  
996
997          this.g.strokeStyle = r ? this.o.fgColor : this.fgColor ;
998
999          var sa_deg = parseInt(sa / Math.PI * 180) % 360;
1000
1001          var ea_deg = parseInt(ea / Math.PI * 180) % 360;
1002
1003          var idx =0 ;
1004
1005          if (ea_deg < sa_deg) ea_deg += 360;
1006
1007          var ea_deg_round = Math.round(ea_deg / delta_deg) * delta_deg;
1008
1009          for (var ta_deg = sa_deg; ta_deg <= ea_deg_round; ta_deg += delta_deg) {
1010
1011            this.g.beginPath();
1012
1013            var ta_rad = ta_deg / 180 * Math.PI;
1014
1015            this.g.arc(this.xy, this.xy, this.radius, -( ta_rad - delta_rad / 4 ), -( ta_rad + delta_rad / 4 ), true); 
1016
1017            this.g.stroke();
1018
1019          }
1020
1021          var rs_deg = ea_deg_round + delta_deg;
1022
1023          for (var ta_deg = rs_deg; ta_deg < sa_deg + 360; ta_deg += delta_deg) {
1024
1025            this.g.beginPath();
1026
1027            var ta_rad = ta_deg / 180 * Math.PI;
1028
1029            this.g.strokeStyle = this.o.bgColor;
1030
1031            this.g.arc(this.xy, this.xy, this.radius, -( ta_rad - delta_rad / 4) , -( ta_rad + delta_rad / 4 ), true); 
1032
1033            this.g.stroke();
1034
1035          }
1036
1037          return false;
1038
1039        }
1040
1041      } );
1042
1043    }
1044
1045  /***********************************************************************************************/
1046
1047  /* END COUNTER */
1048
1049  /***********************************************************************************************/
1050
1051
1052
1053
1054
1055
1056
1057  /***********************************************************************************************/
1058
1059  /* HIDE FUCTIONS */
1060
1061  /***********************************************************************************************/
1062
1063  jQuery(window).scroll(function(){
1064
1065    if(jQuery(document).scrollTop() > 200){
1066
1067      jQuery('.mb_YTPBar').css({'display': 'none'});
1068
1069
1070
1071    }
1072
1073    else{
1074
1075        jQuery('.mb_YTPBar').css({'display': 'block'});
1076
1077      }
1078
1079  });
1080  jQuery(window).scroll(function(){
1081    jQuery(".fadeContent").css("opacity", 1 - jQuery(window).scrollTop() / 250);
1082  });
1083  /***********************************************************************************************/
1084
1085  /* END HIDE FUNCTIONS */
1086
1087  /***********************************************************************************************/
1088
1089
1090
1091  function afixMenu() {
1092
1093
1094
1095      var scrollTopAffix  = 0,
1096
1097          scrollTopActual = jQuery(window).scrollTop();
1098
1099
1100
1101      if ( scrollTopActual > scrollTopAffix ) {
1102
1103
1104
1105        jQuery('.main-header').addClass('affix');
1106
1107
1108
1109
1110
1111      } else {
1112
1113
1114
1115        jQuery('.main-header').removeClass('affix');
1116
1117
1118
1119      };
1120
1121
1122
1123    }
1124
1125
1126
1127    afixMenu();
1128
1129
1130
1131    jQuery(window).scroll(function(){
1132
1133
1134
1135      afixMenu();
1136
1137
1138
1139    });
1140
1141
1142
1143  if ( jQuery('.mobile-header').length > 0 ) {
1144
1145
1146
1147    var mobileHeaderItem = jQuery('.mobile-header .mobile-header-trigger'),
1148
1149      bodyTagForMobileHead = jQuery('body'),
1150
1151      mobileHeaderOverlay = jQuery('.mobile-header-overlay');
1152
1153
1154
1155    mobileHeaderOverlay.on('click',function(){
1156
1157
1158
1159      bodyTagForMobileHead.removeClass('mobile-header-item-opened cart-is-opened menu-is-opened');
1160
1161
1162
1163      mobileHeaderItem.removeClass('active');
1164
1165
1166
1167      bodyTagForMobileHead.removeClass('albums-is-opened');
1168
1169
1170
1171      if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {} else {
1172
1173
1174
1175        jQuery("html").niceScroll({
1176
1177          cursorcolor: "#797979",
1178
1179          cursorborderradius: "0",
1180
1181          cursorwidth: "5px",
1182
1183          cursorborder: "none",
1184
1185          scrollspeed: 30,
1186
1187          horizrailenabled:false,
1188
1189          mousescrollstep: 90,
1190
1191          railpadding: { top: 5, right: 5, left: 0, bottom: 5 }
1192
1193        });
1194
1195        
1196
1197      }
1198
1199
1200
1201    });
1202
1203
1204
1205    mobileHeaderItem.on('click',function(){
1206
1207
1208
1209      if ( jQuery(this).hasClass('active') ) {
1210
1211
1212
1213        bodyTagForMobileHead.removeClass('mobile-header-item-opened cart-is-opened menu-is-opened sidebar-is-opened playlist-is-opened');
1214
1215
1216
1217        mobileHeaderItem.removeClass('active');
1218
1219
1220
1221        var removeAllActive = 'true';
1222
1223
1224
1225      } else if ( jQuery(this).hasClass('playlist-trigger') ) {
1226
1227
1228
1229        if ( bodyTagForMobileHead.hasClass('mobile-header-item-opened') ) {
1230
1231
1232
1233          bodyTagForMobileHead.addClass('playlist-is-opened');
1234
1235          bodyTagForMobileHead.removeClass('menu-is-opened sidebar-is-opened cart-is-opened');
1236
1237
1238
1239        } else {
1240
1241
1242
1243          bodyTagForMobileHead.addClass('mobile-header-item-opened playlist-is-opened');
1244
1245          bodyTagForMobileHead.removeClass('menu-is-opened sidebar-is-opened cart-is-opened');
1246
1247
1248
1249        };
1250
1251
1252
1253      } else if ( jQuery(this).hasClass('cart-trigger') ) {
1254
1255
1256
1257        if ( bodyTagForMobileHead.hasClass('mobile-header-item-opened') ) {
1258
1259
1260
1261          bodyTagForMobileHead.addClass('cart-is-opened');
1262
1263          bodyTagForMobileHead.removeClass('menu-is-opened sidebar-is-opened playlist-is-opened');
1264
1265
1266
1267        } else {
1268
1269
1270
1271          bodyTagForMobileHead.addClass('mobile-header-item-opened cart-is-opened');
1272
1273          bodyTagForMobileHead.removeClass('menu-is-opened sidebar-is-opened playlist-is-opened');
1274
1275
1276
1277        };
1278
1279
1280
1281      } else if ( jQuery(this).hasClass('menu-trigger') ) {
1282
1283
1284
1285        if ( bodyTagForMobileHead.hasClass('mobile-header-item-opened') ) {
1286
1287
1288
1289          bodyTagForMobileHead.addClass('menu-is-opened');
1290
1291          bodyTagForMobileHead.removeClass('cart-is-opened sidebar-is-opened playlist-is-opened');
1292
1293
1294
1295        } else {
1296
1297
1298
1299          bodyTagForMobileHead.addClass('mobile-header-item-opened menu-is-opened');
1300
1301          bodyTagForMobileHead.removeClass('cart-is-opened sidebar-is-opened playlist-is-opened');
1302
1303
1304
1305        };
1306
1307
1308
1309      } else if ( jQuery(this).hasClass('sidebar-trigger') ) {
1310
1311
1312
1313        if ( bodyTagForMobileHead.hasClass('mobile-header-item-opened') ) {
1314
1315
1316
1317          bodyTagForMobileHead.addClass('sidebar-is-opened');
1318
1319          bodyTagForMobileHead.removeClass('cart-is-opened menu-is-opened playlist-is-opened');
1320
1321
1322
1323        } else {
1324
1325
1326
1327          bodyTagForMobileHead.addClass('mobile-header-item-opened sidebar-is-opened');
1328
1329          bodyTagForMobileHead.removeClass('cart-is-opened menu-is-opened playlist-is-opened');
1330
1331
1332
1333        };
1334
1335
1336
1337      } else if ( jQuery(this).hasClass('search-trigger') ) {
1338
1339
1340
1341        var removeAllActive = 'true';
1342
1343
1344
1345        if ( bodyTagForMobileHead.hasClass('mobile-header-item-opened') ) {
1346
1347
1348
1349          bodyTagForMobileHead.removeClass('mobile-header-item-opened cart-is-opened menu-is-opened sidebar-is-opened playlist-is-opened');
1350
1351
1352
1353        };
1354
1355
1356
1357      };
1358
1359
1360
1361      if ( removeAllActive === 'true' ) {
1362
1363
1364
1365        jQuery(this).siblings().removeClass('active');
1366
1367
1368
1369      } else {
1370
1371
1372
1373        jQuery(this).siblings().removeClass('active');
1374
1375
1376
1377        jQuery(this).addClass('active');
1378
1379
1380
1381      };
1382
1383
1384
1385    });
1386
1387
1388
1389  };
1390
1391
1392
1393  /***********************************************************************************************/
1394
1395  /* START ISOTOPE */
1396
1397  /***********************************************************************************************/
1398
1399  function isotope() {
1400
1401
1402
1403    var container = jQuery('.aqura-filter-content > ul');
1404
1405    var container2 = jQuery('.padScroll--masonry');
1406
1407    var container3 = jQuery('.albumContent--masonry > ul');
1408
1409    var second_container = jQuery('.single-photo-album-container > .row');
1410
1411    var third_container = jQuery('ul.products');
1412
1413
1414
1415    container.imagesLoaded(function() {
1416
1417
1418
1419     container.isotope();
1420
1421
1422
1423    });
1424
1425
1426
1427    container2.imagesLoaded(function() {
1428
1429
1430
1431     container2.isotope();
1432
1433
1434
1435    });
1436
1437
1438
1439    container3.imagesLoaded(function() {
1440
1441
1442
1443     container3.isotope();
1444
1445
1446
1447    });
1448
1449
1450
1451    second_container.imagesLoaded(function() {
1452
1453     second_container.isotope({
1454
1455        masonry: {
1456
1457
1458
1459          columnWidth: 1
1460
1461
1462
1463        }
1464
1465      });
1466
1467    });
1468
1469
1470
1471     third_container.imagesLoaded(function() {
1472
1473     third_container.isotope();
1474
1475    });
1476
1477
1478
1479    container.isotope();
1480
1481    container2.isotope();
1482
1483    container3.isotope();
1484
1485    second_container.isotope({
1486
1487      masonry: {
1488
1489
1490
1491        columnWidth: 1
1492
1493
1494
1495      }
1496
1497    });
1498
1499    third_container.isotope();
1500
1501
1502
1503    var jQueryoptionSets = jQuery('.categories ul'),
1504
1505
1506
1507    jQueryoptionLinks = jQueryoptionSets.find('a');
1508
1509
1510
1511    jQueryoptionLinks.on("click", function(){
1512
1513
1514
1515     var jQuerythis = jQuery(this);
1516
1517
1518
1519     if ( jQuerythis.hasClass('selected') ) {
1520
1521
1522
1523      return false;
1524
1525
1526
1527     }
1528
1529     var jQueryoptionSet = jQuerythis.parents('.categories ul');
1530
1531
1532
1533     jQueryoptionSet.find('.selected').removeClass('selected');
1534
1535
1536
1537     jQuerythis.addClass('selected');
1538
1539
1540
1541     var options = {},
1542
1543
1544
1545      key = jQueryoptionSet.attr('data-option-key'),
1546
1547
1548
1549      value = jQuerythis.attr('data-option-value');
1550
1551
1552
1553     value = value === 'false' ? false : value;
1554
1555
1556
1557     options[ key ] = value;
1558
1559
1560
1561     if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) {
1562
1563
1564
1565      changeLayoutMode( jQuerythis, options )
1566
1567
1568
1569     } else {
1570
1571
1572
1573      container.isotope( options );
1574
1575      container2.isotope( options );
1576
1577      container3.isotope( options );
1578
1579
1580
1581     }
1582
1583
1584
1585     return false;
1586
1587
1588
1589    });
1590
1591
1592
1593   };
1594
1595
1596
1597   isotope();
1598
1599
1600
1601   jQuery(window).resize(function(){
1602
1603
1604
1605    isotope();
1606
1607
1608
1609   });
1610
1611  /***********************************************************************************************/
1612
1613  /* END ISOTOPE */
1614
1615  /***********************************************************************************************/
1616
1617
1618
1619  /******************************/
1620
1621    /* START GRID ANIMATION
1622
1623    /******************************/
1624
1625    jQuery(window).scroll(function () {
1626
1627      jQuery('.animation-test').each(function () {
1628
1629          var imagePos = jQuery(this).offset().top;
1630
1631          var imageHeight = jQuery(this).height();
1632
1633          var topOfWindow = jQuery(window).scrollTop();
1634
1635          var windowHeight = jQuery(window).height();
1636
1637
1638
1639          if (topOfWindow + windowHeight >= imagePos) {
1640
1641              jQuery(this).addClass("fadeBottom");
1642
1643          } 
1644
1645      });
1646
1647  });
1648
1649    /******************************/
1650
1651    /* END GRID ANIMATION
1652
1653    /******************************/
1654
1655
1656
1657    /******************************/
1658
1659    /* START HEADER LETTERS
1660
1661    /******************************/
1662
1663    jQuery('.tlt').textillate({
1664
1665
1666
1667      in: {
1668
1669        effect: 'fadeIn',
1670
1671        delayScale: 4.5,
1672
1673        sequence:true
1674
1675      }
1676
1677
1678
1679    });
1680
1681    /******************************/
1682
1683    /* END HEADER LETERS
1684
1685    /******************************/
1686
1687
1688
1689  /***********************************************************************************************/
1690
1691  /* START CAROUSEL */
1692
1693  /***********************************************************************************************/
1694
1695  jQuery(".blogSingle .owl-carousel").imagesLoaded(function() {
1696
1697
1698
1699    jQuery(".blogSingle .owl-carousel").owlCarousel({
1700
1701      items:1,
1702
1703      nav:true,
1704
1705      navText: ['<i class="fa fa-chevron-left"></i>','<i class="fa fa-chevron-right"></i>'],
1706
1707      autoHeight: true
1708
1709    });
1710
1711
1712
1713  });
1714
1715  jQuery(".blogSidebarRight .owl-carousel").imagesLoaded(function() {
1716
1717
1718
1719    jQuery(".blogSidebarRight .owl-carousel").owlCarousel({
1720
1721      items:1,
1722
1723      nav:true,
1724
1725      navText: ['<i class="fa fa-chevron-left"></i>','<i class="fa fa-chevron-right"></i>'],
1726
1727      autoHeight: true
1728
1729    });
1730
1731
1732
1733  });
1734
1735  jQuery(".owl-carousel").imagesLoaded(function() {
1736
1737
1738
1739    jQuery(".owl-carousel").owlCarousel({
1740
1741      items:1,
1742
1743      nav:true,
1744
1745      navText: ['<i class="fa fa-chevron-left"></i>','<i class="fa fa-chevron-right"></i>']
1746
1747    });
1748
1749
1750
1751  });
1752
1753  jQuery(window).load(function(){
1754
1755
1756
1757    jQuery(".galleryCarousel").owlCarousel({
1758
1759      autoPlay: 3000, //Set AutoPlay to 3 seconds
1760
1761   
1762
1763        items : 4,
1764
1765        itemsDesktop : [1199,3],
1766
1767        itemsDesktopSmall : [979,3]
1768
1769      
1770
1771    });
1772
1773
1774
1775  });
1776
1777  /***********************************************************************************************/
1778
1779  /* END CAROUSEL */
1780
1781  /***********************************************************************************************/
1782
1783  
1784
1785  /***********************************************************************************************/
1786
1787  /* INSTAGRAM */
1788
1789  /***********************************************************************************************/
1790
1791    if (jQuery('#instagram-sidebar-widget').length>0) {
1792
1793      var userIdVal = parseInt(jQuery('#instagram-sidebar-widget').attr('data-userID'), 10);
1794
1795      var feedSidebar = new Instafeed({
1796
1797          get: 'user',
1798
1799          userId: userIdVal, // your user id
1800
1801          accessToken: jQuery('#instagram-sidebar-widget').attr('data-userToken'), // your access token
1802
1803          sortBy: 'most-liked',
1804
1805          template: '<li><a href="{{link}}" target="_blank"><img class="img-responsive" src="{{image}}" /></a></li>',
1806
1807          target: 'instagram-sidebar-widget',
1808
1809          limit: 9,
1810
1811          resolution: 'low_resolution'
1812
1813      });
1814
1815        feedSidebar.run();
1816
1817    }
1818
1819    /***********************************************************************************************/
1820
1821    /* END INSTAGRAM */
1822
1823    /***********************************************************************************************/
1824
1825      
1826
1827    /***********************************************************************************************/
1828
1829    /* START RATING SYSTEM */
1830
1831    /***********************************************************************************************/
1832
1833       // SHOP ELEMENT
1834
1835      /**
1836
1837     * Demo in action!
1838
1839     */
1840
1841    
1842
1843    /***********************************************************************************************/
1844
1845    /* END RATING SYSTEM */
1846
1847    /***********************************************************************************************/
1848
1849
1850
1851    /***********************************************************************************************/
1852
1853    /* JPLAYER */
1854
1855    /***********************************************************************************************/
1856
1857    //Toggle Playlist
1858
1859    // jQuery('.jplayerButton').on('click', function(){
1860
1861
1862
1863    //   jQuery(this).toggleClass('active');
1864
1865
1866
1867    //   jQuery('.playlist-toggle').toggleClass('open');
1868
1869
1870
1871    // });
1872
1873
1874
1875    jQuery('.jplayerButton').on('click', function(){
1876
1877
1878
1879      jQuery(this).toggleClass('active');
1880
1881
1882
1883      jQuery('.playlist-wrapper').fadeToggle('open');
1884
1885
1886
1887      jQuery('body').toggleClass('opacityPlaylist');
1888
1889
1890
1891    });
1892
1893
1894
1895    // Open Close Player on scroll
1896
1897    jQuery(".homeNormal").addClass("close-down");
1898
1899    jQuery(window).on("scroll", function () {
1900
1901    //      if (jQuery(this).scrollTop() > -1) {
1902
1903    //          jQuery(".homeNormal").addClass("close-down");
1904
1905    //          jQuery("#h-player").addClass("rotate");
1906
1907    //      }
1908
1909    //      else {
1910
1911    //          jQuery(".homeNormal").removeClass("close-down");
1912
1913    //          jQuery("#h-player").removeClass("rotate");
1914
1915    //      }
1916
1917    });
1918
1919    jQuery(window).on("scroll", function () {
1920
1921        if (jQuery(this).scrollTop() > 5500) {
1922
1923            jQuery(".homeCustom").addClass("close-down");
1924
1925            jQuery("#h-player").addClass("rotate");
1926
1927        }
1928
1929        else {
1930
1931            jQuery(".homeCustom").removeClass("close-down");
1932
1933            jQuery("#h-player").removeClass("rotate");
1934
1935        }
1936
1937    });
1938
1939    // Open Close Player Button
1940
1941    jQuery('#h-player').on('click', function() {
1942
1943        jQuery(this).toggleClass("rotate")
1944
1945        jQuery(".jplayer-home").toggleClass("close-down");
1946
1947    });
1948
1949
1950
1951    jQuery(window).on("scroll", function () {
1952
1953        if (jQuery(this).scrollTop() > 5) {
1954
1955            jQuery(".buttonBar").addClass("close-video");
1956
1957        }
1958
1959        else {
1960
1961            jQuery(".buttonBar").removeClass("close-video");
1962
1963        }
1964
1965    });
1966
1967
1968
1969
1970
1971    /***********************************************************************************************/
1972
1973    /* END JPLAYER */
1974
1975    /***********************************************************************************************/
1976
1977});
1978
1979<!-- ================================================== -->
1980
1981<!-- =============== END STARTER JS ================ -->
1982
1983<!-- ================================================== -->
1984
1985jQuery(function(){
1986
1987
1988
1989    "use strict";
1990
1991    //Start Home-Video-Player
1992
1993    jQuery(function(){
1994
1995      jQuery(".player").YTPlayer();
1996
1997       jQuery(window).scroll(function(){
1998
1999        if(jQuery(document).scrollTop() > 200){
2000
2001          jQuery('.mb_YTPBar').css({'display': 'none'});
2002
2003
2004
2005        }
2006
2007        else{
2008
2009            jQuery('.mb_YTPBar').css({'display': 'block'});
2010
2011          }
2012
2013      });
2014
2015       // Shop remove sizes
2016
2017      jQuery('.shopHomePage ul li figure figcaption img, .shop-products ul li figure figcaption img').each(function(){
2018
2019
2020
2021        jQuery(this).attr('sizes','');
2022
2023
2024
2025      });
2026
2027    });
2028
2029});

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.