Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
loeasy68
GitHub Repository: loeasy68/loeasy68.github.io
Path: blob/main/website/LoBall/public/website.js
2941 views
1
function question2() {
2
jelluy().renderPage(`
3
<h1>Worked</h1>
4
`)
5
}
6
function question1() {
7
jelluy().renderPage(`
8
<h1>This is a formation</h1>
9
<img src="./imgs/question1.png">
10
<p>Make TE2(Like python)</p>
11
<input type="text" placeholder="code" id="code1">
12
<button id="done">Done</button>
13
<div id="result"></div>
14
`,`
15
`)
16
done.addEventListener("click",function() {
17
let value = code1.value;
18
if (value == "te2 = true") {
19
result.innerHTML = `
20
<p>You did it!</p>
21
<img src="./correctImgs/question1.png">
22
<button onclick="question2()">Next</button>
23
`
24
}
25
else {
26
result.innerHTML = "<p>Incorrect (Use lowercase)</p>"
27
}
28
})
29
}
30
31
jelluy().startSite(`
32
<h1>LoBall</h1>
33
<button onclick="question1()">Start</button>
34
`, ``)
35