Server IP : 150.95.80.236 / Your IP : 18.119.106.176 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/demo15/src/js/custom/pages/search/ |
Upload File : |
"use strict"; // Class definition var KTSearchHorizontal = function () { // Private functions var initAdvancedSearchForm = function () { var form = document.querySelector('#kt_advanced_search_form'); // Init tags var tags = form.querySelector('[name="tags"]'); new Tagify(tags); } var handleAdvancedSearchToggle = function () { var link = document.querySelector('#kt_horizontal_search_advanced_link'); link.addEventListener('click', function (e) { e.preventDefault(); if (link.innerHTML === "Advanced Search") { link.innerHTML = "Hide Advanced Search"; } else { link.innerHTML = "Advanced Search"; } }) } // Public methods return { init: function () { initAdvancedSearchForm(); handleAdvancedSearchToggle(); } } }(); // On document ready KTUtil.onDOMContentLoaded(function () { KTSearchHorizontal.init(); });