messing with files of little importance
This commit is contained in:
parent
7bd601f3f5
commit
05b1d07947
30
.eslintrc.json
Normal file
30
.eslintrc.json
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"browser": true
|
||||||
|
},
|
||||||
|
"extends": "eslint:recommended",
|
||||||
|
"rules": {
|
||||||
|
"indent": [
|
||||||
|
"error",
|
||||||
|
4
|
||||||
|
],
|
||||||
|
"linebreak-style": [
|
||||||
|
"error",
|
||||||
|
"unix"
|
||||||
|
],
|
||||||
|
"quotes": [
|
||||||
|
"error",
|
||||||
|
"double"
|
||||||
|
],
|
||||||
|
"semi": [
|
||||||
|
"error",
|
||||||
|
"always"
|
||||||
|
],
|
||||||
|
"no-undef": [
|
||||||
|
"warn"
|
||||||
|
],
|
||||||
|
"no-unused-vars": [
|
||||||
|
"warn"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
vendor
|
||||||
|
.vscode
|
||||||
|
composer.json
|
||||||
|
composer.lock
|
||||||
|
.eslintrc.json
|
||||||
|
|
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"lua.targetVersion": "5.3"
|
||||||
|
}
|
@ -3,7 +3,7 @@
|
|||||||
# Licensed by the MIT
|
# Licensed by the MIT
|
||||||
#
|
#
|
||||||
# Copying files in the dockerfile is kind of a mess. Actually not really.
|
# Copying files in the dockerfile is kind of a mess. Actually not really.
|
||||||
# Just remember when linking files, follow the method below.
|
# Just remember when linking files in code, follow the method below.
|
||||||
FROM php:7.0-apache
|
FROM php:7.0-apache
|
||||||
RUN /bin/bash -c "cd /var/www/html && mkdir assets && mkdir css && mkdir img && mkdir webfonts"
|
RUN /bin/bash -c "cd /var/www/html && mkdir assets && mkdir css && mkdir img && mkdir webfonts"
|
||||||
COPY src/ /var/www/html
|
COPY src/ /var/www/html
|
||||||
|
35
src/main.js
35
src/main.js
@ -9,20 +9,20 @@ function mediaDetect(){
|
|||||||
var ScreenWidth = window.screen.width;
|
var ScreenWidth = window.screen.width;
|
||||||
var ScreenHeight = window.screen.height;
|
var ScreenHeight = window.screen.height;
|
||||||
|
|
||||||
console.log("width: " + ScreenWidth);
|
print("width: " + ScreenWidth);
|
||||||
console.log("height: " + ScreenHeight);
|
print("height: " + ScreenHeight);
|
||||||
if (ScreenWidth < 768){
|
if (ScreenWidth < 768){
|
||||||
console.log("user has a phone!");
|
print("user has a phone!");
|
||||||
} else if (ScreenWidth < 992) {
|
} else if (ScreenWidth < 992) {
|
||||||
console.log("user has a tablet!");
|
print("user has a tablet!");
|
||||||
} else if (ScreenWidth < 1200) {
|
} else if (ScreenWidth < 1200) {
|
||||||
console.log("user has a desktop!");
|
print("user has a desktop!");
|
||||||
} else if (ScreenWidth < 2048) {
|
} else if (ScreenWidth < 2048) {
|
||||||
console.log("user has a hd display!");
|
print("user has a hd display!");
|
||||||
} else if (ScreenWidth < 4096) {
|
} else if (ScreenWidth < 4096) {
|
||||||
console.log("user has a display greater than fhd!");
|
print("user has a display greater than fhd!");
|
||||||
} else {
|
} 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();
|
var death = new Date();
|
||||||
|
|
||||||
function isPastNoon(){
|
function isPastNoon(){
|
||||||
if (death.getHours > 12) {
|
if (death.getHours() > 12) {
|
||||||
death.getHours()-12;
|
print(death.getHours()-12);
|
||||||
} else {
|
} else {
|
||||||
death.getHours();
|
print(death.getHours());
|
||||||
}}
|
}
|
||||||
console.log(isPastNoon(), ":", death.getMinutes(), ":", death.getSeconds());
|
}
|
||||||
|
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");
|
var follow = document.getElementById("twitch-follow");
|
||||||
follow.addEventListener('click', function(user){
|
follow.addEventListener("click", function(user){
|
||||||
//code goes here
|
this.user = user;
|
||||||
}, false);
|
}, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user