1
0
This commit is contained in:
2024-04-28 15:25:43 +09:00
parent 3dc65befb9
commit b862d17d46
14 changed files with 84 additions and 11 deletions

View File

@ -1,4 +1,4 @@
{{ partial "head.html" . }}
{{ partial "head-blog.html" . }}
{{ partial "navbar.html" . }}
{{ partial "header.html" . }}

View File

@ -7,6 +7,7 @@
<div class="stars">
{{ partial "particles.html" . }}
{{ partial "nasa.html" . }}
{{ partial "galaxy.html" . }}
</div>

View File

@ -0,0 +1 @@
<footer class="footer">© <a href="https://syui.ai">syui</a></footer>

View File

@ -1 +1,4 @@
<iframe src="/pkg/galaxy/?star=fff700&in=fff700&out=fff700&bg=0x000000" allowfullscreen frameborder="0" style="width:100%;height:700px;"></iframe>
<!--
<iframe src="/pkg/galaxy/" allowfullscreen frameborder="0" style="width:100%;height:700px;"></iframe>
-->

View File

@ -0,0 +1,6 @@
<div class="nasa">
<iframe src="https://eyes.nasa.gov/apps/solar-system/#/sun/distance?to=earth" allowfullscreen frameborder="0" style="width:100%;height:700px;"></iframe>
</div>
<!--
https://eyes.nasa.gov/apps/solar-system/#/story/voyager_grand_tour?slide=slide_2
-->

View File

@ -1,4 +1,26 @@
<script>
function sun_open() {
var b = document.querySelectorAll(".sun");
var n = document.querySelectorAll(".nasa");
var index = 0, length = b.length;
for ( ; index < length; index++) {
if (b[index].style.display == 'none') {
b[index].style.display = 'block';
n[index].style.display = 'none';
} else {
b[index].style.display = 'none';
n[index].style.display = 'block';
}
}
}
</script>
<link rel="stylesheet" href="/pkg/particles/particles.css" />
<div id="particles-js"></div>
<div class="sun">
<div class="sun-button">
<img id="sun-img-button" src="/icon/sun.png" onclick="sun_open()">
</div>
<div id="particles-js"></div>
</div>
<script src="/pkg/particles/particles.min.js"></script>
<script src="/pkg/particles/config.js"></script>