Skip to content

Commit

Permalink
Added screenshots to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
midstar committed Feb 24, 2019
1 parent 9d9bb97 commit d5ccb71
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
debug*
tmpout
tmpcache
screenshottemp
main-packr.go
a_main-packr.go
packrd
mediaweb
mediaweb.exe
mediaweb.log
mediaweb_windows_x64_setup.exe
mediaweb_windows_x64_setup.exe
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ No additional stuff, such as dockers and similar is required.

MediaWEB is well suited to run on small platforms such as Raspberry Pi, Banana Pi, ROCK64 and similar. It is still very fast and can be used with advantage on PC:s running Windows, Linux or Mac OS.

## Screenshots

![browser](testmedia/screenshot_browser.jpg)

![viewer](testmedia/screenshot_viewer.jpg)

## Features

* Simple WEB GUI for viewing your images and videos
Expand Down
36 changes: 24 additions & 12 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,13 @@

/* The Modal (background) */
.modal {
/*border-style: solid;
border-width: 5x 5px 5px 5px;
border-color: purple;*/
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
padding-top: 30px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
Expand All @@ -77,8 +80,11 @@
background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
/* Modal Content (image/video) */
.modal-content {
/*border-style: solid;
border-width: 1px 1px 1px 1px;
border-color: red;*/
margin: auto;
display: block;
max-width: 90%;
Expand All @@ -88,16 +94,27 @@

/* Caption of Modal Image */
#caption {
/*border-style: solid;
border-width: 1px 1px 1px 1px;
border-color: blue;*/
margin: auto;
display: block;
width: 80%;
max-width: 700px;
text-align: center;
color: #ccc;
padding: 10px 0;
height: 150px;
max-height: 10%;
}


/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
.modal-content {
width: 100%;
}
}

/* Add Animation */
.modal-content, #caption {
-webkit-animation-name: zoom;
Expand Down Expand Up @@ -145,13 +162,6 @@
#mediaViewerNext {
top: 30%;
right: 35px;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
.modal-content {
width: 100%;
}
}

/* Loader / spinner */
Expand Down Expand Up @@ -515,10 +525,12 @@
<span class="mediaButton" id="mediaViewerPrev">&lsaquo;</span>
<span class="mediaButton" id="mediaViewerNext">&rsaquo;</span>
<!-- For images -->
<img class="modal-content" id="mediaViewerImg" style="display: none;">
<img id="mediaViewerImg" class="modal-content" style="display: none;">
<!-- For videos -->
<video controls class="modal-content" id="mediaViewerVideo" style="display: none;"></video>
<video controls id="mediaViewerVideo" class="modal-content" style="display: none;"></video>
<!-- Common caption -->
<div id="caption"></div>

</div>

</body>
Expand Down
Binary file added testmedia/screenshot_browser.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testmedia/screenshot_viewer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d5ccb71

Please sign in to comment.