<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
   <title>Scheduled Maintenence</title>
   <link href="/downtime/downtime.css" type="text/css" rel="stylesheet"/>
   <script type="text/javascript" src="https://d3apdx4jpybxl.cloudfront.net/downtime/downtime.js"></script>
   <script type="text/javascript" src="https://cdn.statuspage.io/se-v2.js"></script>
   
   <script type="text/javascript">
      var uptimeEndsAt = new Date();
      var uptimeEndsPretty = "";

      var localTime = new Date();

      window.onload=function(){
         var sp = new StatusPage.page({ page: '46xckqhn9232' });
         sp.scheduled_maintenances({
            filter: 'active',
            success: function (data) {
               if (!!data.scheduled_maintenances.length) {
                  uptimeEndsAt = new Date(data.scheduled_maintenances[0].scheduled_until);
                  var hours = uptimeEndsAt.getHours();
                  uptimeEndsPretty = (hours > 12 ? hours - 12 : hours) + ":" + uptimeEndsAt.getMinutes().toString().padStart(2, "0") + (hours >= 12 ? "pm" : "am"); // Outputs "9:30pm"
                  document.getElementById('estimate').style="";
                  document.getElementById('statuspage').style="";
                  document.getElementById('placeholder').style="display:none";
                  updateEstimate();
               }
            }
         });
      };
</script>
</head>

<body style="background: #f2f6f7">
      <div id="clouds"></div>
      <img id="logo" src="/downtime/GGLogo.png"/>
      <div id="holder">
            <div><img id="eliot" src="/downtime/hatched_blueback_600.png"/></div>
         <div id="message">
            <h2>We're working on hatching something new.</h2>
            <p>
               Please bear with us as we make improvements to the site.
            </p>
            <p id="placeholder">Sorry for the inconvenience. We'll be back up and running as fast as possible.</p>
            <p id="estimate" style="display:none">
               We expect to be back up and running by <strong><span id="uptimeEnds"></span></strong>.
               That's <strong><span id="timeleft"></span></strong> from now.
            </p>
            <p id="statuspage" class="box_topPadded3" style="display:none">
               Check our status page for more information.<br/>
               <a href="https://globalgiving.statuspage.io/" class="btn">statuspage</a>
            </p>
      </div>
</body>
</html>