This commit is contained in:
parent
efda456bcc
commit
5f4fe169c8
12
index.js
12
index.js
@ -302,13 +302,19 @@ function SetupJSRSN() {
|
|||||||
PerformNavResize()
|
PerformNavResize()
|
||||||
}
|
}
|
||||||
function PerformNavResize() {
|
function PerformNavResize() {
|
||||||
|
var ww = 0
|
||||||
|
if (window.innerWidth && window.innerWidth !== 10) {
|
||||||
|
ww = window.innerWidth
|
||||||
|
} else {
|
||||||
var ht = document.getElementsByTagName("html")
|
var ht = document.getElementsByTagName("html")
|
||||||
if (ht && ht.length > 0) {
|
if (ht && ht.length > 0) {ww = ht[0].clientWidth;}
|
||||||
var maxbarsz = ht[0].clientWidth - 324;
|
}
|
||||||
|
if (ww > 0) {
|
||||||
|
var maxbarsz = ww - 324;
|
||||||
var men = document.getElementById("menu")
|
var men = document.getElementById("menu")
|
||||||
var vmen = document.getElementById("vmenu")
|
var vmen = document.getElementById("vmenu")
|
||||||
if (men && vmen) {
|
if (men && vmen) {
|
||||||
if (ht[0].clientWidth > 679) {
|
if (ww > 679) {
|
||||||
while (vmen.childNodes.length > 0) {InsertBefore(men, vmen.removeChild(vmen.childNodes[vmen.childNodes.length - 1]));}
|
while (vmen.childNodes.length > 0) {InsertBefore(men, vmen.removeChild(vmen.childNodes[vmen.childNodes.length - 1]));}
|
||||||
} else {
|
} else {
|
||||||
var vmeni
|
var vmeni
|
||||||
|
Loading…
Reference in New Issue
Block a user