ui.js

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
window.onload = function() {
const ITEM_HAMBURGER = document.getElementsByClassName('hamburger')[0];
function hamburger_hover(color) {
var x = document.getElementsByClassName('ham');
for (var i=0; i<x.length; i++) {
x[i].style.backgroundColor = color;
}
}
ITEM_HAMBURGER.onmouseover = function() {
hamburger_hover('#9BA2A3');
};
ITEM_HAMBURGER.onmouseout = function() {
hamburger_hover('#ccc');
};
};