Commit b7e8fac1 authored by Antoine Cellerier's avatar Antoine Cellerier

Add small "close/hide" buttons on some of the dialogs

parent 168cf850
...@@ -29,6 +29,7 @@ This dialog needs the following dialogs to be fully functional: <none> ...@@ -29,6 +29,7 @@ This dialog needs the following dialogs to be fully functional: <none>
<div id="browse" class="popup" style="display: none;"> <div id="browse" class="popup" style="display: none;">
<div class="title"> <div class="title">
Browse Browse
<img class="close" src="images/white_cross_small.png" alt="Close" onclick="hide('browse');"/>
</div> </div>
<div id="browser"> <div id="browser">
<a href="javascript:browse_dir(document.getElementById( 'browse_lastdir' ).value);">Click here to browse</a> <a href="javascript:browse_dir(document.getElementById( 'browse_lastdir' ).value);">Click here to browse</a>
......
...@@ -29,6 +29,7 @@ This dialog needs the following dialogs to be fully functional: browse ...@@ -29,6 +29,7 @@ This dialog needs the following dialogs to be fully functional: browse
<div id="input" class="dialog" style="display: none"> <div id="input" class="dialog" style="display: none">
<div class="title"> <div class="title">
Input Input
<img class="close" src="images/white_cross_small.png" alt="Close" onclick="hide('input');"/>
</div> </div>
<div class="controls"> <div class="controls">
<label for="input_mrl">Input (MRL)</label> <label for="input_mrl">Input (MRL)</label>
......
...@@ -107,9 +107,7 @@ sout and playlist . ...@@ -107,9 +107,7 @@ sout and playlist .
<div id="info" class="dialog" style="display: none;" > <div id="info" class="dialog" style="display: none;" >
<div class="title"> <div class="title">
Stream and media info Stream and media info
<button id="btn_info_hide" onclick="hide( 'info' );"> <img class="close" src="images/white_cross_small.png" alt="Close" onclick="hide('info');"/>
Hide
</button>
</div> </div>
<div id="infotree"> <div id="infotree">
</div> </div>
......
...@@ -28,6 +28,7 @@ This dialog needs the following dialogs to be fully functional: <none> ...@@ -28,6 +28,7 @@ This dialog needs the following dialogs to be fully functional: <none>
<div id="playlist" class="dialog" > <div id="playlist" class="dialog" >
<div class="title"> <div class="title">
Playlist Playlist
<img class="close" src="images/white_cross_small.png" alt="Close" onclick="hide('playlist');"/>
</div> </div>
<div class="controls"> <div class="controls">
<!--<button id="btn_delete" onmouseover="button_over(this);" onmouseout="button_out(this);"> <!--<button id="btn_delete" onmouseover="button_over(this);" onmouseout="button_out(this);">
......
...@@ -30,6 +30,7 @@ Note that the sout chain is used and sent to VLC by the input dialog ...@@ -30,6 +30,7 @@ Note that the sout chain is used and sent to VLC by the input dialog
<div id="sout" class="dialog" style="display: none"> <div id="sout" class="dialog" style="display: none">
<div class="title"> <div class="title">
Stream Output Stream Output
<img class="close" src="images/white_cross_small.png" alt="Close" onclick="hide('sout');"/>
</div> </div>
<div class="controls"> <div class="controls">
<label for="sout_mrl">Destination (MRL)</label> <label for="sout_mrl">Destination (MRL)</label>
......
...@@ -26,6 +26,8 @@ body { ...@@ -26,6 +26,8 @@ body {
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
font-size: 12pt; font-size: 12pt;
text-align: center; /* Center on page - IE */ text-align: center; /* Center on page - IE */
padding: 0px;
margin: 0px;
} }
div { div {
...@@ -142,7 +144,7 @@ div.popup { ...@@ -142,7 +144,7 @@ div.popup {
border: solid #888 1px; border: solid #888 1px;
margin: 10px auto; /* Center on page - Firefox */ margin: 10px auto; /* Center on page - Firefox */
position: absolute; position: absolute;
z-index: 1; z-index: 2;
font-size: 0.8em; font-size: 0.8em;
} }
div#browse { div#browse {
...@@ -152,6 +154,7 @@ div#browse { ...@@ -152,6 +154,7 @@ div#browse {
div#browse div.title { div#browse div.title {
background-color: #008; background-color: #008;
} }
div#browser { div#browser {
padding: 20px; padding: 20px;
} }
...@@ -199,3 +202,9 @@ div.menu button { ...@@ -199,3 +202,9 @@ div.menu button {
background: transparent; background: transparent;
border: 1px solid transparent; border: 1px solid transparent;
} }
div.popup img.close {
position: absolute;
right: 2px;
top: 2px;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment