403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/tickwaves.com/wwwroot/wp-content/themes/solace/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/tickwaves.com/wwwroot/wp-content/themes/solace/js/dokan.js
jQuery(document).ready(function($){
    $('#dokan-content .products a.button.product_type_simple, .dokan-store-name .products a.button.product_type_simple').addClass('dokan-btn-theme');
	$('body.dokan-theme-solace a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart').addClass('alt');
    var buttonStyles = getComputedStyle(document.querySelector('.dokan-btn-theme'));

    var color = buttonStyles.color;
    var backgroundColor = buttonStyles.backgroundColor; 
    var borderColor = buttonStyles.borderColor; 

    function rgbToHex(rgb) {
        const rgbArray = rgb.match(/\d+/g); 
        const hex = rgbArray.map(value => {
            const hexValue = parseInt(value).toString(16).padStart(2, '0'); 
            return hexValue;
        }).join('');
        return `#${hex.toUpperCase()}`; 
    }

    var hexColor = rgbToHex(color);
    var hexBackgroundColor = rgbToHex(backgroundColor);
    var hexBorderColor = rgbToHex(borderColor);

    $('.button.product_type_simple.dokan-btn-theme').each(function() {
        $(this).css({
            'color': hexColor, 
            'background-color': hexBackgroundColor, 
            'border-color': hexBorderColor 
        });

        console.log('Applied Color:', hexColor);
        console.log('Applied Background Color:', hexBackgroundColor);
        console.log('Applied Border Color:', hexBorderColor);
    });

    $(this).hover(
        function() {
            $(this).css({
                'color': hexColor, 
                'background-color': hexBorderColor,
                'border-color': hexBackgroundColor 
            });
        },
        function() {
            // Kembali ke gaya awal
            $(this).css({
                'color': hexColor,
                'background-color': hexBackgroundColor,
                'border-color': hexBorderColor
            });
        }
    );
});

Youez - 2016 - github.com/yon3zu
LinuXploit