yulongchen commited on
Commit
b6e39c6
·
1 Parent(s): ed95e7f

Add system

Browse files
Files changed (1) hide show
  1. test.html +13 -7
test.html CHANGED
@@ -26,7 +26,14 @@
26
  Fact-Checking Election Promises
27
  </h1>
28
  <p class="text-lg text-gray-600">
29
- Extract progress towards fulfilling the promise.
 
 
 
 
 
 
 
30
  </p>
31
  </div>
32
  </section>
@@ -108,7 +115,7 @@
108
  id="check"
109
  class="mt-4 px-6 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500"
110
  >
111
- Let's check!
112
  </button>
113
 
114
  <div id="progress" class="mt-6 hidden border p-4 rounded-lg bg-white shadow">
@@ -128,9 +135,8 @@
128
  <div class="container mx-auto px-4 max-w-4xl">
129
  <h2 class="text-2xl font-bold mb-6">About</h2>
130
  <p class="text-gray-700 leading-relaxed">
131
- This demo connects a static front-end with a Python back-end using Flask.
132
- The back-end generates event data and returns structured events related
133
- to a manifesto pledge.
134
  </p>
135
  </div>
136
  </section>
@@ -284,7 +290,7 @@
284
  alert("No feedback to submit!");
285
  return;
286
  }
287
- const confirmed = confirm("By submitting feedback, you consent to participate in this study and agree that your responses may be collected for research purposes. Your data will be anonymised and stored securely. Participation is entirely voluntary. If you do not wish to take part, please cancel this submission.");
288
  if (!confirmed) return;
289
 
290
  const pledgeText = document.getElementById("claim").value.trim();
@@ -531,7 +537,7 @@
531
  document.getElementById("pledge-author").value = "Labour";
532
  document.getElementById("pledge-date").value = "2024-07-04";
533
  suggestedPledge = { text, index };
534
- alert("✅ This pledge has been filled in. You can now click 'Let's check!'");
535
  await fetch("/api/log-similar-selection", {
536
  method: "POST",
537
  headers: { "Content-Type": "application/json" },
 
26
  Fact-Checking Election Promises
27
  </h1>
28
  <p class="text-lg text-gray-600">
29
+ PledgeTracker is a system to monitor the fulfilment of political pledges.<br>
30
+ As part of this study, we will collect your inputs to help evaluate and improve the system.<br>
31
+ We may also collect your feedback if you submit it via the feedback form.<br>
32
+ No personal information will be collected, and all data will be anonymised and stored securely.<br>
33
+ <span class="text-purple-600 font-bold">
34
+ By using the system, you agree to participate in this study under these conditions.
35
+ </span><br>
36
+ <a href="mailto:yc632@cam.ac.uk" class="text-purple-600 underline">Please contact us if you have any concerns.</a>
37
  </p>
38
  </div>
39
  </section>
 
115
  id="check"
116
  class="mt-4 px-6 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500"
117
  >
118
+ Let's track!
119
  </button>
120
 
121
  <div id="progress" class="mt-6 hidden border p-4 rounded-lg bg-white shadow">
 
135
  <div class="container mx-auto px-4 max-w-4xl">
136
  <h2 class="text-2xl font-bold mb-6">About</h2>
137
  <p class="text-gray-700 leading-relaxed">
138
+ PledgeTracker is a research prototype developed to support the monitoring of political pledge fulfilment.
139
+ This demo is developed by researchers at the University of Cambridge and Full Fact.
 
140
  </p>
141
  </div>
142
  </section>
 
290
  alert("No feedback to submit!");
291
  return;
292
  }
293
+ const confirmed = confirm("By submitting feedback, you agree that your responses may be collected for research purposes. Your data will be anonymised and stored securely. Participation is entirely voluntary. If you do not wish to take part, please cancel this submission.");
294
  if (!confirmed) return;
295
 
296
  const pledgeText = document.getElementById("claim").value.trim();
 
537
  document.getElementById("pledge-author").value = "Labour";
538
  document.getElementById("pledge-date").value = "2024-07-04";
539
  suggestedPledge = { text, index };
540
+ alert("✅ This pledge has been filled in. You can now click 'Let's track!'");
541
  await fetch("/api/log-similar-selection", {
542
  method: "POST",
543
  headers: { "Content-Type": "application/json" },