form handling, improvement in form, bigger canvas
This commit is contained in:
parent
4ea22feea9
commit
b4dca4ed9d
25
main.html
25
main.html
@ -1,5 +1,5 @@
|
||||
|
||||
<!DOCTYPE>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset- "UTF-8" />
|
||||
@ -44,11 +44,12 @@
|
||||
data.set("dynamic drawing", 3); // dynamic drawing
|
||||
data.set("translatability", 2); // translatability
|
||||
|
||||
function loadNewRadarChart(data, videotitle) {
|
||||
function loadNewRadarChart(chartId, data, videotitle) {
|
||||
chartId.update();
|
||||
}
|
||||
|
||||
function setNewValues() {
|
||||
|
||||
console.log("Hi!");
|
||||
|
||||
let nameValue = document.getElementById("videoname").value;
|
||||
@ -64,13 +65,13 @@
|
||||
|
||||
<div class="w3-light-gray">
|
||||
<p>Please fill in information on your video</p>
|
||||
<form name="newEntryForm" class="w3-container w3-white w3-border w3-border-green" method="POST" action="" onsubmit="setNewValues()">
|
||||
<form name="newEntryForm" class="w3-container w3-white w3-border w3-border-green" action="javascript:setNewValues();">
|
||||
<label class="w3-text-green" for="videoname"><b>Name of Video</b></label>
|
||||
<input class="w3-input w3-border w3-light-grey" type="text" id="videoname" name="videoname" value="name of video">
|
||||
|
||||
<div class="w3-row-padding">
|
||||
<div class="w3-half">
|
||||
<label class="w3-text-green" for="ins_sel"><b>Instructional principle</b></label>
|
||||
<label class="w3-text-green" for="ins_sel"><b>A Instructional principle</b></label>
|
||||
<select class="w3-select w3-border w3-white" name="ins_sel" id="ins_sel">
|
||||
<option value="0" selected>not acceptable</option>
|
||||
<option value="1">minimal requirements</option>
|
||||
@ -81,7 +82,7 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
<label class="w3-text-green" for="vis_sel"><b>Visibility / Audio</b></label>
|
||||
<label class="w3-text-green" for="vis_sel"><b>B Visibility / Audio</b></label>
|
||||
<select class="w3-select w3-border w3-white" name="vis_sel" id="vis_sel">
|
||||
<option value="0" selected>not acceptable</option>
|
||||
<option value="1">minimal requirements</option>
|
||||
@ -95,7 +96,7 @@
|
||||
|
||||
<div class="w3-row-padding">
|
||||
<div class="w3-half">
|
||||
<label class="w3-text-green" for="seg_sel"><b>Segmentation</b></label>
|
||||
<label class="w3-text-green" for="seg_sel"><b>C Segmentation</b></label>
|
||||
<select class="w3-select w3-border w3-white" name="seg_sel" id="seg_sel">
|
||||
<option value="0" selected>not acceptable</option>
|
||||
<option value="1">minimal requirements</option>
|
||||
@ -106,7 +107,7 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
<label class="w3-text-green" for="act_sel"><b>Activity</b></label>
|
||||
<label class="w3-text-green" for="act_sel"><b>D Activity</b></label>
|
||||
<select class="w3-select w3-border w3-white" name="act_sel" id="act_sel">
|
||||
<option value="0" selected>not acceptable</option>
|
||||
<option value="1">minimal requirements</option>
|
||||
@ -120,7 +121,7 @@
|
||||
|
||||
<div class="w3-row-padding">
|
||||
<div class="w3-half">
|
||||
<label class="w3-text-green" for="int_sel"><b>interactivity</b></label>
|
||||
<label class="w3-text-green" for="int_sel"><b>E Interactivity</b></label>
|
||||
<select class="w3-select w3-border w3-white" name="int_sel" id="int_sel">
|
||||
<option value="0" selected>not acceptable</option>
|
||||
<option value="1">minimal requirements</option>
|
||||
@ -131,7 +132,7 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
<label class="w3-text-green" for="dyn_sel"><b>Principle of Dynamic Drawing</b></label>
|
||||
<label class="w3-text-green" for="dyn_sel"><b>F Principle of Dynamic Drawing</b></label>
|
||||
<select class="w3-select w3-border w3-white" name="dyn_sel" id="dyn_sel">
|
||||
<option value="0" selected>not acceptable</option>
|
||||
<option value="1">minimal requirements</option>
|
||||
@ -145,7 +146,7 @@
|
||||
|
||||
<div class="w3-row-padding">
|
||||
<div class="w3-half">
|
||||
<label class="w3-text-green" for="tra_sel"><b>Translatability</b></label>
|
||||
<label class="w3-text-green" for="tra_sel"><b>G Translatability</b></label>
|
||||
<select class="w3-select w3-border w3-white" name="tra_sel" id="tra_sel">
|
||||
<option value="0" selected>not acceptable</option>
|
||||
<option value="1">minimal requirements</option>
|
||||
@ -161,13 +162,13 @@
|
||||
|
||||
|
||||
<div class="w3-container w3-margin">
|
||||
<input class="w3-btn w3-green" type="submit" name="do_entry" value="OK">
|
||||
<input class="w3-btn w3-green" type="submit" name="do_entry" value="OK" onlick="javascript:setNewValues();">
|
||||
<input class="w3-btn w3-grey" type="reset" name="reset" value="Reset">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<hr/>
|
||||
<canvas id="chartId" aria-label="chart" height="350" width="580"></canvas>
|
||||
<canvas id="chartId" aria-label="chart" height="500" width="700"></canvas>
|
||||
|
||||
<script>
|
||||
var chrt = document.getElementById("chartId").getContext("2d");
|
||||
|
Loading…
Reference in New Issue
Block a user