Skip to content

pawstar-lag/Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

<html xmlns= "http://www.w3.org/1999/xhml" xml:lang= "en" lang= "en">
<link rel = "icon" href =https://www.clifton.co.uk/sites/default/files/checkout-icon-returns.png type = "image/x-icon">

<div id="cookiesection">
 <button>Ask a<img id="cookie" src="https://cdn.afterdawn.fi/v3/news/original/github-logo.png"/>question and click on me</button>
</div>
<title>Github 8 ball</title>
<script>var responses = [
  "No", 
  "Yes",
  "Yeah, Duh!",
  "YES!",
  "Ask again later",//3 
  "Maybe",//4
  "I do not know",//5 
  "Tomorrow",//6
  "Go away!",//7
   "Your input is random, so the output is going to be random.", //8
 "You ask someone else!",//9
  "No way",//10
  "Arr me hearty! Me scurvy do not know!"//11
];

window.onload = function() {
  let clickme = document.getElementById("cookiesection");
  
  clickme.onclick = giveResponse;
  
}

function giveResponse() {
  let id = Math.floor(Math.random() * responses.length)
  
  alert(responses[id])
  
  
}

function changeColor() {
  let colorChange = document.getElementById("eye");
  let colorNow = colorChange.style.backgroundColor;
  
  if (colorNow == "lightgreen") {
    colorChange.style.background = "Navy"
  } else {
    colorChange.style.backgroundColor = "darkred";
  }
}</script>

<style>#cookiesection{
  width: 40px;
  height: 20px;
  margin:auto;
  
}
#cookie{
  height:40px;
  font-size: 10%;
}
button:hover {
  color: white;
  background-color:silver;
}
</style>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages