aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-10 20:34:10 -0800
committerfriendica <info@friendica.com>2013-11-10 20:34:10 -0800
commitc39200429046cdde16edbcb6e28c5cf3c7434d4a (patch)
treed79487fed7d34bd19aecf2c02c47d2c96862ee0b
parent0f241ab571b84a8cb1fccfb7a53adae70bebceb2 (diff)
downloadvolse-hubzilla-c39200429046cdde16edbcb6e28c5cf3c7434d4a.tar.gz
volse-hubzilla-c39200429046cdde16edbcb6e28c5cf3c7434d4a.tar.bz2
volse-hubzilla-c39200429046cdde16edbcb6e28c5cf3c7434d4a.zip
some more doco for how to finish it.
-rw-r--r--js/crypto.js9
-rwxr-xr-xview/tpl/jot.tpl3
2 files changed, 12 insertions, 0 deletions
diff --git a/js/crypto.js b/js/crypto.js
index 022613128..4b7baa155 100644
--- a/js/crypto.js
+++ b/js/crypto.js
@@ -18,6 +18,15 @@ function str_rot13 (str) {
}
+// We probably just want the element where the text is and find it ourself. e.g. if
+// there is highlighted text use it, otherwise use the entire text.
+// So the third element may be useless. Fix also in view/tpl/jot.tpl before
+// adding to all the editor templates and enabling the feature
+
+// Should probably do some input sanitising and dealing with bbcode, hiding key text, and displaying
+// results in a lightbox and/or popup form are left as an exercise for the reader.
+
+
function red_encrypt(alg, elem,text) {
var enc_text = '';
var newdiv = '';
diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl
index f7dd12758..c04880cf7 100755
--- a/view/tpl/jot.tpl
+++ b/view/tpl/jot.tpl
@@ -54,6 +54,9 @@
<div id="profile-expire-wrapper" style="display: {{$feature_expire}};" >
<i id="profile-expires" class="icon-eraser jot-icons" title="{{$expires}}" onclick="jotGetExpiry();return false;"></i>
</div>
+ <!-- div id="profile-encrypt-wrapper" style="display: {{$feature_encrypt}};" >
+ <i id="profile-encrypt" class="icon-key jot-icons" title="{{$encrypt}}" onclick="red_encrypt('aes256','profile-jot-text',$('#profile-jot-text').val());return false;"></i>
+ </div -->
<div id="profile-rotator-wrapper" style="display: {{$visitor}};" >