aboutsummaryrefslogtreecommitdiff
path: root/t_idea/index.html
diff options
context:
space:
mode:
Diffstat (limited to 't_idea/index.html')
-rw-r--r--t_idea/index.html20
1 files changed, 1 insertions, 19 deletions
diff --git a/t_idea/index.html b/t_idea/index.html
index 4b1d6c0..691f8be 100644
--- a/t_idea/index.html
+++ b/t_idea/index.html
@@ -7,9 +7,9 @@
<meta property="og:description" content="Ideez is an app that you can storm with ideas, hoping to facilitate plans and brainstorms."/>
<meta property="og:image" content="/static/favicon.ico" />
<link rel="stylesheet" href="/static/main.css">
+ <script src="/static/index.js" defer></script>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<title>Ideas</title>
-
</head>
<body>
{{ with .Error }}
@@ -41,22 +41,4 @@
{{ end }}
</ul>
</body>
- <script>
- let dels = document.querySelectorAll("form[action=\"/idea/delete/\"]");
- for (let el of dels) {
- el.addEventListener("submit", function(e) {
- e.preventDefault();
- if (confirm("are you sure?") === true) {
- this.submit();
- }
- })
- }
- let eels = document.querySelectorAll("button.edit");
- for (let el of eels) {
- el.onclick = function() {
- let title = el.getAttribute("data-title");
- location.href = "/idea/edit?t=" + title;
- }
- }
- </script>
</html>