Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- $('#sidebarCollapse').on('click', function () {
- $('#sidebar').toggleClass('active');
- $(this).toggleClass('active');
- });
- $("#hello-message").fadeOut(2000, function() {
- var date = new Date()
- var hours = date.getHours()
- if (hours <= 6 && hours < 12) {
- $(this).html('<span class="text-warning"><i class="fa fa-sun-o" aria-hidden="true"></i> <?php echo $lang['good-morning'] ?></span>');
- } else if (hours <= 12 && hours < 18) {
- $(this).html('<span class="text-warning"><i class="fa fa-sun-o" aria-hidden="true"></i> <?php echo $lang['good-afternoon'] ?></span>');
- } else if (hours <= 18 && hours < 22) {
- $(this).html('<span class="text-primary"><i class="fa fa-moon-o" aria-hidden="true"></i> <?php echo $lang['good-evening'] ?></span>');
- } else {
- $(this).html('<span class="text-primary"><i class="fa fa-moon-o" aria-hidden="true"></i> <?php echo $lang['good-night'] ?></span>');
- }
- }).fadeIn(2000);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement