1/*jslint browser: true*/ 2/*global $, jQuery, alert*/ 3(function ($) { 4 "use strict"; 5 // CounterUp JS 6 // $(function () { 7 // $(".count").counterUp({ 8 // delay: 5, 9 // time: 1000 10 // }); 11 // }); 12 13 document.addEventListener("DOMContentLoaded", function(event) { 14 let singlefun = document.querySelectorAll('.single-fun'); 15 singlefun.forEach(function(progress) { 16 let degree = 0; 17 var targetDegree = parseInt(progress.getAttribute('data-degree')); 18 // let color = progress.getAttribute('data-color'); 19 let number =progress.querySelector('.count'); 20 21 var interval = setInterval(function() { 22 degree += 1; 23 if (degree > targetDegree) { 24 clearInterval(interval); 25 return; 26 } 27 progress.style.background = `conic-gradient(${degree}%, #222 0%)`; 28 number.innerHTML = degree 29 },60); 30 }); 31 }); 32 33 $(document).ready(function () { 34 $('.popup-youtube, .popup-vimeo').magnificPopup({ 35 disableOn: 700, 36 type: 'iframe', 37 mainClass: 'mfp-fade', 38 removalDelay: 160, 39 preloader: false, 40 41 fixedContentPos: false 42 }); 43 }); 44 45 46 $('.video-modal').magnificPopup({ 47 type: 'inline', 48 preloader: false, 49 focus: '#username', 50 modal: true 51 }); 52 $(document).on('click', '.video-modal-dismiss', function (e) { 53 e.preventDefault(); 54 $.magnificPopup.close(); 55 }); 56 57 58 // Product video 59 $('.product-popup-youtube, .product-popup-vimeo, .product-popup-media-v').magnificPopup({ 60 disableOn: 700, 61 type: 'iframe', 62 mainClass: 'mfp-fade', 63 removalDelay: 160, 64 preloader: false, 65 fixedContentPos: false 66 }); 67 68 // $('.distributor-list.d-none').removeClass('d-none').addClass('d-block'); 69 70 71 72 // Product tab js (changing background color) 73 // $(".tablist-1 label").click(function () { 74 // $(".product-tabbed").addClass("tablist-1-active-new"); 75 // $(".product-tabbed").removeClass("tablist-1-active"); 76 // $(".product-tabbed").removeClass("tablist-2-active"); 77 // }); 78 // $(".tablist-2 label").click(function () { 79 // $(".product-tabbed").addClass("tablist-2-active"); 80 // }); 81 82 // Product plus button click and change left content 83 // $(".fa-plus").on("click", function () { 84 // var id = $(this).data('target'); 85 // var getElement = $(this).parents().find('.tab-content-left'); 86 // getElement.find('.plus-btn-content').hide(); 87 // getElement.find('.btn-content-' + id).show(); 88 // }); 89}(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.