fixes for peekses
This commit is contained in:
parent
6883c5b6b9
commit
a1574411aa
|
@ -139,6 +139,9 @@ A 24 hour clock is assumed, unless am or pm are specified.
|
||||||
The duration is optional and may be specified as XdYhZm for X days, Y hours,
|
The duration is optional and may be specified as XdYhZm for X days, Y hours,
|
||||||
and Z minutes (1d12h would be a 36 hour event).
|
and Z minutes (1d12h would be a 36 hour event).
|
||||||
.Pp
|
.Pp
|
||||||
|
Clicking the pretty circle face will open the emu peeker to add in the
|
||||||
|
selection of emus.
|
||||||
|
.Pp
|
||||||
When everything is at last ready to go, press the
|
When everything is at last ready to go, press the
|
||||||
.Dq it's gonna be honked
|
.Dq it's gonna be honked
|
||||||
button.
|
button.
|
||||||
|
|
|
@ -446,16 +446,22 @@ function playit(elem, word, wordlist, xid) {
|
||||||
module.addguesscontrols(elem, word, wordlist, xid)
|
module.addguesscontrols(elem, word, wordlist, xid)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
function addemu(data){
|
function addemu(elem) {
|
||||||
|
const data = elem.alt
|
||||||
const box = document.getElementById("honknoise");
|
const box = document.getElementById("honknoise");
|
||||||
box.value += data;
|
box.value += data;
|
||||||
}
|
}
|
||||||
function loademus() {
|
function loademus() {
|
||||||
div = document.getElementById("emupicker")
|
div = document.getElementById("emupicker")
|
||||||
request = new XMLHttpRequest();
|
request = new XMLHttpRequest()
|
||||||
request.open('GET', '/emus')
|
request.open('GET', '/emus')
|
||||||
request.onload = function(){
|
request.onload = function() {
|
||||||
div.innerHTML = request.responseText
|
div.innerHTML = request.responseText
|
||||||
|
div.querySelectorAll(".emu").forEach(function(el) {
|
||||||
|
el.onclick = function() {
|
||||||
|
addemu(el)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
if (div.style.display === "none") {
|
if (div.style.display === "none") {
|
||||||
div.style.display = "block";
|
div.style.display = "block";
|
||||||
|
|
Loading…
Reference in New Issue