Skip to content

Commit

Permalink
feat: ajout d'un sondage pour mieux connaitre les utilisateurs de la …
Browse files Browse the repository at this point in the history
…communauté (#781)

## Description

🎸 sondage Tally en mode popup. déclenchement après scroll d'au moins 15%
de la page.

## Type de changement

🎨 changement d'UI

### Points d'attention

🦺 script sur `base.html`
  • Loading branch information
vincentporte authored Sep 23, 2024
1 parent d5d92b9 commit 171bdde
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lacommunaute/templates/layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,26 @@
<script type="text/javascript" src="{% static 'javascripts/matomo.js' %}" defer></script>
{% endif %}
<script type="text/javascript" src="{% static 'vendor/htmx-1.9.5/htmx.min.js' %}" defer></script>
<script async src="https://tally.so/widgets/embed.js" defer></script>
<script nonce="{{ request.csp_nonce }}">
window.TallyConfig = {
"formId": "wvL8P8",
"popup": {
"emoji": {
"text": "👋",
"animation": "head-shake"
},
"open": {
"trigger": "scroll",
"scrollPercent": 15
},
"hideTitle": true,
"alignLeft": true,
"autoClose": 15000,
"doNotShowAfterSubmit": true
}
};
</script>
{% endblock %}
</body>
</html>

0 comments on commit 171bdde

Please sign in to comment.