You are here: Raulwiki>Main Web>WebPreferences>TemGenteTemplate (revision 1)EditAttach
%STARTINCLUDE%
<html>
<head>
  <title>Tem gente na sede do RaulHC?</title>
  <link rel="shortcut icon" href="/pub/Main/WebCSS/raul.ico" type="image/x-icon" />
  <style>
    html {
      height: 100%;
      background: #333 url(/pub/Main/WebCSS/logo-raulhc.png) no-repeat 95% 95%;
    }
    body {
      text-align: center; font-family: sans-serif; color: #EEE;
      font-size: 3vw; margin: 0; padding: 30vh 0 0 0;
    }
    h1 { font-size: 150% }
    big { font-size: 150% }
    a { color: #EEE; }
    #fecha { position: absolute; left: 2em; bottom: 1em; }
  </style>
</head>
<body>
  <h1>Tem gente na sede do <a href="http://raulhc.cc">RaulHC</a>?</h1>
  <strong>%TEXT%</strong>
  <p id="fecha"></p>
  <script>
if ( %TOTPESS% > 0 ) {
  var now = new Date();
  var fecha = new Date('%FECHA%');
  fecha.setMinutes( fecha.getMinutes() - fecha.getTimezoneOffset() );
  var el = document.getElementById('fecha');
  el.title = fecha.toLocaleString();
  function two(n) { return n<10 ? '0'+n : n }
  var interval = setInterval(function(){
    now = new Date();
    left = new Date( fecha - now );
    if ( left.valueOf() > 0 ) {
      el.innerHTML = 'Fecha em '+two(left.getUTCHours())+':'+two(left.getUTCMinutes())+':'+two(left.getUTCSeconds())+'.';
    } else {
      el.innerHTML = 'Fecha '+fecha.toLocaleString()+'.';
      clearInterval(interval);
    }
  },200);
}
  </script>
</body>
</html>
%STOPINCLUDE%

  • Local EDIT_TEMPLATE = pattern
  • Local SKIN = pattern
Edit | Attach | Print version | History: r3 < r2 < r1 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r1 - 19 Jul 2014, AurelioAHeckert
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Raulwiki? Send feedback