improves in hello message
This commit is contained in:
parent
bc268040de
commit
c1b2eede30
@ -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 {
|
||||
|
@ -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);
|
||||
});
|
||||
|
@ -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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user