nice update
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -60,3 +60,4 @@ BTCforPlebs Website Videos/Learn-Bitcoin/4.0_Price.html
|
||||
BTCforPlebs Website Videos/Learn-Bitcoin/btcforplebs_opening_video (1080p).html
|
||||
BTCforPlebs Website Videos/Learn-Bitcoin/btcforplebs_opening_video (1080p).mp4
|
||||
BTCforPlebs Website Videos/Learn-Bitcoin/btcforplebs_opening_video (1080p).txt
|
||||
.DS_Store
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Folder Toggle Function
|
||||
function toggleFolder(folderId, buttonId) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
function toggleFolder(folderId, buttonId) {
|
||||
const folder = document.getElementById(folderId);
|
||||
const button = document.getElementById(buttonId);
|
||||
|
||||
@@ -25,7 +26,6 @@ function toggleFolder(folderId, buttonId) {
|
||||
}
|
||||
}
|
||||
|
||||
// Section Navigation Function
|
||||
function navigateToSection(select) {
|
||||
const sectionId = select.value;
|
||||
if (sectionId) {
|
||||
@@ -33,16 +33,16 @@ function navigateToSection(select) {
|
||||
}
|
||||
}
|
||||
|
||||
// Function to prefetch a URL
|
||||
function prefetch(url) {
|
||||
// Function to prefetch a URL
|
||||
function prefetch(url) {
|
||||
const link = document.createElement('link');
|
||||
link.rel = 'prefetch';
|
||||
link.href = url;
|
||||
document.head.appendChild(link);
|
||||
}
|
||||
|
||||
// Add event listeners to your links
|
||||
const links = document.querySelectorAll('a.prefetch');
|
||||
// Add event listeners to your links
|
||||
const links = document.querySelectorAll('a.prefetch');
|
||||
|
||||
links.forEach(link => {
|
||||
link.addEventListener('mouseenter', () => {
|
||||
@@ -51,8 +51,8 @@ links.forEach(link => {
|
||||
});
|
||||
});
|
||||
|
||||
// Footer Loader and Event Listeners
|
||||
fetch('/parts/footer.html')
|
||||
// Footer Loader and Event Listeners
|
||||
fetch('/parts/footer.html')
|
||||
.then(response => response.text())
|
||||
.then(data => {
|
||||
document.getElementById('footer').innerHTML = data;
|
||||
@@ -85,7 +85,6 @@ fetch('/parts/footer.html')
|
||||
})
|
||||
.catch(error => console.error('Error loading footer:', error));
|
||||
|
||||
// Fetch the latest commit information from GitHub
|
||||
fetch('https://api.github.com/repos/btcforplebs/BTCforPlebs.com/commits/main')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
@@ -100,3 +99,7 @@ fetch('/parts/footer.html')
|
||||
console.error('Error fetching last update:', error);
|
||||
document.getElementById('last-updated-text').textContent = 'Last update: Error fetching data.';
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -41,14 +41,18 @@
|
||||
<button class="button" id="bitcoin-folder-btn" onclick="toggleFolder('folder2', 'bitcoin-folder-btn')">Use Bitcoin <span style="color: #F7931A;">↓</span></button>
|
||||
<div class="links" id="folder2">
|
||||
<a href="https://lightning.btcforplebs.com" target="_blank" class="prefetch">Lightning</a>
|
||||
<a href="https://mempool.space" target="_blank" class="prefetch">Mempool</a>
|
||||
<a href="https://kibo.money" target="_blank" class="prefetch">Charts</a>
|
||||
<a href="https://mempool.btcforplebs.com" target="_blank" class="prefetch">Mempool</a>
|
||||
<a href="https://bitview.space/" target="_blank" class="prefetch">Charts</a>
|
||||
</div>
|
||||
|
||||
<button class="button" id="nostr-folder-btn" onclick="toggleFolder('folder1', 'nostr-folder-btn')">Use Nostr <span style="color: #F7931A;">↓</span></button>
|
||||
<div class="links" id="folder1">
|
||||
<a href="https://nostr.btcforplebs.com" target="_blank" class="prefetch">Nostr Client</a>
|
||||
<a href="https://nostrapps.com" target="_blank">More Nostr Apps</a>
|
||||
All apps hosted by BTCforPlebs<br></br>
|
||||
<a href="https://nostrudel.btcforplebs.com" target="_blank" class="prefetch">Nostrudel</a>
|
||||
<a href="https://nosotros.btcforplebs.com" target="_blank" class="prefetch">Nosotros</a>
|
||||
<a href="https://bloom.btcforplebs.com" target="_blank" class="prefetch">Bloom</a>
|
||||
<a href="https://btcforplebs.com/relay" target="_blank" class="prefetch">Relay</a>
|
||||
<a href="https://nostrapps.com" target="_blank">More</a>
|
||||
</div>
|
||||
<button class="button" id="cashu-folder-btn" onclick="toggleFolder('folder3', 'cashu-folder-btn')">Use Cashu <span style="color: #F7931A;">↓</span></button>
|
||||
<div class="links" id="folder3">
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Learn Nostr</title>
|
||||
<script src='https://www.unpkg.com/nostr-login@latest/dist/unpkg.js'></script>
|
||||
|
||||
</head>
|
||||
<!-- 1️⃣ Nostr‑Login library -->
|
||||
<script src="https://www.unpkg.com/nostr-login@latest/dist/unpkg.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="/assets/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- Bitcoin Price Banner -->
|
||||
@@ -26,14 +28,20 @@
|
||||
|
||||
<div class="video-container">
|
||||
<video controls playsinline width="100%" height="auto" poster="https://img.youtube.com/vi/8aZkg3OQc5c/maxresdefault.jpg">
|
||||
<source src="https://player.vimeo.com/progressive_redirect/playback/920597331/rendition/1080p/file.mp4?loc=external&log_user=0&signature=679fc1e260d7c0a66c6cb9f5168b4d117e6cc79c2e895ca6c34723066c912687" type="video/mp4">
|
||||
<source src="https://v.nostr.build/voby1u385n0ZwAbp.mp4" type="video/mp4">
|
||||
Your browser does not support the video tag.
|
||||
</video>
|
||||
</div>
|
||||
|
||||
<a href="/index.html" class="button">Home</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer"></div>
|
||||
|
||||
<!-- 2️⃣ Nostr Tools library -->
|
||||
<script type="module" src="/assets/js/nostr-tools.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user