403Webshell
Server IP : 77.68.25.176  /  Your IP : 216.73.216.147
Web Server : Apache
System : Linux plesk 4.15.0-159-generic #167-Ubuntu SMP Tue Sep 21 08:55:05 UTC 2021 x86_64
User : dwp ( 10001)
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/dazzlingwebplanet.co.uk/sacherconsultancy.com/wp-content/themes/earna/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/dazzlingwebplanet.co.uk/sacherconsultancy.com/wp-content/themes/earna/js/color.js
/*! * jQuery Cookie Plugin v1.4.1
 * https://github.com/carhartl/jquery-cookie
 */

!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function c(a){return h.raw?a:encodeURIComponent(a)}function d(a){return h.raw?a:decodeURIComponent(a)}function e(a){return c(h.json?JSON.stringify(a):String(a))}function f(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(b," ")),h.json?JSON.parse(a):a}catch(c){}}function g(b,c){var d=h.raw?b:f(b);return a.isFunction(c)?c(d):d}var b=/\+/g,h=a.cookie=function(b,f,i){if(arguments.length>1&&!a.isFunction(f)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[c(b),"=",e(f),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=b?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=d(p.shift()),r=p.join("=");if(b&&b===q){l=g(r,f);break}b||void 0===(r=g(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});

/* ------------------------------------------------
  Project:   EARNA - WordPressTheme
  Author:    WordPressRiver

NOTE: This file Change the styling of color, backgrond color of the actual Template. so you can change as your requirement.
------------------------------------------------ */



jQuery(document).ready(function($) {

/*------------------------------------
  EARNA Right sidebar
--------------------------------------*/
style_switcher = $('.color-customizer'),
panelWidth = style_switcher.outerWidth(true);
$('.color-customizer .opener').on("click", function(){
    var $this = $(this);
    if ($(".color-customizer.closed").length>0) {
        style_switcher.animate({"right" : "0px"});
        $(".color-customizer.closed").removeClass("closed");
        $(".color-customizer").addClass("opened");
    } else {
        $(".color-customizer.opened").removeClass("opened");
        $(".color-customizer").addClass("closed");
        style_switcher.animate({"right" : '-' + panelWidth});
    }
    return false;
});


/*------------------------------------
  EARNA Style change
--------------------------------------*/
var link = $('link[data-style="styles"]'),
link_no_cookie = $('link[data-style="styles-no-cookie"]'); 


/*------------------------------------
  EARNA Color Changer
--------------------------------------*/
$('.color-customizer .colorChange li').on('click',function(){
    if (link.length>0) {
        var $this = $(this),
            tp_stylesheet = $this.data('style');
        $(".color-customizer .colorChange .selected").removeClass("selected");
        $this.addClass("selected");
        link.attr('href', 'https://wordpressriverthemes.com/earna/wp-content/themes/earna/css/theme-color/' + tp_stylesheet + '.css');
        $.cookie('tp_stylesheet', tp_stylesheet, 30);
    } 
});


/*------------------------------------
  EARNA Reset all customize styles
--------------------------------------*/
$('.color-customizer .reset a.reset-btn').on('click',function() { 
    
    //Logo change
    $.cookie('tp_stylesheet', 'theme-default', 30);
    var tp_stylesheet = 'theme-default';
    $('.color-customizer .colorChange li.selected').removeClass("selected");
    $('.color-customizer .colorChange li[data-style="'+tp_stylesheet+'"]').addClass("selected");
    link.attr('href', 'css/theme-color/' + tp_stylesheet + '.css');
     if ($("#logo-img").length>0) {
        document.getElementById("logo-img").src="images/logo-customizer/logo-" + tp_stylesheet + ".png";
     };

     $(window).trigger('resize');
     $('.desktopTopFixed').removeClass('desktopTopFixed');
    });
});

Youez - 2016 - github.com/yon3zu
LinuXploit