Server IP : 150.95.80.236 / Your IP : 3.145.12.0 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/sc.pcu.in.th/demo15/src/js/custom/modals/ |
Upload File : |
"use strict"; // Class definition var KTModalShareEarn = function () { // Private functions var handleForm = function() { var button = document.querySelector('#kt_share_earn_link_copy_button'); var input = document.querySelector('#kt_share_earn_link_input'); var clipboard = new ClipboardJS(button); if (!clipboard) { return; } // Copy text to clipboard. For more info check the plugin's documentation: https://clipboardjs.com/ clipboard.on('success', function(e) { var buttonCaption = button.innerHTML; //Add bgcolor input.classList.add('bg-success'); input.classList.add('text-inverse-success'); button.innerHTML = 'Copied!'; setTimeout(function() { button.innerHTML = buttonCaption; // Remove bgcolor input.classList.remove('bg-success'); input.classList.remove('text-inverse-success'); }, 3000); // 3seconds e.clearSelection(); }); } // Public methods return { init: function () { handleForm(); } } }(); // On document ready KTUtil.onDOMContentLoaded(function() { KTModalShareEarn.init(); });