From 50c6b9de003b2e28f5484e5cfd38624fcc34ae39 Mon Sep 17 00:00:00 2001 From: John McLear Date: Wed, 20 Jul 2011 15:42:47 +0100 Subject: [PATCH] Temporary code that brings in some export support --- static/css/pad_lite.css | 2 ++ static/js/pad2.js | 7 +++++++ static/pad.html | 12 ++++++------ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/static/css/pad_lite.css b/static/css/pad_lite.css index 9931d6cf..6eb3bd22 100644 --- a/static/css/pad_lite.css +++ b/static/css/pad_lite.css @@ -958,6 +958,8 @@ position: relative; background-repeat:no-repeat; padding-left:25px; background-image: url("/static/img/fileicons.gif"); + color:#fff; + text-decoration:none; } #importexportline{ diff --git a/static/js/pad2.js b/static/js/pad2.js index fddd9622..9d98b653 100644 --- a/static/js/pad2.js +++ b/static/js/pad2.js @@ -21,6 +21,13 @@ var socket; $(document).ready(function() { handshake(); +// temporary place holder for exports, peter to move wherever he wants to put + $("#exporthtmla").attr("href", document.location.href + "/export/html"); + $("#exportplaina").attr("href", document.location.href + "/export/plain"); + $("#exportworda").attr("href", document.location.href + "/export/word"); + $("#exportpdfa").attr("href", document.location.href + "/export/pdf"); + $("#exportopena").attr("href", document.location.href + "/export/open"); + $("#exportwordlea").attr("href", document.location.href + "/export/wordle"); }); $(window).unload(function() diff --git a/static/pad.html b/static/pad.html index 0584c6e7..31442666 100644 --- a/static/pad.html +++ b/static/pad.html @@ -214,12 +214,12 @@ We removed this feature cause its not worth the space it needs in the editbar
Export current pad as: -
HTML
-
Plain text
-
Microsoft Word
-
PDF
-
OpenDocument
-
Wordle
+
HTML
+
Plain text
+
Microsoft Word
+
PDF
+
OpenDocument
+
Wordle