added .eslintrc, .gitignore

This commit is contained in:
Wyatt Miller 2018-05-24 23:43:26 -04:00
parent 7bd601f3f5
commit a32767ca1a
9 changed files with 59 additions and 17 deletions

25
.eslintrc.json Normal file
View File

@ -0,0 +1,25 @@
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
}
}

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
vendor

View File

@ -10,5 +10,5 @@ function gtag(){
dataLayer.push(arguments); dataLayer.push(arguments);
} }
gtag('js', new Date()); gtag("js", new Date());
gtag('config', 'UA-119564631-1'); gtag("config", "UA-119564631-1");

View File

@ -1,4 +1,3 @@
<html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
@ -20,5 +19,4 @@
<p>&copy <?php echo date("Y"); ?> Entourage Solutions, Wyatt J. Miller - Licensed by the <a href="https://opensource.org/licenses/MIT">MIT</a></p> <p>&copy <?php echo date("Y"); ?> Entourage Solutions, Wyatt J. Miller - Licensed by the <a href="https://opensource.org/licenses/MIT">MIT</a></p>
</div> </div>
</div> </div>
</body> </body>
</html>

View File

@ -1,4 +1,3 @@
<html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
@ -22,5 +21,4 @@
</nav> </nav>
</div> </div>
</div> </div>
</body> </body>
</html>

View File

@ -1,4 +1,3 @@
<html>
<head> <head>
<title>Wyatt J. Miller - Home</title> <title>Wyatt J. Miller - Home</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
@ -13,7 +12,7 @@
<script src="analytics.js"></script> <script src="analytics.js"></script>
</head> </head>
<body> <body>
<?php require "header.php"; ?> <?php require_once "header.php"; ?>
<div class="col-xs-12"> <div class="col-xs-12">
<div class="main-section"> <div class="main-section">
<div class="main-background"> <div class="main-background">
@ -24,6 +23,5 @@
</div> </div>
</div> </div>
</div> </div>
<?php require "footer.php"; ?> <?php require_once "footer.php"; ?>
</body> </body>
</html>

View File

@ -34,7 +34,8 @@ function whatTimeIsIt(){
death.getHours()-12; death.getHours()-12;
} else { } else {
death.getHours(); death.getHours();
}} }
console.log(isPastNoon(), ":", death.getMinutes(), ":", death.getSeconds()); }
console.log(isPastNoon(), ":", death.getMinutes(), ":", death.getSeconds());
} }

View File

@ -1,5 +1,5 @@
/* Imports */ /* Imports */
@import url('https://fonts.googleapis.com/css?family=Oswald|Pacifico|Ubuntu|Kavivanar'); @import url('https://fonts.googleapis.com/css?family=Oswald|Pacifico|Kavivanar');
/* Global rules */ /* Global rules */
/* Elements */ /* Elements */

View File

@ -14,6 +14,27 @@ 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() {
//code goes here //code goes here
}, false); }, false);
/*
var a = 42;
var b = Number(a);
console.log(a);
console.log(b);
function foo(){
this.bar = bar;
this.foo = foo;
console.log(foo, bar);
}
var obj = {
foo: "bar",
bar: "foo"
};
foo();
new foo();
*/