Skip to content

Commit d86dd4c

Browse files
committed
feat: phóng to, canh giữa
1 parent 3aa5175 commit d86dd4c

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

index.html

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
Song
44
</button>
55

6-
<span id="text"></span>
6+
<div id="text"></div>
7+
78
<script>
89
const aud = document.getElementById("ASong").children[0];
910
const isPlaying = false;
@@ -18,5 +19,22 @@
1819
isPlaying = !isPlaying;
1920
}
2021
const list = ["a", "b", "c", "d"]
21-
document.getElementsByTagName("span")[0].innerHTML=list.at(list.length*Math.random())
22+
document.getElementsByTagName("div")[0].innerHTML=list.at(list.length*Math.random())
2223
</script>
24+
25+
<style>
26+
/*
27+
Source - https://stackoverflow.com/a/79593630
28+
Posted by WOW RAKIBUL
29+
Retrieved 2026-06-29, License - CC BY-SA 4.0
30+
*/
31+
32+
html, body {
33+
height: 100%;
34+
margin: 0;
35+
display: flex;
36+
justify-content: center; /* Centers horizontally */
37+
align-items: center; /* Centers vertically */
38+
zoom: 2
39+
}
40+
</style>

0 commit comments

Comments
 (0)