1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Further UI improvements

This commit is contained in:
nobody
2020-06-28 14:59:07 +02:00
parent 3aaadfab1b
commit b654b865c9
9 changed files with 318 additions and 6 deletions

View File

@@ -82,6 +82,9 @@ options._renderOptionsPanel = function () {
document.getElementById('last-mapping-update').textContent += ' ' + lastMappingUpdate;
document.getElementById('negate-html-filter-list-warning').addEventListener('click', options._onClickHTMLFilterWarning);
document.getElementById('link-welcome-page').addEventListener('click', options._onClickWelcomePage);
document.getElementById('link-changelog').addEventListener('click', options._onClickChangelog);
document.getElementById('link-donate').addEventListener('click', options._onClickDonate);
};
options._renderBlockMissingNotice = function () {
@@ -313,6 +316,27 @@ options._onClickHTMLFilterWarning = function() {
});
}
options._onClickWelcomePage = function() {
chrome.tabs.create({
'url': chrome.extension.getURL('pages/welcome/welcome.html'),
'active': true
});
}
options._onClickDonate = function() {
chrome.tabs.create({
'url': chrome.extension.getURL('pages/donate/donate.html'),
'active': true
});
}
options._onClickChangelog = function() {
chrome.tabs.create({
'url': chrome.extension.getURL('pages/updates/updates.html'),
'active': true
});
}
/**
* Initializations
*/