diff --git a/src/index.php b/src/index.php index adc342f..68c0451 100644 --- a/src/index.php +++ b/src/index.php @@ -9,15 +9,13 @@ - -
-

Hello there, people!

+

I write code. I do nothing special.


There's nothing much here except my latest project that I worked on. It's a GitHub client tool for viewing repositories once a user is searched.

@@ -25,4 +23,6 @@
+ + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 8d2437a..376616e 100644 --- a/src/main.js +++ b/src/main.js @@ -5,6 +5,9 @@ Created by Wyatt J. Miller, published by Entourage Solutions Hey there, nice to see you! There's nothing here so why don't you fuck off?? */ +var elTime = document.getElementById("time"); +var time = new Date().getHours(); + function mediaDetect(){ var ScreenWidth = window.screen.width; var ScreenHeight = window.screen.height; @@ -26,16 +29,24 @@ function mediaDetect(){ } } -function whatTimeIsIt() { - console.log(Intl.DateTimeFormat().resolvedOptions().timeZone); -} function backToTop(){ // code goes here // this function has a button where js moves the page/screen back to the top } -//mediaDetect(); -var time = document.getElementById("load"); -time.addEventListener("load", whatTimeIsIt, false); +var x = "Good morning, people!"; +var y = "Good afternoon, people!"; +var z = "Good evening, people!"; +var a = "Hello!"; -whatTimeIsIt(); +if (time < 12) { + elTime.innerHTML = x; +} else if (time < 18) { + elTime.innerHTML = y; +} else if (time < 23) { + elTime.innerHTML = z; +} else { + elTime.innerHTML = a; +} + +//whatTimeIsIt();