Code Monkey home page Code Monkey logo

openstad-components's Introduction

openstad-components

These are components used in the OpenStad Ecosystem.

Use

Easiest is using the built version from a CDN:

<!-- load react -->
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>

<!-- load openstad component -->
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/openstad-components@latest/dist/css/choices-guide.css"/>
<script src="https://cdn.jsdelivr.net/npm/openstad-components@latest/dist/choices-guide.js"></script>

<script>
 window.addEventListener('load', function(e) {

   // configure
   var config = {
     siteId: 1,
     choicesGuideId: 1,
   }
   
   // load in page
   var element = document.querySelector('.openstad-component-choices-guide');
   OpenStadComponents['choices-guide'].ChoicesGuide.renderElement(element, config);

 });

</script>

<div class="openstad-component-choices-guide"></div>

Documentation

More information can be found at https://docs.openstad.amsterdam/technical/components

openstad-components's People

Contributors

badmuts avatar dependabot[bot] avatar lorenzojokhan avatar nlsvgtr avatar rudivanhierden avatar stijnvandervegt avatar toshkoevoets avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

openstad-components's Issues

Betere accessibility

Er is onvoldoende aandacht besteed aan accessibility in de components code. Zie ook de opmerking van @rudivanhierden in #31

Dit moet een keer gefixed door de hele code heen. Dit issue is een reminder.

Ideas-on-map widget disables first click on desktop when 'startWithListOpenOnMobile' is set to true

Description
When opening the ideas-on-map widget with the 'startWithListOpenOnMobile' set to true, the first click on Desktop does nothing. After the first click everything works like normal.

Suggested fix
Only listen to the 'startWithListOpenOnMobile' value when being viewed on mobile.

Related ticket: https://trello.com/c/9nhrQOVj/91-eerste-click-doet-niks-wanneer-op-mobiel-de-lijst-standaard-open-staat

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.