Skip to content

Commit

Permalink
add preloader to app
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Oct 27, 2017
1 parent 2e1f388 commit 5af77da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ body{

.container{
background: #fff ;
}

#loader{
text-align: center;
}

#loader img{
height: 128px;
}
10 changes: 8 additions & 2 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ <h2>
</a>
</td>
</tr>

<tr>
<td colspan="9" id="loader">
<img src="/assets/img/loader.gif" alt="[]" />
</td>
</tr>

</tbody>
</table>
Expand All @@ -69,6 +73,7 @@ <h2>
var newDate = new Date();
vue.processes = e;
vue.now = Math.floor(newDate.getTime());
$("#loader").slideUp(100);
});
}
var now = 0;
Expand All @@ -89,7 +94,8 @@ <h2>
$(function () {
GetData();
$("#refresh").click(function () {

$("#loader").slideDown(100);
GetData();
});
});
</script>
Expand Down

0 comments on commit 5af77da

Please sign in to comment.