welcome message
This commit is contained in:
parent
b388af6601
commit
4837ccb94b
@ -117,10 +117,13 @@ body.login {
|
||||
}
|
||||
|
||||
#good-message {
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid #f1f1f1;
|
||||
padding: 20px;
|
||||
padding: 10px 0;
|
||||
color: #777;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
#good-message span.oi {
|
||||
top: 5px;
|
||||
}
|
||||
|
||||
.ct-series-a .ct-line {
|
||||
|
@ -4,19 +4,20 @@
|
||||
|
||||
<!-- Good message -->
|
||||
<div>
|
||||
<h2 id="good-message">Hello!</h2>
|
||||
<h2 id="good-message"><span class="oi oi-heart"></span> Hello!</h2>
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
var date = new Date()
|
||||
var hours = date.getHours()
|
||||
|
||||
if (hours < 12) {
|
||||
$("#good-message").html("<?php echo $L->g('good-morning') ?>");
|
||||
} else if (hours < 18) {
|
||||
$("#good-message").html("<?php echo $L->g('good-afternoon') ?>");
|
||||
} else {
|
||||
$("#good-message").html("<?php echo $L->g('good-evening') ?>");
|
||||
}
|
||||
$("#good-message").fadeOut(1000, function() {
|
||||
var date = new Date()
|
||||
var hours = date.getHours()
|
||||
if (hours < 12) {
|
||||
$(this).html('<span class="oi oi-sun"></span> <?php echo $L->g('good-morning') ?>');
|
||||
} else if (hours < 18) {
|
||||
$(this).html('<span class="oi oi-sun"></span> <?php echo $L->g('good-afternoon') ?>');
|
||||
} else {
|
||||
$(this).html('<span class="oi oi-sun"></span> <?php echo $L->g('good-evening') ?>');
|
||||
}
|
||||
}).fadeIn(1000);
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user