Skip to content

Commit 35556d8

Browse files
author
Alex Rattray (Lil Mav)
committed
a bunch of styling. well, all the styling.
1 parent fbbf41b commit 35556d8

18 files changed

+8702
-171
lines changed

coffee/main.coffee

+11-5
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ window.drawChart = () ->
3030
# get dept name if its there
3131
hash = window.location.hash.toUpperCase()
3232
dept_name = if hash.length > 1 then hash.substr(1) else ''
33-
33+
firebase_key = dept_name or 'depts'
3434
# get pre-computed data from firebase, put in chart.
35-
$.get "https://coursegrapher.firebaseio.com/#{dept_name}.json", (json) ->
35+
$.get "https://coursegrapher.firebaseio.com/#{firebase_key}.json", (json) ->
3636
l 'got data', json
3737

3838

@@ -45,7 +45,11 @@ window.drawChart = () ->
4545

4646
name = if dept.name? then "#{dept.name} (#{id})" else "#{dept_name} #{id}"
4747

48-
[
48+
if dept.num < 20
49+
l 'skipping dept because to small', name, dept.num
50+
return null
51+
52+
return [
4953
name
5054
new Date(2014, 0, 1)
5155
get('rInstructorQuality')
@@ -68,11 +72,13 @@ window.drawChart = () ->
6872
# set up options, draw chart.
6973
chart_div = document.getElementById('chart_div')
7074
window.chart = new google.visualization.MotionChart(chart_div)
75+
width = $('#main_container').width()
76+
height = Math.min(width / 2, $(window).height() - 100)
7177
options =
7278
showYScalePicker: true
7379
showXScalePicker: true
74-
width: 950
75-
height: 450
80+
width: width
81+
height: height
7682
state: '{"showTrails":true,"playDuration":15000,"iconType":"BUBBLE","xLambda":1,"yZoomedDataMin":null,"xZoomedDataMin":null,"yLambda":1,"yZoomedIn":false,"nonSelectedAlpha":0.4,"orderedByY":false,"uniColorForNonSelected":false,"xZoomedIn":false,"time":"notime","yAxisOption":"3","xZoomedDataMax":null,"dimensions":{"iconDimensions":["dim0"]},"sizeOption":' + (if dept_name then '"_UNISIZE"' else '"12"') + ',"duration":{"multiplier":1,"timeUnit":"D"},"yZoomedDataMax":null,"xAxisOption":"2","iconKeySettings":[],"orderedByX":false,"colorOption":"4"};'
7783

7884
chart.draw(data, options)

css/bootstrap-theme.css

+347
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/bootstrap-theme.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)