Comments (8)
@ghing the site has been setup to be embeddable on other sites. our prototype version does exactly that via an iframe: https://www.participatorybudgeting.org/resources-to-do-pb/myreps/
I could, like I do with my Fusion Tables Template, provide a pre-made iframe version of index.html
and give some instructions on how to use it. Think that would be sufficient?
For the levels of reps, you can configure that by setting the flags in js/lookup_tool.js
described in step 5. Did you try using that?
from my-reps.
I think the use case I'm imagining is for an instance usable by multiple campaigns rather than deploying a static site for each campaign.
A pre-made iframe version of index.html and some docs would be helpful, I think.
I see that you can configure levels in js/lookup_tools.js
, but it would be better to read these from URL query parameters. That way, someone could iframe in the search and just change the iframe URL to specify different levels of government.
from my-reps.
Ok. I'll put together an iframe version.
Good idea on adding the levels as query parameters. I'll open it up as a separate issue.
from my-reps.
@derekeder if we host an i-frame version, won't we run into API limits?
from my-reps.
We've already run into API limits with Google from people using the regular myreps.datamade.us URL and are now paying Google. I'm fine with paying a bit of money for more people to look up their reps.
from my-reps.
from my-reps.
Let me know if you all need any help with this.
from my-reps.
I'd love help - pull request definitely welcome!
from my-reps.
Related Issues (20)
- Browser forward/back buttons do not update the search query HOT 1
- control levels of government returned as query parameters HOT 3
- Mismatch between divisions and officeIndices
- allow customization of messaging in configuration
- doesn't work in Android Adblock browser
- Static Google Map doesn't Seem to be working properly
- Bruce Rauner's photo link is broken HOT 2
- Why are U.S. Senators listed under the state rather than the U.S. government (federal)?
- Freezes when trying to enter address HOT 2
- Show only certain offices?
- add disclaimer on missing data from Google API
- Different version of bundler required? HOT 1
- Texas did redistricting :-( HOT 1
- Florida State representatives are not there. HOT 1
- add instructions for reusing code to readme
- precursors to enabling jekyll HOT 1
- County capitalization HOT 1
- Order of Results HOT 4
- Authentication popup on Mobile HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from my-reps.