diff --git a/.htaccess b/.htaccess new file mode 100644 index 00000000000..58230365bf5 --- /dev/null +++ b/.htaccess @@ -0,0 +1,4 @@ +ErrorDocument 404 //owncloud/templates/404.php +php_value upload_max_filesize 20M +php_value post_max_size 20M +SetEnv htaccessWorking true diff --git a/apps/files_imageviewer/appinfo/app.php b/apps/files_imageviewer/appinfo/app.php new file mode 100644 index 00000000000..bc0059b8b66 --- /dev/null +++ b/apps/files_imageviewer/appinfo/app.php @@ -0,0 +1,6 @@ + diff --git a/apps/files_imageviewer/appinfo/info.xml b/apps/files_imageviewer/appinfo/info.xml new file mode 100644 index 00000000000..f658409be79 --- /dev/null +++ b/apps/files_imageviewer/appinfo/info.xml @@ -0,0 +1,10 @@ + + + files_imageview + Imageviewer + Simple image viewer for owncloud + 1.0 + AGPL + Robin Appelman + 2 + \ No newline at end of file diff --git a/apps/files_imageviewer/css/lightbox.css b/apps/files_imageviewer/css/lightbox.css new file mode 100644 index 00000000000..a6e844a2e28 --- /dev/null +++ b/apps/files_imageviewer/css/lightbox.css @@ -0,0 +1,23 @@ +#lightbox_overlay{ + position:fixed; + display:none; + height:100%; + width:100%; + top:0px; + left:0px; + opacity:0.5; + filter: alpha(opacity = 50); + background-color:black; + z-index:9999; +} + +#lightbox{ + position:fixed; + display:none; + max-height:90%; + max-width:90%; + top:10px; + margin-left:auto; + margin-right:auto; + z-index:9999; +} \ No newline at end of file diff --git a/apps/files_imageviewer/js/lightbox.js b/apps/files_imageviewer/js/lightbox.js new file mode 100644 index 00000000000..25da2bc6835 --- /dev/null +++ b/apps/files_imageviewer/js/lightbox.js @@ -0,0 +1,58 @@ + +var lightBoxShown=false; +$(document).ready(function() { + if(typeof FileActions!=='undefined'){ + images={};//image cache + var overlay=$('