From 8109cbdb5a455bc6cae3db68968ca2103df96dff Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Fri, 3 Aug 2018 13:16:31 -0400 Subject: [PATCH] Clean up some example JS code --- js/example.js | 4 ++++ js/index.js | 5 ++--- js/thing.js | 7 ------- 3 files changed, 6 insertions(+), 10 deletions(-) create mode 100644 js/example.js delete mode 100644 js/thing.js diff --git a/js/example.js b/js/example.js new file mode 100644 index 00000000..7cb5b7d1 --- /dev/null +++ b/js/example.js @@ -0,0 +1,4 @@ +window.onload = function() { + console.log('hello from example') +} + diff --git a/js/index.js b/js/index.js index 8289b7e4..4f8a3ad3 100644 --- a/js/index.js +++ b/js/index.js @@ -1,6 +1,5 @@ import classes from '../styles/atat.scss' -import './thing' - -console.log('hellooooo') +import './example' +console.log('hello from index') diff --git a/js/thing.js b/js/thing.js deleted file mode 100644 index 033b8cd3..00000000 --- a/js/thing.js +++ /dev/null @@ -1,7 +0,0 @@ -console.log('hanlo again') -window.onload = function() { - console.log('boop') - const thing = document.querySelector('#hello') - thing.innerHTML = 'hanlo friendo' -} -