PluginProbe
Float menu – awesome floating side menu / 6.1
Float menu – awesome floating side menu v6.1
7.2.5 trunk 2.1 2.2 3.0.1 3.1 3.2.2 3.3.1 3.5 3.5.1 3.5.2 3.5.3. 3.5.4 4.0 4.1 4.1.1 4.2 4.3 4.3.1 4.3.2 5.0 5.0.1 5.0.2 5.0.3 5.1 All 57 releases
float-menu / admin / assets / js / 2.general.js

2.general.js in Float menu – awesome floating side menu 6.1, at admin/assets/js/2.general.js

31 lines 1012 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 'use strict'
2
3 jQuery(document).ready(function($) {
4
5 $('.wpie-tabs').on('click', '.wpie-tab-label', function() {
6 $('.wpie-tabs .wpie-tab-label').removeClass('selected');
7 $(this).addClass('selected');
8 });
9
10 const urlParams = new URLSearchParams(window.location.search);
11 if (urlParams.has('notice')) {
12 const notice = $('.wpie-notice');
13 $(notice).addClass('is-active');
14 setTimeout(function (){
15 $(notice).removeClass('is-active');
16 }, 5000);
17 }
18
19 $('.wpie-settings__main').on('click', '.wpie-tab__link', function (){
20 const parent = $(this).closest('.wpie-tabs-wrapper');
21 const links = $(parent).find('.wpie-tab__link');
22 const settings = $(parent).find('.wpie-tab-settings');
23 const index = $(links).index(this);
24
25 $(links).removeClass('is-active');
26 $(this).addClass('is-active');
27 $(settings).removeClass('is-active');
28 $(settings).eq(index).addClass('is-active');
29 });
30
31 });