summaryrefslogtreecommitdiff
path: root/www/static/js/browser.js
diff options
context:
space:
mode:
authoroweissbarth2014-06-18 20:03:03 +0200
committeroweissbarth2014-06-18 20:03:03 +0200
commitf1b69d4ed410d09b3971f707a95bc63d64bd2129 (patch)
tree0b5d331cc6ce16c293ea7181dc4c133a8fd4312f /www/static/js/browser.js
parent26bee865c08a5e15f9171b662f443eb6543e1794 (diff)
downloadfiles.iamfabulous.de-f1b69d4ed410d09b3971f707a95bc63d64bd2129.tar.gz
seperated js file
Diffstat (limited to 'www/static/js/browser.js')
-rw-r--r--www/static/js/browser.js44
1 files changed, 44 insertions, 0 deletions
diff --git a/www/static/js/browser.js b/www/static/js/browser.js
new file mode 100644
index 0000000..a0e9824
--- /dev/null
+++ b/www/static/js/browser.js
@@ -0,0 +1,44 @@
+
+function showNewFolder(){
+ document.getElementById("new-folder-bg").style.visibility = "visible";
+
+ return;
+}
+function hideNewFolder(){
+ document.getElementById("new-folder-bg").style.visibility = "hidden";
+ return;
+}
+
+function showUpload(){
+ document.getElementById("upload-bg").style.visibility = "visible";
+ return;
+}
+function hideUpload(){
+ document.getElementById("upload-bg").style.visibility = "hidden";
+ return;
+}
+
+
+function showMenu(e) {
+ var posx = e.clientX +window.pageXOffset +"px";
+ var posy = e.clientY + window.pageYOffset + "px";
+ document.getElementById("context-menu").style.position = "absolute";
+ document.getElementById("context-menu").style.display = "inline";
+ document.getElementById("context-menu").style.left = posx;
+ document.getElementById("context-menu").style.top = posy;
+ var source = e.target || e.srcElement;
+ var url = source.href;
+
+ //set context item commands
+ document.getElementById("copy-link").setAttribute("url", url);
+
+
+}
+function hideMenu() {
+ document.getElementById("context-menu").style.display = "none";
+}
+
+function copyToClipboard(text){
+ window.clip.setText(text);
+ alert("done");
+}