Coder Social home page Coder Social logo

Embeddable version about my-reps HOT 8 OPEN

datamade avatar datamade commented on August 22, 2024
Embeddable version

from my-reps.

Comments (8)

derekeder avatar derekeder commented on August 22, 2024

@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.

ghing avatar ghing commented on August 22, 2024

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.

derekeder avatar derekeder commented on August 22, 2024

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.

fgregg avatar fgregg commented on August 22, 2024

@derekeder if we host an i-frame version, won't we run into API limits?

from my-reps.

derekeder avatar derekeder commented on August 22, 2024

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.

fgregg avatar fgregg commented on August 22, 2024

from my-reps.

ghing avatar ghing commented on August 22, 2024

Let me know if you all need any help with this.

from my-reps.

derekeder avatar derekeder commented on August 22, 2024

I'd love help - pull request definitely welcome!

from my-reps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.