Template used for pages on fwdekker.com https://static.fwdekker.com/lib/template/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Florine W. Dekker 201efeca8c
Implement storage/retrieval of strings
5 days ago
src Implement storage/retrieval of strings 5 days ago
.editorconfig Set up basic template 3 years ago
.gitattributes Set up basic template 3 years ago
.gitignore Fix footer overlap 3 years ago
Gruntfile.js Bundle modules together into one 1 week ago
LICENSE Update dependencies 10 months ago
README.md Rename container sidebar class 1 week ago
package-lock.json Fix external link icon on Chromium 1 week ago
package.json Implement storage/retrieval of strings 5 days ago
tsconfig.json Additionally export storage.js from Minesweeper 8 months ago

README.md

FWDekker Template

The base template for pages on fwdekker.com.

Contains utilities for

  • settings up header, footer, and navigation,
  • interacting with local storage (and an in-memory variant for testing), and
  • form validation.

Simply import template.js and template.css to get it working. All JavaScript functionalities are exposed using the window.fwdekker object.

Some functionalities are automatically executed after configuring some <meta> tags in the HTML. For example, set <meta name="fwd:nav:target" content="#nav" /> to automatically put the navigation bar in the #nav element. All meta-tag behaviour is opt-in.

Read the files' individual documentation for more information.

Development

Requirements

Setting up

# Install dependencies (only needed once)
$> npm ci

Building

# Build the tool in `dist/` for development
$> npm run dev
# Same as above, but automatically rerun it whenever files are changed
$> npm run dev:server
# Build the tool in `dist/` for deployment
$> npm run deploy