added additional soundbytes
This commit is contained in:
parent
2a8dfcee67
commit
0dbfd665f2
1 changed files with 13 additions and 2 deletions
|
@ -78,6 +78,7 @@ async fn main() -> Result<()>{
|
|||
.route("/admin", get(control))
|
||||
.route("/phil", get(phil))
|
||||
.route("/recent", get(recent_badge))
|
||||
.route("/setLast", post(set_last))
|
||||
.route("/play", post(play))
|
||||
.route("/openDoor", post(open_door))
|
||||
.route("/open", get(open_door))
|
||||
|
@ -213,16 +214,26 @@ async fn soundboard() -> Html<String> {
|
|||
|
||||
for (name, sound) in [
|
||||
("I'm John the Fish!", "b1"),
|
||||
("Sup", "a19"),
|
||||
("Howdy Partner!", "a8"),
|
||||
("GETOUT", "d4"),
|
||||
("suspiciougs", "d5"),
|
||||
("<i>foghorn</i>", "d7"),
|
||||
("siren", "d6"),
|
||||
("you don't live here", "d8"),
|
||||
("piss off", "d10"),
|
||||
("ahwableda", "d1"),
|
||||
("wort", "wort"),
|
||||
] {
|
||||
page.push_str(&format!(r#"
|
||||
<form target="output" style="display:inline; margin-right:10px; " action="setLast" method="post" id="myForm">
|
||||
<form target="output" style="display:inline; margin-right:10px; " action="play" method="post" id="myForm">
|
||||
<button style="font-size:40px;" type="submit" name="name" value="{sound}" target="output">{name}</button>
|
||||
</form>
|
||||
"#));
|
||||
}
|
||||
|
||||
page.push_str(&format!(r#"
|
||||
<form target="output" style="margin-top:10px;" action="setLast" method="post" id="myForm">
|
||||
<form target="output" style="margin-top:10px;" action="play" method="post" id="myForm">
|
||||
<input style="font-size:40px;" name="name" placeholder="other" "type="text"></input>
|
||||
<button style="font-size:40px;" type="submit" target="output">other</button>
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue