scripts.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /* s. .s5SSSSs.
  2. SS. .s5SSSs. .s5SSSs. SSS .s5SSSs. .s s. .s5SSSs. .s5SSSs.
  3. sSs. S%S SS. SS. sSS SS. SS. SS. SS.
  4. SS`S. S%S sS `:; sS S%S sSS sS S%S sSs. S%S sS `:; sS `:;
  5. SS `S.S%S SSSs. SS S%S sSS SS S%S SS `S.S%S SSSs. `:;;;;.
  6. SS `sS%S SS SS S%S sSS SS S%S SS `sS%S SS ;;.
  7. SS `:; SS SS `:; sSS SS `:; SS `:; SS `:;
  8. SS ;,. SS ;,. SS ;,. sSS SS ;,. SS ;,. SS ;,. .,; ;,.
  9. :; ;:' `:;;;;;:' `:;;;;;:' `:;;;;;:' `:;;;;;:' :; ;:' `:;;;;;:' `:;;;;;:'
  10. Owly * Nekojiru * Evan * Bytemoth * Pizza Squeeze * Hexo * Spoopz
  11. Master JS File of Maximum Dynamicness 2019.12.13
  12. SCROLLING TEXT
  13. The scrolling text will appear just below the main banner, scrolling from
  14. left to right. If you want to add a new text announcement, make the last
  15. one not appear by adding the "//", making sure on the new one you add your
  16. name and when it was added, using the YYYY-MM-DD format.
  17. If you try and add emojis or non-ASCII characters, then it simply won't
  18. work because God hates you. If you intend to add emojis or non-ASCII
  19. characters, then you might like to checkout HTML entity encoder/decoder;
  20. https://mothereff.in/html-entities
  21. Also HTML simply won't work, so you will be unable to add links
  22. (<a href="https://example.com">piss</a>) and anything else, so sorry, Gov. */
  23. document.write("<marquee scrollamount=2 scrolldelay=16 truespeed>"
  24. +"NeoZones: We're back, baby!" // Owly 2020-02-02
  25. //+"Thank you and goodbye." // Owly 2020-01-31
  26. //+"Peace, prosperity and friendship with all nations!" // Owly 2020-01-30
  27. //+"Welcome to NeoZones, I guess... idk..." // Owly 2020-01-03
  28. //+"2020 here we come B^)" // Owly 2019-12-28
  29. //+"&#x2744;&#xFE0F; Happy Christmas everyone, from everyone at NeoZones! Ho, ho, bloody ho. . . &#x1F384;" // Owly 2019-12-17
  30. //+"The new and sexy AcidJaw is out, check it out or die &#x1F52A;" // Owly 2019-12-09
  31. //+"NeoZones version 2.1 is now fully out, bitchies, a big THNAK YOU to Bytemoth, who now has his own site on here!" // Owly 2019-11-25
  32. //+"Help us at NeoZones as we invade mainland Poland! ... wait... Britain and France declared what?" // Owly 2019-11-14
  33. //+"Welcome to NeoZones, please don't drink the water." // Owly 2019-11-06
  34. //+"Happy Bonfire Night to all of our brothers and sisters in the UK, remember to stay safe! &#x1F386;" // Owly 2019-11-05
  35. //+"Welcome to NeoZones, home of some weird people" // Owly 2019-11-02
  36. //+"2019-10-31: Happy Halloween from everyone at NeoZones &#x1F383;" // Owly
  37. //+"OH YEAAAAH NEW DESIGN!! lml &bull; Last update: 2019-10-29" // TEH LEROY
  38. +"</marquee>");
  39. /* HTML LAYOUT INJECTION */
  40. document.getElementsByTagName('body')[0].className='js';
  41. //stackoverflow.com/a/3535356
  42. function piss(filer){
  43. var xhr=new XMLHttpRequest();xhr.open('GET','/'+filer+'.html',true);
  44. xhr.onreadystatechange=function(){if(this.readyState!==4) return;
  45. if(this.status!==200) return;
  46. document.getElementById(filer).innerHTML=this.responseText;};xhr.send();}
  47. piss('left');piss('footer');
  48. /* STATUS BAR TEXT SCROLLER
  49. So for the people who do not know what the following JavaScript does, here
  50. is a breakdown; In older browsers such as Netscape and even in SeaMonkey
  51. and Pale Moon, there is a status bar at the bottom of the page, the function
  52. of this bar differs from browser to browser, but what most of them have in
  53. common is that, if the option is put in place, then they will show a custom
  54. message that will scroll from right to left, in this case, the message will
  55. read "NeoZones: Because Why Not?" Here is a screenshot of the scrollbar in action:
  56. https://neozones.neocities.org/common/why_not.png */
  57. var MessageText="NeoZones: Because Why Not?";
  58. var DisplayLength=130;var pos=1-DisplayLength;function ScrollInStatusBar(){
  59. var scroll="";pos++;if(pos==MessageText.length)pos=1-DisplayLength;if(pos<0){
  60. for(var i=1;i<=Math.abs(pos);i++)scroll=scroll+" ";
  61. scroll=scroll+MessageText.substring(0,DisplayLength-i+1);}else
  62. scroll=scroll+MessageText.substring(pos,pos+DisplayLength);window.status=scroll;
  63. setTimeout("ScrollInStatusBar()",50);}ScrollInStatusBar();
  64. /* LACK-OF-ADBLOCK DETECTOR (Turned off)
  65. To quote the website for this CSS, https://adblockbar.neocities.org, the
  66. "Ad Block Bar appears on your web site if a visitor is not using an ad
  67. blocker, and prompts them to install one", and it certainly is a good idea
  68. on paper, but this just doesn't seem to work correctly, so we disabled it
  69. for a number of reasons, such as it being broken on mobile, appearing for
  70. a user despite them already having an adblocker, and also it not mating
  71. the over-all colour seam of the site (i.e. purple).
  72. So if you can fix all three issues, then feel free to correct the
  73. following code and knock yourself out!
  74. Code can be found here: https://adblockbar.neocities.org/adblockbar-donthotlink.js
  75. Go nuts. */