mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2024-12-22 06:05:11 -05:00
Enable feedback widget (#1146)
This commit is contained in:
parent
c1a4eec75e
commit
e4654a71eb
@ -1,6 +1,9 @@
|
|||||||
---
|
---
|
||||||
title: "Web Browsers"
|
title: "Web Browsers"
|
||||||
icon: octicons/browser-16
|
icon: octicons/browser-16
|
||||||
|
tags:
|
||||||
|
- HTML5
|
||||||
|
- JavaScript
|
||||||
---
|
---
|
||||||
These are our current web browser recommendations and settings. We recommend keeping extensions to a minimum: they have privileged access within your browser, require you to trust the developer, can make you [stand out](https://en.wikipedia.org/wiki/Device_fingerprint#Browser_fingerprint), and [weaken](https://groups.google.com/a/chromium.org/g/chromium-extensions/c/0ei-UCHNm34/m/lDaXwQhzBAAJ) site isolation.
|
These are our current web browser recommendations and settings. We recommend keeping extensions to a minimum: they have privileged access within your browser, require you to trust the developer, can make you [stand out](https://en.wikipedia.org/wiki/Device_fingerprint#Browser_fingerprint), and [weaken](https://groups.google.com/a/chromium.org/g/chromium-extensions/c/0ei-UCHNm34/m/lDaXwQhzBAAJ) site isolation.
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ template: overrides/home.en.html
|
|||||||
hide:
|
hide:
|
||||||
- navigation
|
- navigation
|
||||||
- toc
|
- toc
|
||||||
|
- feedback
|
||||||
---
|
---
|
||||||
<!-- markdownlint-disable-next-line -->
|
<!-- markdownlint-disable-next-line -->
|
||||||
<div style="max-width:50rem;margin:auto;" markdown>
|
<div style="max-width:50rem;margin:auto;" markdown>
|
||||||
|
13
docs/javascripts/feedback.js
Normal file
13
docs/javascripts/feedback.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
var feedback = document.forms.feedback
|
||||||
|
feedback.removeAttribute("hidden");
|
||||||
|
feedback.addEventListener("submit", function(ev) {
|
||||||
|
ev.preventDefault()
|
||||||
|
|
||||||
|
/* Retrieve page and feedback value */
|
||||||
|
var page = document.location.pathname
|
||||||
|
var data = ev.submitter.getAttribute("data-md-value")
|
||||||
|
|
||||||
|
/* Send feedback value */
|
||||||
|
console.log(page, data)
|
||||||
|
plausible(data)
|
||||||
|
})
|
12
mkdocs.yml
12
mkdocs.yml
@ -15,6 +15,17 @@ extra:
|
|||||||
analytics:
|
analytics:
|
||||||
provider: plausible
|
provider: plausible
|
||||||
property: privacyguides.org
|
property: privacyguides.org
|
||||||
|
feedback:
|
||||||
|
title: Was this page helpful?
|
||||||
|
ratings:
|
||||||
|
- icon: material/emoticon-happy-outline
|
||||||
|
name: This page was helpful
|
||||||
|
data: Helpful
|
||||||
|
note: Thanks for your feedback!
|
||||||
|
- icon: material/emoticon-sad-outline
|
||||||
|
name: This page could be improved
|
||||||
|
data: Needs Improvement
|
||||||
|
note: Thanks for your feedback! Help us improve this page by opening a <a href="https://github.com/orgs/privacyguides/discussions" target=_blank>discusson on GitHub</a>.
|
||||||
social:
|
social:
|
||||||
- icon: pg/matrix
|
- icon: pg/matrix
|
||||||
link: https://matrix.to/#/#privacyguides:matrix.org
|
link: https://matrix.to/#/#privacyguides:matrix.org
|
||||||
@ -120,6 +131,7 @@ markdown_extensions:
|
|||||||
|
|
||||||
extra_javascript:
|
extra_javascript:
|
||||||
- javascripts/mathjax.js
|
- javascripts/mathjax.js
|
||||||
|
- javascripts/feedback.js
|
||||||
|
|
||||||
nav:
|
nav:
|
||||||
- Home: 'index.md'
|
- Home: 'index.md'
|
||||||
|
@ -1 +1,2 @@
|
|||||||
<script defer data-domain="{{ config.extra.analytics.property }}" src="https://stats.privacyguides.net/js/plausible.js"></script>
|
<script defer data-domain="{{ config.extra.analytics.property }}" src="https://stats.privacyguides.net/js/plausible.js"></script>
|
||||||
|
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user