Implement Web Assets' theme system and selection, and add 'light' theme #118
@ -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();
|
||||
});
|
||||
});
|
||||
}())
|
||||
|
Loading…
Reference in New Issue
Block a user