Skip to content
caywood edited this page Nov 10, 2012 · 5 revisions

Frontend (CSS / JS)

/public/css

screen inner iframe, loaded by screen_header.php

	screen.css

	bus.css

	cabi.css

	metro.css

	reset.css


admin page, loaded by header.php

	style.css

/public/images

logos in PNG format 

	art - ART

	bus - Metrobus

	cabi - Capital Bikeshare

	circ - Circulator

	metro - Metrorail

/public/scripts

bus.js - ?

stop.js - ?

json.js - some test JSON for UI development

screen.js - Client. loaded by screen_header.

	refresh_data - query server for all data blocks, then call generate_blocks 

	generate_blocks - create templates for all blocks

		translate_class_name - convert JSON name to template name

		split_destination - add "Eastbound" etc. labels

		get_suffix - get template type (red, yellow, blue line etc.)

		reorder_blocks - sort blocks by position

	time_tracker - unused; would update predictions locally as time passes.

	ready - initial load function, calls refresh_data

	everyTime - data update function

/public/test

contains JSON for UI development and testing