diff options
-rw-r--r-- | FtechWebring.client.js | 15 |
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>"); |