mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-07-28 22:31:07 +00:00
Remove inline JavaScript
This commit is contained in:
@@ -295,6 +295,7 @@ input#nav-toggle,
|
||||
/* We will make it visible with JavaScript
|
||||
* as it does not work without it */
|
||||
display: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user