From 2f0f906782cd36c7474c93ab9728846a7d2549bd Mon Sep 17 00:00:00 2001 From: oweissbarth Date: Wed, 18 Jun 2014 20:05:19 +0200 Subject: Made Context Menu non transparent Added copy to clipboard Made contextmenu items visible for logged in users only --- www/browse.php | 142 ++++++++++++++++++++++++++----------------------- www/static/browser.css | 13 +++++ 2 files changed, 88 insertions(+), 67 deletions(-) diff --git a/www/browse.php b/www/browse.php index 4e12694..ee36122 100644 --- a/www/browse.php +++ b/www/browse.php @@ -42,54 +42,66 @@ function browse($content){ echo ' - '; + + echo get_upload(); + + echo get_new_folder(); + + echo get_context_menu(); + + echo get_file_list($file_list); + + echo get_zero_clipboard(); + + include("static/footer.html"); +} + +function get_zero_clipboard(){ + 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; - } - function hideMenu() { - document.getElementById("context-menu").style.display = "none"; - } - -