mirror of
https://codeberg.org/Nero/InviTube.git
synced 2024-09-10 14:25:17 +00:00
101 lines
2.2 KiB
HTML
101 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 40px;
|
|
height: 23px;
|
|
margin: 1.5em 1em;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
border-radius: 34px;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #ccc;
|
|
-webkit-transition: .4s;
|
|
transition: .4s;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
border-radius: 34px;
|
|
content: "";
|
|
height: 17px;
|
|
width: 17px;
|
|
left: 4px;
|
|
bottom: 3px;
|
|
background-color: white;
|
|
-webkit-transition: .4s;
|
|
transition: .4s;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: #009EE0;
|
|
}
|
|
|
|
input:focus + .slider {
|
|
box-shadow: 0 0 1px #009EE0;
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
-webkit-transform: translateX(26px);
|
|
-ms-transform: translateX(26px);
|
|
transform: translateX(16px);
|
|
}
|
|
|
|
p {
|
|
font-size: 1.4em;
|
|
color: white;
|
|
text-align: center;
|
|
}
|
|
|
|
.textfield {
|
|
text-align: center;
|
|
background-color: #131313;
|
|
color: white;
|
|
font-size: 1em;
|
|
border: none;
|
|
border-bottom: 1px solid #ccc;
|
|
outline: none;
|
|
margin: 1.5em 1em;
|
|
}
|
|
|
|
#saveBtn {
|
|
margin: 1.5em 0;
|
|
border-radius: 0;
|
|
font-size: 1em;
|
|
padding: .5em 1em;
|
|
border: none;
|
|
background-color: #131313;
|
|
color: white;
|
|
}
|
|
|
|
</style>
|
|
<meta charset="utf-8">
|
|
</head>
|
|
<body bgcolor="202023">
|
|
<form>
|
|
<p>
|
|
Instance URL:
|
|
<input id="instance" class="textfield" placeholder="piped.kavin.rocks"/>
|
|
<br>
|
|
<label class="switch">
|
|
<input type="checkbox" id="imageRedirect">
|
|
<span class="slider" />
|
|
</label> Redirect images
|
|
<span title="Might cause not every image to be loaded">❓</span>
|
|
<br>
|
|
<button id="saveBtn" type="submit">Save</button>
|
|
</p>
|
|
</form>
|
|
<script src="options.js"></script>
|
|
</body>
|
|
</html>
|