convert http://astroport into / URL (keeps the actual http gateway in use)
This commit is contained in:
parent
47671bbd21
commit
e21fca1d07
|
@ -1,52 +1,52 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>${TITLE} in Astroport</title>
|
<title>${TITLE} in Astroport</title>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="Refresh" content="7;URL=http://astroport/ipns/${IPNSLINK}/${G1PUB}/">
|
<meta http-equiv="Refresh" content="7;URL=/ipns/${IPNSLINK}/${G1PUB}/">
|
||||||
<link rel='stylesheet' href='/styles/astroport/style.css' type='text/css' />
|
<link rel='stylesheet' href='/styles/astroport/style.css' type='text/css' />
|
||||||
<link rel='icon' type='image/png' href='/styles/astroport/logo.png' />
|
<link rel='icon' type='image/png' href='/styles/astroport/logo.png' />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<h6>
|
<h6>
|
||||||
<a href='/'><span>ASTROPORT</span> <q>${XZUID}</q></a>
|
<a href='/'><span>ASTROPORT</span> <q>${XZUID}</q></a>
|
||||||
</h6>
|
</h6>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
<article>
|
<article>
|
||||||
|
|
||||||
<h1>${TITLE}</h1>
|
<h1>${TITLE}</h1>
|
||||||
|
|
||||||
<p>Lancement de la video dans 7 secondes...</p>
|
<p>Lancement de la video dans 7 secondes...</p>
|
||||||
|
|
||||||
<p class="pubkey-and-copy-button">
|
<p class="pubkey-and-copy-button">
|
||||||
Ce fichier vous est servi par une station amie. Faites lui un don pour la remercier :
|
Ce fichier vous est servi par une station amie. Faites lui un don pour la remercier :
|
||||||
<input type="text" id="pubkey" readonly value="${G1PUB}" />
|
<input type="text" id="pubkey" readonly value="${G1PUB}" />
|
||||||
<button id="copy">Tip !</button>
|
<button id="copy">Tip !</button>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p id="successMsg">
|
<p id="successMsg">
|
||||||
La clef de la station amie est maintenant copiée dans le presse-papier. Vous pouvez la coller dans le client Ğ1 de votre choix (Cesium par exemple) afin de faire votre don 😉
|
La clef de la station amie est maintenant copiée dans le presse-papier. Vous pouvez la coller dans le client Ğ1 de votre choix (Cesium par exemple) afin de faire votre don 😉
|
||||||
</p>
|
</p>
|
||||||
<script>
|
<script>
|
||||||
function copy() {
|
function copy() {
|
||||||
|
|
||||||
var copyText = document.querySelector("input#pubkey");
|
var copyText = document.querySelector("input#pubkey");
|
||||||
copyText.select();
|
copyText.select();
|
||||||
document.execCommand("copy");
|
document.execCommand("copy");
|
||||||
|
|
||||||
var successMsg = document.querySelector("#successMsg");
|
var successMsg = document.querySelector("#successMsg");
|
||||||
successMsg.style.opacity = "1";
|
successMsg.style.opacity = "1";
|
||||||
|
|
||||||
var copyButton = document.querySelector("button#copy");
|
var copyButton = document.querySelector("button#copy");
|
||||||
copyButton.style.animation = "none";
|
copyButton.style.animation = "none";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
document.querySelector("button#copy").addEventListener("click", copy);
|
document.querySelector("button#copy").addEventListener("click", copy);
|
||||||
</script>
|
</script>
|
||||||
</article>
|
</article>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,29 +1,29 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>${TITLE} in Astroport</title>
|
<title>${TITLE} in Astroport</title>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<link rel='stylesheet' href='/styles/astroport/style.css' type='text/css' />
|
<link rel='stylesheet' href='/styles/astroport/style.css' type='text/css' />
|
||||||
<link rel='icon' type='image/png' href='/styles/astroport/logo.png' />
|
<link rel='icon' type='image/png' href='/styles/astroport/logo.png' />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<h6>
|
<h6>
|
||||||
<a href='http://astroport/'><span>ASTROPORT</span> <q>${XZUID}</q></a>
|
<a href='/'><span>ASTROPORT</span> <q>${XZUID}</q></a>
|
||||||
</h6>
|
</h6>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<article>
|
<article>
|
||||||
<video autoplay="autoplay" controls>
|
<video autoplay="autoplay" controls>
|
||||||
<source src="/ipfs/${IPFSREPFILEID}/${URLENCODE_FILE_NAME}">
|
<source src="/ipfs/${IPFSREPFILEID}/${URLENCODE_FILE_NAME}">
|
||||||
<a href="/ipfs/${IPFSREPFILEID}/${URLENCODE_FILE_NAME}">${TITLE}</a>
|
<a href="/ipfs/${IPFSREPFILEID}/${URLENCODE_FILE_NAME}">${TITLE}</a>
|
||||||
</video>
|
</video>
|
||||||
|
|
||||||
<h1 class="video-title">
|
<h1 class="video-title">
|
||||||
${TITLE}
|
${TITLE}
|
||||||
</h1>
|
</h1>
|
||||||
</article>
|
</article>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue