Skip to content

Commit

Permalink
added primitive hover state
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahadkins committed Jul 31, 2017
1 parent f9b9835 commit 042875f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ function clock () {

var timeToColor = function(a,b,c){
var concatTimes = a.toString() + b.toString() + c.toString();
console.log('concat times', concatTimes);
// console.log('concat times', concatTimes);
return concatTimes;
}

$('body').css("background-color", timeToColor(timeSeconds, timeMinutes, timeHours));

console.log(typeof(timeToColor(timeSeconds, timeMinutes, timeHours)));
$(".current-time").hover(function(e){
$(this).text("#" + timeToColor(timeSeconds, timeMinutes, timeHours));
});
}

// function call on timer
Expand Down

0 comments on commit 042875f

Please sign in to comment.