Skip to content

Commit

Permalink
reorganize template folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffchiudev committed Nov 10, 2020
1 parent 6bd1cf0 commit eae8d0a
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 46 deletions.
13 changes: 0 additions & 13 deletions index.html

This file was deleted.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "NAME", //rename please!!
"name": "TODO",
"version": "1.0.0",
"description": "_{This is a detailed description of your application. Its purpose and usage. Give as much detail as needed to explain what the application does, and any other information you want users or other developers to have. }_",
"main": "main.js",
Expand Down
2 changes: 1 addition & 1 deletion src/css/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
body {
background-color: lightblue;
background-color: TODO;
}
15 changes: 5 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Shape Tracker</title>
<title>TODO</title>
</head>
<body>
<h3>Enter three lengths to determine if they can make a triangle.</h3>
<form id="triangle-checker-form">
<label for="length1">Enter a number:</label>
<input id="length1" type="number">
<label for="length2">Enter a number:</label>
<input id="length2" type="number">
<label for="length3">Enter a number:</label>
<input id="length3" type="number">
<form id="TODO">
<label for="TODO">TODO:</label>
<input id="TODO" type="TODO">
<button type="submit">Submit</button>
</form>
<ul id="response"></ul>
<li>test one two three</li>
<li></li>
</body>
</html>
11 changes: 11 additions & 0 deletions src/js/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import $ from 'jquery';
import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
import './css/styles.css';

$(document).ready(function() {
$('#TODO-form').submit(function(event) {
event.preventDefault();

});
});
17 changes: 0 additions & 17 deletions src/main.js

This file was deleted.

4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');

module.exports = {
entry: './src/main.js',
entry: './src/js/main.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
Expand All @@ -15,7 +15,7 @@ module.exports = {
plugins: [
new CleanWebpackPlugin(),
new HtmlWebpackPlugin({
title: 'NAME HERE',
title: 'TODO',
template: './src/index.html',
inject: 'body'
})
Expand Down

0 comments on commit eae8d0a

Please sign in to comment.