1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-01-11 01:25:32 +01:00

Unnecessary file and code removed

This commit is contained in:
nobody 2020-11-15 12:31:18 +01:00
parent 74cc7b20af
commit 48617443d7
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
5 changed files with 5 additions and 58 deletions

View File

@ -12,7 +12,7 @@
<script src="help.js"></script>
</head>
<body>
<img src="../images/logo.svg" alt="Decentraleyes" class="logo"/>
<img src="../images/logo.svg" alt="LocalCDN" class="logo"/>
<div class="container">
<h1>Help</h1>
<div class="notice">

View File

@ -136,7 +136,7 @@ statistics._determineInjections = function () {
sum = 0;
days = 0;
avg = 0;
statistics._dataOverview = [];
statistics._dateRange.forEach(function (entry) {

View File

@ -16,7 +16,7 @@
<link rel="icon" href="../images/favicon.ico" type="image/x-icon">
</head>
<body>
<img src="../images/logo.svg" alt="Decentraleyes" class="logo"/>
<img src="../images/logo.svg" alt="LocalCDN" class="logo"/>
<div class="container">
<h1>Release notes</h1>
<div class="notice">

View File

@ -10,8 +10,7 @@
<link rel="icon" href="../images/favicon.ico" type="image/x-icon">
</head>
<body>
<script src="welcome.js"></script>
<img src="../images/logo.svg" alt="Decentraleyes" class="logo"/>
<img src="../images/logo.svg" alt="LocalCDN" class="logo"/>
<div class="container">
<h1>Hello</h1>
<div class="notice">
@ -25,7 +24,7 @@
<li>AngularJS, AngularJS-Animate, AngularJS-Sanitize, AngularJS-Cookies and AngularJS-Touch</li>
<li>Generator to create rules for your adblocker</li>
</ul>
<a id="donate" class="no-icon">If you like LocalCDN, I would be happy about a small donation.</a>
<a id="donate" class="no-icon" href="../donate/donate.html">If you like LocalCDN, I would be happy about a small donation.</a>
</div>
</div>
<div class="notice">

View File

@ -1,52 +0,0 @@
/**
* Welcome Page
* Belongs to LocalCDN (since 2020-02-26)
* (Origin: Decentraleyes)
*
* @author nobody
* @since 2020-02-27
*
* @license MPL 2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*/
'use strict';
/**
* Welcome
*/
var welcome = {};
/**
* Event Handlers
*/
welcome._onDonationElementClicked = function () {
if (event.button === 0 || event.button === 1) {
chrome.tabs.create({
'url': chrome.extension.getURL('pages/donate/donate.html'),
'active': (event.button === 0)
});
}
if (event.button === 0) {
window.close();
}
};
welcome._onDocumentLoaded = function () {
let donationElement = document.getElementById('donate');
donationElement.addEventListener('mouseup', welcome._onDonationElementClicked);
};
document.addEventListener('DOMContentLoaded', welcome._onDocumentLoaded);