This commit is contained in:
Flummi 2019-05-15 18:41:31 +00:00
parent d680a08263
commit d44253e2ba
3 changed files with 11 additions and 3 deletions

View File

@ -1,7 +1,7 @@
.close {
position: absolute;
right: 48px;
top: 48px;
position: fixed;
right: 21px;
top: 86px;
width: 48px;
height: 48px;
opacity: 0.8;

View File

@ -49,6 +49,9 @@ events.resize = {
lib.scrolltomiddle(rt.ct.wrapper.items);
}
};
events.volumechange = e => {
localStorage.setItem("volume", e.target.volume);
};
events.hashchange = async e => {
if(rt.scroll)
return;
@ -96,6 +99,8 @@ events.hashchange = async e => {
el.autoplay = true;
el.controls = true;
el.loop = true;
el.volume = localStorage.getItem("volume") || 1;
el.addEventListener("volumechange", events.volumechange);
break;
case "image/gif":
case "image/jpeg":
@ -113,6 +118,8 @@ events.hashchange = async e => {
el.autoplay = true;
el.controls = true;
el.loop = true;
el.volume = localStorage.getItem("volume") || 1;
el.addEventListener("volumechange", events.volumechange);
break;
default:
alert("lol hacker");

View File

@ -47,6 +47,7 @@
<div class="i_item">Item 3</div>
</div>
<div class="arrow right" id="right"></div>
<a href="#" class="close"></a>
</div>
<div class="wrapper" id="howtowrapper">
<h4>irc.n0xy.net +6697 (ssl only) #f0ck</h4>