wyattjmiller.com/src/main.js

41 lines
1.2 KiB
JavaScript
Raw Normal View History

2018-05-18 06:38:59 -05:00
/*
main.js, for all global functions throughout the site
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??
*/
function mediaDetect(){
var ScreenWidth = window.screen.width;
var ScreenHeight = window.screen.height;
console.log("width: " + ScreenWidth);
console.log("height: " + ScreenHeight);
if (ScreenWidth < 768){
console.log("user has a phone!");
} else if (ScreenWidth < 992) {
console.log("user has a tablet!");
} else if (ScreenWidth < 1200) {
console.log("user has a desktop!");
} else if (ScreenWidth < 2048) {
console.log("user has a hd display!");
} else if (ScreenWidth < 4096) {
console.log("user has a display greater than fhd!");
} else {
console.log("what do you spend your money on?")
}
2018-05-20 23:11:33 -05:00
}
function whatTimeIsIt(){
var death = new Date();
function isPastNoon(){
if (death.getHours > 12) {
death.getHours()-12;
} else {
death.getHours();
2018-05-24 22:43:26 -05:00
}
}
2018-05-20 23:11:33 -05:00
2018-05-24 22:43:26 -05:00
console.log(isPastNoon(), ":", death.getMinutes(), ":", death.getSeconds());
2018-05-18 06:38:59 -05:00
}