Git Product home page Git Product logo

muckrock-foia-requests-widget-for-websites's Introduction

MuckRock-FOIA-Requests-Widget-for-Websites

This is a JavaScript widget that displays FOIA requests from MuckRock.com on any website. The widget uses the MuckRock API to fetch the FOIA requests for a specified user and displays them in a list format. The widget can be easily embedded in any HTML page by adding a script tag that points to the JavaScript file.

Features Displays FOIA requests from MuckRock.com in a list format Fetches requests for a specified user using the MuckRock API Easy to embed in any HTML page Fully customizable using CSS

Restrictions: Requires https://api.codetabs.com/v1/proxy/?quest=

TODO:

MOBILE Support ?

Live Demo You can view a live demo of the widget at https://Jordan.Lassiter.eu. The demo displays FOIA requests for the MuckRock user "TheJ".

Usage To use the widget, you'll need to obtain an API key from MuckRock.com and specify the username of the user whose FOIA requests you want to display. Here are the steps to get started:

Clone the repository or download the ZIP file and extract it to a folder on your computer. Open the index.html file in your preferred code editor. Replace the placeholder API key and username with your own API key and the username of the MuckRock user whose FOIA requests you want to display. Save the index.html file. Upload the index.html file and the script.js file to your web server. Embed the widget in any HTML page by adding the following code to your page's section: html Copy code

<script src="script.js"></script> Add the following code to your page's section to display the widget: html Copy code
    That's it! The widget should now display the FOIA requests for the specified user in a list format.

    Customization You can customize the appearance of the widget using CSS. The widget is contained within a div element with the ID foia-requests, and the request list is contained within a ul element with the ID request-list. You can use CSS to style these elements as needed.

    Support If you encounter any issues with the widget, please open an issue on GitHub Pull requests are also welcome!

    muckrock-foia-requests-widget-for-websites's People

    Contributors

    afterpacket avatar

    Stargazers

     avatar

    Watchers

     avatar

    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.