add a simple feedback api and text explaining what it is
This commit is contained in:
parent
38893fb8e5
commit
de5a21fe57
@ -23,6 +23,15 @@ define([
|
|||||||
Messages: Messages,
|
Messages: Messages,
|
||||||
Alertify: Alertify,
|
Alertify: Alertify,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
common.feedback = function (action) {
|
||||||
|
if (!action) { return; }
|
||||||
|
$.ajax({
|
||||||
|
type: "HEAD",
|
||||||
|
url: '/common/feedback.html?' + action + '=' + (+new Date()),
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
var store;
|
var store;
|
||||||
|
|
||||||
var find = common.find = function (map, path) {
|
var find = common.find = function (map, path) {
|
||||||
|
|||||||
17
www/common/feedback.html
Normal file
17
www/common/feedback.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
max-width: 60vw;
|
||||||
|
margin: auto;
|
||||||
|
font-size: 25px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<p>If you're reading this, you were probably curious why CryptPad is requesting web pages when you perform certain actions.</p>
|
||||||
|
<p>We care about your privacy, and at the same time we want CryptPad to be very easy to use.
|
||||||
|
We use this file to figure out which UI features matter to our users, by requesting it along with a parameter specifying which action was taken.</p>
|
||||||
|
<p>If you would like to opt out, visit <a href="/settings/">your user settings page</a>, where you'll find a checkbox to enable or disable user feedback</p>
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user