1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-23 00:25:15 +01:00

Welcome page optimized

This commit is contained in:
nobody 2021-04-05 07:43:53 +02:00
parent 3de66b7d55
commit 79c7094f1f
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
3 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,4 @@
form { button {
text-align: center; display: block;
margin: 0 auto;
} }

View File

@ -28,9 +28,7 @@
<li><strong>Block requests for missing resources:</strong> If a website requests an external resource that LocalCDN cannot deliver, this resource will be loaded from a CDN. For maximum privacy, you can disable this in the settings.</li> <li><strong>Block requests for missing resources:</strong> If a website requests an external resource that LocalCDN cannot deliver, this resource will be loaded from a CDN. For maximum privacy, you can disable this in the settings.</li>
<li><strong>Google fonts are blocked by default:</strong> If you want to load these external fonts from Google for all websites or only for certain websites, you can also change this in the settings.</li> <li><strong>Google fonts are blocked by default:</strong> If you want to load these external fonts from Google for all websites or only for certain websites, you can also change this in the settings.</li>
</ul> </ul>
<form action="../options/options.html"> <button id="open-settings">Open settings</button>
<input type="submit" value="Open settings" />
</form>
</div> </div>
<div class="btn-panel"> <div class="btn-panel">
<a class="btn btn-gitlab" href="https://codeberg.org/nobody/LocalCDN" target="_blank" rel="noopener noreferrer"><span class="btn-text">Source Code @Codeberg</span></a> <a class="btn btn-gitlab" href="https://codeberg.org/nobody/LocalCDN" target="_blank" rel="noopener noreferrer"><span class="btn-text">Source Code @Codeberg</span></a>

View File

@ -30,6 +30,7 @@ welcome._onDocumentLoaded = function () {
if (!BrowserType.FIREFOX) { if (!BrowserType.FIREFOX) {
document.getElementById('chromium-banner').style.display = 'block'; document.getElementById('chromium-banner').style.display = 'block';
} }
document.getElementById('open-settings').addEventListener('mouseup', function () { chrome.runtime.openOptionsPage(); });
}; };
document.addEventListener('DOMContentLoaded', welcome._onDocumentLoaded); document.addEventListener('DOMContentLoaded', welcome._onDocumentLoaded);