summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortimb <opuscule@gmail.com>2015-08-05 10:20:10 -0700
committertimb <opuscule@gmail.com>2015-08-05 10:20:10 -0700
commitd56bce3596a6d06e59eceaa0336aa0ea46ab7858 (patch)
treec74263c5658cb0c5475c8a9964bef463ce7c191b
parent9c3f4b8fa8708dafbdd16cb4d538bfaa8897a89a (diff)
hide save ui in load mode
-rw-r--r--css/sally.css3
-rw-r--r--index.html12
-rw-r--r--js/clipboard.js8
3 files changed, 15 insertions, 8 deletions
diff --git a/css/sally.css b/css/sally.css
index db46136..16cd858 100644
--- a/css/sally.css
+++ b/css/sally.css
@@ -39,6 +39,9 @@ a:link, a:visited {text-decoration: none; color: #3b3740}
white-space:pre-wrap;
word-wrap: break-word;
}
+#gallery_wrapper {
+ display: inline
+}
.block {
padding:4px;
}
diff --git a/index.html b/index.html
index 0debfcf..26263b0 100644
--- a/index.html
+++ b/index.html
@@ -59,11 +59,13 @@
<button id="import_button">import colorcode</button>
<button id="import_html">import sally</button>
</span>
- <input id="username_input" type="text" placeholder="username">
- <input id="upload_input" type="text" placeholder="uploaded url">
- <button id="export_button">export</button>
- <button id="save_button">save</button>
- <button id="upload_button">upload</button><br>
+ <div id="gallery_wrapper">
+ <input id="username_input" type="text" placeholder="username">
+ <input id="upload_input" type="text" placeholder="uploaded url">
+ <button id="export_button">export</button>
+ <button id="save_button">save</button>
+ <button id="upload_button">upload</button>
+ </div><br>
<textarea id="import_textarea"></textarea>
</div>
diff --git a/js/clipboard.js b/js/clipboard.js
index 6016678..d6e5c4e 100644
--- a/js/clipboard.js
+++ b/js/clipboard.js
@@ -41,15 +41,17 @@ var clipboard = (function () {
import_mode: function () {
focus()
clipboard.importing = true
- import_buttons.style.display = "inline-block"
- export_button.style.display = format_group.style.display = "none"
+ gallery_wrapper.style.display = 'none'
+ format_el.style.display = 'none'
+ import_buttons.style.display = "inline"
import_textarea.value = ""
},
export_mode: function () {
focus()
clipboard.importing = false
import_buttons.style.display = "none"
- // export_button.style.display = format_group.style.display = "inline-block"
+ format_el.style.display = 'inline'
+ gallery_wrapper.style.display = 'inline'
clipboard.export_data()
},