patashala/assets/js/neon-skins.js
Vivek a53135a78d Added based code
Added base code to the repo
2024-02-07 20:19:28 +05:30

34 lines
646 B
JavaScript
Executable File

/**
* Neon Demo Scripts (Demo Version Only)
*
* Developed by Arlind Nushi - www.laborator.co
*/
;(function($, window, undefined)
{
"use strict";
$(document).ready(function()
{
var domain = $("body").data('url').replace('http://', '').replace('/neon', '').replace('themes.', '');
//Cookies.set('current-skin', 'cafe', {domain: domain});
$(".theme-skins").on('click', 'li a', function(ev)
{
ev.preventDefault();
var $this = $(this);
Cookies.set('current-skin', $this.data('skin'), {domain: domain, expires: 3600});
window.location.href = $this.attr('href');
});
});
})(jQuery, window);