1
0
mirror of https://github.com/strongdm/comply synced 2025-12-06 14:24:12 +00:00

automated asset refresh (via Makefile)

This commit is contained in:
Justin McCarthy
2018-05-17 18:28:39 -07:00
parent e04e5d7d89
commit 8070ea37bc
16 changed files with 867 additions and 81 deletions

View File

@@ -13,11 +13,24 @@ html lang=en
= javascript
document.addEventListener("DOMContentLoaded", function(event) {
document.querySelectorAll('.cron').forEach(function(el) {
el.innerHTML = prettyCron.toString(el.innerHTML,true) // 6-field expressions
el.innerHTML = prettyCron.toString((""+el.innerHTML).trim(),true) // 6-field expressions
})
if (window.location.hash != "") {
var hashComponents = window.location.hash.split('#')
if (hashComponents.length>1) {
var destination = hashComponents[1]
if (["overview","narratives","policies","procedures","standards"].indexOf(destination) >= 0) {
show(destination)
}
}
}
})
function show(name) {
if(history.replaceState) {
history.replaceState(null, null, '#'+name);
}
var items = document.getElementsByClassName('top-nav')
for (var i=0; i<items.length; i++) {
var item = items[i]
@@ -221,4 +234,6 @@ html lang=en
p {{.Project.OrganizationName}} Confidential 2018
= javascript
// commented for development
show('overview')
if (window.location.hash=="") {
show('overview')
}