Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 593 Bytes

DEVNOTES.md

File metadata and controls

22 lines (13 loc) · 593 Bytes

PULL MAIN WHILE YOU'RE WORKING JUST IN CASE AND ESPECIALLY IF YOUVE APPROVED A PR

Adding a module

  • Add name of module in navigation sidebar in ./index.html
  • Add new HtmlWebpackPlugin to ./webpack.config.js
  • Add import of module .js to src/index.js
  • Add class of module to src/site.css to set width of module

Be specific with your selectors

$('form').on('submit', doSomething) // Bad

$('.mymodule form').on('submit', doSomething) // Good

Waiting until page load to interact with page

$(() => {})

is the same as

$(document).ready(() => {})