79830250

Date: 2025-11-26 00:55:07
Score: 3.5
Natty:
Report link

There You go everone it might work everyday :)

remember you need to get the attched the file together in code

function clock(){
    'use strict';
                
                var date = new Date();
                
                var hours = date.getHours();
                //if(hours<10) hours = "0" +hours;
                  
                var minutes = date.getMinutes();
                //if(minutes<10) minutes = "0" +minutes;
       
                var seconds = date.getSeconds();
                //if(seconds<10) seconds = "0" +seconds;
               
                var midday;
                
                hours = updateTime(hours);
                minutes = updateTime(minutes);
                seconds = updateTime(seconds);
                
                //var name = "Your Alias or name :)";
                
                midday = (hours >=12) ? "PM" : "AM";
                
                document.getElementById("clock").innerHTML = hours + ":" + minutes + ":" + seconds + midday;
                
                var time = setTimeout(function(){
                    clock();
                    
                }, 1000);

                //Good morning, afternoon, evening
                if(hours < 12){
                    
                    var greeting = "Good Morning!" + name;
                    
                }
                if(hours >= 12 && hours <= 18){
                    
                    var greeting = "Good Afternoon!" + name;
                    
                }
                if(hours >= 18 && hours <=24){
                    
                    var greeting = "Good Evening!" + name;
                    
                }
                
                  document.getElementById("greeting").innerHTML = greeting;
                
                }
            
                 function updateTime(K){
                     
                     if(K < 10){
                         
                         return "0" + K
                         
                        }else{
                            
                            return K;
                            
                        }
                     
                 }
            
                  clock();
            
Reasons:
  • Blacklisted phrase (1): Good Afternoon
  • Blacklisted phrase (1): Good morning
  • Blacklisted phrase (1): Good Morning
  • Blacklisted phrase (1): Good Evening
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bartłomiej Trojanowski