From 7047fe16da843d649baac375e9674f238072d7d5 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 6 Jan 2018 13:57:50 -0800 Subject: support posting code snippets --- views/new-code.php | 116 ++++++++++++++++++++++++++++++++++++ views/partials/code-bookmarklet.php | 3 + 2 files changed, 119 insertions(+) create mode 100644 views/new-code.php create mode 100644 views/partials/code-bookmarklet.php (limited to 'views') diff --git a/views/new-code.php b/views/new-code.php new file mode 100644 index 0000000..96a93d3 --- /dev/null +++ b/views/new-code.php @@ -0,0 +1,116 @@ +
+ + +
+ + +
+ +
+ + +
+ + +
+ +
+ + +
+ + url): ?> + + + + +
+ +
+ + +
+ +
+ +
+
+ Bookmarklet: code +
+ +
+ diff --git a/views/partials/code-bookmarklet.php b/views/partials/code-bookmarklet.php new file mode 100644 index 0000000..d0cf219 --- /dev/null +++ b/views/partials/code-bookmarklet.php @@ -0,0 +1,3 @@ +(function(){ + window.open("code?"+(window.location.hostname=='my_hostname ?>'?"edit="+encodeURIComponent(window.location.href)+"&":"")+"token=token ?>"); +})(); -- cgit v1.2.3