2016-10-02 17:07:47 +02:00
|
|
|
/* Smartphone patch for menu */
|
|
|
|
/* It don't work if links haven't any href attribute */
|
|
|
|
|
2022-04-21 23:34:32 +02:00
|
|
|
let w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0)
|
2016-10-02 17:07:47 +02:00
|
|
|
|
|
|
|
if(w < 700) {
|
2022-04-21 23:34:32 +02:00
|
|
|
let buttons = document.getElementById('light-menu').getElementsByTagName('li');
|
|
|
|
for(let i = 0; i < buttons.length; i++) {
|
2016-10-02 17:07:47 +02:00
|
|
|
buttons[i].getElementsByTagName('a')[0].setAttribute('href', '#');
|
|
|
|
}
|
2022-04-21 23:34:32 +02:00
|
|
|
}
|