improves in hello message

This commit is contained in:
Diego Najar 2018-10-01 19:05:24 +02:00
parent bc268040de
commit c1b2eede30
3 changed files with 10 additions and 9 deletions

View File

@ -116,14 +116,14 @@ body.login {
color: #4586d4;
}
#good-message {
#hello-message {
padding: 10px 0;
color: #777;
margin-bottom: 20px;
}
#good-message span.oi {
top: 5px;
#hello-message span.oi {
top: 3px;
}
.ct-series-a .ct-line {

View File

@ -4,10 +4,10 @@
<!-- Good message -->
<div>
<h2 id="good-message"><span class="oi oi-target"></span> Hello!</h2>
<h2 id="hello-message"><span class="oi oi-target"></span> <?php echo $L->g('hello') ?></h2>
<script>
$( document ).ready(function() {
$("#good-message").fadeOut(1000, function() {
$("#hello-message").fadeOut(1000, function() {
var date = new Date()
var hours = date.getHours()
if (hours < 12) {
@ -15,7 +15,7 @@
} 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') ?>');
$(this).html('<span class="oi oi-moon"></span> <?php echo $L->g('good-evening') ?>');
}
}).fadeIn(1000);
});

View File

@ -357,7 +357,8 @@
"there-are-no-pages-at-this-moment": "There are no pages at this moment.",
"there-are-no-static-pages-at-this-moment": "There are no static pages at this moment.",
"there-are-no-draft-pages-at-this-moment": "There are no draft pages at this moment.",
"good-morning": "Good morning!",
"good-afternoon": "Good afternoon!",
"good-evening": "Good evening!"
"good-morning": "Good morning",
"good-afternoon": "Good afternoon",
"good-evening": "Good evening",
"hello": "Hello"
}