Skip to content

Commit dd473a7

Browse files
committed
Clean up gravity.js stuff
1 parent 9455ee3 commit dd473a7

File tree

6 files changed

+7760
-1874
lines changed

6 files changed

+7760
-1874
lines changed

www/gravity.css

Lines changed: 0 additions & 10 deletions
This file was deleted.

www/gravity.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
h3,
1616
h4,
1717
h5,
18-
h6 {
18+
h6,
19+
pre {
1920
width: fit-content;
2021
height: fit-content;
2122
padding: 0;
@@ -32,9 +33,8 @@
3233
<h2 class="box2d">Hello, World!</h2>
3334
<img class="box2d" src="img/hello.webp" />
3435
<h3 class="box2d">
35-
<code
36-
>&lt;script src="
37-
<script>
36+
<pre><code
37+
>&lt;script src="<script>
3838
let _ = document.createElement("span");
3939
_.innerText = location.href.split("/").reduceRight((a, v, i, s) => {
4040
return (
@@ -44,9 +44,8 @@ <h3 class="box2d">
4444
);
4545
}, "gravity.js");
4646
document.currentScript.replaceWith(_);
47-
</script>
48-
"&gt;&lt;/script&gt;</code
49-
>
47+
</script>"&gt;&lt;/script&gt;</code
48+
></pre>
5049
</h3>
5150
<button
5251
onclick="if (location.hash == '#text') location.hash = ''; else location.hash = 'text'; location.reload();"

0 commit comments

Comments
 (0)