further theming simplification
This commit is contained in:
@@ -38,5 +38,4 @@ function onLoad() {
|
|||||||
}
|
}
|
||||||
if(iosDetected) $note.className += " ui-border"; else $note.focus();
|
if(iosDetected) $note.className += " ui-border"; else $note.focus();
|
||||||
}
|
}
|
||||||
showPage();
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,15 +108,8 @@ fileref.setAttribute("type", "text/css")
|
|||||||
fileref.setAttribute("href", fontURL)
|
fileref.setAttribute("href", fontURL)
|
||||||
document.getElementsByTagName("head")[0].appendChild(fileref)
|
document.getElementsByTagName("head")[0].appendChild(fileref)
|
||||||
|
|
||||||
function showPage() {
|
var less = { modifyVars: vars };
|
||||||
less = {
|
|
||||||
modifyVars: vars
|
|
||||||
};
|
|
||||||
var script = document.createElement("script");
|
var script = document.createElement("script");
|
||||||
script.type = "text/javascript";
|
script.type = "text/javascript";
|
||||||
script.src = "//cdnjs.cloudflare.com/ajax/libs/less.js/2.1.0/less.min.js";
|
script.src = "//cdnjs.cloudflare.com/ajax/libs/less.js/2.1.0/less.min.js";
|
||||||
document.head.appendChild(script);
|
document.head.appendChild(script);
|
||||||
}
|
|
||||||
|
|
||||||
// for the case if main.js is not loaded
|
|
||||||
var onLoad = showPage;
|
|
||||||
|
|||||||
@@ -206,8 +206,8 @@ td {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
display: flex !important;
|
display: flex;
|
||||||
display: -webkit-flex !important;
|
display: -webkit-flex;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
-webkit-flex-direction: column;
|
-webkit-flex-direction: column;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
(include-js "//cdnjs.cloudflare.com/ajax/libs/marked/0.3.2/marked.min.js")
|
(include-js "//cdnjs.cloudflare.com/ajax/libs/marked/0.3.2/marked.min.js")
|
||||||
(include-js "/js/md5.js")
|
(include-js "/js/md5.js")
|
||||||
(include-js "/js/main.js")))]
|
(include-js "/js/main.js")))]
|
||||||
[:body {:style "display: none" :onload "onLoad()"} content]))
|
[:body {:onload "onLoad()"} content]))
|
||||||
|
|
||||||
(defn- sanitize
|
(defn- sanitize
|
||||||
"Breakes all usages of <script> & <iframe>"
|
"Breakes all usages of <script> & <iframe>"
|
||||||
|
|||||||
Reference in New Issue
Block a user