361 lines
9.1 KiB
HTML
361 lines
9.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta charset="UTF-8" />
|
|
<title>Indie Wiki Buddy</title>
|
|
<style>
|
|
body {
|
|
width: 550px;
|
|
max-width: 96%;
|
|
margin: 10px;
|
|
font-family: Helvetica, Sans-Serif;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.2rem;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
hr {
|
|
height: 1px;
|
|
border: none;
|
|
color: #555;
|
|
background-color: #555;
|
|
}
|
|
|
|
label {
|
|
display: inline-block;
|
|
height: 20px;
|
|
}
|
|
|
|
.visuallyHidden {
|
|
position: absolute !important;
|
|
width: 1px !important;
|
|
height: 1px !important;
|
|
padding: 0 !important;
|
|
margin: -1px !important;
|
|
overflow: hidden !important;
|
|
clip: rect(0, 0, 0, 0) !important;
|
|
white-space: nowrap !important;
|
|
border: 0 !important;
|
|
}
|
|
|
|
.links {
|
|
font-size: .8em;
|
|
line-height: 1.5em;
|
|
margin-left: 8px;
|
|
}
|
|
.links a, .links a:visited, .links a:active {
|
|
text-decoration: none;
|
|
border-bottom: 1px black dotted;
|
|
}
|
|
|
|
.options {
|
|
display: flex;
|
|
flex-direction: column;
|
|
user-select: none;
|
|
margin-top: 4px;
|
|
}
|
|
.options > div {
|
|
flex: 50%;
|
|
}
|
|
.options > div {
|
|
padding-bottom: 10px;
|
|
}
|
|
.options > div:last-child {
|
|
padding: 0px;
|
|
}
|
|
|
|
#controls {
|
|
margin: 0 auto;
|
|
width: fit-content;
|
|
text-align: center;
|
|
}
|
|
|
|
.control {
|
|
background: #ffffff;
|
|
border: 1px solid #333333;
|
|
color: #333333;
|
|
border-radius: 5px;
|
|
padding: 3px 5px;
|
|
margin: 3px 5px;
|
|
}
|
|
.control:hover {
|
|
cursor: pointer;
|
|
background: #3174f1;
|
|
border: 1px solid#3174f1;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.settingToggleContainer {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.settingToggle {
|
|
cursor: pointer;
|
|
width: fit-content;
|
|
vertical-align: middle;
|
|
display: inline-block;
|
|
}
|
|
.settingToggle + div {
|
|
display: inline-block;
|
|
}
|
|
.settingToggle input,
|
|
.settingToggle label {
|
|
cursor: pointer;
|
|
}
|
|
.settingToggle input {
|
|
height: 0;
|
|
width: 0;
|
|
margin: 0;
|
|
border: none;
|
|
appearance: none;
|
|
}
|
|
.settingToggle img {
|
|
width: 30px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.columns {
|
|
display: grid;
|
|
grid-auto-columns: 1fr;
|
|
grid-auto-flow: column;
|
|
}
|
|
|
|
#toggles {
|
|
height: 16em;
|
|
white-space: nowrap;
|
|
overflow-y: scroll;
|
|
overflow-x: hidden;
|
|
position: relative;
|
|
}
|
|
#toggles > div:hover {
|
|
background-color: #e8f0fe;
|
|
}
|
|
#toggles input {
|
|
cursor: pointer;
|
|
}
|
|
#toggles > div {
|
|
line-height: 1.2em;
|
|
font-size: 1em;
|
|
}
|
|
#toggles img {
|
|
width: 16px;
|
|
height: 16px;
|
|
max-height: 1.2em;
|
|
}
|
|
#toggles a {
|
|
float: right;
|
|
padding-right: 10px;
|
|
clear: both;
|
|
}
|
|
#toggles span {
|
|
padding-left: 10px;
|
|
}
|
|
#togglesKey {
|
|
padding-left: 5px;
|
|
}
|
|
#togglesKey > div {
|
|
display: inline-block;
|
|
width: 17px;
|
|
}
|
|
|
|
#langSelectContainer {
|
|
font-size: 0.9em;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
line-height: 1.4em;
|
|
}
|
|
.footer a {
|
|
font-size: 0.9em;
|
|
padding: 5px 0px;
|
|
color: #3174f1;
|
|
}
|
|
|
|
#toggles,
|
|
#powerText,
|
|
.settingToggleContainer,
|
|
.footer {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
#breezewikiHost {
|
|
display: none;
|
|
padding-left: 10px;
|
|
}
|
|
#breezewikiHost > label {
|
|
padding-left: 10px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="columns">
|
|
<div class="links">
|
|
<h1>Indie Wiki Buddy</h1>
|
|
<span id="version"></span>
|
|
<br />
|
|
<a
|
|
href="https://getindie.wiki/"
|
|
target="_blank"
|
|
>Info & Help</a
|
|
>
|
|
<br />
|
|
<a
|
|
href="https://getindie.wiki/changelog/"
|
|
target="_blank"
|
|
>Changelog</a
|
|
>
|
|
<br />
|
|
<a
|
|
href="https://getindie.wiki/#submit"
|
|
target="_blank"
|
|
>Submit a Wiki</a
|
|
>
|
|
<br />
|
|
<a
|
|
href="https://github.com/KevinPayravi/indie-wiki-buddy"
|
|
target="_blank"
|
|
>Source Code</a
|
|
>
|
|
</div>
|
|
<div class="options">
|
|
<div class="settingToggleContainer">
|
|
<div id="power" class="settingToggle">
|
|
<input id="powerButton" type="checkbox" />
|
|
<label for="powerButton">
|
|
<img id="powerImage" src="" alt="" />
|
|
<span id="powerText"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="settingToggleContainer">
|
|
<div id="notifications" class="settingToggle">
|
|
<input id="notificationsButton" type="checkbox" />
|
|
<label for="notificationsButton">
|
|
<img id="notificationsImage" src="" alt="" />
|
|
<span id="notificationsText"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="settingToggleContainer">
|
|
<div id="searchFilter" class="settingToggle">
|
|
<input id="searchFilterButton" type="checkbox" />
|
|
<label for="searchFilterButton">
|
|
<img id="searchFilterImage" src="" alt="" />
|
|
<span id="searchFilterText"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="settingToggleContainer">
|
|
<div id="breezewiki" class="settingToggle">
|
|
<input id="breezewikiButton" type="checkbox" />
|
|
<label for="breezewikiButton">
|
|
<img id="breezewikiImage" src="" alt="" />
|
|
<span id="breezewikiText"></span>
|
|
</label>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
(<a href="https://breezewiki.com/" target="_blank"
|
|
>learn more</a
|
|
>)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="settingToggleContainer">
|
|
<div id="breezewikiHost" class="settingToggle">
|
|
<label for="breezewikiHostSelect">Host: </label>
|
|
<select name="breezewikiHost" id="breezewikiHostSelect"></select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr />
|
|
<div id="controls">
|
|
<div id="langSelectContainer">
|
|
Viewing wikis in:
|
|
<select name="lang" id="langSelect">
|
|
<option value="DE">Deutsch</option>
|
|
<option value="EN" selected>English</option>
|
|
<option value="ES">Español</option>
|
|
<option value="FR">Français</option>
|
|
<option value="IT">Italiano</option>
|
|
<option value="PL">Polski</option>
|
|
<option value="TOK">Toki Pona</option>
|
|
</select>
|
|
</div>
|
|
<button id="setAllDisabled" class="control">
|
|
<img src="images/toggle-disabled.png" width="10" alt="" /> Disable all
|
|
</button>
|
|
<button id="setAllRedirect" class="control">
|
|
<img src="images/toggle-redirect.png" width="10" alt="" /> Set all to
|
|
redirect
|
|
</button>
|
|
<button id="setAllAlert" class="control">
|
|
<img src="images/toggle-alert.png" width="10" alt="" /> Set all to
|
|
notify
|
|
</button>
|
|
<br />
|
|
<button id="setAllSearchFilter" class="control">
|
|
<img src="images/toggle-search-filter.png" width="10" alt="" /> Filter
|
|
search for all
|
|
</button>
|
|
<button id="setNoneSearchFilter" class="control">
|
|
<img src="images/toggle-search-filter.png" width="10" alt="" /> Filter
|
|
search for none
|
|
</button>
|
|
</div>
|
|
<div id="togglesKey">
|
|
<div>
|
|
<img
|
|
src="images/toggle-disabled.png"
|
|
width="15"
|
|
alt="Disable"
|
|
title="Disable"
|
|
/>
|
|
</div>
|
|
<div>
|
|
<img
|
|
src="images/toggle-redirect.png"
|
|
width="15"
|
|
alt="Automatically redirect to indie wiki"
|
|
title="Automatically redirect to indie wiki"
|
|
/>
|
|
</div>
|
|
<div>
|
|
<img
|
|
src="images/toggle-alert.png"
|
|
width="15"
|
|
alt="Notify of indie wiki with banner"
|
|
title="Notify of indie wiki with banner"
|
|
/>
|
|
</div>
|
|
<div>
|
|
<img
|
|
src="images/toggle-search-filter.png"
|
|
width="15"
|
|
alt="Filter results from search engines"
|
|
title="Filter results from search engines"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div id="toggles"></div>
|
|
<hr />
|
|
<div class="footer">
|
|
Indie wiki alerts: <span id="countAlerts"></span>
|
|
|
|
|
Redirections: <span id="countRedirects"></span>
|
|
|
|
|
Search engine results filtered: <span id="countSearchFilters"></span>
|
|
</div>
|
|
</body>
|
|
<script type="text/javascript" src="popup.js"></script>
|
|
</html>
|