From 43168e496adf8fca6b2cc206baf9003dd338f37e Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Thu, 19 Jun 2014 01:37:52 +0200 Subject: [PATCH] Some updates. --- package.json | 1 + src/_h5ai/client/css/inc/sidebar.less | 2 +- src/_h5ai/client/js/inc/core/resource.js | 2 +- src/_h5ai/client/js/scripts.js | 1 + src/_h5ai/index.html.jade | 16 ++++++++++------ src/_h5ai/server/php/inc/page.php.jade | 16 ++++++++++------ 6 files changed, 24 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 378f8ec0..b8b27151 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "a modern HTTP web server index", "url": "http://larsjung.de/h5ai/", "author": "Lars Jung", + "twitter": "lrsjng", "license": "MIT", "repository": { "type": "git", diff --git a/src/_h5ai/client/css/inc/sidebar.less b/src/_h5ai/client/css/inc/sidebar.less index 81693dff..b49c0d42 100644 --- a/src/_h5ai/client/css/inc/sidebar.less +++ b/src/_h5ai/client/css/inc/sidebar.less @@ -91,7 +91,7 @@ background: transparent; -webkit-appearance: none; padding: 0 4px; - width: 220px; + width: 224px; } input[type='range'] { diff --git a/src/_h5ai/client/js/inc/core/resource.js b/src/_h5ai/client/js/inc/core/resource.js index 9aef9fd3..64a8797e 100644 --- a/src/_h5ai/client/js/inc/core/resource.js +++ b/src/_h5ai/client/js/inc/core/resource.js @@ -75,6 +75,6 @@ modulejs.define('core/resource', ['_', '$', 'config', 'core/settings'], function icon: icon, ensureMarkdown: ensureMarkdown, ensureQRCode: ensureQRCode, - ensureSH: ensureSH, + ensureSH: ensureSH }; }); diff --git a/src/_h5ai/client/js/scripts.js b/src/_h5ai/client/js/scripts.js index 0250cdbf..cd574e33 100644 --- a/src/_h5ai/client/js/scripts.js +++ b/src/_h5ai/client/js/scripts.js @@ -2,6 +2,7 @@ // other libs // ---------- // @include "lib/modernizr-*.js" +if (window.attachEvent && !window.addEventListener) { throw 'no-browser'; } // @include "lib/underscore-*.js" // @include "lib/modulejs-*.js" // @include "lib/moment-*.js" diff --git a/src/_h5ai/index.html.jade b/src/_h5ai/index.html.jade index ff32752a..fd874a38 100644 --- a/src/_h5ai/index.html.jade +++ b/src/_h5ai/index.html.jade @@ -1,7 +1,7 @@ doctype 5 -//if lt IE 9 +//if lt IE 10 -//[if gt IE 8]>" doctype 5 -//if lt IE 9 +//if lt IE 10 -//[if gt IE 8]>