Skip to content
This repository was archived by the owner on Jul 5, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions code/7.10_p5.js_callbacks_on_multiple_DOM_elements/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>7.10_p5.js_callbacks_on_multiple_DOM_elements</title>
<script src="libraries/p5.js" type="text/javascript"></script>

<script src="libraries/p5.dom.js" type="text/javascript"></script>
<script src="libraries/p5.sound.js" type="text/javascript"></script>

<script src="sketch.js" type="text/javascript"></script>

<style> body {padding: 0; margin: 0;} canvas {vertical-align: top;} </style>
</head>
<body>
<p class="rainbow">Rainbows!!</p>
<p class="apple">More rainbows!!</p>
<p class="apple">More rainbows!!</p>
<p class="orange">More rainbows!!</p>
<p class="orange">More rainbows!!</p>
<p class="rainbow">More rainbows!!</p>
<p id = "unicorn" class="rainbow">A Unicorns and rainbows!!</p>
<p>Just a plain paragraph.</p>

<p><button class="rainbow" id="button">click me</button></p>
</body>
</html>
Loading