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 { .close {
position: absolute; position: fixed;
right: 48px; right: 21px;
top: 48px; top: 86px;
width: 48px; width: 48px;
height: 48px; height: 48px;
opacity: 0.8; opacity: 0.8;

View File

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

View File

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