1
0
This commit is contained in:
2024-04-28 17:47:14 +09:00
parent e84bf8cde0
commit e0f8d37728
2 changed files with 10 additions and 10 deletions

View File

@@ -1,14 +1,11 @@
<script>
function sun_open() {
var b = document.querySelectorAll(".sun");
var n = document.querySelectorAll(".nasa");
var index = 0, length = b.length;
var index = 0, length = n.length;
for ( ; index < length; index++) {
if (b[index].style.display == 'none') {
b[index].style.display = 'block';
if (n[index].style.display == 'block') {
n[index].style.display = 'none';
} else {
b[index].style.display = 'none';
n[index].style.display = 'block';
}
}
@@ -20,7 +17,9 @@ function sun_open() {
<div class="sun-button">
<img id="sun-img-button" src="/icon/sun.svg" onclick="sun_open()">
</div>
<div id="particles-js"></div>
<div class="sun-particles">
<div id="particles-js"></div>
</div>
</div>
<script src="/pkg/particles/particles.min.js"></script>
<script src="/pkg/particles/config.js"></script>