Showing markdown import js and css only on upload page
Cette révision appartient à :
Parent
3bb7b94dd4
révision
71d757bf4c
2 fichiers modifiés avec 15 ajouts et 8 suppressions
|
@ -13,15 +13,10 @@
|
||||||
<!-- RSS Feed with Context -->
|
<!-- RSS Feed with Context -->
|
||||||
<link href="{{ block "rss_link" . }}{{ genRouteWithQuery "feed" .URL }}{{end}}" rel="alternate" type="application/rss+xml" title="Nyaa Pantsu - {{block "rsstitle" .}}Last torrents{{end}} RSS Feed" />
|
<link href="{{ block "rss_link" . }}{{ genRouteWithQuery "feed" .URL }}{{end}}" rel="alternate" type="application/rss+xml" title="Nyaa Pantsu - {{block "rsstitle" .}}Last torrents{{end}} RSS Feed" />
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
|
|
||||||
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
|
|
||||||
|
|
||||||
<link rel="stylesheet" id="style" href="{{.URL.Parse "/css/main.css"}}?v=2">
|
<link rel="stylesheet" id="style" href="{{.URL.Parse "/css/main.css"}}?v=2">
|
||||||
<link rel="stylesheet" id="theme" href="">
|
<link rel="stylesheet" id="theme" href="">
|
||||||
<script type="text/javascript">
|
|
||||||
var theme = localStorage.getItem("theme");
|
|
||||||
if (theme != "") document.getElementById("theme").href = "/css/" + theme;
|
|
||||||
</script>
|
|
||||||
<!-- Search Box for Google -->
|
<!-- Search Box for Google -->
|
||||||
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","url":"https://nyaa.pantsu.cat/","potentialAction":{"@type":"SearchAction","target":"https://nyaa.pantsu.cat/search?q={search_term_string}","query-input":"required name=search_term_string"}}</script>
|
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","url":"https://nyaa.pantsu.cat/","potentialAction":{"@type":"SearchAction","target":"https://nyaa.pantsu.cat/search?q={search_term_string}","query-input":"required name=search_term_string"}}</script>
|
||||||
<script>
|
<script>
|
||||||
|
@ -49,7 +44,12 @@
|
||||||
document.getElementById('theme').href = "/css/" + localStorage.getItem('theme');
|
document.getElementById('theme').href = "/css/" + localStorage.getItem('theme');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<!-- Fix theme switching for google chrome where onload doesn't work -->
|
||||||
|
<script type="text/javascript">
|
||||||
|
var theme = localStorage.getItem("theme");
|
||||||
|
if (theme != "") document.getElementById("theme").href = "/css/" + theme;
|
||||||
|
</script>
|
||||||
|
{{ block "additional_header" .}}{{end}}
|
||||||
</head>
|
</head>
|
||||||
<body onload="setTheme();">
|
<body onload="setTheme();">
|
||||||
<div id="mascot" class="hide-xs" onclick="playVoice();"></div>
|
<div id="mascot" class="hide-xs" onclick="playVoice();"></div>
|
||||||
|
@ -116,5 +116,6 @@
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" charset="utf-8" src="{{.URL.Parse "/js/main.js"}}?v=2"></script>
|
<script type="text/javascript" charset="utf-8" src="{{.URL.Parse "/js/main.js"}}?v=2"></script>
|
||||||
|
{{ block "footer_js" .}}{{end}}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -41,7 +41,13 @@
|
||||||
|
|
||||||
<button type="submit" class="form-input up-btn">{{call $.T "upload"}}</button>
|
<button type="submit" class="form-input up-btn">{{call $.T "upload"}}</button>
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">new SimpleMDE({ element: document.getElementById("desc") });</script>
|
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
{{ define "footer_js"}}
|
||||||
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
|
||||||
|
<script type="text/javascript">new SimpleMDE({ element: document.getElementById("desc") });</script>
|
||||||
|
{{end}}
|
||||||
|
{{ define "additional_header"}}
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
|
||||||
|
{{end}}
|
Référencer dans un nouveau ticket