first commit without licensingg

This commit is contained in:
kbe
2025-08-21 14:40:43 +02:00
commit fa8d4e58a4
130 changed files with 82163 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
( function( $ ) {
"use strict";
/** ----------------------------------------------------------------------------
* Theme Dashboard */
var cscoThemeDashboard = {};
( function() {
var $this;
cscoThemeDashboard = {
/** Initialize */
init: function( e ) {
$this = cscoThemeDashboard;
// Init events.
$this.events( e );
},
/** Events */
events: function( e ) {
$( document ).on( 'click', '.cs-panel-tabs .cs-panel-tab a', function( e ) {
$this.activePanel( e, this );
});
},
/** Active Panel */
activePanel: function( e, object ) {
let $index = $( object ).closest( '.cs-panel-tab' ).index();
// Set location.
window.history.replaceState( '', '', $( object ).attr( 'href' ) );
// Nav Tabs.
$( object ).closest( '.cs-panel-tab' ).addClass( 'cs-panel-tab-active' ).siblings().removeClass( 'cs-panel-tab-active' );
// Content Tabs.
$( '.cs-panel-content-tabs .cs-panel-tab' ).eq( $index ).addClass( 'cs-panel-tab-active' ).siblings().removeClass( 'cs-panel-tab-active' );
e.preventDefault();
},
};
} )();
// Initialize.
cscoThemeDashboard.init();
} )( jQuery );