forked from cadence/breezewiki
Compare commits
2 commits
ba08b2bfac
...
0e2b5ea452
Author | SHA1 | Date | |
---|---|---|---|
0e2b5ea452 | |||
2b3a8fe108 |
2 changed files with 11 additions and 1 deletions
|
@ -218,6 +218,13 @@ a.ext-audiobutton { /* see hearthstone/wiki/Diablo_(Duels_hero) */
|
|||
display: inline !important;
|
||||
}
|
||||
|
||||
/* hide slideshows since they're broken
|
||||
* example: ben10/wiki/Celestialsapien_(Classic)#Powers_and_Abilities
|
||||
*/
|
||||
.wikia-slideshow {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* animated slots */
|
||||
#mw-content-text .animated > :not(.animated-active), #mw-content-text .animated > .animated-subframe > :not(.animated-active) {
|
||||
display: inline-block;
|
||||
|
|
|
@ -66,6 +66,9 @@ function setCurrentTab(tabber, tab, content) {
|
|||
tab.classList.add("wds-is-current");
|
||||
content.classList.add("wds-is-current");
|
||||
if (tab.dataset.hash) {
|
||||
location.hash = "#" + tab.dataset.hash;
|
||||
let fragment = "#" + tab.dataset.hash;
|
||||
if (location.hash !== fragment) {
|
||||
history.pushState(null, "", fragment);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue