Advertisement
Asicosilomu

Roblox Maintenance Page

Oct 30th, 2021
2,335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.61 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5.     <title>Roblox Maintenance</title>
  6.     <style type="text/css">
  7.         html {
  8.             height: 100%;
  9.         }
  10.  
  11.         body {
  12.             background-color: #000;
  13.             color: #fff;
  14.             font-family: 'Source Sans Pro', sans-serif;
  15.             font-size: 24px;
  16.             font-weight: 300;
  17.             height: auto;
  18.             line-height: 24px;
  19.             margin: 0;
  20.             min-width: 320px;
  21.             text-align: center;
  22.             overflow: hidden;
  23.         }
  24.  
  25.         .header {
  26.             padding: 50px 0 20px;
  27.         }
  28.  
  29.         .header img {
  30.             width: auto;
  31.             margin: 0 auto;
  32.         }
  33.  
  34.         @media screen and (max-width: 768px) {
  35.             .header img {
  36.                 width: 100%;
  37.                 height: auto;
  38.             }
  39.         }
  40.  
  41.         .content {
  42.             text-align: center;
  43.         }
  44.  
  45.         .notification {
  46.             width: auto;
  47.             height: auto;
  48.             padding: 12px 20px;
  49.             margin: 0 auto;
  50.             line-height: 36px;
  51.             font-style: normal;
  52.             font-weight: 300;
  53.             color: #fff;
  54.         }
  55.  
  56.         .count-down {
  57.             color: #f68802;
  58.             font-weight: 300;
  59.         }
  60.  
  61.             .count-down h1 {
  62.                 font-weight: 300;
  63.             }
  64.  
  65.                 .count-down h1.timer {
  66.                     font-weight: 600;
  67.                 }
  68.     </style>
  69.     <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,regular,600">
  70. </head>
  71. <body>
  72.     <div class="header">
  73.         <img src="https://images.rbxcdn.com/6ef6e892aea640c3b1f79f0f820caca5" alt="We're making things more awesome.  Be back soon." />
  74.     </div>
  75.     <div class="content">
  76.         <div id="countDown" class="count-down">
  77.         </div>
  78.     </div>
  79.     <script type="text/javascript">
  80.         function countdownLayout(isVisiable) {
  81.             var countdownElm = document.getElementById("countDown");
  82.             var countDownTimeHtml = "<h1>Down time: </h1><h1 id='timer' class='timer'></h1>";
  83.             if (isVisiable) {
  84.                 countdownElm.innerHTML = countDownTimeHtml;
  85.             } else {
  86.                 countdownElm.innerHTML = "";
  87.             }
  88.         }
  89.  
  90.         function formatCountDown(time) {
  91.             var _second = 1000;
  92.             var _minute = _second * 60;
  93.             var _hour = _minute * 60;
  94.             var _day = _hour * 24;
  95.  
  96.             var days = Math.floor(time / _day);
  97.             var hours = Math.floor((time % _day) / _hour);
  98.             var minutes = Math.floor((time % _hour) / _minute);
  99.             var countdownString = "";
  100.             if (days) {
  101.                 countdownString = (days == 1) ? days + " day " : days + " days ";
  102.             }
  103.  
  104.             if (hours == 1 || hours == 0) {
  105.                 countdownString += "0" + hours + " hr ";
  106.             } else {
  107.                 if (hours < 10) {
  108.                    hours = "0" + hours;
  109.                }
  110.                countdownString += hours + " hrs ";
  111.            }
  112.  
  113.            if (minutes == 1 || minutes == 0) {
  114.                countdownString += "0" + minutes + " min ";
  115.            } else {
  116.                if (minutes < 10) {
  117.                    minutes = "0" + minutes;
  118.                }
  119.                countdownString += minutes + " mins ";
  120.            }
  121.  
  122.            if (time <= _minute) {
  123.                var seconds = Math.floor((time % _minute) / _second);
  124.                countdownString += seconds + " secs ";
  125.            }
  126.  
  127.            return countdownString;
  128.        }
  129.  
  130.        function getQuery() {
  131.            var query = location.search;
  132.            var result = { isQuerySet: false, params: {} };
  133.            if (query.length > 0 && query.slice(1).length > 0) {
  134.                var queries = query.slice(1).split("&");
  135.                 result.isQuerySet = true;
  136.                 for (var i = 0; i < queries.length; i++) {
  137.                    var tmp = queries[i].split("=");
  138.                    result.params[tmp[0]] = tmp[1];
  139.                }
  140.            }
  141.            return result;
  142.        }
  143.  
  144.        function timer(params) {
  145.            var refreshIntervalId;
  146.            var endTimeString = params['month'] + "/" + params['day'] + "/" + params['year'] + " " + params['hour'] + ":" + params['min'] + " UTC";
  147.  
  148.            function setTime() {
  149.                var end = new Date(endTimeString);
  150.                var now = new Date();
  151.                var remaining = end - now;
  152.                if (remaining > 0) {
  153.                     var countdownString = formatCountDown(remaining);
  154.  
  155.                     if (document.getElementById("countDown").children.length === 0) {
  156.                         countdownLayout(true);
  157.                     }
  158.                     var countdownElm = document.getElementById("timer");
  159.                     countdownElm.innerHTML = countdownString;
  160.  
  161.                 } else {
  162.                     clearInterval(refreshIntervalId);
  163.                     countdownLayout(false);
  164.                     return;
  165.                 }
  166.             }
  167.  
  168.             refreshIntervalId = setInterval(setTime, 1000);
  169.         }
  170.  
  171.         window.onload = function () {
  172.             // We use a form post to get around browsers caching repeated 302s on GETs
  173.             window.setTimeout("document.forms[0].submit();", 30000);
  174.             var result = getQuery();
  175.             if (result.isQuerySet) {
  176.                 timer(result.params);
  177.             }
  178.         };
  179.  
  180.     </script>
  181.  
  182.     <form method="POST" action="https://www.roblox.com/"></form>
  183.  
  184. </body>
  185. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement