Skip to content

Commit

Permalink
Test feedback page.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-sig committed Apr 15, 2024
1 parent 77f20a9 commit ac72168
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 22 deletions.
6 changes: 0 additions & 6 deletions docs/_includes/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,3 @@ td, th {
padding: 4px 8px 4px 8px;
font-size: 14px;
}

img.thankyou {
display: block;
width: 800px;
margin: 50px auto 50px auto;
}
52 changes: 36 additions & 16 deletions docs/landing/feedback.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,37 @@
<img src="/ci-training/images/feedback-thankyou.svg" class="thankyou" />

<script>
document.addEventListener("DOMContentLoaded", () => {
const statsURL = "https://sigrid-says.com/usage/matomo.php";
const params = new URLSearchParams(window.location.search);
const feature = params.get("feature");
const feedback = params.get("feedback");
const system = params.get("system");
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Sigrid feedback</title>
<meta name="viewport" content="initial-scale=1.0, width=device-width, user-scalable=no">
<link rel="shortcut icon" type="image/x-icon" href="/ci-training/images/favicon.png" />

<style>
img.thankyou {
display: block;
width: 800px;
margin: 50px auto 50px auto;
}
</style>
</head>

if (feature && feedback && system) {
const statsElement = document.createElement("img");
statsElement.src = `${statsURL}?idsite=6&rec=1&ca=1&e_c=${feature}&e_a=${feedback}&e_n=${system}`;
document.body.appendChild(statsElement);
}
});
</script>
<body>
<img src="/ci-training/images/feedback-thankyou.svg" class="thankyou" />

<script>
document.addEventListener("DOMContentLoaded", () => {
const statsURL = "https://sigrid-says.com/usage/matomo.php";
const params = new URLSearchParams(window.location.search);
const feature = params.get("feature");
const feedback = params.get("feedback");
const system = params.get("system");

if (feature && feedback && system) {
const statsElement = document.createElement("img");
statsElement.src = `${statsURL}?idsite=6&rec=1&ca=1&e_c=${feature}&e_a=${feedback}&e_n=${system}`;
document.body.appendChild(statsElement);
}
});
</script>
</body>
</html>

0 comments on commit ac72168

Please sign in to comment.