PluginProbe
Clicky Analytics / 2.1
Clicky Analytics v2.1
trunk 1.1 1.1.1 1.2 1.2.1 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.5 1.5.1 1.5.2 1.6 1.6.1 All 40 releases
clicky-analytics / admin / js / settings.js

settings.js in Clicky Analytics 2.1, at admin/js/settings.js

43 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*-
2 * Author: Alin Marcu
3 * Author URI: https://deconf.com
4 * Copyright 2013 Alin Marcu
5 * License: GPLv2 or later
6 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
7 */
8
9 /*
10 * Navigation Tabs
11 */
12 jQuery( document ).ready( function () {
13 if ( window.location.href.indexOf( "page=cawp_" ) != -1 ) {
14 var ident = 'basic';
15
16 if ( window.location.hash ) {
17 ident = window.location.hash.split( '#' )[ 2 ].split( '-' )[ 1 ];
18 } else if ( window.location.href.indexOf( "page=cawp_errors_debugging" ) != -1 ) {
19 ident = 'errors';
20 }
21
22 jQuery( ".nav-tab-wrapper a" ).each( function ( index ) {
23 jQuery( this ).removeClass( "nav-tab-active" );
24 jQuery( "#" + this.hash.split( '#' )[ 2 ] ).hide();
25 } );
26 jQuery( "#tab-" + ident ).addClass( "nav-tab-active" );
27 jQuery( "#cawp-" + ident ).show();
28 }
29
30 jQuery( 'a[href^="#"]' ).click( function ( e ) {
31 if ( window.location.href.indexOf( "page=cawp_" ) != -1 ) {
32 jQuery( ".nav-tab-wrapper a" ).each( function ( index ) {
33 jQuery( this ).removeClass( "nav-tab-active" );
34 jQuery( "#" + this.hash.split( '#' )[ 2 ] ).hide();
35 } );
36 jQuery( this ).addClass( "nav-tab-active" );
37 jQuery( "#" + this.hash.split( '#' )[ 2 ] ).show();
38 }
39 } );
40
41 jQuery( '#cawp-autodismiss' ).delay( 2000 ).fadeOut( 'slow' );
42
43 } );