File size: 10,858 Bytes
d5bfab8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ARC testing interface</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="{{ url_for('static', filename='js/common.js') }}"></script>
<script src="{{ url_for('static', filename='js/testing_interface.js') }}"></script>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/common.css') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/testing_interface.css') }}">
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
</head>
<body>
<div id="modal_bg">
<div id="modal">
<div>Welcome to the Mini-ARC interface. <br /> Enter your name below. <br/> Press <i>Test Mini-ARC</i> to experience O2ARC. <br /> Press <i>Create Mini-ARC</i> to generate new Mini-ARC. <br /> Press <i>Mini-ARC trace</i> to view sample Mini-ARC trace. </div>
<br />
<input type="text" id="user_name"/>
<br />
<button onclick="start_test()" id="start_btn">Test Mini-ARC</button>
<button onclick="start_create()" id="start_btn">Create Mini-ARC</button>
<br />
<button onclick="start_logs()" id="start_btn">Mini-ARC trace</button>
</div>
</div>
<div id="continue_modal">
<div id="continue_modal_content">
<span class="close" onclick="closeContinue()">×</span>
<p id="task_result"></p>
<hr>
<div id="continue_buttons">
<button class="danger" id="cancel" onclick="closeContinue()">Cancel</button>
<button class="secondary" id="repeat_task" onclick="repeatTask()">Repeat Task</button>
<button class="primary" id="new_task" onclick="newTask()">Next Task</button>
</div>
</div>
</div>
<div id="task_side_nav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeTaskList()">×</a>
<div id="task_list"></div>
</div>
<div id="workspace">
<div id="demonstration_examples_view">
<div id="load_task_control_btns">
<label id='task_name' for="random_task_btn">Task name:</label>
<input type="file" id="load_task_file_input" class="load_task" style="display: none;" />
<button id="browse_task" onclick="openTaskList()">Browse</button>
<button onclick="randomTask()" id="random_task_btn"> Next Task </button>
</div>
<div class="text" id="task_demo_header">
Task demonstration
</div>
<div class="preview" id="task_preview">
</div>
</div>
<div id="evaluation-input-view">
<div class="text">
<button onclick="prevTestInput()">Prev</button>
Test input grid <span id="current_test_input_id_display">0</span>/<span
id="total_test_input_count_display">0</span>
<button onclick="nextTestInput()">Next</button>
</div>
<div id="evaluation_input">
<div id="input_test" class="selectable_grid"></div>
</div>
</div>
<div id="evaluation_view">
<div id="evaluation_output_editor">
<div id="edition_view">
<div id="editor_grid_control_btns">
<div id="resize_control_btns">
<label for="output_grid_size">Change grid size: </label>
<input type="text" id="output_grid_size" class="grid_size_field" name="size" value="5x5">
<button onclick="resizeOutputGrid()" id="resize_btn">Resize</button>
</div>
<button onclick="copyFromInput()">Copy from input</button>
<button onclick="resetOutputGrid()">Reset grid</button>
<button id="tool_clear_selection" name="tool_switching" value="floodfill">Clear
Selection</button>
<button onclick="submitSolution()" id="submit_solution_btn">Submit!</button>
</div>
<div id="output_grid">
<div id="output" class="edition_grid selectable_grid">
<div class="row">
<div class="cell" symbol="0" x="0" y="0"></div>
<div class="cell" symbol="0" x="0" y="1"></div>
<div class="cell" symbol="0" x="0" y="2"></div>
<div class="cell" symbol="0" x="0" y="3"></div>
<div class="cell" symbol="0" x="0" y="4"></div>
</div>
<div class="row">
<div class="cell" symbol="0" x="1" y="0"></div>
<div class="cell" symbol="0" x="1" y="1"></div>
<div class="cell" symbol="0" x="1" y="2"></div>
<div class="cell" symbol="0" x="1" y="3"></div>
<div class="cell" symbol="0" x="1" y="4"></div>
</div>
<div class="row">
<div class="cell" symbol="0" x="2" y="0"></div>
<div class="cell" symbol="0" x="2" y="1"></div>
<div class="cell" symbol="0" x="2" y="2"></div>
<div class="cell" symbol="0" x="2" y="3"></div>
<div class="cell" symbol="0" x="2" y="4"></div>
</div>
<div class="row">
<div class="cell" symbol="0" x="3" y="0"></div>
<div class="cell" symbol="0" x="3" y="1"></div>
<div class="cell" symbol="0" x="3" y="2"></div>
<div class="cell" symbol="0" x="3" y="3"></div>
<div class="cell" symbol="0" x="3" y="4"></div>
</div>
<div class="row">
<div class="cell" symbol="0" x="4" y="0"></div>
<div class="cell" symbol="0" x="4" y="1"></div>
<div class="cell" symbol="0" x="4" y="2"></div>
<div class="cell" symbol="0" x="4" y="3"></div>
<div class="cell" symbol="0" x="4" y="4"></div>
</div>
</div>
</div>
<div id="toolbar">
<div id="basic_tools">
<input type="radio" id="tool_edit" name="tool_switching" value="edit" class="tool_switching" checked>
<label for="tool_edit" class="tool_label">edit</label>
<input type="radio" id="tool_select" name="tool_switching" value="select" class="tool_switching">
<label for="tool_select" class="tool_label">select</label>
<input type="radio" id="tool_floodfill" name="tool_switching" value="floodfill" class="tool_switching">
<label for="tool_floodfill" class="tool_label">flood fill</label>
</div>
<div id="movement_tools">
<div>
<button class="extra_tools" id="rotate" onclick="rotateCells()">
<i class="bi bi-arrow-clockwise"></i>
</button>
<span class="tooltip" id="tooltip_rotate">rotate clockwise</span>
</div>
<div id="object_tools">
<button class="extra_tools" id="flip_horizontal" onclick="reflectY()">
<i class="bi bi-border-middle"></i>
</button>
<span class="tooltip" id="tooltip_flip_horizontal">horizontal flip</span>
</div>
<div>
<button class="extra_tools" id="flip_vertical" onclick="reflectX()">
<i class="bi bi-border-center"></i>
</button>
<span class="tooltip" id="tooltip_flip_vertical">vertical flip</span>
</div>
</div>
</div>
<div id="symbol_picker">
<div class="symbol_preview symbol_0 selected-symbol-preview" symbol="0"></div>
<div class="symbol_preview symbol_1" symbol="1"></div>
<div class="symbol_preview symbol_2" symbol="2"></div>
<div class="symbol_preview symbol_3" symbol="3"></div>
<div class="symbol_preview symbol_4" symbol="4"></div>
<div class="symbol_preview symbol_5" symbol="5"></div>
<div class="symbol_preview symbol_6" symbol="6"></div>
<div class="symbol_preview symbol_7" symbol="7"></div>
<div class="symbol_preview symbol_8" symbol="8"></div>
<div class="symbol_preview symbol_9" symbol="9"></div>
</div>
</div>
<div id="error_display"></div>
<div id="info_display"></div>
</div>
</div>
<div id="layers">
<div class="text">LAYER PANEL<button class="add_layer">ADD LAYER</button></div>
<div id="layer_panel">
<button id="button1" onclick="addLayer()">create Layer from Selection</button>
<button id="button2" onclick="deleteLayer()">delete Layer</button>
<p></p>
</div>
</div>
</div>
</body>
</html> |