From RuneGlory
(31 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<body> | <body> | ||
+ | <style type="text/css"> | ||
+ | body { text-align: center; margin: auto; padding: 20px; } | ||
+ | label { font-weight: bold; margin: 0 4px; } | ||
+ | select { margin: 0; padding: 0; } | ||
+ | table, th, td { | ||
+ | border: 1px solid black; | ||
+ | } | ||
+ | |||
+ | select { | ||
+ | color: white; | ||
+ | width: 100%; | ||
+ | |||
+ | </style> | ||
<form> | <form> | ||
− | Select your | + | Select your Time zone: |
<select id="mySelect"> | <select id="mySelect"> | ||
<option value="this would be your hours">gmt -5</option> | <option value="this would be your hours">gmt -5</option> | ||
− | <option value= | + | <option value=https://i.imgur.com/JuoTLPY.png">gmt -4</option> |
− | <option value= | + | <option value=https://i.imgur.com/saHJYFp.png>gmt -3</option> |
− | <option value=" | + | <option value="boy this would be your data">gmt -2</option> |
</select> | </select> | ||
</form> | </form> | ||
− | + | <br></br> | |
− | < | + | <button type="button" |
− | + | onclick="document.getElementById('demo').innerHTML = Date()"> | |
− | <button type="button" onclick="myFunction()"> | + | Click me to display your time zone.</button> <button type="button" onclick="myFunction()">Click me to display hourly events.</button> |
+ | <p id="demo"></p> | ||
<p id="demo"></p> | <p id="demo"></p> | ||
Line 23: | Line 37: | ||
document.getElementById("demo").innerHTML = x; | document.getElementById("demo").innerHTML = x; | ||
} | } | ||
+ | function myFunction() { | ||
+ | var str = "GMT -3"; | ||
+ | var result = str.link("https://i.imgur.com/saHJYFp.png"); | ||
+ | document.getElementById("demo").innerHTML = result; | ||
+ | } | ||
+ | |||
</script> | </script> | ||
Line 30: | Line 50: | ||
− | <html><body> | + | |
+ | |||
+ | <html> | ||
+ | <body> | ||
+ | |||
+ | <style type="text/css"> | ||
+ | body { text-align: center; margin: auto; padding: 20px; } | ||
+ | label { font-weight: bold; margin: 0 4px; } | ||
+ | select { margin: 0; padding: 0; } | ||
+ | table, th, td { | ||
+ | border: 1px solid black; | ||
+ | } | ||
+ | |||
+ | select { | ||
+ | color: white; | ||
+ | width: 100%; | ||
+ | |||
+ | </style> | ||
+ | |||
<button type="button" | <button type="button" | ||
− | onclick=" | + | onclick="myFunction()"> |
− | Click me to display your | + | Click me to display the times each boost occurs for your timezone.</button> |
− | < | + | |
− | </body></html> | + | <table width="100%"> |
+ | <tr> | ||
+ | <th> Boost </td> | ||
+ | <th> Time </td> | ||
+ | <th> Time 2 </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> Shooting Stars will now reward double points and experience for one hour! </td> | ||
+ | <td id="time0"> </td> | ||
+ | <td id="time0a"> </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> Wilderness Single zones will now reward double blood money for one hour! </td> | ||
+ | <td id="time1"> </td> | ||
+ | <td id="time1a"> </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> Wilderness Multi zones will now reward double blood money for one hour! </td> | ||
+ | <td id="time2"> </td> | ||
+ | <td id="time2a"> </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> Skilling Experience is now boosted by 25% for one hour! </td> | ||
+ | <td id="time3"> </td> | ||
+ | <td id="time3a"> </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> Skilling point gain is now doubled for one hour! </td> | ||
+ | <td id="time4"> </td> | ||
+ | <td id="time4a"> </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> Slayer Points gain is now doubled for one hour! </td> | ||
+ | <td id="time5"> </td> | ||
+ | <td id="time5a"> </td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | |||
+ | <script> | ||
+ | |||
+ | function myFunction() { | ||
+ | var d = new Date(); | ||
+ | var n = d.getTimezoneOffset(); | ||
+ | n = n/60; | ||
+ | var time0 = (10-n)%12 | ||
+ | var time1 = (11-n)%12 | ||
+ | var time2 = (0-n)%12 | ||
+ | var time3 = (1-n)%12 | ||
+ | var time4 = (2-n)%12 | ||
+ | var time5 = (3-n)%12 | ||
+ | var time6 = (4-n)%12 | ||
+ | var time7 = (5-n)%12 | ||
+ | var time8 = (6-n)%12 | ||
+ | var time9 = (7-n)%12 | ||
+ | var time10 = (8-n)%12 | ||
+ | var time11 = (9-n)%12 | ||
+ | |||
+ | document.getElementById("time0").innerHTML = check0(time0) + " AM and PM"; | ||
+ | document.getElementById("time1").innerHTML = check0(time1) + " AM and PM"; | ||
+ | document.getElementById("time2").innerHTML = check0(time2) + " AM and PM"; | ||
+ | document.getElementById("time3").innerHTML = check0(time3) + " AM and PM"; | ||
+ | document.getElementById("time4").innerHTML = check0(time4) + " AM and PM"; | ||
+ | document.getElementById("time5").innerHTML = check0(time5) + " AM and PM"; | ||
+ | document.getElementById("time0a").innerHTML = check0(time6) + " AM and PM"; | ||
+ | document.getElementById("time1a").innerHTML = check0(time7) + " AM and PM"; | ||
+ | document.getElementById("time2a").innerHTML = check0(time8) + " AM and PM"; | ||
+ | document.getElementById("time3a").innerHTML = check0(time9) + " AM and PM"; | ||
+ | document.getElementById("time4a").innerHTML = check0(time10) + " AM and PM"; | ||
+ | document.getElementById("time5a").innerHTML = check0(time11) + " AM and PM"; | ||
+ | } | ||
+ | |||
+ | function check0(time) { | ||
+ | if (time == 0) { | ||
+ | return(12); | ||
+ | } | ||
+ | else if (time < 0) { | ||
+ | return(12+time); | ||
+ | } | ||
+ | else { | ||
+ | return(time) | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </script> | ||
+ | |||
+ | </body> | ||
+ | </html> |
Latest revision as of 01:33, 5 June 2018
Boost | Time | Time 2 |
---|---|---|
Shooting Stars will now reward double points and experience for one hour! | ||
Wilderness Single zones will now reward double blood money for one hour! | ||
Wilderness Multi zones will now reward double blood money for one hour! | ||
Skilling Experience is now boosted by 25% for one hour! | ||
Skilling point gain is now doubled for one hour! | ||
Slayer Points gain is now doubled for one hour! |