add a simple feedback api and text explaining what it is

pull/1/head
ansuz 2017-02-27 12:06:49 +01:00
parent 38893fb8e5
commit de5a21fe57
2 changed files with 26 additions and 0 deletions

View File

@ -23,6 +23,15 @@ define([
Messages: Messages,
Alertify: Alertify,
};
common.feedback = function (action) {
if (!action) { return; }
$.ajax({
type: "HEAD",
url: '/common/feedback.html?' + action + '=' + (+new Date()),
});
};
var store;
var find = common.find = function (map, path) {

17
www/common/feedback.html Normal file
View 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>