mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Unnecessary file and code removed
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
<script src="help.js"></script>
|
<script src="help.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<img src="../images/logo.svg" alt="Decentraleyes" class="logo"/>
|
<img src="../images/logo.svg" alt="LocalCDN" class="logo"/>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Help</h1>
|
<h1>Help</h1>
|
||||||
<div class="notice">
|
<div class="notice">
|
||||||
|
@@ -136,7 +136,7 @@ statistics._determineInjections = function () {
|
|||||||
|
|
||||||
sum = 0;
|
sum = 0;
|
||||||
days = 0;
|
days = 0;
|
||||||
avg = 0;
|
|
||||||
statistics._dataOverview = [];
|
statistics._dataOverview = [];
|
||||||
|
|
||||||
statistics._dateRange.forEach(function (entry) {
|
statistics._dateRange.forEach(function (entry) {
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
<link rel="icon" href="../images/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="../images/favicon.ico" type="image/x-icon">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<img src="../images/logo.svg" alt="Decentraleyes" class="logo"/>
|
<img src="../images/logo.svg" alt="LocalCDN" class="logo"/>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Release notes</h1>
|
<h1>Release notes</h1>
|
||||||
<div class="notice">
|
<div class="notice">
|
||||||
|
@@ -10,8 +10,7 @@
|
|||||||
<link rel="icon" href="../images/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="../images/favicon.ico" type="image/x-icon">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script src="welcome.js"></script>
|
<img src="../images/logo.svg" alt="LocalCDN" class="logo"/>
|
||||||
<img src="../images/logo.svg" alt="Decentraleyes" class="logo"/>
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Hello</h1>
|
<h1>Hello</h1>
|
||||||
<div class="notice">
|
<div class="notice">
|
||||||
@@ -25,7 +24,7 @@
|
|||||||
<li>AngularJS, AngularJS-Animate, AngularJS-Sanitize, AngularJS-Cookies and AngularJS-Touch</li>
|
<li>AngularJS, AngularJS-Animate, AngularJS-Sanitize, AngularJS-Cookies and AngularJS-Touch</li>
|
||||||
<li>Generator to create rules for your adblocker</li>
|
<li>Generator to create rules for your adblocker</li>
|
||||||
</ul>
|
</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>
|
</div>
|
||||||
<div class="notice">
|
<div class="notice">
|
||||||
|
@@ -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);
|
|
Reference in New Issue
Block a user