Events: Difference between revisions

From BomberGirls
Jump to navigation Jump to search
(testing embedding the script forciblly)
No edit summary
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
'''Current Event:'''
'''Current Event:'''<br>
{{#ifexpr: 1686157140 > {{#time: U | now }} |
{{#expr: trunc
{{#expr: (1686157140 - {{#time: U | now }})/86400 }}
}} days left
| event ended }}


[[File:KonasteEvent2.jpg|frameless|300px|link=Events]]
[[File:KonasteEvent14.jpg|frameless|300px|link=Events]]
 
30/10/2024 > 25/12/2024 JST <br>
<span class="countdowndate">December 25 2024 09:59:00 UTC+9</span> until event ends.


{{#timel: m-d-Y h:i:s | now }}
</onlyinclude>
</onlyinclude>
'''Upcoming Event'''
None


'''Past Event'''
'''Past Event'''


[[File:KonasteEvent1.jpg|frameless|300px|link=Events]]
[[File:KonasteEvent13.jpg|frameless|300px|link=Events]]
 
28/8/2024 > 16/10/2024 JST <br>
 
[[File:KonasteEvent12.jpg|frameless|300px|link=Events]]
 
10/7/2024 > 28/8/2024 JST <br>
 
[[File:KonasteEvent11.jpg|frameless|300px|link=Events]]
 
8/5/2024 > 26/6/2024 JST <br>
 
[[File:KonasteEvent10.jpg|frameless|300px|link=Events]]
 
6/3/2024 > 25/4/2024 JST <br>
 
[[File:KonasteEvent8.jpg|frameless|300px|link=Events]]
 
24/1/2024 > 6/3/2024 JST <br>
 
[[File:KonasteEvent7.jpg|frameless|300px|link=Events]]
 
15/12/2023 > 24/1/2024 JST <br>
 
[[File:KonasteEventAnni2.jpg|frameless|300px|link=Events]]
 
22/12/2023 > 9/1/2024 JST <br>
 
[[File:KonasteEvent6.jpg|frameless|300px|link=Events]]
 
01/11/2023 > 14/12/2023 JST <br>
 
[[File:KonasteEvent5.jpg|frameless|300px|link=Events]]


{{#time: U | now }}
09/20/2023 > 11/01/2023 JST <br>
{{CURRENTDAY}}
{{CURRENTHOUR}}
{{LOCALDAYNAME}}


<span class="countdown" style="display:none;">
[[File:KonasteEvent4.jpg|frameless|300px|link=Events]]
Only <span class="countdowndate">January 01 2024 00:00:00 PST</span> until New years.
</span>
<span class="nocountdown">Javascript disabled.</span>


<span style="display:none;" class="countdown">
08/03/2023 > 09/20/2023 JST <br>
<big>Insert text here
<br />
<span style="color:#e71b1b" class="countdowndate">January 01 2024 00:00:00 PST</span>  
<span class="nocountdown"><center>Counter unavailable.</center></span>
__NOCACHE__
<script>
// **************************************************
// Experimental javascript countdown timer (Splarka)
// Version 0.0.3
// **************************************************
//
// Usage example:
//  <span class="countdown" style="display:none;">
//  Only <span class="countdowndate">January 01 2007 00:00:00 PST</span> until New years.
//  </span>
//  <span class="nocountdown">Javascript disabled.</span>


function updatetimer(i) {
[[File:KonasteEvent3.jpg|frameless|300px|link=Events]]
  var now = new Date();
  var then = timers[i].eventdate;
  var diff = count=Math.floor((then.getTime()-now.getTime())/1000);


  // catch bad date strings
06/07/2023 > 07/19/2023 JST <br>
  if(isNaN(diff)) {
    timers[i].firstChild.nodeValue = '** ' + timers[i].eventdate + ' **' ;
    return;
  }


  // determine plus/minus
[[File:KonasteEvent2.jpg|frameless|300px|link=Events]]
  if(diff<0) {
    diff = -diff;
    var tpm = ' ';
  } else {
    var tpm = ' ';
  }


  // calcuate the diff
4/26/2023 > 6/07/2023 JST
  var left = (diff%60) + ' seconds';
    diff=Math.floor(diff/60);
  if(diff > 0) left = (diff%60) + ' minutes ' + left;
    diff=Math.floor(diff/60);
  if(diff > 0) left = (diff%24) + ' hours ' + left;
    diff=Math.floor(diff/24);
  if(diff > 0) left = diff + ' days ' + left
  timers[i].firstChild.nodeValue = tpm + left;


  // a setInterval() is more efficient, but calling setTimeout()
[[File:KonasteEvent1.jpg|frameless|300px|link=Events]]
  // makes errors break the script rather than infinitely recurse
  timeouts[i] = setTimeout('updatetimer(' + i + ')',1000);
}


function checktimers() {
3/29/2023 > 4/26/2023 JST
  //set up global objects timers and timeouts.
  timers = document.getElementsByClassName('countdowndate');  //global
  timeouts = new Array(); // generic holder for the timeouts, global
  if(timers.length == 0) return;
  for(var i in timers) {
    timers[i].eventdate = new Date(timers[i].firstChild.nodeValue);
    updatetimer(i);  //start it up
  }
}
window.onload = function()
{
//hide 'nocountdown' and show 'countdown'
var nocountdowns = document.getElementsByClassName('nocountdown');
for (var i = 0; i < nocountdowns.length; i++ ) {
    nocountdowns[i].style.display = 'none';
}
var countdowns = document.getElementsByClassName('countdown');
for (var i = 0; i < countdowns.length; i++ ) {
    countdowns[i].style.display = "'inline";
}
checktimers()
};


// **************************************************
__NOCACHE__
//  - end -  Experimental javascript countdown timer
//
</script>

Latest revision as of 02:25, 30 October 2024

Current Event:

KonasteEvent14.jpg

30/10/2024 > 25/12/2024 JST
December 25 2024 09:59:00 UTC+9 until event ends.


Upcoming Event

None

Past Event

KonasteEvent13.jpg

28/8/2024 > 16/10/2024 JST

KonasteEvent12.jpg

10/7/2024 > 28/8/2024 JST

KonasteEvent11.jpg

8/5/2024 > 26/6/2024 JST

KonasteEvent10.jpg

6/3/2024 > 25/4/2024 JST

KonasteEvent8.jpg

24/1/2024 > 6/3/2024 JST

KonasteEvent7.jpg

15/12/2023 > 24/1/2024 JST

KonasteEventAnni2.jpg

22/12/2023 > 9/1/2024 JST

KonasteEvent6.jpg

01/11/2023 > 14/12/2023 JST

KonasteEvent5.jpg

09/20/2023 > 11/01/2023 JST

KonasteEvent4.jpg

08/03/2023 > 09/20/2023 JST

KonasteEvent3.jpg

06/07/2023 > 07/19/2023 JST

KonasteEvent2.jpg

4/26/2023 > 6/07/2023 JST

KonasteEvent1.jpg

3/29/2023 > 4/26/2023 JST