1jQuery( document ).ready( function($){ 2 "use strict"; 3 4 5 6/**------------------------------------------------- 7 *Fixed Header 8*----------------------------------------------------**/ 9 $(window).on('scroll', function () { 10 11 /**Fixed header**/ 12 if ($(window).scrollTop() > 250) { 13 $('.navbar-sticky').addClass('sticky fade_down_effect'); 14 } else { 15 $('.navbar-sticky').removeClass('sticky fade_down_effect'); 16 } 17 }); 18 19 20 21 /* ----------------------------------------------------------- */ 22 /* Mobile Menu 23 /* ----------------------------------------------------------- */ 24 $('.dropdown > a').on('click', function(e) { 25 e.preventDefault(); 26 if($(window).width() > 991) 27 { 28 location.href = this.href; 29 } 30 var dropdown = $(this).parent('.dropdown'); 31 dropdown.find('>.dropdown-menu').slideToggle('show'); 32 $(this).toggleClass('opened'); 33 return false; 34 }); 35 36 37 38 /* ----------------------------------------------------------- */ 39 /* Back to top 40 /* ----------------------------------------------------------- */ 41 42 $(window).on('scroll', function () { 43 if ($(window).scrollTop() > $(window).height()) { 44 $(".BackTo").fadeIn('slow'); 45 } else { 46 $(".BackTo").fadeOut('slow'); 47 } 48 49 }); 50 $("body, html").on("click", ".BackTo", function (e) { 51 e.preventDefault(); 52 $('html, body').animate({ 53 scrollTop: 0 54 }, 800); 55 }); 56 57 58 /*========================================================== 59 review rating circle 60 ======================================================================*/ 61 $(function() { 62 $('.review-chart').easyPieChart({ 63 scaleColor: "", 64 lineWidth: 3, 65 lineCap: 'butt', 66 barColor: '#bc906b', 67 trackColor: "rgba(0,0,0, .30)", 68 size: 35, 69 animate: 35 70 }); 71 }); 72 73 $(function() { 74 $('.progress-chart').easyPieChart({ 75 scaleColor: "", 76 lineWidth: 8, 77 lineCap: 'butt', 78 barColor: '#002C47', 79 trackColor: "#F6F8FB", 80 size: 115, 81 animate: 35 82 }); 83 }); 84 85 86 /*========================================================== 87 Side Offset menu open 88 ======================================================================*/ 89 90 if ($('.navSidebar-button').length > 0) { 91 $('.navSidebar-button').on('click', function (e) { 92 e.preventDefault(); 93 e.stopPropagation(); 94 $('.info-group').addClass('isActive'); 95 }); 96 } 97 if ($('.close-side-widget').length > 0) { 98 $('.close-side-widget').on('click', function (e) { 99 e.preventDefault(); 100 $('.info-group').removeClass('isActive'); 101 }); 102 } 103 $('body').on('click', function (e) { 104 $('.info-group').removeClass('isActive'); 105 $('.cart-group').removeClass('isActive'); 106 }); 107 $('.xs-sidebar-widget').on('click', function (e) { 108 e.stopPropagation(); 109 }); 110 111 112 /* ----------------------------------------------------------- */ 113 /* Video popup 114 /* ----------------------------------------------------------- */ 115 116 if ($('.ts-play-btn').length > 0) { 117 $('.ts-play-btn').magnificPopup({ 118 type: 'iframe', 119 mainClass: 'mfp-with-zoom', 120 zoom: { 121 enabled: true, // By default it's false, so don't forget to enable it 122 123 duration: 300, // duration of the effect, in milliseconds 124 easing: 'ease-in-out', // CSS transition easing function 125 126 opener: function (openerElement) { 127 return openerElement.is('img') ? openerElement : openerElement.find('img'); 128 } 129 } 130 }); 131 } 132 133 /*========================================================== 134 Preloader 135 ======================================================================*/ 136 $(window).on('load', function () { 137 138 setTimeout(() => { 139 $('#preloader').addClass('loaded'); 140 }, 1000); 141 142 }); 143 144 // preloader close 145 $('.preloader-cancel-btn').on('click', function (e) { 146 e.preventDefault(); 147 if (!($('#preloader').hasClass('loaded'))) { 148 $('#preloader').addClass('loaded'); 149 } 150 }); 151 152 /*======================================== 153 // Instagram Feed 154 =========================================*/ 155 if ($('#instafeed').length > 0) { 156 var InstagramToken = $('#instafeed').data('token'),
157 limit = $('#instafeed').data('media-count'); 158 var feed = new Instafeed({ 159 accessToken: InstagramToken, 160 limit: Number(limit), 161 template: '<a href="{{link}}" target="_blank"><img title="{{caption}}" src="{{image}}" /></a>', 162 transform: function(item) { 163 var d = new Date(item.timestamp); 164 item.date = [d.getDate(), d.getMonth(), d.getYear()].join('/'); 165 return item; 166 } 167 }); 168 169 feed.run(); 170 } 171 172 173 174 175 176} );
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.