ultrawidify/res/settings.html

245 lines
11 KiB
HTML

<html>
<head>
<title>Ultrawidify :: settings</title>
<meta charset="UTF-8">
<base target="_blank">
<style>
@import url('https://fonts.googleapis.com/css?family=Oxygen:300,400&subset=latin-ext');
body{
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzb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XqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==);
background-size: 75px;
background-color: #000000;
color: #ddd;
font-family: 'Oxygen', serif;
font-size: 1.2em;
width: 100%;
border: 0px;
margin: 0px;
padding: 0px;
text-align: center;
}
a, a:visited{
color: #fa6607;
text-decoration: none;
}
a:hover{
color: #fa6;
}
.show{
display: block !important;
}
.hide{
display: none !important;
}
head{
width: 100%;
border: 0px;
margin: 0px;
padding: 0px;
}
h1,h2{
color: #ff9;
font-weight: 300;
}
h1{
font-size: 3.3em;
}
h2{
font-size: 2.2em;
}
.content{
display: inline-block;
width: 52em;
}
.center{
margin: 0 auto;
}
.left{
text-align: left;
}
.block{
display: inline-block;
margin-left: 1em;
margin-right: 1em;
}
.tabline{
background-color: #000;
width: 100%;
margin-bottom: 1.5em;
padding-top: 0.3em;
padding-bottom: 0.4em;
}
.tab{
color: #fa6607;
}
.tab-selected{
color: #ff9 !important;
}
#all{
min-width: 100%;
min-height: 100vh;
background-image: url('res/img/settings/about-bg.png');
background-position: calc(50vw + 20em) 10vh;
background-attachment: fixed;
background-size: auto 100%;
background-repeat: no-repeat;
}
</style>
<script>
function showAbout(){
document.getElementById("uw_shortcuts").classList.add("hide");
document.getElementById("about").classList.remove("hide");
document.getElementById("tab_shortcuts").classList.remove("tab-selected");
document.getElementById("tab_about").classList.add("tab-selected");
}
function showShortcuts(){
document.getElementById("uw_shortcuts").classList.remove("hide");
document.getElementById("about").classList.add("hide");
document.getElementById("tab_shortcuts").classList.add("tab-selected");
document.getElementById("tab_about").classList.remove("tab-selected");
}
//TODO TODO TODO correct resourceToUrl so it'll work properly. (uncomment the return statement)
function resourceToUrl(img){
return "../" + img;
// return chrome.extension.getURL(img);
}
function onload(){
//Adding background to 'about' page:
document.getElementById("all").style.backgroundImage = "url('" + resourceToUrl("res/img/settings/about-bg.png") + "')";
}
</script>
</head>
<body onload="onload()">
<div id="all">
<header>
<div class="content center">
<div class="left">
<h1>Ultrawidify :: settings</h1>
</div>
</div>
<div class="tabline center">
<div class="content left">
<div id="tab_shortcuts" onclick="showShortcuts()" class="block tab tab-selected">Shortcuts</div>
<div id="tab_about" onclick="showAbout()" class="block tab">About</div>
</div>
</div>
</header>
<div id="uw_shortcuts">
<div class="content left">
<form>
<!-- fit width -->
<div class="uw_shortcuts_line">
<div class="uw_shortcuts_label">Fit to width</div>
<input type='checkbox' value='fitw_ctrl' > Ctrl +
<input type='checkbox' value='fitw_shift' > Shift +
<input type='checkbox' value='fitw_alt' > Alt +
<input type='text' name='fitw_letter' maxlength='1' class='shortcut_input'>
</div>
<!-- fit height -->
<div class="uw_shortcuts_line">
<div class="uw_shortcuts_label">Fit to height</div>
<input type='checkbox' value='fith_ctrl' > Ctrl +
<input type='checkbox' value='fith_shift' > Shift +
<input type='checkbox' value='fith_alt' > Alt +
<input type='text' name='fith_letter' maxlength='1' class='shortcut_input'>
</div>
<!-- reset -->
<div class="uw_shortcuts_line">
<div class="uw_shortcuts_label">Reset</div>
<input type='checkbox' value='reset_ctrl' > Ctrl +
<input type='checkbox' value='reset_shift' > Shift +
<input type='checkbox' value='reset_alt' > Alt +
<input type='text' name='reset_letter' maxlength='1' class='shortcut_input'>
</div>
<!-- zoom -->
<div class="uw_shortcuts_line">
<div class="uw_shortcuts_label">Zoom</div>
<input type='checkbox' value='zoom_ctrl' > Ctrl +
<input type='checkbox' value='zoom_shift' > Shift +
<input type='checkbox' value='zoom_alt' > Alt +
<input type='text' name='zoom_letter' maxlength='1' class='shortcut_input'>
</div>
<!-- unzoom -->
<div class="uw_shortcuts_line">
<div class="uw_shortcuts_label">Unzoom</div>
<input type='checkbox' value='unzoom_ctrl' > Ctrl +
<input type='checkbox' value='unzoom_shift' > Shift +
<input type='checkbox' value='unzoom_alt' > Alt +
<input type='text' name='unzoom_letter' maxlength='1' class='shortcut_input'>
</div>
<!-- force 21:9 -->
<div class="uw_shortcuts_line">
<div class="uw_shortcuts_label">Fit to height</div>
<input type='checkbox' value='ar219_ctrl' > Ctrl +
<input type='checkbox' value='ar219_shift' > Shift +
<input type='checkbox' value='ar219_alt' > Alt +
<input type='text' name='ar219_letter' maxlength='1' class='shortcut_input'>
</div>
<!-- force 16:9 -->
<div class="uw_shortcuts_line">
<div class="uw_shortcuts_label">Fit to height</div>
<input type='checkbox' value='ar169_ctrl' > Ctrl +
<input type='checkbox' value='ar169_shift' > Shift +
<input type='checkbox' value='ar169_alt' > Alt +
<input type='text' name='ar169_letter' maxlength='1' class='shortcut_input'>
</div>
<!-- force 16:10 -->
<div class="uw_shortcuts_line">
<div class="uw_shortcuts_label">Fit to height</div>
<input type='checkbox' value='ar1610_ctrl' > Ctrl +
<input type='checkbox' value='ar1610_shift' > Shift +
<input type='checkbox' value='ar1610_alt' > Alt +
<input type='text' name='ar1610_letter' maxlength='1' class='shortcut_input'>
</div>
<!-- force 4:3 -->
<div class="uw_shortcuts_line">
<div class="uw_shortcuts_label">Fit to height</div>
<input type='checkbox' value='ar43_ctrl' > Ctrl +
<input type='checkbox' value='ar43_shift' > Shift +
<input type='checkbox' value='ar43_alt' > Alt +
<input type='text' name='ar43_letter' maxlength='1' class='shortcut_input'>
</div>
</form>
<div class="buttonbar">Cancel | Close</div>
<div id="errbox"></div>
<div><b>Note:</b> keyboard shortcut conflicts aren't handled by this extension. You must know your shortcuts.<br/><b>Pro tip:</b> If you don't want to have a keybind for a shortcut, just uncheck all boxes for the action and remove the letter</div>
</div>
</div>
<div id="about" class="hide">
<div class="content left">
<h2>Ultrawidify - an aspect ratio fixer for youtube</h2>
<p>Created by Tamius Han (me). If something is broken, you can shout at me on <a href="https://github.com/xternal7/ultrawidify">github</a> (shout nicely, though. Open an issue or bug report or something). If you're curious to see the source code, <a href="https://github.com/xternal7/ultrawidify">github's here</a>. If you're looking at this page because you're bored and want to be bored some more, <a href="http://tamius.net">my website's here</a>.</p>
<h2>Plans for the future</h2>
<p>Netflix support, probably.</p>
<h2>Acknowledgements</h2>
<p>This extension uses font <a href="https://fonts.google.com/specimen/Oxygen">Oxygen</a>.</p>
<p>Special thanks to CD Project Red (The Witcher 2), Anet (Guild Wars 2), and Valve (CS:GO), which made it possible for me to untrigger myself after seeing so many improperly encoded videos.</p>
<small><p>More or less.</p>
<p>GW2 is also roughly how the avatar was obtained. Noone tell Anet, though.</p></small>
<p>Special one-finger salute to all incompetent people who don't know how to properly encode videos and upload them to youtube (to word it most nicely).</p>
<p>Special thanks to me for making this extension. You're welcome.</p>
</div>
</div>
</all>
</body>
</html>