Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- maintenance message -->
- <style>
- .alert-maintenance {
- padding:10px;
- text-align:center;
- background:#ffb;
- border-bottom:1px solid #bcbcbc;
- display:none;
- position:fixed;
- top:0;
- left:0;
- right:0;
- z-index:9;
- min-height:25px
- }
- #maintenance-btn-close {
- cursor:pointer
- }
- html {
- margin-top:46px;
- }
- </style>
- <script type="text/javascript">
- $(document).ready(function () {
- $('#maintenance-btn-close').click(function () {
- $('.alert-maintenance').hide();
- localStorage.maintenancehidden = "hidden";
- $('html').css('margin-top', '0px');
- });
- if (localStorage.maintenancehidden) {
- $('.alert-maintenance').hide();
- $('html').css('margin-top', '0px');
- } else {
- $('.alert-maintenance').show();
- $('html').css('margin-top', '46px');
- }
- });
- </script>
- <% if (DateTime.Now >= new DateTime(2018, 1, 22, 21, 0, 0) && DateTime.Now <= new DateTime(2018, 1, 22, 22, 0, 0))
- { %>
- <div class="alert-maintenance">
- <p><strong>Our site will be down 9 p.m. PDT, January 22 for routine maintenance. Don't stay away too long - we'll be back online in about an hour.</strong> <button type="button" id="maintenance-btn-close">Close</button></p>
- </div>
- <!-- end maintenance message -->
- <% } %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement