1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Fixed HTML issue

Former-commit-id: 65e937aa022c5fda11c6537da2e7532fd45a8ea3 [formerly 69e54550c74718710ca50ada159c282e1c095cc9] [formerly daefbe079b10dbaf95a4bf57b1393c2ae4bc9c26 [formerly 5635fb16c9143e9cef46f754aca4cad21736c3d7 [formerly 870490403b]]]
Former-commit-id: 74501be5e030e6bfcfe44bf45fb0da72375353f5 [formerly 47928a77265107599634f49e2f4dc777728fb0f1]
Former-commit-id: 3ebbea9701ba26bbe7e912a150be2fc75e5fdadf
Former-commit-id: f23613399f
This commit is contained in:
Zack Scholl
2016-03-29 16:21:48 -04:00
parent 6adb82b7d7
commit 0dacd669c8
4 changed files with 444 additions and 11 deletions

View File

@@ -59,7 +59,16 @@
</style>
<script src="/static/js/sweetalert-dev.js"></script>
<link rel="stylesheet" href="/static/css/sweetalert.css">
{{ if .Coding }}
<script src="/static/js/codemirror.js"></script>
<link rel="stylesheet" href="/static/css/codemirror.css">
<script src="/static/js/{{ .CodeType }}.js"></script>
{{ if eq .CodeType "htmlmixed" }}
<script src="/static/js/css.js"></script>
<script src="/static/js/javascript.js"></script>
<script src="/static/js/xml.js"></script>
{{ end }}
{{ end }}
</head>
<body>
@@ -301,9 +310,6 @@
{{ if .Coding }}
<script src="/static/js/codemirror.js"></script>
<link rel="stylesheet" href="/static/css/codemirror.css">
<script src="/static/js/{{ .CodeType }}.js"></script>
<script>
var editor = CodeMirror.fromTextArea(document.getElementById("emit_data"), {
lineNumbers: true,

View File

@@ -54,6 +54,18 @@ a.deleteable {
{{ end }}
<script src="/static/js/sweetalert-dev.js"></script>
<link rel="stylesheet" href="/static/css/sweetalert.css">
{{ if .Coding }}
<script src="/static/js/codemirror.js"></script>
<link rel="stylesheet" href="/static/css/codemirror.css">
<script src="/static/js/{{ .CodeType }}.js"></script>
{{ if eq .CodeType "htmlmixed" }}
<script src="/static/js/css.js"></script>
<script src="/static/js/javascript.js"></script>
<script src="/static/js/xml.js"></script>
{{ end }}
{{ end }}
</head>
<body>
@@ -298,9 +310,6 @@ $(document).keydown(function(e){
{{ if .Coding }}
<script src="/static/js/codemirror.js"></script>
<link rel="stylesheet" href="/static/css/codemirror.css">
<script src="/static/js/{{ .CodeType }}.js"></script>
<script>
var editor = CodeMirror.fromTextArea(document.getElementById("emit_data"), {
lineNumbers: true,