Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Commit Dropdown patch 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Swan AAHS committed Dec 18, 2023
1 parent 02a8a4c commit 691cc24
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions docs/directory.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Credential Manager</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<style>
.dropdown {
Expand All @@ -15,16 +14,16 @@
<body>
<center>
<a href="/">←Back</a><br />
<p>Credential Lister</p>

<h1>Credential Lister</h1>
<br>
<!-- Dropdown button for the first script -->
<button onclick="toggleDropdown('script1')">Creds Master File</button>
<button onload="DropdownSet()" onclick="toggleDropdown('script1')">Creds Master File</button><br>
<div id="script1" class="dropdown">
<script src="https://emgit.luolix.top/embed-v2.js?target=https%3A%2F%2Fgit.luolix.top%2FDamianSwanAAJHS2%2FSillyLittleFiles%2Fblob%2Fmain%2Fsources%2Fcreds.master&style=default&type=code&showLineNumbers=on&showFileMeta=on&showFullPath=on&fetchFromJsDelivr=on"></script>
</div>
<br />
<!-- Dropdown button for the second script -->
<button onclick="toggleDropdown('script2')">Onc Master File</button>
<button onload="DropdownSet()" onclick="toggleDropdown('script2')">Onc Master File</button><br>
<div id="script2" class="dropdown">
<script src="https://emgit.luolix.top/embed-v2.js?target=https%3A%2F%2Fgit.luolix.top%2FDamianSwanAAJHS2%2FSillyLittleFiles%2Fblob%2Fmain%2Fsources%2Fonc.master&style=default&type=code&showLineNumbers=on&showFileMeta=on&showFullPath=on&fetchFromJsDelivr=on"></script>
</div>
Expand All @@ -38,9 +37,9 @@
href="https://github.com/DamianSwanAAJHS2/SillyLittleFiles/new/main/sources"
>Create a new credential file</a
>
<br />
<p>Modify the Master files</p>
:
<br /><br>
<p>Modify the Master files:</p>

<a
href="https://github.com/DamianSwanAAJHS2/SillyLittleFiles/edit/main/sources/creds.master"
>Creds</a
Expand All @@ -49,7 +48,7 @@
href="https://github.com/DamianSwanAAJHS2/SillyLittleFiles/edit/main/sources/onc.master"
>Oncs</a
>
<br />
<br /><br>
<p>
Make sure to add the details to the master files after making individual
files, you will need to make a PR for this as write permissions are not
Expand All @@ -58,14 +57,29 @@
</center>

<script>
var s1 = document.getElementById("script1");
var s2 = document.getElementById("script2");
s1.style.display = "none";
s2.style.display = "none";
console.log("Set visibility to none to prevent dual clicking");

// Function to toggle the visibility of the dropdown
function DropdownSet(){
var s1 = document.getElementById("script1");
var s2 = document.getElementById("script2");
s1.style.display = "none";
s2.style.display = "none";
console.log("Set visibility to none to prevent dual clicking");

}
function toggleDropdown(dropdownId) {
var dropdown = document.getElementById(dropdownId);
if (dropdown.style.display === "none") {
dropdown.style.display = "block";
} else {
dropdown.style.display = "none";
}

}

document.addEventListener("DOMContentLoaded", function () {
Expand Down

0 comments on commit 691cc24

Please sign in to comment.