add visual indicator for dev mode

This commit is contained in:
probablycorey 2013-03-05 12:48:45 -08:00
parent 8e11ca58e5
commit 0dfd3597fb
2 changed files with 14 additions and 1 deletions

View File

@ -10,6 +10,14 @@ html, body {
position: relative;
}
.is-dev-mode #root-view:before {
content: "";
height: 3px;
display: block;
background-image: -webkit-linear-gradient(#ffc833, #ebac00);
border-bottom: 1px solid #000;
}
#root-view #horizontal {
display: -webkit-flex;
height: 100%;
@ -72,4 +80,4 @@ html, body {
position: relative;
display: inline-block;
padding-left: 19px;
}
}

View File

@ -23,6 +23,11 @@
console.error(error.stack || error);
}
}
document.addEventListener('DOMContentLoaded', function() {
if(window.location.params.devMode == "true")
document.body.setAttribute('class', 'is-dev-mode')
})
</script>
<script src='../src/stdlib/require.js'></script>