Skip to content

Commit

Permalink
Merge pull request #3 from AKVorrat/integration-docs
Browse files Browse the repository at this point in the history
updated integration docs
  • Loading branch information
dpolakovics authored Oct 4, 2023
2 parents fb74694 + a6975f7 commit a4bc275
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions content/showcase/chatcontrol/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [[email protected]](mailto:[email protected]) if you would like to add DearMEP to your site.

**Simple integration:**
```html
<link rel="stylesheet" href="http://chatcontrol.dearmep.eu/fonts.css" type="text/css" />
<dear-mep host="https://chatcontrol.dearmep.eu/api/" />
<script src="https://chatcontrol.dearmep.eu/dear-mep.js"></script>
<link rel="stylesheet" href="https://chatcontrol.dearmep.eu/static/dear-mep.css" type="text/css"/>
<dear-mep host="https://chatcontrol.dearmep.eu/"/></dear-mep>
<script src="https://chatcontrol.dearmep.eu/static/dear-mep.js"></script>
```
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&#8209;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&#8209;calling | If this attribute is present the calling functionality is hidden. |
| disable&#8209;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
<link rel="stylesheet" href="https://chatcontrol.dearmep.eu/fonts.css" type="text/css">
<link rel="stylesheet" href="https://chatcontrol.dearmep.eu/static/dear-mep.css" type="text/css"/>
<dear-mep
host="https://chatcontrol.dearmep.eu/api/"
/>
<script src="https://chatcontrol.dearmep.eu/dear-mep.js"></script>
host="https://chatcontrol.dearmep.eu/"
default-country="DE"
disable-scheduling
></dear-mep>
<script src="https://chatcontrol.dearmep.eu/static/dear-mep.js"></script>s
```

## Integrations
Expand Down

0 comments on commit a4bc275

Please sign in to comment.