Skip to content

Instantly share code, notes, and snippets.

@sabliran
Created September 9, 2016 13:15
Show Gist options
  • Save sabliran/570ab947370cb55943bc9d25f0534c1f to your computer and use it in GitHub Desktop.
Save sabliran/570ab947370cb55943bc9d25f0534c1f to your computer and use it in GitHub Desktop.

Revisions

  1. sabliran created this gist Sep 9, 2016.
    56 changes: 56 additions & 0 deletions Robots will govern
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,56 @@
    <!DOCTYPE html>
    <html>
    <head>
    <style>
    body {
    color: white;
    }
    div {
    background: url(x.jpg);
    background-size: 20px 60px;
    background-repeat: no-repeat;
    }

    </style>

    <title>Robots will govern.</title>
    </head>
    <center><body background="x.jpg" background-size: 80px 60px;>

    <!-- https://sabliran.github.io/sabliran/ -->
    <h1>As I said.. Feed capitalism everyone does, just be well aware of what it does to your world --faidra tzedakis</h1>
    <button onclick="myFunction()">Time</button> <!-- this is button that calls the function -->
    <button onclick="myFunction1()">NY time</button>
    <p id="ex">I dont know what to do with my life so im making this shit.. </p> <!-- yes i am so noob -->
    <p id="ex1">...asdasda..</p>
    <script> //javascript

    function myFunction() {
    var eightHours = 8;
    var wra = Number(prompt("what time will you sleep?"));
    {

    document.getElementById("ex").innerHTML =
    "the time you will sleep (" + wra + ") And you must get up at (" +Number (wra + eightHours) + ")";


    }
    window.alert ("You must get up at " +Number (wra + eightHours));

    }


    function myFunction1() {
    var hex = 6;
    var wra1 = Number(prompt("berlin time?"));
    {



    }
    window.alert ("new york time is " +Number (wra1 + hex));

    }
    </script>
    </body></center>
    </html>