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

Commit

Permalink
Merge pull request #209 from AreaLayer/Rsync25-patch-40
Browse files Browse the repository at this point in the history
Session for P2P apps
  • Loading branch information
22388o authored Nov 15, 2023
2 parents 583f495 + 33fb3b8 commit 871f224
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions app/pages/buy_bitcoin.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<title>P2P Apps</title>
</head>
<body>
<h1>Buy your Bitcoin with P2P apps</h1>

<ul id="p2pAppList">
<!-- You can add your P2P application links here -->
<li><a href="#" target="_blank">P2P App 1</a></li>
<li><a href="#" target="_blank">P2P App 2</a></li>
<li><a href="#" target="_blank">P2P App 3</a></li>
</ul>

<h2>Add a P2P Application</h2>
<form id="addAppForm">
<label for="appName">Application Name:</label>
<input type="text" id="appName" required>
<label for="appLink">Application Link:</label>
<input type="url" id="appLink" required>
<button type="button" id="addAppButton">Add</button>
</form>

<script>
// JavaScript code to add P2P applications dynamically
document.getElementById('addAppButton').addEventListener('click', function () {
const appName = document.getElementById('appName').value;
const appLink = document.getElementById('appLink').value;

if (appName && appLink) {
const p2pAppList = document.getElementById('p2pAppList');
const newAppItem = document.createElement('li');
newAppItem.innerHTML = `<a href="${appLink}" target="_blank">${appName}</a>`;
p2pAppList.appendChild(newAppItem);

document.getElementById('appName').value = '';
document.getElementById('appLink').value = '';
}
});
</script>
</body>
</html>

0 comments on commit 871f224

Please sign in to comment.