fix feedback

This commit is contained in:
2016-08-15 23:44:07 +02:00
parent 6622928299
commit 76b99dcc31
3 changed files with 17 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
<div id="feedback"></div>
<div id="header"></div> <div id="header"></div>
<div id="menu"> <div id="menu">
<a href="#settings" class="button fa fa-gear"></a> <a href="#settings" class="button fa fa-gear"></a>

View File

@@ -91,7 +91,7 @@ function getInfo(action, fOnSuccess, vars, fOnError, sType/*, bProcessIcon*/)
function feedback(sClass, sMsg, $Box) function feedback(sClass, sMsg, $Box)
{ {
$Box = $Box || $('body'); $Box = $Box || $('#feedback');
sMsg = sMsg || ''; sMsg = sMsg || '';
var sHeight = 20; var sHeight = 20;
$('.feedback').each(function(){sHeight += $(this).outerHeight() + 10;}); $('.feedback').each(function(){sHeight += $(this).outerHeight() + 10;});

View File

@@ -123,6 +123,21 @@ a.button:active {
margin:auto; margin:auto;
} }
/* Feedback */
#feedback {
position:absolute;
width:100%;
z-index:1000;
}
#feedback span.feedback {
display:block;
margin-bottom:1em;
width:calc(100% - 1em);
box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.6);
}
/* Header */ /* Header */
#header { #header {