-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnotes.txt
80 lines (51 loc) · 2.79 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Missing data that I want to add:
- Actual contact form
- influence explorer id
1. retrieve data for a single member (bioguide_id) on a click event
$('a').click( function(e.preventDefault() console.log(this.data("memberId");
) })
TODO
1. populate three dropdown buttons
or refactor to use twitter Typeahead.js, and populate one input box.
http://twitter.github.io/typeahead.js/
2. printed selected committee to the page
3. Join the state name from API to state number from GeoJSON file
4. Render map for selected committee
5. style map by party
for Senate, add stripes to represent color
6. Populate committee member list in sidebar
7. Populate click and member detail panel
8. Close panel content, so that mouseovers function again to display content.
9. Dropdown for subcommittees based on parent committee
10. Subcommittee selection renders whole committee in lighter colors, and subcommittee members in darker colors.
11. better districts (faster load time, but more detail in selected districts that are currently too generalized)
12. Drag detail panel wherever the user wants it.
- Convert startup and coloring code into reusable function code
- button to make ajax request
- function to process data, maps members to states, for now, and sets style
DONE
1. Develop markup structure for map
2. setup WebStorm to use chrome browser
3. rename json file to .js to enable variable creation
4. install
5. clean up unwanted files
6. commit to git
API call notes
<--script>
// list of committees
// http://congress.api.sunlightfoundation.com/committees?per_page=all&apikey=9e3e71730ae34e1ebbf4dd0e1c346c07
// list of house committees with detail
// http://congress.api.sunlightfoundation.com/committees?per_page=all&apikey=9e3e71730ae34e1ebbf4dd0e1c346c07&chamber=house&subcommittee=false
// particular committee detail
//http://congress.api.sunlightfoundation.com/committees?per_page=all&chamber=house&committee_id=HSHM&subcommittee=false&fields=name,committee_id,office,subcommittee,phone,url,member_ids,members&apikey=9e3e71730ae34e1ebbf4dd0e1c346c07
//legislator birthday
//http://congress.api.sunlightfoundation.com/committees?per_page=all&chamber=house&committee_id=HSHM&subcommittee=false&fields=name,committee_id,office,subcommittee,phone,url,member_ids,members.legislator.birthday&apikey=9e3e71730ae34e1ebbf4dd0e1c346c07
var statesMap = $.ajax({
dataType: "json",
url: "http://congress.api.sunlightfoundation.com/committees?per_page=all&chamber=house&committee_id=HSHM&subcommittee=false&fields=name,committee_id,office,subcommittee,phone,url,member_ids,members&apikey=9e3e71730ae34e1ebbf4dd0e1c346c07"}).done(
function(result){
//handling of your json data
console.log("done")
});
</script>-->
div#container>div#header+div#content