From c22af363f3d166839139fc03961de23dcbb6b886 Mon Sep 17 00:00:00 2001 From: Ghislain Loaec Date: Fri, 2 Oct 2015 09:58:24 +0200 Subject: [PATCH] Description Ref #8116 + Offline mode Ref #8052 + Minor fixes --- assets/scripts/momo.coffee | 3 +- www/css/index.css | 16 ++++++- www/index.html | 68 ++++++++++++++++++--------- www/js/index.js | 95 +++++++++++++++++++++++++++++++++++++- 4 files changed, 157 insertions(+), 25 deletions(-) diff --git a/assets/scripts/momo.coffee b/assets/scripts/momo.coffee index a4090de..51b54e6 100644 --- a/assets/scripts/momo.coffee +++ b/assets/scripts/momo.coffee @@ -7,9 +7,10 @@ class Momo contructor: (args...) -> @bindEvents() + bindEvents: -> # Navigation Handler - window.addEventListener "hashchange", @onHashChange, false + xindow.addEventListener "hashchange", @onHashChange, false document.addEventListener "deviceready", @onDeviceReady, false init: -> diff --git a/www/css/index.css b/www/css/index.css index 896511b..59ad62a 100644 --- a/www/css/index.css +++ b/www/css/index.css @@ -280,7 +280,7 @@ img { display: table; } .navbar-header { - min-width: 200px; + /*min-width: 300px;*/ } .parent-navbar-brand { display: table; @@ -338,6 +338,9 @@ h1 { overflow:visible; padding:0px; } +h5 { + font-size: 16px; +} @keyframes fade { from { opacity: 1.0; } @@ -377,15 +380,26 @@ pre .boolean { color: #7587A6; } pre .null { color: #828282; } pre .key { color: #CDA869; } +.top-0 { + margin-top: 0px; +} .top-10 { margin-top: 10px; } .top-20 { margin-top: 20px; } +.bottom-0 { + margin-bottom: 0px; +} .bottom-10 { margin-bottom: 10px; } .bottom-20 { margin-bottom: 20px; } +@media (min-width: 768px) { + .navbar .navbar-btn { + padding-left: 0; + } +} diff --git a/www/index.html b/www/index.html index ca84c84..bc3f483 100644 --- a/www/index.html +++ b/www/index.html @@ -84,15 +84,15 @@ + + +