-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (54 loc) · 1.75 KB
/
index.html
File metadata and controls
63 lines (54 loc) · 1.75 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title> Doggo, Interactive Notion Companion by Notion Avenue</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<!--I've slightly changed the original code to add light and dark mode toggle for Notion. Credit for the original code from Masahito Leo Takeuchi https://codepen.io/Ma5a -->
<!-- Move around your cursor, the puppy will look at the direction. Click or tap, and the dog will walk -->
<body class="light-mode">
<!-- Dark mode/light mode toggle button -->
<div class="mode-toggle" id="modeToggle" onclick="toggleMode()">
🌙
</div>
<div class="wrapper">
<!-- if you want to see the markers, remove d-none from them -->
<!-- indicates dog position -->
<div class="marker red d-none"></div>
<!-- indicates cursor position -->
<div class="marker green d-none"></div>
<!-- indicates dog's 'facing position'-->
<div class="marker blue d-none"></div>
<div class="dog">
<div class="body-wrapper">
<div class="body img-bg"></div>
</div>
<div class="head-wrapper">
<div class="head img-bg"></div>
</div>
<div class="leg-wrapper">
<div class="leg one img-bg"></div>
</div>
<div class="leg-wrapper">
<div class="leg two img-bg"></div>
</div>
<div class="leg-wrapper">
<div class="leg three img-bg"></div>
</div>
<div class="leg-wrapper">
<div class="leg four img-bg"></div>
</div>
<div class="tail-wrapper">
<div class="tail img-bg"></div>
</div>
</div>
</div>
<div class="indicator"></div>
</body>
<!-- partial -->
<script src="./script.js"></script>
</body>
</html>