Day 14

Coding is going slowly this week.  I find myself spending more time figuring out what I want to do, than actually doing it.  Time to take a few classes so that I can get moving again...
#CodingPhase #TheCodingWay #365CodingPhaseChallenge

**********

<!DOCTYPE html>

<html>
  <head>
    <link rel="stylesheet" type="text/css" href="shapes.css">
    <title>Gramps' Simon</title>
  </head>

  <body>
    <div id="shape-board">
      <div id="shape00">
        <button id="cancel" onclick="setActiveControl(0)">Cancel</button>
        <button id="start" onclick="freebee()">Start</button>
        <button id="stop">Stop</button>
        <!-- <button id="btn-time"></button>
        If used, this will ask the user if they want the game to be timed
        <label id="lbl-time"></label> -->
        <label id="score">Score: </label>
        <label id="diff">Difficulty: </label>
      </div>
      <div class="shape0" id="shape0">
        <button type="button" class="gameload" id="play" onclick="setActiveControl(1)">Play</button>
        <button type="button" id="exit" onclick="window.location.href='http://games.smchosting.com/'">Exit</button>
        <button type="button" id="colors">Colors</button>
        <button type="button" id="math">Math</button>
        <button type="button" id="addsub">Add / Subtract</button>
        <button type="button" id="multdiv">Multiply / Divide</button>
        <button type="button" id="easy">Easy</button>
        <button type="button" id="medium">Medium</button>
        <button type="button" id="hard">Hard</button>
        <label id="or"> or </label>
        <label id="decide">You prefer to play?</label>
        <label id="score">Score: </label>
      </div>
      <div class="gameload" id="shape1"></div>
      <div class="gameload" id="shape2"></div>
      <div class="gameload" id="shape3"></div>
      <div class="gameload" id="shape4"></div>
      <div class="gameload" id="shape5"></div>
      <div class="gameload" id="shape6"></div>
      <div class="gameload" id="shape7"></div>
      <div class="gameload" id="shape8"></div>
      <div class="gameload" id="shape9"></div>
    </div>

    <script>

if (document.getElementById('play')) && (class == gameload) // broken
{

}

      function setActiveControl(control)
      {
        if (control == 0)
        {
          document.getElementById('shape0').setAttribute("class", "shapeon");
          document.getElementById('shape00').setAttribute("class", "shapeoff");
        }
        else
        {
          document.getElementById('shape0').setAttribute("class", "shapeoff");
          document.getElementById('shape00').setAttribute("class", "shapeon");
        }
      }     

      function freebee()
      {
        alert("My eye hurts. This is my cheat day of coding, Oct 30 2018...Thank you Joe from codingphase.com");
      }   

    </script>
  </body>
</html>

**********

body {
  background-color: #f0ead6;
}

#shape-board {
  position: relative;
  max-width: 800px;
  height: 50em;
  margin: 50px auto;
  border: 1px solid grey;
  border-radius: 10px;
  background-image: url(marbleBackground.png);
}

.shapeon {
  /*display: none;*/
}

.shapeoff, .gameload {
  display: none;
}

#shape0 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  margin: auto;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-color: #efefef;
}

#shape0 #exit {
  position: absolute;
  bottom: 20px;
  left: 10px;
  border-radius: 12px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #ff1a1a;
  width: 110px;
  height: 40px;
}

#shape0 #play {
  position: absolute;
  bottom: 20px;
  right: 10px;
  border-radius: 12px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #009900;
  width: 110px;
  height: 40px;
}

#shape0 #score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #fefefe;
  padding: 10px 0;
  padding-left: 5px;
  width: 90%;
}

#shape0 #easy {
  position: absolute;
  bottom: 70px;
  left: 10px;
  border-radius: 12px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #009900;
  width: 70px;
  height: 25px;
}

#shape0 #medium {
  position: absolute;
  bottom: 70px;
  left: 90px;
  border-radius: 12px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #ffff33;
  width: 70px;
  height: 25px;
}

#shape0 #hard {
  position: absolute;
  bottom: 70px;
  right: 10px;
  border-radius: 12px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #ff1a1a;
  width: 70px;
  height: 25px;
}

#shape0 #addsub {
  position: absolute;
  bottom: 160px;
  left: 10px;
  border-radius: 12px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #009900;
  width: 110px;
  height: 25px;
}

#shape0 #multdiv {
  position: absolute;
  bottom: 160px;
  right: 10px;
  border-radius: 12px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #ff1a1a;
  width: 110px;
  height: 25px;
}

#shape0 #colors {
  position: absolute;
  bottom: 190px;
  left: 10px;
  border-radius: 12px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #009900;
  width: 100px;
  height: 25px;
}

#shape0 #or {
  position: absolute;
  bottom: 188px;
  left: 120px;
  width: 10px;
  height: 25px;
}

#shape0 #math {
  position: absolute;
  bottom: 190px;
  right: 10px;
  border-radius: 12px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #ff1a1a;
  width: 100px;
  height: 25px;
}

#shape0 #decide {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 20px;
  border-radius: 15px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #fefefe;
  text-align: center;
}

#shape00 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-color: #efefef;
}

#shape00 #cancel {
  position: absolute;
  bottom: 20px;
  left: 10px;
  border-radius: 12px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #ffcc99;
  width: 110px;
  height: 40px;
}

#shape00 #start {
  position: absolute;
  bottom: 70px;
  right: 10px;
  border-radius: 12px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #009900;
  width: 92%;
  height: 40px;
}

#shape00 #stop {
  position: absolute;
  bottom: 20px;
  right: 10px;
  border-radius: 12px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #ff1a1a;
  width: 110px;
  height: 40px;
}

#shape00 #score {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #fefefe;
  padding: 10px 0;
  padding-left: 5px;
  width: 90%;
}

#shape00 #diff {
  position: absolute;
  top: 17%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 20px;
  border-radius: 15px;
  box-shadow: 3px 3px 4px lightblue;
  background-color: #fefefe;
  padding: 10px 0;
  padding-left: 5px;
}

#shape1 {
  position: absolute;
  top: 1em;
  left: 1em;
  width: 250px;
  height: 250px;
  margin: auto;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-color: #e60000;
}

#shape1:hover {
  position: absolute;
  top: 1em;
  left: 1em;
  width: 250px;
  height: 250px;
  margin: auto;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-image: radial-gradient(circle, #ff4d4d, #e60000);
}

#shape2 {
  position: absolute;
  top: 1em;
  right: 1em;
  width: 250px;
  height: 250px;
  margin: auto;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-color: #009900;
}

#shape2:hover {
  position: absolute;
  top: 1em;
  right: 1em;
  width: 250px;
  height: 250px;
  margin: auto;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-image: radial-gradient(circle, #00e600, #009900);
}

#shape3 {
  position: absolute;
  bottom: 1em;
  left: 1em;
  width: 250px;
  height: 250px;
  margin: auto;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-color: #1a1aff;
}

#shape3:hover {
  position: absolute;
  bottom: 1em;
  left: 1em;
  width: 250px;
  height: 250px;
  margin: auto;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-image: radial-gradient(circle, #8080ff, #1a1aff);
}

#shape4 {
  position: absolute;
  bottom: 1em;
  right: 1em;
  width: 250px;
  height: 250px;
  margin: auto;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-color: #ffff1a;
}

#shape4:hover {
  position: absolute;
  bottom: 1em;
  right: 1em;
  width: 250px;
  height: 250px;
  margin: auto;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-image: radial-gradient(circle, #ffffff 0.25%, #ffff00);
}

#shape5 {
  position: absolute;
  top: 1em;
  left: 50%;
  transform: translate(-50%, 0%);
  width: 250px;
  height: 250px;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-color: #00bfff;
}

#shape5:hover {
  position: absolute;
  top: 1em;
  left: 50%;
  transform: translate(-50%, 0%);
  width: 250px;
  height: 250px;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-image: radial-gradient(circle, #66d9ff, #00bfff);
}

#shape6 {
  position: absolute;
  top: 50%;
  left: 1em;
  transform: translate(0%, -50%);
  width: 250px;
  height: 250px;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-color: #ff1aff;
}

#shape6:hover {
  position: absolute;
  top: 50%;
  left: 1em;
  transform: translate(0%, -50%);
  width: 250px;
  height: 250px;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-image: radial-gradient(circle, #ff80ff 1%, #ff1aff);
}

#shape7 {
  position: absolute;
  top: 50%;
  right: 1em;
  transform: translate(0%, -50%);
  width: 250px;
  height: 250px;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-color: #4d0099;
}

#shape7:hover {
  position: absolute;
  top: 50%;
  right: 1em;
  transform: translate(0%, -50%);
  width: 250px;
  height: 250px;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-image: radial-gradient(circle, #8000ff, #4d0099);
}

#shape8 {
  position: absolute;
  bottom: 1em;
  left: 50%;
  transform: translate(-50%, 0%);
  width: 250px;
  height: 250px;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-color: #ff3300;
}

#shape8:hover {
  position: absolute;
  bottom: 1em;
  left: 50%;
  transform: translate(-50%, 0%);
  width: 250px;
  height: 250px;
  box-shadow: 3px 3px 4px lightblue;
  border-radius: 25px;
  background-image: radial-gradient(circle, #ff8566 1%, #ff3300);
}

#shape9 {}

Comments

Popular posts from this blog

Day 1

Day 365 + 1

Day 365 + 2