Implement Web Assets' theme system and selection, and add 'light' theme #118

Merged
Márton Lente merged 97 commits from martonlente/extensions-website:ui/theme-light into main 2024-05-08 14:20:07 +02:00
Showing only changes of commit f27fd7678d - Show all commits

View File

@ -1,5 +1,6 @@
// Create function btnBack
function btnBack() {
(function() {
// Create function btnBack
function btnBack() {
const btnBack = document.querySelectorAll('.js-btn-back');
btnBack.forEach(function(item) {
@ -8,10 +9,10 @@ function btnBack() {
window.history.back();
});
});
}
}
// Create finction commentForm
function commentForm() {
// Create finction commentForm
function commentForm() {
const commentForm = document.querySelector('.js-comment-form');
if (!commentForm) {
return;
@ -42,10 +43,10 @@ function commentForm() {
activitySubmitButton.querySelector('span').textContent = verb;
});
}
}
// Create function copyInstallUrl
function copyInstallUrl() {
// Create function copyInstallUrl
function copyInstallUrl() {
function init() {
// Create variables
const btnInstall = document.querySelector('.js-btn-install');
@ -86,14 +87,15 @@ function copyInstallUrl() {
}
init();
}
// Create function init
function init() {
}
// Create function init
function init() {
btnBack();
commentForm();
copyInstallUrl();
}
}
document.addEventListener('DOMContentLoaded', function() {
document.addEventListener('DOMContentLoaded', function() {
init();
});
});
}())