You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.2 KiB
76 lines
1.2 KiB
2 years ago
|
<script lang="ts">
|
||
|
let visible = false
|
||
|
function opensettings() {
|
||
|
visible = !visible
|
||
|
}
|
||
|
|
||
|
let settings = {
|
||
|
apv: false,
|
||
|
apa: false,
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<span class="clickable" class:glow={visible} on:click={() => opensettings()}>
|
||
|
[PEE Settings]
|
||
|
</span>
|
||
|
<div class="backpanel" class:enabled={visible} class:disabled={!visible}>
|
||
|
<div class="content">
|
||
|
<h1>PEE Settings</h1>
|
||
|
<hr />
|
||
|
<label>
|
||
|
<input type="checkbox" bind:checked={settings.apv} />
|
||
|
Autoplay Videos
|
||
|
</label>
|
||
|
<label>
|
||
|
<input type="checkbox" bind:checked={settings.apa} />
|
||
|
Autoplay Audio
|
||
|
</label>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<style scoped>
|
||
|
.enabled {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
.disabled {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
.glow {
|
||
|
text-shadow: 0 0 4px red;
|
||
|
}
|
||
|
|
||
|
.clickable {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.content {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
}
|
||
|
|
||
|
hr {
|
||
|
width: 100%;
|
||
|
}
|
||
|
|
||
|
h1 {
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
.backpanel {
|
||
|
position: absolute;
|
||
|
right: 32px;
|
||
|
padding: 10px;
|
||
|
width: 10%;
|
||
|
top: 32px;
|
||
|
border: 1px solid;
|
||
|
border-radius: 5px;
|
||
|
background-color: rgba(0, 0, 0, 0.2);
|
||
|
}
|
||
|
|
||
|
.clickable:hover {
|
||
|
text-shadow: 0 0 2px palevioletred;
|
||
|
}
|
||
|
</style>
|