Commit f28a2f13 authored by Ioannis Tsafaras's avatar Ioannis Tsafaras
Browse files

Changes to default html page

- New auto refresh method
- Add overlay spinner
- Change default page layout to look like the lambda login page
parent d61fe51b
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Refresh" content="20; url=/"> <!--<meta http-equiv="Refresh" content="20; url=/">-->
<title>λambda Project</title> <title>λambda Project</title>
<!-- Tell the browser to be responsive to screen width --> <!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
...@@ -40,69 +40,54 @@ ...@@ -40,69 +40,54 @@
</a> </a>
</nav> </nav>
</header> </header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel -->
<div class="user-panel">
<div class="pull-left image">
<img src="files/img/default_blogger.png" class="img-circle" alt="User Image">
<div class="pull-left info">
<a href="/"><i class="fa fa-circle text-warning"></i> Initializing</a>
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
<li class="header">MAIN NAVIGATION</li>
<li class="active treeview">
<a href="/">
<i class="fa fa-dashboard"></i> <span>Home</span>
<!-- /.sidebar -->
<!-- Content Wrapper. Contains page content --> <!-- Content Wrapper. Contains page content -->
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content Header (Page header) --> <!-- Content Header (Page header) -->
<section class="content-header"> <section class="content-header">
<h1> <h1>
Lambda Service VM Dashboard
<small>Initializing <i class="fa fa-cog fa-spin"></i></small> <small>Login</small>
<small><i class="fa fa-cog fa-spin"></i></small>
</h1> </h1>
</section> </section>
<!-- Main content --> <!-- Main content -->
<section class="content"> <section class="content">
<div class="row"> <div class="lockscreen-wrapper">
<div class="col-xs-12"> <div class="lockscreen-logo">
<div class="box box-warning"> <span class="logo-lg"> <img src="files/img/okeanos-ico.png" alt="Okeanos"
<div class="box-header with-border"> style="margin-bottom:5px;margin-right: 3px;"><b>λambda</b></span>
<h3 class="box-title">Lambda Project</h3> </div>
<!-- User name -->
<div class="box-tools pull-right">
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i> <!-- START LOCK SCREEN ITEM -->
</button> <div class="lockscreen-item">
<button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i> <!-- lockscreen image -->
</button> <div class="lockscreen-image">
<img src="files/img/default_blogger.png" alt="User Image">
<!-- /.lockscreen-image -->
<!-- lockscreen credentials (contains the form) -->
<form class="lockscreen-credentials">
<div class="input-group">
~okeanos token
<div class="input-group-btn">
<button class="btn"><i class="fa fa-arrow-right text-muted"></i></button>
</div> </div>
</div><!-- /.box-header --> </div>
<div class="box-body no-padding"> </form><!-- /.lockscreen credentials -->
<div class="row">
<div class="col-md-12"> </div><!-- /.lockscreen-item -->
<div class="pad"> Your Service VM is initializing. Please wait... <div class="help-block text-center">
</div> Enter your ~okeanos token to retrieve your session
</div><!-- /.col --> </div>
</div><!-- /.row --> </div>
</div><!-- /.box-body -->
</div><!--box box-primary-->
</div><!--row -->
</section><!-- /.content --> </section><!-- /.content -->
</div><!-- /.content-wrapper --> </div><!-- /.content-wrapper -->
...@@ -145,6 +130,34 @@ ...@@ -145,6 +130,34 @@
<!-- AdminLTE App --> <!-- AdminLTE App -->
<script src="files/js/app.min.js"></script> <script src="files/js/app.min.js"></script>
<script src="files/js/jquery.plainoverlay.min.js"></script>
$(function () {
.jQuery-plainOverlay-progress {
border-color: #3c8dbc;
<!-- Reload after initialization -->
$(document).ready(function () {
setInterval(function () {
url: '/',
type: 'GET',
error: function () {
// Error is thrown when https ember site comes up, due to cross-origin request
location.href = '/';
}, 6000);
</body> </body>
</html> </html>
...@@ -21,3 +21,6 @@ cp /var/www/okeanos-LoD/webapp/frontend/bower_components/AdminLTE/bootstrap/css/ ...@@ -21,3 +21,6 @@ cp /var/www/okeanos-LoD/webapp/frontend/bower_components/AdminLTE/bootstrap/css/
# Copy default html # Copy default html
cp /var/www/okeanos-LoD/webapp/image/index.html /var/www/html cp /var/www/okeanos-LoD/webapp/image/index.html /var/www/html
# Fetch jquery-plainoverlay js
wget --quiet -P /var/www/html/files/js
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment