mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
c4bc87720c
Former-commit-id: 52e9247ae1f18de7d6107fa3b8f09405f20ff67e [formerly 061925e345a1ae9c1a9a79ccafcdffc48a16a915] [formerly 6a95b5bc1fbc107f24cc4d22984b11b3a0431932 [formerly 090f3d84d7
]]
Former-commit-id: 9dd617a9fda1a8a2e5aae3a7ae778e636b99fffb [formerly 23d3c62c29d6fc94b723210e33b867f02c342d73]
Former-commit-id: 26249524711272ca85cbef90494f9a3f55d58d5e
99 lines
2.8 KiB
Cheetah
99 lines
2.8 KiB
Cheetah
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>{{ .Title }}</title>
|
|
|
|
{{ template "header" }}
|
|
|
|
|
|
|
|
<script src="/static/js/jquery.autogrowtextarea.min.js"></script>
|
|
{{if .NoEdit}} {{else}} <script src="/static/js/websockets.js"></script> {{end}}
|
|
|
|
<script>
|
|
external_ip = '{{ .ExternalIP }}'
|
|
title_name = '{{ .Title }}'
|
|
</script>
|
|
|
|
|
|
|
|
<style type="text/css">
|
|
textarea {
|
|
width: 100%;
|
|
margin: 5px 0;
|
|
padding: 10px;
|
|
border: none;
|
|
overflow: auto;
|
|
outline: none;
|
|
font-size: large;
|
|
-webkit-box-shadow: none;
|
|
-moz-box-shadow: none;
|
|
box-shadow: none;
|
|
font-family: Tahoma, sans-serif;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background: #fff;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<!-- Fixed navbar -->
|
|
<nav class="navbar navbar-default navbar-fixed-bottom">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="/">Wiki</a>
|
|
</div>
|
|
<div id="navbar" class="collapse navbar-collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" class="active">Edit <span class="caret"></span></a>
|
|
<ul class="dropdown-menu">
|
|
<li class="dropdown-header">Previous versions</li>
|
|
<li><a href="/{{ .Title }}?version=0">First</a></li>
|
|
{{ range .Versions }}
|
|
<li><a href="/{{ $.Title }}?version={{ .VersionNum }}">{{ .VersionDate }}</a></li>
|
|
{{ end }}
|
|
<li><a href="/{{ .Title }}">Current</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="/{{ .Title }}/view">View</a></li>
|
|
<li><a href="/{{ .Title }}/list">List</a></li>
|
|
<li><a href="/about/view">About</a></li>
|
|
</ul>
|
|
</div>
|
|
<!--/.nav-collapse -->
|
|
</div>
|
|
</nav>
|
|
|
|
<form action='#' id="emit" method="post" name="emit">
|
|
|
|
<div>
|
|
<textarea autofocus rows={{ .NumRows }} class='auto_submit_item' id="emit_data" name="emit_data" placeholder="Start typing, it will save automatically. Go to awwkoala.com/{{ .Title }} to reload your note. Do not post anything private since anyone with the URL can access this note.">{{ .CurrentText }}</textarea>
|
|
</div>
|
|
|
|
</form>
|
|
<script>
|
|
$(document).ready(function() {
|
|
$("#emit_data").autoGrow();
|
|
});
|
|
</script>
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|