GithubHelp home page GithubHelp logo

hasandikengul / feedback-widget Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 18f/feedback-widget

0.0 0.0 0.0 44 KB

experiment in creating an embeddable feedback widget

License: Other

Python 45.40% JavaScript 39.88% HTML 14.73%

feedback-widget's Introduction

Feedback widget

This was a quick experiment in prototyping a simple website feedback form ("How was your experience? [Good / Bad]"). See this repository's issues for some discussion of this idea and a few examples of feedback widgets on government websites (including issues #2 and #6). We're not planning to continue working on this particular prototype, but you're welcome to learn from what we've posted!

Usage

To add to your site, add the following to your <head>:

<script src="widget.js"></script>
<script>
  new FeedbackWidget(url);
</script>

You can optionally pass in a target element where you want the widget to be added:

var element = document.getElementById('...'); // or whatever
new FeedbackWidget.init(url, element);

Development

API

This repository also includes an API for collecting the data.

  1. Install the dependencies.

    • Python
    • PostgreSQL
  2. Run:

    pip install -r requirements.txt
    python app.py

Widget

  1. Make changes to widget.js.

  2. Install the dependencies.

    • Node
  3. Run:

    npm run build

The new build will be placed in widget.dist.js. Open index.html in your browser to test it.

feedback-widget's People

Contributors

jmcarp avatar afeld avatar alexose avatar emileighoutlaw avatar wslack 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.