1/** 2 * @package Helix Ultimate Framework 3 * @author JoomShaper https://www.joomshaper.com 4 * @copyright Copyright (c) 2010 - 2018 JoomShaper 5 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later 6*/ 7 8jQuery(function ($) { 9 10 // Stikcy Header 11 if ($('body').hasClass('sticky-header')) { 12 var header = $('#sp-header'); 13 14 if($('#sp-header').length) { 15 var headerHeight = header.outerHeight(); 16 var stickyHeaderTop = header.offset().top; 17 var stickyHeader = function () { 18 var scrollTop = $(window).scrollTop(); 19 if (scrollTop > stickyHeaderTop) { 20 header.addClass('header-sticky'); 21 } else { 22 if (header.hasClass('header-sticky')) { 23 header.removeClass('header-sticky'); 24 } 25 } 26 }; 27 stickyHeader(); 28 $(window).scroll(function () { 29 stickyHeader(); 30 }); 31 } 32 33 if ($('body').hasClass('layout-boxed')) { 34 var windowWidth = header.parent().outerWidth(); 35 header.css({"max-width": windowWidth, "left": "auto"}); 36 } 37 } 38 39 // go to top 40 $(window).scroll(function () { 41 if ($(this).scrollTop() > 100) { 42 $('.sp-scroll-up').fadeIn(); 43 } else { 44 $('.sp-scroll-up').fadeOut(400); 45 } 46 }); 47 48 $('.sp-scroll-up').click(function () { 49 $("html, body").animate({ 50 scrollTop: 0 51 }, 600); 52 return false; 53 }); 54 55 // Preloader 56 $(window).on('load', function () { 57 $('.sp-preloader').fadeOut(500, function() { 58 $(this).remove(); 59 }); 60 }); 61 62 //mega menu 63 $('.sp-megamenu-wrapper').parent().parent().css('position', 'static').parent().css('position', 'relative'); 64 $('.sp-menu-full').each(function () { 65 $(this).parent().addClass('menu-justify'); 66 }); 67 68 // Offcanvs 69 $('#offcanvas-toggler').on('click', function (event) { 70 event.preventDefault(); 71 $('.offcanvas-init').addClass('offcanvas-active'); 72 }); 73 74 $('.close-offcanvas, .offcanvas-overlay').on('click', function (event) { 75 event.preventDefault(); 76 $('.offcanvas-init').removeClass('offcanvas-active'); 77 }); 78 79 $(document).on('click', '.offcanvas-inner .menu-toggler', function(event){ 80 event.preventDefault(); 81 $(this).closest('.menu-parent').toggleClass('menu-parent-open').find('>.menu-child').slideToggle(400); 82 }); 83 84 //Tooltip 85 $('[data-toggle="tooltip"]').tooltip(); 86 87 // Article Ajax voting 88 $('.article-ratings .rating-star').on('click', function (event) { 89 event.preventDefault(); 90 var $parent = $(this).closest('.article-ratings'); 91 92 var request = { 93 'option': 'com_ajax', 94 'template': template, 95 'action': 'rating', 96 'rating': $(this).data('number'), 97 'article_id': $parent.data('id'), 98 'format': 'json' 99 }; 100 101 $.ajax({ 102 type: 'POST', 103 data: request, 104 beforeSend: function () { 105 $parent.find('.fa-spinner').show(); 106 }, 107 success: function (response) { 108 var data = $.parseJSON(response); 109 $parent.find('.ratings-count').text(data.message); 110 $parent.find('.fa-spinner').hide(); 111 112 if(data.status) 113 { 114 $parent.find('.rating-symbol').html(data.ratings) 115 } 116 117 setTimeout(function(){ 118 $parent.find('.ratings-count').text('(' + data.rating_count + ')') 119 }, 3000); 120 } 121 }); 122 }); 123 124 // Template realted JS 125 //service-item 126 $('.service-item').each(function(){ 127 $this = $(this); 128 $this.find('.sppb-addon-title, .sppb-addon-text').wrapAll('<div class="service-content-wrapper"></div>'); 129 }); 130 131 //Pagination 132 $('.pagination .page-link.next').closest("li").addClass('next-wrapper'); 133 $('.pagination .page-link.previous').closest("li").addClass('previous-wrapper'); 134 135 //For react only 136 var observer = new MutationObserver(function (mutations) { 137 mutations.forEach(function (mutation) { 138 var newNodes = mutation.addedNodes; 139 if (newNodes !== null) { 140 var $nodes = $(newNodes); 141 142 $nodes.each(function () { 143 var $node = $(this); 144 145 //service-item 146 $node.find('.service-item').each(function () { 147 var $this = $(this); 148 $this.find('.sppb-addon-title, .sppb-addon-text').wrapAll('<div class="service-content-wrapper"></div>'); 149 }); 150 }); 151 } 152 }); 153 }); 154 155 var config = { 156 childList: true, 157 subtree: true 158 }; 159 // Pass in the target node, as well as the observer options 160 observer.observe(document.body, config); 161}); 162 163(function(e){e.extend(e.expr[":"],{uppercase:function(t){var n=e(t).css("text-transform");return typeof n!=="undefined"&&n==="uppercase"},smallcaps:function(t){var n=e(t).css("font-variant");return typeof n!=="undefined"&&n==="small-caps"}});e.extend({removeAcc:function(e){var t=e.tagName.toLowerCase()=="input"?e.value:e.innerHTML;t=t.replace(/Î/g,"Î");t=t.replace(/ά/g,"α");t=t.replace(/Î/g,"Î");t=t.replace(/Î/g,"ε");t=t.replace(/Î/g,"Î");t=t.replace(/ή/g,"η");t=t.replace(/Î/g,"Î");t=t.replace(/Ϊ/g,"Î");t=t.replace(/ί/g,"ι");t=t.replace(/Ï/g,"ι");t=t.replace(/Î/g,"ι");t=t.replace(/Î/g,"Î");t=t.replace(/Ï/g,"ο");t=t.replace(/Î/g,"Î¥");t=t.replace(/Ϋ/g,"Î¥");t=t.replace(/Ï/g,"Ï ");t=t.replace(/Ï/g,"Ï ");t=t.replace(/ΰ/g,"Ï ");t=t.replace(/Î/g,"Ω");t=t.replace(/Ï/g,"Ï");e.tagName.toLowerCase()=="input"?e.value=t:e.innerHTML=t}});e.fn.extend({removeAcc:function(){return this.each(function(){e.removeAcc(this)})}})})(jQuery);jQuery(document).ready(function(e){e(":uppercase").removeAcc();e(document).ajaxComplete(function(t,n,r){e(":uppercase").removeAcc()})})
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.