mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-06-08 14:52:49 -04:00
Remove inline JavaScript
This commit is contained in:
parent
2878062adb
commit
696dbed418
7 changed files with 47 additions and 41 deletions
|
@ -1,6 +1,10 @@
|
|||
$(function() {
|
||||
$("[data-toggle='tooltip']").tooltip();
|
||||
});
|
||||
document.querySelectorAll(".onclick-select").forEach(element => {
|
||||
element.addEventListener("click", element.select);
|
||||
});
|
||||
|
||||
|
||||
// Navbar dropdowns
|
||||
const navSections = document.querySelectorAll(".nav-details");
|
||||
|
@ -30,6 +34,7 @@ function navSectionsClose(event) {
|
|||
|
||||
// Dark/Light color scheme switch button
|
||||
document.querySelector("#nav-switch-theme").style.display = "inline";
|
||||
document.querySelector("#nav-switch-theme").addEventListener("click", changeColorScheme);
|
||||
|
||||
function changeColorScheme() {
|
||||
// Use whatever users want
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue