HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div id="quiz">
<h1> Geocities quiz</h1>
<div id="questions">Are you ready to start the quiz?</div>
<ul id="answers">
</ul>
<div style="clear: both"></div>
<button id="button" class="button">Start quiz</button>
</div>
<div id="results">
<h1>Welcome to my site!!</h1>
<p><a>Link 1</a><a>Link 1</a><a>Link 1</a></p>
<p>Hi!! This is my website for all things <span id="topScore"></span>!!!!</p>
<div id="img1"></div>
<div id="img2"></div>
<div id="img3"></div>
<div style="clear:both;"></div>
<div id="affiliate1"></div>
<div id="affiliate2"></div>
<div id="affiliate3"></div>
<p><a href="javascript:window.location.href=window.location.href">Restart quiz</a></p>
</div>
<div id="error">
<p>There was an error. Please try again</p>
</div>
html {
height: 100%;
}
body {
height: 100%;
margin: 0;
background-repeat: no-repeat;
background-attachment: fixed;
background: #91c1d1;
background: -moz-linear-gradient(top, #91c1d1 0%, #91d1c1 99%);
background: -webkit-linear-gradient(top, #91c1d1 0%, #91d1c1 99%);
background: linear-gradient(to bottom, #91c1d1 0%, #91d1c1 99%);
filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr="#91c1d1",
endColorstr="#91d1c1",
GradientType=0
);
text-align: center;
color: #fff;
}
h1 {
font-family: 'Karla', "Comic Sans MS", "Comic Sans", sans-serif;
letter-spacing: 2px;
text-transform: uppercase;
font-size: 3em;
}
#quiz {
font-family: 'Karla', "Comic Sans MS", "Comic Sans", sans-serif;
width: 800px;
margin: auto;
}
#questions {
font-size: 1.3em;
}
#answers {
list-style-type: none;
margin: 25px 0 0 0;
padding: 10px;
text-transform: uppercase;
letter-spacing: 2px;
text-align: center;
margin-left: 77.5px;
}
#answers li {
float: left;
/*margin:0 5px 0 0;*/
margin: 0px 15px 15px 0px;
width: 200px;
height: 50px;
position: relative;
}
#answers label, #answers input {
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
#answers input[type="radio"] {
opacity: 0.011;
z-index: 100;
}
#answers input[type="radio"]:checked + label {
opacity: 1;
}
#answers label {
padding: 5px;
border: 2px solid #fff;
cursor: pointer;
z-index: 90;
opacity: 0.7;
transition: opacity 0.2s linear;
}
#answers label:hover {
opacity: 1;
}
.button {
border: 2px solid #fff;
margin: 0.5em;
padding: 0.5em;
display: inline-block;
background-color: transparent;
text-transform: uppercase;
padding: 10px;
color: #fff;
}
.button:hover {
cursor: pointer;
}
#results {
display: none;
}
#error {
display: none;
}
/*GEOCITIES WEBPAGE STYLES */
/* Cute styles */
.cute {
font-family: "Comic Sans MS", "Comic Sans";
font-size: 1.4em;
text-align: center;
color: purple;
cursor: url(https://web.archive.org/web/20090830074921/http://www.geocities.com/anneli1970/hkanicursor.gif), auto;
}
.cute h1 {
font-size: 2em;
animation: blinker 0.5s linear infinite;
font-family: "Comic Sans MS", "Comic Sans";
}
@keyframes blinker {
50% {
opacity: 0;
}
}
.cute a {
color: yellow;
margin: 0 10px 0 20px;
}
.cute a:hover {
background-color: aqua;
cursor: url(https://web.archive.org/web/20090830074921/http://www.geocities.com/anneli1970/hkanicursor.gif), auto;
}
.cute a:before {
content: url('https://web.archive.org/web/20091027073252/http://hk.geocities.com/misslailai/flower.gif');
margin-right: 10px;
}
.cute div[id^='img'] {
border: solid purple;
margin-right: 10px;
width: 200px;
display: inline-block;
}
.cute #img1 {
content: url('http://dl.glitter-graphics.com/pub/1934/1934264i6w66ik04q.gif');
}
.cute #img2 {
content: url('http://dl.glitter-graphics.com/pub/1824/1824008hb6rav153p.gif');
}
.cute #img3 {
content: url('http://www.commentsyard.com/cy/01/8602_original.gif');
}
.cute div[id^='affiliate'] {
border: solid purple;
width: 100px;
margin-right: -10px;
display: inline-block;
}
.cute #affiliate1 {
content: url('https://web.archive.org/web/20031121213718/http://www.geocities.com/neoasparagus/img/affiliate_neonations.gif');
}
.cute #affiliate2 {
content: url('https://web.archive.org/web/20091027155351/http://www.geocities.com/lucious_kitty150/button1affiliate.gif');
}
.cute #affiliate3 {
content: url('https://web.archive.org/web/20090902111758/http://geocities.com/shaina2kaiba/www/affiliates/affiliate05.gif');
}
/* Spooky styles */
.spooky {
font-family: "Special Elite", "Comic Sans MS", "Comic Sans", sans-serif;
font-size: 1.4em;
text-align: center;
color: red;
}
.spooky h1 {
font-size: 2em;
animation: blinker 0.5s linear infinite;
font-family: "Special Elite", "Comic Sans MS", "Comic Sans", sans-serif;
}
@keyframes blinker {
50% {
opacity: 0;
}
}
.spooky a {
color: darkgrey;
margin: 0 10px 0 20px;
}
.spooky a:hover {
background-color: maroon;
cursor: url(https://web.archive.org/web/20091026222418/http://www.geocities.com/evil_empire_uo/demon.gif), auto;
}
.spooky a:before {
content: url('https://web.archive.org/web/20091023163201/http://geocities.com/warhawkuac/doom/doomskullcursor.gif');
margin-right: 10px;
}
.spooky div[id^='img'] {
margin-right: 10px;
width: 200px;
display: inline-block;
}
.spooky #img1 {
content: url('https://web.archive.org/web/20070223045858/http://www.geocities.com/homer3142/scripts/pics/skull.gif');
}
.spooky #img2 {
content: url('https://web.archive.org/web/20090727160436/http://www.geocities.com/dr_tigger/smoking-skull.gif');
}
.spooky #img3 {
content: url('https://web.archive.org/web/20090729141621/http://www.geocities.com/inhell_2000/spookymail.gif');
}
.spooky div[id^='affiliate'] {
width: 100px;
margin-right: -10px;
display: inline-block;
border: red solid;
}
.spooky #affiliate1 {
content: url('https://web.archive.org/web/20091024005344/http://www.geocities.com/TelevisionCity/Lot/9355/MainPics/Banners/Affiliate3.gif');
}
.spooky #affiliate2 {
content: url('https://web.archive.org/web/20091026023913/http://www.geocities.com/sk8ter_213/Metabolic666Affiliate.gif');
}
.spooky #affiliate3 {
content: url('https://web.archive.org/web/20031102202836/http://www.geocities.com:80/prophets_band/affiliate_slipknot.gif');
}
/* lame styles */
.lame {
font-family: "Comic Sans MS", "Comic Sans";
font-size: 1.4em;
text-align: center;
color: blue;
}
.lame h1 {
font-size: 2em;
animation: blinker 0.5s linear infinite;
font-family:;
}
@keyframes blinker {
50% {
opacity: 0;
}
}
.lame a {
color: darkorange;
margin: 0 10px 0 20px;
}
.lame a:hover {
background-color: green;
cursor: url(https://web.archive.org/web/20091027003810/http://ca.geocities.com/EverlastingIllusions/Miscellanous/Cursor9.gif), auto;
}
.lame a:before {
content: url('https://web.archive.org/web/20090829195701/http://geocities.com/Athens/Parthenon/5567/dotdance.gif');
margin-right: 10px;
}
.lame div[id^='img'] {
margin-right: 10px;
width: 200px;
display: inline-block;
}
.lame #img1 {
content: url('https://web.archive.org/web/20090902002737/http://www.geocities.com/redsled59/cursor/punkrocker.gif');
}
.lame #img2 {
content: url('https://web.archive.org/web/20091019070930/http://www.geocities.com/barefootguy2003/Sun_in_glasses.gif');
}
.lame #img3 {
content: url('https://web.archive.org/web/20090808214150/http://www.geocities.com/hinm2/ostrich_glasses_geek_lg_clr.gif');
}
.lame div[id^='affiliate'] {
width: 100px;
margin-right: -10px;
display: inline-block;
}
.lame #affiliate1 {
content: url('https://web.archive.org/web/20091027002720/http://geocities.com/alfatangoindonesia/iemicrosoft.gif');
}
.lame #affiliate2 {
content: url('https://web.archive.org/web/20091020060843/http://geocities.com/FashionAvenue/Runway/5508/images/counter1.gif');
}
.lame #affiliate3 {
content: url('https://web.archive.org/web/20091027051455/http://uk.geocities.com/nomangadit9/email.gif');
}
/* nerdy styles */
.nerdy {
font-family: 'Press Start 2P', "Comic Sans MS", "Comic Sans";
font-size: 1.4em;
text-align: center;
color: lime;
}
.nerdy h1 {
font-size: 2em;
animation: blinker 0.5s linear infinite;
font-family: 'Press Start 2P', "Comic Sans MS", "Comic Sans";
}
@keyframes blinker {
50% {
opacity: 0;
}
}
.nerdy h1 {
font-size: 2em;
animation: blinker 0.5s linear infinite;
}
@keyframes blinker {
50% {
opacity: 0;
}
}
.nerdy a {
color: gold;
margin: 0 10px 0 20px;
}
.nerdy a:hover {
background-color: olive;
cursor: url(https://web.archive.org/web/20090820061156/http://geocities.com/Tokyo/Club/8802/pikacursor.gif), auto;
}
.nerdy a:before {
content: url('https://web.archive.org/web/20091027044054/http://www.geocities.com/wisdomflame/videogame/doomf.gif');
margin-right: 10px;
}
.nerdy div[id^='img'] {
margin-right: 10px;
width: 200px;
display: inline-block;
}
.nerdy #img1 {
content: url('https://web.archive.org/web/20040912040324/http://www.geocities.com:80/nerdpleasure/sub-zero.gif');
}
.nerdy #img2 {
content: url('https://web.archive.org/web/20091024223831/http://www.geocities.com/djbirdnerd/Babydude.gif');
}
.nerdy #img3 {
content: url('https://web.archive.org/web/20090831020812/http://geocities.com/arcadevideogamecentral/Z-ryustomp.gif');
}
.nerdy div[id^='affiliate'] {
width: 100px;
margin-right: -10px;
display: inline-block;
border: cyan solid;
}
.nerdy #affiliate1 {
content: url('https://web.archive.org/web/20090901201725/http://www.geocities.com/legofreak152003/affiliate.gif');
}
.nerdy #affiliate2 {
content: url('https://web.archive.org/web/20091027052649/http://www.geocities.com/felixadept/Affiliate/FFEmini4.gif');
}
.nerdy #affiliate3 {
content: url('https://web.archive.org/web/20090729091254/http://www.geocities.com/smeegle_puff27/Site_Affiliate.gif');
}
/* silly styles */
.silly {
font-family: Jokerman, "Comic Sans MS", "Comic Sans";
font-size: 1.4em;
text-align: center;
color: black;
}
.silly h1 {
font-size: 2em;
animation: blinker 0.5s linear infinite;
font-family: Jokerman, "Comic Sans MS", "Comic Sans";
}
@keyframes blinker {
50% {
opacity: 0;
}
}
.silly a {
color: blueviolet;
margin: 0 10px 0 20px;
}
.silly a:hover {
background-color: darkgoldenrod;
cursor: url(https://web.archive.org/web/20090731114836/http://hk.geocities.com/godofcat/mcmug/cursor1p2.gif), auto;
}
.silly a:before {
content: url('https://web.archive.org/web/20091019163523/http://www.geocities.com/sillyerik/checkit.gif');
margin-right: 10px;
}
.silly div[id^='img'] {
margin-right: 10px;
width: 200px;
display: inline-block;
}
.silly #img1 {
content: url('https://web.archive.org/web/20090728112415/http://uk.geocities.com/swinton_palais/gifs/dancer001.gif');
}
.silly #img2 {
content: url('https://web.archive.org/web/20090728052455/http://es.geocities.com/cursetaragones/Dancer-01.gif');
}
.silly #img3 {
content: url('https://web.archive.org/web/20091027162247/http://www.geocities.com/ray_spiderman_land/images/spider_ani006.gif');
}
.silly div[id^='affiliate'] {
width: 100px;
margin-right: -10px;
display: inline-block;
}
.silly #affiliate1 {
content: url('https://web.archive.org/web/20091020023540/http://geocities.com/CapitolHill/Lobby/7287/dance.gif');
}
.silly #affiliate2 {
content: url('https://web.archive.org/web/20091027081958/http://geocities.com/hondacbr929net/1guerillapumping_8363_number_counter.gif');
}
.silly #affiliate3 {
content: url('https://web.archive.org/web/20091020141955/http://geocities.com/Hollywood/Park/3469/counter8.gif');
}
/* cool styles */
.cool {
font-family: 'Bangers', "Comic Sans MS", "Comic Sans";
font-size: 1.4em;
text-align: center;
color: orange;
}
.cool h1 {
font-size: 2em;
animation: blinker 0.5s linear infinite;
font-family: 'Bangers', "Comic Sans MS", "Comic Sans";
}
@keyframes blinker {
50% {
opacity: 0;
}
}
.cool a {
color: lightslategrey;
margin: 0 10px 0 20px;
}
.cool a:hover {
background-color: darkslategray;
cursor: url(https://web.archive.org/web/20091026232535/http://www.geocities.com/john_miles_the_cucumber/arnoldcursorpreview.gif), auto;
}
.cool a:before {
content: url('https://web.archive.org/web/20091027043933/http://us.geocities.com/sakyaputto/cursor.gif');
margin-right: 10px;
}
.cool div[id^='img'] {
margin-right: 10px;
width: 200px;
display: inline-block;
}
.cool #img1 {
content: url('https://web.archive.org/web/20091027044645/http://www.geocities.com/p13_99/simpson/BARTSKATE.GIF');
}
.cool #img2 {
content: url('https://web.archive.org/web/20091027140600/http://www.geocities.com/cristolouw/coolpics/dragon001.gif');
}
.cool #img3 {
content: url('https://web.archive.org/web/20090904032715/http://geocities.com/sophianasa/smiles/bigsunglassessmile.gif');
}
.cool div[id^='affiliate'] {
width: 100px;
margin-right: -10px;
display: inline-block;
border: red solid;
}
.cool #affiliate1 {
content: url('https://web.archive.org/web/20091019080545/http://www.geocities.com/federicobryner/coolllinks.gif');
}
.cool #affiliate2 {
content: url('https://web.archive.org/web/20091027014444/http://www.geocities.com/life_of_boredom/affiliate_delayed.gif');
}
.cool #affiliate3 {
content: url('https://web.archive.org/web/20091020062901/http://www.geocities.com/sayian_rivals/affiliate.gif');
}
/* LIST OF VARIABLES */
var questionState = 0; //Keeps track of users place in quiz
var quizActive = true; //True until last question is answered
var userStats = [
0, //cute
0, //spooky
0, //lame
0, //nerdy
0, //silly
0 //cool
];
var tempStats = userStats; //Holds stat increases relating to user selection
/* QUIZ BUILDING VARIABLES */
//The following array contains all question text elements
var questionText = [
"How did you spend your time in the late 90s/early 00s?", //q1
"It's snack time. What are you eating?", //q2
"What TV show did you most look forward to after school?", //q3
"What toy could you not put down growing up?", //q4
"What did you listen to in the 90s/early 00s?", //q5
"What was your go to computer program at school?" //q6
];
//The following array contains all answer text elements for each question
var answerText = [ //question 1 answers
[ "Playing Neopets",
"Playing Kingdom of Loathing",
"Trolling chatrooms",
"Playing Quake or Doom",
"I didn't have the internet",
"Watching flash videos"],
//question 2 answers
[ "Yowie",
"Curly Wurlys and Chomps",
"Mamee Noodles",
"Fruit",
"Sunnyboys",
"Fruit rollups"],
//question 3 answers
[ "Round the Twist",
"Rugrats",
"Neighbours",
"Are You Afraid of the Dark?",
"Rocko's Modern Life",
"Art Attack"],
//question 4 answers
[ "Cabbage Patch Doll",
"Rubix Cube",
"Slime",
"Hot Wheels",
"Mighty Max/Polly Pocket",
"Tamagotchi"],
//question 5 answers
[ "Spice Girls",
"I didn't listen to music",
"rage",
"Backstreet Boys",
"The sweet sound of dial up",
"So Fresh CDs"],
//question 6 answers
[ "Kid Pix",
"Minesweeper",
"Lemmings",
"Zoombinis",
"Microsoft Paint",
"Pinball"]
]
//The following array contains all personality stat increments for each answer of every question
var answerValues = [ //question 1 answer values
[ [3,0,1,0,2,0],
[0,0,0,1,2,3],
[0,3,0,2,1,0],
[0,2,0,3,0,1],
[2,1,3,0,0,0],
[1,0,2,0,3,0]
],
//question 2 answer values
[ [0,3,0,2,0,1],
[2,0,0,0,3,1],
[0,2,0,0,1,3],
[2,0,3,1,0,0],
[1,0,0,3,2,0],
[3,0,1,0,2,0]
],
//question 3 answer values
[ [0,1,0,0,3,2],
[3,0,2,0,1,0],
[1,0,3,0,2,0],
[0,3,0,1,2,0],
[0,0,0,2,1,3],
[0,0,0,3,1,2]
],
//question 4 answer values
[ [2,0,3,0,1,0],
[0,1,0,3,0,2],
[0,3,2,0,0,1],
[0,0,0,2,1,3],
[2,0,0,0,3,1],
[3,0,0,2,1,0]
],
//question 5 answer values
[ [3,0,0,0,2,1],
[0,2,3,1,0,0],
[0,0,0,2,1,3],
[1,3,0,0,0,2],
[0,0,0,3,2,1],
[1,0,2,0,3,0]
],
//question 6 answer values
[ [1,0,0,3,2,0],
[0,3,0,2,0,1],
[3,1,0,0,0,2],
[1,0,0,2,3,0],
[0,0,3,2,1,0],
[0,0,1,2,0,3]
]
]
/* SHORTCUT VARIABLES */
//so I don't have to keep typing
var results = document.getElementById("results");
var quiz = document.getElementById("quiz");
var body = document.body.style;
var printResult = document.getElementById("topScore");
var buttonElement = document.getElementById("button");
/* QUIZ FUNCTIONALITY */
buttonElement.addEventListener("click", changeState); //Add click event listener to main button
/* This function progresses the user through the quiz */
function changeState() {
updatePersonality(); //Adds the values of the tempStats to the userStats
if (quizActive) {
/*True while the user has not reached the end of the quiz */
initText(questionState); //sets up next question based on user's progress through quiz
questionState++; //advances progress through quiz
buttonElement.disabled = true; //disables button until user chooses next answer
buttonElement.innerHTML = "Please select an answer";
buttonElement.style.opacity = 0.7;
} else {
/*All questions answered*/
setCustomPage(); //runs set up for result page
}
}
/* This function determines the question and answer content based on user progress through the quiz */
function initText(question) {
var answerSelection = ""; //text varialbe containting HTML code for the radio buttons' content
/* Creates radio buttons based on user progress through the quiz - current 'id' generation is not w3c compliant*/
for (i = 0; i < answerText[question].length; i++) {
answerSelection += "<li><input type='radio' name='question" +
(question+1) + "' onClick='setAnswer("+i+")' id='" + answerText[question][i] + "'><label for='" + answerText[question][i] + "'>" + answerText[question][i] + "</label></li>";
}
document.getElementById("questions").innerHTML = questionText[question]; //set question text
document.getElementById("answers").innerHTML = answerSelection; //set answer text
}
/* This function is called when a user selects an answer, NOT when answer is submitted */
function setAnswer(input) {
clearTempStats(); //clear tempStats in case user reselects their answer
tempStats = answerValues[questionState-1][input]; //selects personality values based on user selection
if (questionState < questionText.length) {
/*True while the user has not reached the end of the quiz */
buttonElement.innerHTML = "Continue";
buttonElement.disabled = false;
buttonElement.style.opacity = 1;
} else {
/*All questions answered - QUESTION TIME IS OVER!*/
quizActive = false;
buttonElement.innerHTML = "Display your custom website"
buttonElement.disabled = false;
buttonElement.style.opacity = 1;
}
}
/* This function sets tempStats to 0 */
function clearTempStats() {
tempStats = [0,0,0,0,0,0];
}
/*This function adds the values of the tempStats to the userStats based on user selection */
function updatePersonality() {
for (i = 0; i < userStats.length ; i++) {
userStats[i] += tempStats[i];
}
}
/* This function determines the highest personality value */
function setCustomPage() {
var highestStatPosition = 0; //highest stat defaults as 'cute'
/* This statement loops through all personality stats and updates highestStatPosition based on a highest stat */
for (i = 1 ; i < userStats.length; i++) {
if (userStats[i] > userStats[highestStatPosition]) {
highestStatPosition = i;
}
}
displayCustomPage(highestStatPosition); //passes the index value of the highest stat discovered
/* Hides the quiz content, shows results content */
quiz.style.display = "none";
}
/* BUILDS WEB PAGE AS PER RESULTS OF THE QUIZ */
/* The following code manipulates the CSS based on the personality results */
function displayCustomPage(personality) {
switch (personality) {
case 0: //cute code
results.style.display = "inline-block";
results.classList.add("cute");
body.background = "none";
body.backgroundImage = "url('http://www.geocities.ws/dopeycodes/backgrounds/stars-pi.gif')";
body.backgroundRepeat = "repeat";
body.cursor = "url(https://web.archive.org/web/20090830074921/http://www.geocities.com/anneli1970/hkanicursor.gif), auto";
printResult.innerText = "cute";
break;
case 1: //spooky
results.style.display = "inline-block";
results.classList.add("spooky");
body.background = "none";
body.backgroundImage = "url('https://web.archive.org/web/20090805212330/http://www.geocities.com/alecbay/evilbackground.gif')";
body.backgroundRepeat = "repeat";
body.cursor = "url(https://web.archive.org/web/20091026222418/http://www.geocities.com/evil_empire_uo/demon.gif), auto";
printResult.innerText = "spooky";
break;
case 2: //lame
results.style.display = "inline-block";
results.classList.add("lame");
body.background = "none";
body.backgroundColor = "#008080";
body.cursor = "url(https://web.archive.org/web/20091027003810/http://ca.geocities.com/EverlastingIllusions/Miscellanous/Cursor9.gif), auto";
printResult.innerText = "lame";
break;
case 3: //nerdy
results.style.display = "inline-block";
results.classList.add("nerdy");
body.background = "none";
body.backgroundImage = "url('https://www.dailydot.com/wp-content/uploads/fb5/e4/0ee32ed1e94e79d7d53d7be26bec7aa1.jpg')";
body.backgroundSize = "100% auto";
body.cursor = "url(https://web.archive.org/web/20090820061156/http://geocities.com/Tokyo/Club/8802/pikacursor.gif), auto";
printResult.innerText = "nerdy";
break;
case 4: //silly
results.style.display = "inline-block";
results.classList.add("silly");
body.background = "none";
body.backgroundImage = "url('https://web.archive.org/web/20091026075928/http://geocities.com/MotorCity/Pit/2600/pic/rainbow.gif')";
body.backgroundRepeat = "repeat";
body.cursor = "url(https://web.archive.org/web/20090731114836/http://hk.geocities.com/godofcat/mcmug/cursor1p2.gif), auto";
printResult.innerText = "silly";
break;
case 5: //cool
results.style.display = "inline-block";
results.classList.add("cool");
body.background = "none";
body.backgroundImage = "url('https://web.archive.org/web/20091027004451/http://hk.geocities.com/cs_unknowman/Background/background.gif')";
body.backgroundRepeat = "repeat";
body.cursor = "url(https://web.archive.org/web/20091026232535/http://www.geocities.com/john_miles_the_cucumber/arnoldcursorpreview.gif), auto";
printResult.innerText = "cool";
break;
default:
document.getElementById("error").style.display = "inline-block";
}
}
Also see: Tab Triggers