36 lines
937 B
JavaScript
36 lines
937 B
JavaScript
/*
|
|
* index.js
|
|
* DOSee index.html functions
|
|
*/
|
|
"use strict";
|
|
|
|
(function() {
|
|
const hw = document.getElementById(`hardware`)
|
|
const opt = document.getElementById(`options`)
|
|
const hlp = document.getElementById(`helpTab`)
|
|
const hwBut = document.getElementById(`hwButton`)
|
|
const optBut = document.getElementById(`optButton`)
|
|
const hlpBut = document.getElementById(`hlpButton`)
|
|
const resetMenu = function() {
|
|
hw.style.display = `none`
|
|
opt.style.display = `none`
|
|
}
|
|
|
|
resetMenu()
|
|
hw.style.display = `block`
|
|
console.info(`index.js v1.0 loaded`)
|
|
// document.getElementById(`hardware`)
|
|
hwBut.onclick = function() {
|
|
resetMenu()
|
|
hw.style.display = `block`
|
|
}
|
|
optBut.onclick = function() {
|
|
resetMenu()
|
|
opt.style.display = `block`
|
|
}
|
|
hlpBut.onclick = function() {
|
|
resetMenu()
|
|
hlp.style.display = `block`
|
|
}
|
|
})()
|