improves in hello message
This commit is contained in:
parent
bc268040de
commit
c1b2eede30
|
@ -116,14 +116,14 @@ body.login {
|
||||||
color: #4586d4;
|
color: #4586d4;
|
||||||
}
|
}
|
||||||
|
|
||||||
#good-message {
|
#hello-message {
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
color: #777;
|
color: #777;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#good-message span.oi {
|
#hello-message span.oi {
|
||||||
top: 5px;
|
top: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ct-series-a .ct-line {
|
.ct-series-a .ct-line {
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
|
|
||||||
<!-- Good message -->
|
<!-- Good message -->
|
||||||
<div>
|
<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>
|
<script>
|
||||||
$( document ).ready(function() {
|
$( document ).ready(function() {
|
||||||
$("#good-message").fadeOut(1000, function() {
|
$("#hello-message").fadeOut(1000, function() {
|
||||||
var date = new Date()
|
var date = new Date()
|
||||||
var hours = date.getHours()
|
var hours = date.getHours()
|
||||||
if (hours < 12) {
|
if (hours < 12) {
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
} else if (hours < 18) {
|
} else if (hours < 18) {
|
||||||
$(this).html('<span class="oi oi-sun"></span> <?php echo $L->g('good-afternoon') ?>');
|
$(this).html('<span class="oi oi-sun"></span> <?php echo $L->g('good-afternoon') ?>');
|
||||||
} else {
|
} 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);
|
}).fadeIn(1000);
|
||||||
});
|
});
|
||||||
|
|
|
@ -357,7 +357,8 @@
|
||||||
"there-are-no-pages-at-this-moment": "There are no pages at this moment.",
|
"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-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.",
|
"there-are-no-draft-pages-at-this-moment": "There are no draft pages at this moment.",
|
||||||
"good-morning": "Good morning!",
|
"good-morning": "Good morning",
|
||||||
"good-afternoon": "Good afternoon!",
|
"good-afternoon": "Good afternoon",
|
||||||
"good-evening": "Good evening!"
|
"good-evening": "Good evening",
|
||||||
|
"hello": "Hello"
|
||||||
}
|
}
|
Loading…
Reference in New Issue