mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Expand mobile menu entry by default on mobiles (thanks harding)
This commit is contained in:
parent
e1ffd67729
commit
3ac6158d37
1 changed files with 6 additions and 1 deletions
|
@ -400,6 +400,7 @@ var t = null,
|
|||
},
|
||||
updateMenu = function() {
|
||||
// Set active nodes in the menu for the new platform.
|
||||
addClass(walletMenu.getElementsByTagName('UL')[0], 'menutap');
|
||||
for (var i = 0, nds = walletMenu.getElementsByTagName('A'), n = nds.length; i < n; i++) {
|
||||
nds[i].removeAttribute('data-active');
|
||||
removeClass(nds[i].parentNode, 'active');
|
||||
|
@ -407,8 +408,12 @@ var t = null,
|
|||
if (platform != 'default') {
|
||||
t.setAttribute('data-active', '1');
|
||||
addClass(t.parentNode, 'active');
|
||||
addClass(t.parentNode, 'hover');
|
||||
var p = t.parentNode.parentNode.parentNode;
|
||||
if (p.nodeName == 'LI') addClass(p, 'active');
|
||||
if (p.nodeName == 'LI') {
|
||||
addClass(p, 'active');
|
||||
addClass(p, 'hover');
|
||||
}
|
||||
}
|
||||
},
|
||||
updateWallets = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue