Welcome to the RuneGlory Wiki, where we do our best to make your life easier!

You can use the search menu on the right side of the wiki (or at the bottom if you are on mobile) to search for the page you are looking for. The most popular pages can be found on the right side of the wiki aswell (or again at the bottom if you are on mobile).

Difference between revisions of "Main page/Test Suffer"

From RuneGlory
Jump to: navigation, search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html>
+
Recent Changes:
<body>
 
  
<style type="text/css">
+
{{Special:RecentChanges/,limit=10,hidebots,hideminor}}
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"
+
Newest Pages:
onclick="myFunction()">
 
Click me to display the times each boost occur for your timezone.</button>
 
  
<table width="100%">
+
{{Special:NewPages/,limit=10,showredirs,}}
  <tr>
 
    <th> Boost </td>
 
    <th> Time </td>
 
    <th> Time 2 </td>
 
  </tr>
 
  <tr>
 
    <td> 2x wilderness singles </td>
 
    <td id="time0"> </td>
 
        <td id="time0a"> </td>
 
  </tr>
 
  <tr>
 
    <td> 2x wilderness multi </td>
 
    <td id="time1"> </td>
 
        <td id="time1a"> </td>
 
  </tr>
 
  <tr>
 
    <td> 25% skilling xp </td>
 
    <td id="time2"> </td>
 
        <td id="time2a"> </td>
 
  </tr>
 
  <tr>
 
    <td> 2x skill points </td>
 
    <td id="time3"> </td>
 
        <td id="time3a"> </td>
 
  </tr>
 
  <tr>
 
    <td> 2x slayer points </td>
 
    <td id="time4"> </td>
 
    <td id="time4a"> </td>
 
  </tr>
 
  <tr>
 
    <td> 2x shooting stars </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 = (0-n)%12
 
    var time1 = (1-n)%12
 
    var time2 = (2-n)%12
 
    var time3 = (3-n)%12
 
    var time4 = (4-n)%12
 
    var time5 = (5-n)%12
 
    var time6 = (6-n)%12
 
    var time7 = (7-n)%12
 
    var time8 = (8-n)%12
 
    var time9 = (9-n)%12
 
    var time10 = (10-n)%12
 
    var time11 = (11-n)%12
 
 
 
    time0 = check0(time0);
 
    time1 = check0(time1);
 
    time2 = check0(time2);
 
    time3 = check0(time3);
 
    time4 = check0(time4);
 
    time5 = check0(time5);
 
    time6 = check0(time6);
 
    time7 = check0(time7);
 
    time8 = check0(time8);
 
    time9 = check0(time9);
 
    time10 = check0(time10);
 
    time11 = check0(time11);
 
 
 
    document.getElementById("time0").innerHTML = (0-n)%12 +" Am and Pm";
 
    document.getElementById("time1").innerHTML = (1-n)%12 +" Am and Pm";
 
    document.getElementById("time2").innerHTML = (2-n)%12 +" Am and Pm";
 
    document.getElementById("time3").innerHTML = (3-n)%12 +" Am and Pm";
 
    document.getElementById("time4").innerHTML = (4-n)%12 +" Am and Pm";
 
    document.getElementById("time5").innerHTML = (5-n)%12 +" Am and Pm";
 
    document.getElementById("time0a").innerHTML = (6-n)%12 +" Am and Pm";
 
    document.getElementById("time1a").innerHTML = (7-n)%12 +" Am and Pm";
 
    document.getElementById("time2a").innerHTML = (8-n)%12 +" Am and Pm";
 
    document.getElementById("time3a").innerHTML = (9-n)%12 +" Am and Pm";
 
    document.getElementById("time4a").innerHTML = (10-n)%12 +" Am and Pm";
 
    document.getElementById("time5a").innerHTML = (11-n)%12 +" Am and Pm";
 
}
 
function check0(time) {
 
    if (time == 0) {
 
        time = 12;
 
    }
 
}
 
 
 
</script>
 
 
 
</body>
 
</html>
 

Latest revision as of 08:14, 4 August 2020

Recent Changes:

No changes during the given period match these criteria.


Newest Pages: