Skip to content

Commit

Permalink
fix loading screen
Browse files Browse the repository at this point in the history
it needs to be inside the directive, so that it gets replaced when the app loads
  • Loading branch information
Mavtak committed Dec 3, 2017
1 parent 9987dad commit 8c853c0
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions Roomie.Web.AngularWebsite/src/index.html
Expand Up @@ -21,55 +21,55 @@
</head>
<body>
<roomie-app>
</roomie-app>
<div id="loading-screen">
<div class="vertical-support"></div>
<div class="centered-content">
<div class="text">
<noscript>seriously?</noscript>
</div>
<div class="indicators">
<noscript>did 2010 happen yet? take off your tinfoil hat, enable JavaScript, and rejoin civilization.</noscript>
<div id="loading-screen">
<div class="vertical-support"></div>
<div class="centered-content">
<div class="text">
<noscript>seriously?</noscript>
</div>
<div class="indicators">
<noscript>did 2010 happen yet? take off your tinfoil hat, enable JavaScript, and rejoin civilization.</noscript>
</div>
</div>
</div>
<style type="text/css">
#loading-screen
{
text-align: center;
font-family: sans-serif;
color: white;
background-color: #4d007f;
}
<style type="text/css">
#loading-screen
{
text-align: center;
font-family: sans-serif;
color: white;
background-color: #4d007f;
}

#loading-screen > *
{
display: inline-block;
vertical-align: middle;
}
#loading-screen > *
{
display: inline-block;
vertical-align: middle;
}

#loading-screen .text
{
font-size: 200%;
font-weight: bold;
}
#loading-screen .text
{
font-size: 200%;
font-weight: bold;
}

#loading-screen > .vertical-support
{
height: 100%;
}
#loading-screen > .vertical-support
{
height: 100%;
}

#loading-screen > style,
#loading-screen > script
{
display: none
}
</style>
<script type="text/javascript">
(function () {
var text = document.getElementById('loading-screen').getElementsByClassName('text')[0];
text.appendChild(document.createTextNode('loading'));
})();
</script>
</div>
#loading-screen > style,
#loading-screen > script
{
display: none
}
</style>
<script type="text/javascript">
(function () {
var text = document.getElementById('loading-screen').getElementsByClassName('text')[0];
text.appendChild(document.createTextNode('loading'));
})();
</script>
</div>
</roomie-app>
</body>
</html>

0 comments on commit 8c853c0

Please sign in to comment.