-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocs.html
More file actions
100 lines (98 loc) · 2.96 KB
/
docs.html
File metadata and controls
100 lines (98 loc) · 2.96 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<title>Docs | Scratch Snippets | Functional Code Snippets for Scratch</title>
<html>
<head>
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicon_package_v0.16 2/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon_package_v0.16 2/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon_package_v0.16 2/favicon-16x16.png">
<link rel="manifest" href="assets/favicon_package_v0.16 2/site.webmanifest">
<link rel="mask-icon" href="assets/favicon_package_v0.16 2/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 0;
font-size: 28px;
font-family: Arial, Helvetica, sans-serif;
}
.header {
background-color: #f8a738;
color: white;
padding: 30px;
text-align: center;
}
#navbar {
overflow: hidden;
background-color: #4e97ff;
box-shadow: rgba(0, 0, 0, 0.50) 0px 0px 10px;
}
#navbar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 15px;
}
#navbar a:hover {
background-color: #4688e6;
color: white;
}
#navbar a.active {
background-color: #4e97ff;
color: white;
}
.content {
padding: 16px;
}
.sticky {
position: fixed;
top: 0;
width: 100%;
}
.sticky + .content {
padding-top: 60px;
}
</style>
</head>
<body>
<!--Navbar-->
<div id="navbar">
<img src="/assets/oie_PENOyqF0lL31.png" align="left" alt="logo" style="width:113px;height:44px;">
<a href="/"><strong>Home</strong></a>
<a href="snippets.html"><strong>Snippets</strong></a>
<a href="contributors.html"><strong>Contributors</strong></a>
<a href="docs.html"><strong>Docs</strong></a>
</div>
<!--Header-->
<div class="header">
<h2>Scratch Snippets</h2>
<p>Functional Code Snippets for Scratch</p>
</div>
<!--Content-->
<div class="content">
<h3>Docs ✏</h3>
<h4>About</h4>
<p>Scratch Snippets is a website that has a list of functional code snippets for the <a href="https://scratch.mit.edu">Scratch Website.</a></p>
<p>We have 3 different kinds of snippets on our site: userscripts, user<strong>styles</strong> and bookmarklets!</p>
<p>Scratch Snippets is an open source website, and the source code can be found <a href="https://github.com/Scratch-Snippets/scratch-snippets.github.io">Here</a>.</p>
<footer>
<center><a href="https://github.com/Scratch-Snippets/scratch-snippets.github.io"><img src="assets/GitHub-Mark-64px.png"></a></center>
<center><p style="font-size:12px">Scratch Snippets© 2021</p></center>
</footer>
</div>
<script>
window.onscroll = function() {myFunction()};
var navbar = document.getElementById("navbar");
var sticky = navbar.offsetTop;
function myFunction() {
if (window.pageYOffset >= sticky) {
navbar.classList.add("sticky")
} else {
navbar.classList.remove("sticky");
}
} </script>
</body>
</html>