summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYukai Huang2016-11-02 11:26:06 +0800
committerYukai Huang2016-11-02 11:26:06 +0800
commit7a052b0dadae051c9ebec50c22d618e17585fa48 (patch)
tree72652be0f127054d9d5f40f93788f6f74d02d93e
parent971bfe29f8a4e1004f039b21fb4bbc3972fd8a16 (diff)
Require index stylesheets
Diffstat (limited to '')
-rw-r--r--public/js/index.js7
-rw-r--r--public/views/head.ejs6
2 files changed, 8 insertions, 5 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 8080b9c7..183a81c8 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1,6 +1,11 @@
/* jquery and jquery plugins */
require('../vendor/showup/showup');
+require('../css/index.css');
+require('../css/extra.css');
+require('../css/slide-preview.css');
+require('../css/site.css');
+
var toMarkdown = require('to-markdown');
var saveAs = require('file-saver').saveAs;
@@ -2306,7 +2311,7 @@ socket.on('delete', function () {
saveHistory(newnotehistory);
location.href = serverurl;
});
- }
+ }
});
var retryTimer = null;
socket.on('maintenance', function () {
diff --git a/public/views/head.ejs b/public/views/head.ejs
index 00571186..77cc1cf0 100644
--- a/public/views/head.ejs
+++ b/public/views/head.ejs
@@ -35,11 +35,9 @@
<link rel="stylesheet" href="<%- url %>/vendor/showup/showup.css">
<link rel="stylesheet" href="<%- url %>/css/mermaid.css">
<link rel="stylesheet" href="<%- url %>/css/markdown.css">
+
<%- include build/index-header %>
-<link rel="stylesheet" href="<%- url %>/css/index.css">
-<link rel="stylesheet" href="<%- url %>/css/extra.css">
-<link rel="stylesheet" href="<%- url %>/css/slide-preview.css">
-<link rel="stylesheet" href="<%- url %>/css/site.css">
+
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>