This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from AreaLayer/Rsync25-patch-40
Session for P2P apps
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |