Deployed the page to Github Pages.

This commit is contained in:
Batuhan Berk Başoğlu 2024-11-03 21:30:09 -05:00
parent 1d79754e93
commit 2c89899458
Signed by: batuhan-basoglu
SSH key fingerprint: SHA256:kEsnuHX+qbwhxSAXPUQ4ox535wFHu/hIRaa53FzxRpo
62797 changed files with 6551425 additions and 15279 deletions

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page 1</title>
<p>The <code>next</code> query param must be the URL for the next page to
link to.
<script>
var match = document.location.search.match(/next=(.*)/);
if (match && match.length == 2) {
var next = decodeURIComponent(match[1]);
var link = document.createElement('a');
link.innerText = 'Next!';
link.textContent = 'Next!';
link.id = 'next';
link.href = next + '?next=' + encodeURIComponent(
'http://' + document.location.host +
document.location.pathname.replace('page1.html', 'page3.html'));
document.body.appendChild(link);
}
</script>

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page 2</title>
This page is a middle man for referrer tests.
This page will include a link to a "next" page if the <code>next</code> query
parameter, or the <code>document.referrer</code> is set.
<p><input type="button" id="forward" value="Forward" onclick="history.go(1)"/>
<script>
var match = document.location.search.match(/next=(.*)/);
var next = document.referrer || '';
if (match && match.length == 2) {
next = decodeURIComponent(match[1]);
}
if (next) {
var link = document.createElement('a');
link.innerText = 'Next!';
link.textContent = 'Next!';
link.id = 'next';
link.href = next;
document.body.appendChild(link);
}
</script>

View file

@ -0,0 +1,5 @@
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page 3</title>
<p><input type="button" id="back" value="Back" onclick="history.go(-1)"/>