Skip to content

Commit

Permalink
preloader
Browse files Browse the repository at this point in the history
  • Loading branch information
passiweinberger committed Sep 7, 2015
1 parent 51973d7 commit 148808f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion nostradamIQ-webapp/preloader/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

<body>
<div id="preload-wrapper"></div>
<img id="preloader-img" src="../img/preloader.GIF"\>
<!--<img id="preloader-img" src="../img/preloader.GIF"\>-->
<script type="text/javascript" src="./preload.js"></script>
<script type="text/javascript">
preload();
Expand Down
10 changes: 3 additions & 7 deletions nostradamIQ-webapp/preloader/preload.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
body {
height: 100%;
background: #444;
}

div#preload-wrapper {
height: 100%;
width: 100%;
background: #000;
overflow:hidden;
}
div#preload {
width: 100%;
Expand All @@ -16,7 +12,7 @@ div#preload {
position: absolute;
display: block;
opacity: 0.75;
background-color: #fff;
z-index: 99;
background-color: #000;
text-align: center;
overflow:hidden;
}
4 changes: 2 additions & 2 deletions nostradamIQ-webapp/preloader/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function preload() {
RADIUS = (HEIGHT - HEIGHT / 2) / 10;
}

document.getElementById('preloader-img').setAttribute('style', 'position:absolute; TOP:' + (HEIGHT/2 - RADIUS/2) + 'px; LEFT:' + (WIDTH/2 - RADIUS/2) + 'px; width:'+ RADIUS*2 + 'px; height:' + RADIUS*2 + 'px;');

//document.getElementById('preloader-img').setAttribute('style', 'position:absolute; TOP:' + 50 + '%; LEFT:' + 50 + '%; width:'+ RADIUS*2 + 'px; height:' + RADIUS*2 + 'px;'); //'position:absolute; TOP:' + (HEIGHT/2 - RADIUS) + 'px; LEFT:' + (WIDTH/2 - RADIUS) + 'px; width:'+ RADIUS*2 + 'px; height:' + RADIUS*2 + 'px;');
createCanvas = function() {
var canvas = document.createElement("canvas");
canvas.setAttribute("id", "preload");
Expand Down

0 comments on commit 148808f

Please sign in to comment.