Added a Maintenance Window flash (#758)

This commit is contained in:
farhatahmad
2019-08-22 12:15:01 -04:00
committed by Jesus Federico
parent 177bf4d595
commit 9ddc057589
6 changed files with 30 additions and 1 deletions

View File

@ -24,4 +24,11 @@ $(document).on('turbolinks:load', function(){
//hide the banner at the bottom
$(".cookies-banner").attr("style","display:none !important")
})
$("#maintenance-close").click(function(event) {
//create a cookie that lasts 1 year
var cookieDate = new Date();
cookieDate.setFullYear(cookieDate.getFullYear() + 1); //1 year from now
document.cookie = "maintenance_window=" + $(event.target).data("date") + "; path=/; expires=" + cookieDate.toUTCString() + ";"
})
})