From a6975f7196dfc78044867c6c6968070a71265d36 Mon Sep 17 00:00:00 2001 From: Tobias Muehlberger Date: Tue, 26 Sep 2023 22:55:48 +0100 Subject: [PATCH] updated integration docs --- content/showcase/chatcontrol/index.md | 31 +++++++++++++++++---------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/content/showcase/chatcontrol/index.md b/content/showcase/chatcontrol/index.md index 3b262f4..5e657df 100644 --- a/content/showcase/chatcontrol/index.md +++ b/content/showcase/chatcontrol/index.md @@ -17,28 +17,37 @@ We created this tool to support the protest against the EU initiative to scan in ## Integrate Integrate the campaign in your Website +**NOTE:** To be able to integrate DearMEP on your site, it is necessary to whitelist the URL of your site on the DearMEP server. Feel free to contact [team@epicenter.works](mailto:team@epicenter.works) if you would like to add DearMEP to your site. + **Simple integration:** ```html - - - + + + ``` -1. Include the fonts CSS +1. Include the CSS 2. Create the dear-mep Element with Parameters 3. Include the dear-mep JS **Parameters for dear-mep Element** -| Parameter | Description | -|-----------|---------------------| -| host | URL to dear-mep api | +| Parameter | Description | +|-------------------------|---------------------| +| host | The URL of the DearMEP-Server. This attribute is required! | +| api | The URL of the dear-mep API-Server. This attribute is used if the API-Server is hosted separately from the server that provides hosts static assets. | +| assets | The URL of the Assets-Server. This attribute is used if the static assets are hosted separately from the API-Server. | +| default‑country | If the user has not (yet) selected a country and the server cannot determine the country (because a VPN or TOR is used for example), this country will be used as fallback. It makes sense for a german campaign to use "DE" for example. Use two didgit country codes such as: "DE", "AT", ... . | +| disable‑calling | If this attribute is present the calling functionality is hidden. | +| disable‑scheduling | If this attribute is present the schedule-call functionality is hidden. NOTE: This functionality is not yet supported but it will be enabled by default as soon as it is. | **Integration with optional parameters:** ```html - + - + host="https://chatcontrol.dearmep.eu/" + default-country="DE" + disable-scheduling +> +s ``` ## Integrations