1/** 2 * 3 * -------------------------------------------------------------------- 4 * 5 * Template : Custom Js Template 6 * Author : reacthemes 7 * Author URI : http://www.reactheme.com/ 8 * 9 * -------------------------------------------------------------------- 10 * 11 **/ 12(function ($) { 13 "use strict"; 14 15 $(document).ready(function () { 16 $('[data-toggle="tooltip"]').tooltip(); 17 }); 18 19 20 // Cart show & hide 21 $(document).on('click', '.menu-cart-area', function () { 22 $(".cart-icon-total-products").addClass("visible-cart"); 23 $(".body-overlay-cart").addClass("overlayshow"); 24 }); 25 $(document).on('click', '.body-overlay-cart', function () { 26 $(this).removeClass("overlayshow"); 27 $(".cart-icon-total-products").removeClass("visible-cart"); 28 }); 29 30 $(document).on('click', '.close-cart', function () { 31 $(".cart-icon-total-products").removeClass("visible-cart"); 32 $(".body-overlay-cart").removeClass("overlayshow"); 33 }); 34 35 36 $(document).on('click', '.translate__lang a', function(e) { 37 e.preventDefault(); 38 var selectedLanguage = $(this).text(); 39 $(".selected__lang").text(selectedLanguage); 40 }); 41 $(document).on('click', '#langSwitcher', function () { 42 $(".translate__lang").toggleClass("show"); 43 }); 44 $(document).on('click', function (e) { 45 if (!$(e.target).closest('#langSwitcher').length) { 46 $(".translate__lang").removeClass("show"); 47 } 48 }); 49 50 $(document).on('click', function (e) { 51 $(".jarallax").jarallax(); 52 }); 53 54 document.addEventListener("DOMContentLoaded", function() { 55 const circleText = document.querySelector('.circle-text'); 56 if (circleText) { 57 const textSpans = circleText.querySelectorAll('span'); 58 let rotation = 0; 59 const rotationStep = 360 / textSpans.length; 60 61 textSpans.forEach((span, index) => { 62 span.style.transform = `rotate(${rotation}deg) translateX(150px)`; 63 rotation += rotationStep; 64 }); 65 } 66 }); 67 68 69 70})(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.