5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7 <link href="/zombo.css" rel="stylesheet" type="text/css">
8 <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
9 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
10 <meta name="HandheldFriendly" content="true">
16 <div id="header" align="center">
22 <img src="/zombocom.png" alt="Zombocom" longdesc="http://zombo.com" width="1199" height="217">
27 Welcome to Zombocom. You can do anything at Zombocom, anything at
28 all. The only limit is yourself!
32 <form action="" id="zombo-form">
33 <div class="form-row large">
37 <textarea id="prompt" rows="4" width="100%" autocomplete="off" required>
41 <div class="form-row small left">
42 <div class="labeled-row">
46 <input id="code" type="text" autocomplete="off" placeholder="(Leave blank for random)" />
50 <div class="form-row small right">
51 <button id="safety" class="right" type="button">Safety prompt</button>
53 const prompt = document.querySelector("#prompt");
54 const safety= document.querySelector("#safety");
55 // TODO: Dynamically generate many different prompts here
56 safety.addEventListener("click", () => {
57 prompt.value = "Matte painting of a Samurai warrior";
63 <div class="form-row large">
64 <button id="generate" type="submit">Make the infinite possible</button>
73 <form action="" id="comment-form">
74 <input id="comment" type="text" style="width:100%" autocomplete="off" placeholder="Add a comment" />
79 <div class="animate-flicker">
81 <img src="/pngwheel.png" class="rotate thefade">
86 <audio loop="" src="/zombo_words.mp3" type="audio/mpeg"></audio>
87 <button id="mute" class="fade volume">
90 const mute = document.querySelector("#mute");
91 const icon = document.querySelector("#mute > div");
92 const audio = document.querySelector("audio");
94 mute.addEventListener("click", () => {
98 icon.innerHTML = "🔈";
101 icon.innerHTML = "🔊";
103 mute.classList.add("fade");
111 <script src="/socket.io/socket.io.js"></script>
115 var comments = document.querySelector("#comments");
116 var form = document.querySelector("#comment-form");
117 var comment = document.querySelector("#comment");
119 form.addEventListener('submit', function(e) {
122 socket.emit('comment', comment.value);
127 socket.on('comment', function(msg) {
128 var item = document.createElement('li');
129 item.textContent = msg;
130 comments.appendChild(item);