mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
6f39dab8d6
Former-commit-id: 1b543f804e763ac073ee76d3f8587d5a2ced1144 [formerly c01054eb87a0cb9738b529be9ca82d5a31c7d1b9] [formerly d9c64547e374965a8fbdad17ee9130f8bace0a38 [formerly 8019335da0
]]
Former-commit-id: d5aae886478027d51bb4d75d17205f00509b4c5a [formerly 2d6dc42d8e610ed5823b3747d2167ba3231360e3]
Former-commit-id: 6f0055b5e2336ead2974ad79e5759c0d67a75566
92 lines
2.3 KiB
Cheetah
92 lines
2.3 KiB
Cheetah
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>{{ .Title }}</title>
|
|
|
|
{{ template "header" }}
|
|
|
|
|
|
|
|
<script src="/static/js/jquery.autogrowtextarea.min.js"></script>
|
|
<script src="/static/js/cowyo.js"></script>
|
|
<script>
|
|
external_ip = '{{ .ExternalIP }}'
|
|
title_name = '{{ .Title }}'
|
|
</script>
|
|
|
|
|
|
|
|
<style type="text/css">
|
|
textarea {
|
|
width: 100%;
|
|
margin: 5px 0;
|
|
padding: 3px;
|
|
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="/">Cowyo</a>
|
|
</div>
|
|
<div id="navbar" class="collapse navbar-collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li class="active"><a href="/{{ .Title }}">Edit</a></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 cowyo.com/{{ .Title }} to reload this page.
|
|
Do not post anything private.
|
|
Anyone with the URL can access this note.">{{ .CurrentText }}</textarea>
|
|
</div>
|
|
|
|
</form>
|
|
<script>
|
|
$(document).ready(function() {
|
|
$("#emit_data").autoGrow();
|
|
});
|
|
</script>
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|