Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
.env

public/stylesheets/*
public/scripts/*
!public/scripts/.gitkeep
!public/stylesheets/.gitkeep

node_modules

dist/*
Expand Down
1 change: 1 addition & 0 deletions public/scripts/cta.min.js

Large diffs are not rendered by default.

286 changes: 286 additions & 0 deletions public/stylesheets/cta.css

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

4 changes: 4 additions & 0 deletions src/client/scss/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ div.arrivals {
background-color: #fff;
color: map.get($lines, "green");
}
div.train-entry[data-line="blue"].inverted > div.train-entry-body {
background-color: #fff;
color: map.get($lines, "blue");
}
}
2 changes: 1 addition & 1 deletion src/client/ts/boards/TrainSignboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import IPane from '../panes/IPane';

export class TrainSignboard extends AbstractSignboard {
protected getCycleTime(): number {
return 9 * 1000;
return 5 * 1000;
}

protected getPanes(): Array<IPane> {
Expand Down
3 changes: 3 additions & 0 deletions src/client/ts/models/Arrival.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ export default class Arrival extends SharedArrival {
if (this.line === 'Green' && this.destination === 'Cottage Grove') {
container.classList.add('inverted');
}
else if (this.line === 'Blue' && this.destination === 'UIC-Halsted') {
container.classList.add('inverted');
}

const numberDom = document.createElement('div');
numberDom.classList.add('train-entry-number');
Expand Down
7 changes: 5 additions & 2 deletions src/shared/util/CTAData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export type Destination =
'Linden' |
'54th/Cermak' |
'Kimball' |
'Midway';
'Midway' |
'UIC-Halsted';

export type ExternalLineName = 'Red' | 'Org' | 'Y' | 'G' | 'Blue' | 'P' | 'Pink' | 'Brn';
export type DisplayLineName = 'Red' | 'Orange' | 'Yellow' | 'Green' | 'Blue' | 'Purple' | 'Pink' | 'Brown';
Expand Down Expand Up @@ -53,6 +54,7 @@ const destinations: DestinationLineMap = {
'Cottage Grove': ['Green'],
'O\'Hare': ['Blue'],
'Forest Park': ['Blue'],
'UIC-Halsted': ['Blue'],
'Linden': ['Purple'],
'54th/Cermak': ['Pink'],
'Kimball': ['Brown'],
Expand Down Expand Up @@ -80,7 +82,8 @@ const staticDestinationCodes: StaticDestinationCodes = {
},
'Blue': {
'O\'Hare': 1,
'Forest Park': 5
'Forest Park': 5,
'UIC-Halsted': 5
},
'Purple': {
'Howard': 5,
Expand Down