2016-02-06 16:40:53 +03:00
<!DOCTYPE html>
<html>
<head>
<title>{{ .Title }}</title>
2016-02-07 19:05:38 +03:00
{{ template "header" }}
2016-02-07 16:45:42 +03:00
<script src="/static/js/jquery.autogrowtextarea.min.js"></script>
<script src="/static/js/cowyo.js"></script>
2016-02-06 16:40:53 +03:00
<script>
2016-02-07 16:45:42 +03:00
external_ip = '{{ .ExternalIP }}'
title_name = '{{ .Title }}'
2016-02-06 16:40:53 +03:00
</script>
<style type="text/css">
textarea {
width: 100%;
margin: 5px 0;
padding: 3px;
border: none;
overflow: auto;
outline: none;
2016-02-07 08:24:17 +03:00
font-size: large;
2016-02-06 16:40:53 +03:00
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
font-family: Tahoma, sans-serif;
}
2016-02-07 19:05:38 +03:00
body {
margin: 0;
background: #fff ;
2016-02-09 04:05:29 +03:00
max-width: 800px;
2016-02-07 19:05:38 +03:00
margin: 0 auto;
}
2016-02-06 16:40:53 +03:00
</style>
</head>
<body>
2016-02-07 19:05:38 +03:00
<!-- 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>
2016-02-06 16:40:53 +03:00
<form action=' #' id="emit" method="post" name="emit">
<div>
2016-02-08 16:42:19 +03:00
<textarea autofocus rows={{ .NumRows }} class='auto_submit_item' id="emit_data" name="emit_data" placeholder="Start typing, it will save automatically.
2016-02-07 19:05:38 +03:00
Go to cowyo.com/{{ .Title }} to reload this page.
Do not post anything private.
2016-02-08 16:37:22 +03:00
Anyone with the URL can access this note.">{{ .CurrentText }}</textarea>
2016-02-06 16:40:53 +03:00
</div>
</form>
<script>
$(document).ready(function() {
$(" #emit _data " ).autoGrow();
});
</script>
2016-02-07 19:05:38 +03:00
2016-02-06 16:40:53 +03:00
</body>
</html>