forked from codetocope/codetocope.github.io
/
circuit.html
47 lines (40 loc) · 1.52 KB
/
circuit.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>p5.js editor</title>
<link rel="stylesheet" href="style.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.2.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.2.0/addons/p5.sound.min.js"></script>
<script type="text/javascript" src="script.js"></script>
<!--<script src="sketch.js"></script>-->
</head>
<body>
<div id="nav">
<a href="index.html">EXERCISE 1: FACE</a>
<a href="body.html">EXERCISE 2: BODY</a>
<a href="circuit.html">EXERCISE 3: CIRCUITS</a>
<h1>EXERCISE 3: CIRCUITS</h1>
</div>
<div>
<div style="height: 90vh; min-width: 40%;">
<img src="img/anim.gif" style="max-height: 100%; min-width: 40%; margin: 0 auto;"/>
</div>
<section>
<details class="accordion">
<summary>Tutorial</summary>
<iframe src="tutorial3.html"></iframe>
</details>
</section>
</div>
<script>
document.getElementsByTagName("summary")[0].addEventListener('click', function () {
if (document.getElementsByTagName("section")[0].style.width != "40%")
document.getElementsByTagName("section")[0].style.width = "40%";
else
document.getElementsByTagName("section")[0].style.width = "50px";
});
</script>
</body>
</html>