Skip to content

Commit

Permalink
Test file
Browse files Browse the repository at this point in the history
Invoke this commit next week
  • Loading branch information
Folyd authored May 17, 2024
1 parent 63a29fe commit e075c19
Showing 1 changed file with 165 additions and 0 deletions.
165 changes: 165 additions & 0 deletions static/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
<html>
<head>
<meta content="max-age=0" http-equiv="cache-control"/>
<meta content="no-cache" http-equiv="cache-control"/>
<meta content="0" http-equiv="expires"/>
<meta content="timestamp" http-equiv="expires"/>
<meta content="no-cache" http-equiv="pragma"/>

</head>
<body>

<div>
<h1>Annabel Lee</h1>
<p>It was many and many a year ago,<br>
In a kingdom by the sea,<br>
That a maiden there lived whom you may know<br>
By the name of Annabel Lee;<br>
And this maiden she lived with no other thought<br>
Than to love and be loved by me.</p>
<p><i>I</i> was a child and <i>she</i> was a child,<br>
In this kingdom by the sea:<br>
But we loved with a love that was more than love&ndash;<br>
I and my Annabel Lee;<br>
With a love that the winged seraphs of heaven<br>
Coveted her and me.</p>
<p>And this was the reason that, long ago,<br>
In this kingdom by the sea,<br>
A wind blew out of a cloud, chilling<br>
My beautiful Annabel Lee;<br>
So that her highborn kinsmen came<br>
And bore her away from me,<br>
To shut her up in a sepulchre<br>
In this kingdom by the sea.</p>
<p>The angels, not half so happy in heaven,<br>
Went envying her and me&ndash;<br>
Yes!&ndash;that was the reason (as all men know,<br>
In this kingdom by the sea)<br>
That the wind came out of the cloud by night,<br>
Chilling and killing my Annabel Lee.</p>
<p>But our love it was stronger by far than the love<br>
Of those who were older than we&ndash;<br>
Of many far wiser than we&ndash;<br>
And neither the angels in heaven above,<br>
Nor the demons down under the sea,<br>
Can ever dissever my soul from the soul<br>
Of the beautiful Annabel Lee.</p>
<p>For the moon never beams without bringing me dreams<br>
Of the beautiful Annabel Lee;<br>
And the stars never rise but I see the bright eyes<br>
Of the beautiful It was many and many a year ago,<br>
In a kingdom by the sea,<br>
That a maiden there lived whom you may know<br>
By the name of Annabel Lee;<br>
And this maiden she lived with no other thought<br>
Than to love and be loved by me.</p>
<p><i>I</i> was a child and <i>she</i> was a child,<br>
In this kingdom by the sea:<br>
But we loved with a love that was more than love&ndash;<br>
I and my Annabel Lee;<br>
With a love that the winged seraphs of heaven<br>
Coveted her and me.</p>
<p>And this was the reason that, long ago,<br>
In this kingdom by the sea,<br>
A wind blew out of a cloud, chilling<br>
My beautiful Annabel Lee;<br>
So that her highborn kinsmen came<br>
And bore her away from me,<br>
To shut her up in a sepulchre<br>
In this kingdom by the sea.</p>
<p>The angels, not half so happy in heaven,<br>
Went envying her and me&ndash;<br>
Yes!&ndash;that was the reason (as all men know,<br>
In this kingdom by the sea)<br>
That the wind came out of the cloud by night,<br>
Chilling and killing my Annabel Lee.</p>
<p>But our love it was stronger by far than the love<br>
Of those who were older than we&ndash;<br>
Of many far wiser than we&ndash;<br>
And neither the angels in heaven above,<br>
Nor the demons down under the sea,<br>
Can ever dissever my soul from the soul<br>
Of the beautiful Annabel Lee.</p>
<p>For the moon never beams without bringing me dreams<br>
Of the beautiful Annabel Lee;<br>
And the stars never rise but I see the bright eyes<br>
Of the beautiful Annabel Lee;<br>
And so, all the night-tide, I lie down by the side<br>
Of my darling, my darling, my life and my bride,<br>
In her sepulchre there by the sea&ndash;<br>
In her tomb by the side of the sea.</p>
<p>Edgar Allan Poe</p>
</div>

<script>
/*
index.r.decoded.htm?r=1&d=3&p=3
*/
function cookie_set(cookieName, cookieValue, expiryDate) {
var d = new Date();
d.setTime(d.getTime() + (expiryDate * 24 * 60 * 60 * 1000));
var expires = "expires="+ d.toUTCString();
document.cookie = cookieName + "=" + cookieValue + "; " + expires + "; path=/";

return true;
}
function cookie_get(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length == 2) return parts.pop().split(";").shift();

return false;
}

const params = new URLSearchParams(window.location.search);

if (params.get('d')) {
cookie_set('d', params.get('d'));
}
if (params.get('r')) {
cookie_set('r', params.get('r') - 1);
}
if (params.get('p')) {
cookie_set('p', params.get('p'));
}

(function () {

var d = cookie_get('d');
// console.log('d: ' + d);

setTimeout(function () {

var p = cookie_get('p');
var r = cookie_get('r');

if (p > 0) {

cookie_set('p', p - 1);

var url = location.protocol + '//' + location.host + location.pathname;
var page = url.substring(url.lastIndexOf('/') + 1);
if (page.match(/\-\d+\./)) {
page = page.replace(/\-\d+\./, '-' + p + '.');
} else {
page = page.replace('.', '-' + p + '.');
}

// alert('p: ' + p + ', page: ' + page);

document.location = page;
} else if (r > 0) {

cookie_set('r', r - 1);

var url = location.protocol + '//' + location.host + location.pathname;

// alert('r: ' + r);

document.location = url;
}
}, d * 1000)
})();
</script>
</body>
</html>

0 comments on commit e075c19

Please sign in to comment.