Added ability to insert comments

This commit is contained in:
2025-06-02 20:26:25 +01:00
parent 5dc5d0c728
commit 95aa220199
2 changed files with 103 additions and 12 deletions

View File

@@ -7,6 +7,7 @@
<script src="./drawtriangle.js"></script>
<script src="./drawtriangleinverted.js"></script>
<script src="./drawbar.js"></script>
<script src="./fillcomments.js"></script>
<script src="./savesvg.js"></script>
<script src="./populateGraphics.js"></script>
<script src="./insertQualifiers.js"></script>
@@ -100,6 +101,13 @@
text-anchor: middle;
}
.comments {
height: 200px;
margin: 10px;
overflow-y: scroll;
background-color: #EEE;
}
</style>
@@ -198,7 +206,9 @@
</div>
<p>Please add any additional comments:</p>
<p>Please add any additional comments: <button onclick="doComments('greatOwners','QID48_TEXT')">Load comments</button></p>
<div class="comments" id="greatOwners">
</div>
<hr>
@@ -216,8 +226,10 @@
<svg xmlns="http://www.w3.org/2000/svg" id="svg2_4" width="800" height="200"></svg>
</div>
<p>Please add any additional comments:</p>
<p>Please add any additional comments: <button onclick="doComments('greatLeaders','QID60_TEXT')">Load comments</button></p>
<div class="comments" id="greatLeaders">
</div>
<hr>
@@ -240,7 +252,9 @@
<svg xmlns="http://www.w3.org/2000/svg" id="svg3_6" width="800" height="200"></svg>
</div>
<p>Please add any additional comments:</p>
<p>Please add any additional comments: <button onclick="doComments('greatGovernance','QID59_TEXT')">Load comments</button></p>
<div class="comments" id="greatGovernance">
</div>
<hr>
@@ -273,7 +287,9 @@
</div>
<p>Please add any additional comments:</p>
<p>Please add any additional comments: <button onclick="doComments('greatCulture','QID47_TEXT')">Load comments</button></p>
<div class="comments" id="greatCulture">
</div>
<hr>
@@ -292,7 +308,9 @@
<svg xmlns="http://www.w3.org/2000/svg" id="svg5_4" width="800" height="200"></svg>
</div>
<p>Q24 Please add any additional comments:</p>
<p>Please add any additional comments: <button onclick="doComments('greatEngagement','QID62_TEXT')">Load comments</button></p>
<div class="comments" id="greatEngagement">
</div>
<hr>
@@ -311,7 +329,9 @@
<svg xmlns="http://www.w3.org/2000/svg" id="svg6_4" width="800" height="200"></svg>
</div>
<p>Q26 Please add any additional comments:</p>
<p>Please add any additional comments: <button onclick="doComments('greatStewardship','QID61_TEXT')">Load comments</button></p>
<div class="comments" id="greatStewardship">
</div>
<hr>
@@ -344,7 +364,9 @@
<svg xmlns="http://www.w3.org/2000/svg" id="svg7_4" width="800" height="200"></svg>
</div>
<p>Q29 Please add any additional comments:</p>
<p>Please add any additional comments: <button onclick="doComments('greatStrategy','QID49_TEXT')">Load comments</button></p>
<div class="comments" id="greatStrategy">
</div>
<hr>
@@ -365,7 +387,9 @@
<svg xmlns="http://www.w3.org/2000/svg" id="svg8_5" width="800" height="200"></svg>
</div>
<p>Please add any additional comments:</p>
<p>Please add any additional comments: <button onclick="doComments('greatInnovation','QID64_TEXT')">Load comments</button></p>
<div class="comments" id="greatInnovation">
</div>
<hr>
@@ -382,7 +406,9 @@
<svg xmlns="http://www.w3.org/2000/svg" id="svg9_3" width="800" height="200"></svg>
</div>
<p>Please add any additional comments:</p>
<p>Please add any additional comments: <button onclick="doComments('greatAdvantage','QID63_TEXT')">Load comments</button></p>
<div class="comments" id="greatAdvantage">
</div>
<hr>
@@ -414,7 +440,9 @@
</div>
<p>Please add any additional comments:</p>
<p>Please add any additional comments: <button onclick="doComments('greatMeasurement','QID50_TEXT')">Load comments</button></p>
<div class="comments" id="greatMeasurement">
</div>
<hr>
@@ -433,7 +461,9 @@
<svg xmlns="http://www.w3.org/2000/svg" id="svg11_4" width="800" height="200"></svg>
</div>
<p>Please add any additional comments:</p>
<p>Please add any additional comments: <button onclick="doComments('greatEvaluation','QID66_TEXT')">Load comments</button></p>
<div class="comments" id="greatEvaluation">
</div>
<hr>
@@ -463,7 +493,9 @@
<svg xmlns="http://www.w3.org/2000/svg" id="svg12_10" width="800" height="200"></svg>
</div>
<p>Please add any additional comments:</p>
<p>Please add any additional comments: <button onclick="doComments('greatImpact','QID65_TEXT')">Load comments</button></p>
<div class="comments" id="greatImpact">
</div>
<hr>