Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Latest commit

 

History

History
75 lines (47 loc) · 1.61 KB

README.md

File metadata and controls

75 lines (47 loc) · 1.61 KB

Erfgoedkit.nl Widget

PROJECT ENDED

Third parties can use this widget to add an interactive link to erfgoedkit.nl.

Developed with ❤️ by GRRR

How to add the widget to your website

1. Add an HTML element

Add an HTML element with the data attribute data-container="nde-widget" to the desired location on the page.

Example

<div data-container="nde-widget"></div>

You can place this element wherever you like. The widget will place itself inside this element. No need to set any size attributes, the widget will ensure it fits inside the given box.

It's also possible to add multiple widgets on the same page.

2. Include the styles in your head

Example

<link rel="stylesheet" href="https://widget.erfgoedkit.nl/v2.0.1/style.css" />

3. Include the script in your body

Example

<script src="https://widget.erfgoedkit.nl/v2.0.1/script.js"></script>

This script will insert the Widget inside the desired element.

Contact or bugs

For question or bug-reports you can create a new issue.

Contribute

Configure the URL to the API:

cp .env.example .env

Start the build server:

yarn dev

# Output:
# Server running at https://localhost:1234

Open the provided url in your browser.