aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck ⭐ <nekostarfan@gmail.com>2021-10-15 18:38:31 +0000
committerMinteck ⭐ <nekostarfan@gmail.com>2021-10-15 18:38:31 +0000
commit8527d4af59916bb2892431788647b46a921bfcf2 (patch)
treee2f90f0a3389df96f6afe7eab15160568a5abfbc
parent9564f06eaf79b97aab66e09fd84252255480c76e (diff)
downloadwebring-8527d4af59916bb2892431788647b46a921bfcf2.tar.gz
webring-8527d4af59916bb2892431788647b46a921bfcf2.tar.bz2
webring-8527d4af59916bb2892431788647b46a921bfcf2.zip
Update 'FtechWebring.client.js'
-rw-r--r--FtechWebring.client.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/FtechWebring.client.js b/FtechWebring.client.js
index 05dd72b..c8b839b 100644
--- a/FtechWebring.client.js
+++ b/FtechWebring.client.js
@@ -50,15 +50,16 @@ function _ftww_processData(raw) {
next = sites[0]["url"]; // If this is the last site, roll out to the first one
}
- document.write("<ftww-base><ftww-title>Ftech webring</ftww-title><ftww-description>This is<a href=\""+sites[thisSite]["url"]+"\">"+sites[thisSite]["name"]+"</a>, owned by "+sites[thisSite]["owner"]+". This website is part of the Ftech webring.</ftww-description><ftww-actions>");
+ dom = "<ftww-base><ftww-title>Ftech webring</ftww-title><ftww-description>This is<a href=\""+sites[thisSite]["url"]+"\">"+sites[thisSite]["name"]+"</a>, owned by "+sites[thisSite]["owner"]+". This website is part of the Ftech webring.</ftww-description><ftww-actions>";
- if (previous !== null) document.write("<a href=\""+previous+"\" target='_blank'>[Prev]</a>\n");
- if (previous === null) document.write("<ftww-disabled>[You're on the first site]</ftww-disabled>\n");
- if (next !== null) document.write("<a href=\""+next+"\" target='_blank'>[Next]</a>\n");
- if (next === null) document.write("<ftww-disabled>[You're on the last site]</ftww-disabled>\n");
- if (random !== null) document.write("<a href=\""+random+"\" target='_blank'>[Random]</a>\n");
+ if (previous !== null) dom = dom + "<a href=\""+previous+"\" target='_blank'>[Prev]</a>\n";
+ if (previous === null) dom = dom + "<ftww-disabled>[You're on the first site]</ftww-disabled>\n";
+ if (next !== null) dom = dom + "<a href=\""+next+"\" target='_blank'>[Next]</a>\n";
+ if (next === null) dom = dom + "<ftww-disabled>[You're on the last site]</ftww-disabled>\n";
+ if (random !== null) dom = dom + "<a href=\""+random+"\" target='_blank'>[Random]</a>\n";
- document.write("</ftww-actions><ftww-notice>"+sites[thisSite]["owner"]+" is warning you that other websites on the webring have their own policies that may or may not be the same as the policies from "+sites[thisSite]["name"]+".</ftww-notice></ftww-base>");
+ dom = dom + "</ftww-actions><ftww-notice>"+sites[thisSite]["owner"]+" is warning you that other websites on the webring have their own policies that may or may not be the same as the policies from "+sites[thisSite]["name"]+".</ftww-notice></ftww-base>";
+ document.write(dom);
} else {
// We display an error message
document.write("<ftww-base>The content that was supposed to appear here cannot be loaded due to an internal error. Please contact the website administrator.</ftww-base>");