messing with files of little importance
This commit is contained in:
37
src/main.js
37
src/main.js
@ -9,20 +9,20 @@ function mediaDetect(){
|
||||
var ScreenWidth = window.screen.width;
|
||||
var ScreenHeight = window.screen.height;
|
||||
|
||||
console.log("width: " + ScreenWidth);
|
||||
console.log("height: " + ScreenHeight);
|
||||
print("width: " + ScreenWidth);
|
||||
print("height: " + ScreenHeight);
|
||||
if (ScreenWidth < 768){
|
||||
console.log("user has a phone!");
|
||||
print("user has a phone!");
|
||||
} else if (ScreenWidth < 992) {
|
||||
console.log("user has a tablet!");
|
||||
print("user has a tablet!");
|
||||
} else if (ScreenWidth < 1200) {
|
||||
console.log("user has a desktop!");
|
||||
print("user has a desktop!");
|
||||
} else if (ScreenWidth < 2048) {
|
||||
console.log("user has a hd display!");
|
||||
print("user has a hd display!");
|
||||
} else if (ScreenWidth < 4096) {
|
||||
console.log("user has a display greater than fhd!");
|
||||
print("user has a display greater than fhd!");
|
||||
} else {
|
||||
console.log("what do you spend your money on?")
|
||||
print("what do you spend your money on?");
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,11 +30,20 @@ function whatTimeIsIt(){
|
||||
var death = new Date();
|
||||
|
||||
function isPastNoon(){
|
||||
if (death.getHours > 12) {
|
||||
death.getHours()-12;
|
||||
if (death.getHours() > 12) {
|
||||
print(death.getHours()-12);
|
||||
} else {
|
||||
death.getHours();
|
||||
}}
|
||||
console.log(isPastNoon(), ":", death.getMinutes(), ":", death.getSeconds());
|
||||
print(death.getHours());
|
||||
}
|
||||
}
|
||||
print(isPastNoon(), ":", death.getMinutes(), ":", death.getSeconds());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function backToTop(){
|
||||
// code goes here
|
||||
// this function has a button where js moves the page/screen back to the top
|
||||
}
|
||||
|
||||
mediaDetect();
|
||||
whatTimeIsIt();
|
@ -14,6 +14,6 @@ new Twitch.Embed("twitch-embed", {
|
||||
});
|
||||
|
||||
var follow = document.getElementById("twitch-follow");
|
||||
follow.addEventListener('click', function(user){
|
||||
//code goes here
|
||||
follow.addEventListener("click", function(user){
|
||||
this.user = user;
|
||||
}, false);
|
||||
|
Reference in New Issue
Block a user