fmt
This commit is contained in:
parent
34c8da592a
commit
1732243f26
2 changed files with 7 additions and 7 deletions
|
|
@ -38,9 +38,8 @@ app.use(express.json({ limit: "100mb" }));
|
||||||
app.use(express.static("public"));
|
app.use(express.static("public"));
|
||||||
|
|
||||||
// Serve the official Plausible tracker (npm: @plausible-analytics/tracker) from node_modules.
|
// Serve the official Plausible tracker (npm: @plausible-analytics/tracker) from node_modules.
|
||||||
const plausibleTrackerPath = require.resolve(
|
const plausibleTrackerPath =
|
||||||
"@plausible-analytics/tracker/plausible.js",
|
require.resolve("@plausible-analytics/tracker/plausible.js");
|
||||||
);
|
|
||||||
|
|
||||||
app.get("/vendor/plausible.js", (req, res) => {
|
app.get("/vendor/plausible.js", (req, res) => {
|
||||||
res.sendFile(plausibleTrackerPath);
|
res.sendFile(plausibleTrackerPath);
|
||||||
|
|
|
||||||
|
|
@ -106,13 +106,14 @@ const loadQuestions = async (
|
||||||
<input type="radio" id="rad3" name="group">
|
<input type="radio" id="rad3" name="group">
|
||||||
<label id="label${qid}" class="rad3">${sanitizeQuestionHtml(c)}</label>
|
<label id="label${qid}" class="rad3">${sanitizeQuestionHtml(c)}</label>
|
||||||
<br>
|
<br>
|
||||||
${d
|
${
|
||||||
? `
|
d
|
||||||
|
? `
|
||||||
<input type="radio" id="rad4" name="group">
|
<input type="radio" id="rad4" name="group">
|
||||||
<label id="label${qid}" class="rad4">${sanitizeQuestionHtml(d)}</label>
|
<label id="label${qid}" class="rad4">${sanitizeQuestionHtml(d)}</label>
|
||||||
<br>`
|
<br>`
|
||||||
: ""
|
: ""
|
||||||
}
|
}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue