From Dark and Darker Wiki

Revision as of 04:23, 9 January 2023 by CadiLutPR (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. */


  const ctx = document.getElementById('myChart');

  new Chart(ctx, {
    type: 'bar',
    data: {
  labels: labels,
  datasets: [{
    label: 'My First Dataset',
    data: [{
                x: 1,
                y: 0.5
            }, {
                x: 2,
                y: 60
            }, {
                x: 3,
                y: 20
            }],
    fill: false,
    borderColor: 'rgb(75, 192, 192)',
    tension: 0.1
  }]
},
    options: {
      scales: {
        y: {
          beginAtZero: true
        }
      }
    }
  });



var countDownDate = new Date("2023-02-06T18:00:00Z").getTime();

var x = setInterval(function() {
  var now = new Date().getTime();
  var distance = countDownDate - now;
  var days = Math.floor(distance / (1000 * 60 * 60 * 24));
  var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
  var seconds = Math.floor((distance % (1000 * 60)) / 1000);
  if (distance < 0) {
    clearInterval(x);
    document.getElementById("timer").innerHTML = "LIVE NOW";
  }
}, 1000);