Skip to content

Commit

Permalink
Added loader message
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Marc Gehring committed Aug 8, 2014
1 parent ca67da3 commit 79ec92e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
15 changes: 15 additions & 0 deletions assets/stylesheets/application.css
Expand Up @@ -3,10 +3,12 @@
body {
margin: 0px;
padding: 0px;
background: #000000;
}

#interface {
position: absolute;
display: none;
width: auto;
height: auto;
z-index: 500;
Expand All @@ -24,3 +26,16 @@ body {
height: 100%;
z-index: 100;
}

#overlay {
background: #000000;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
color: #fff;
font-size: 2em;
line-height: 100%;
text-align: center;
}
12 changes: 10 additions & 2 deletions index.html
Expand Up @@ -8,6 +8,7 @@
</head>
<body>

<div id="overlay"></div>
<div id="interface">
Analyzing Path <span id="readpathcur">0</span> / <span id="readpathtot">?</span><br />
Rendering Path <span id="rendpathcur">0</span> / <span id="rendpathtot">?</span><br />
Expand All @@ -32,8 +33,15 @@


var printer = printerultimaker2;

$.get('gcode/programmer.gcode', function(payload){
var model = 'skullglass';

$('#overlay')
.text('Loading model: '+model)
.css('line-height', window.innerHeight+'px');

$.get('gcode/'+model+'.gcode', function(payload){
$('#overlay').hide();
$('#interface').show();
gcview._init();
gcparse._parse(payload);
});
Expand Down

0 comments on commit 79ec92e

Please sign in to comment.