Skip to content
The code for tap-dc.org
HTML Python JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
www
README.md
fb.py
ssi.js

README.md

TAP-DC Website

This is the code for tap-dc.org

Files

  • www/ -- all the front-end code
  • www/_*.html -- page fragments
  • www/*.html -- full pages
  • www/media/ -- all the pictures used on the website
  • www/lib/ -- all the 3rd-party dependencies (jquery, fonts, etc.)
  • ssi.js -- this is a simple Server-Side Includes server that I wrote in NodeJS
  • fb.py -- this is a bot I wrote in Python that scrapes events off Facebook and generates 3 page fragments: _upcoming.html _past.html _next.html

Running

node ssi.js

The server (ssi.js) automatically runs the bot (fb.py) every hour.

Notes

  • You will need to register for a Facebook app under your name and get a "client token" in order to use the bot (fb.py). Copy the token where it says token = '' (line 34).

  • Some instances of the TAP-DC logo are rendered using HTML, since I was unable to obtain hi-res images. The code is in _logo.html

  • Google Analytics snippet is embedded in _footer.html

You can’t perform that action at this time.