openct-tasks/examples/module_testing/test-map2d/index.html

61 lines
3.5 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Test-map2d</title>
<script>
var stringsLanguage = 'en';
var map2d_options = {
url: 'map.jpg',
height: 400,
zoom: 0,
max_zoom: 2,
min_zoom: 0,
tags: [
'Tag 1',
'Tag 2',
'Tag 3'
],
figures: [{"type":"point","points":[{"x":225,"y":50}],"name":"Point 1","tag":"Tag 1"},{"type":"point","points":[{"x":225,"y":75}],"name":"Point 2","tag":"Tag 1"},{"type":"point","points":[{"x":225,"y":100}],"name":"Point 3","tag":"Tag 1"},{"type":"line","points":[{"x":150,"y":200},{"x":175,"y":225},{"x":200,"y":200},{"x":225,"y":225},{"x":250,"y":200}],"name":"Line 1","tag":"Tag 2"},{"type":"area","points":[{"x":100,"y":125},{"x":125,"y":150},{"x":150,"y":150},{"x":175,"y":125}],"name":"Area 1","tag":"Tag 3"},{"type":"area","points":[{"x":300,"y":125},{"x":300,"y":150},{"x":350,"y":150},{"x":350,"y":125}],"name":"Area 2","tag":"Tag 3"}],
};
var map2d_grader_data = {
bias: 10,
figures: [{"type":"point","points":[{"x":225,"y":50}],"name":"Point 1","tag":"Tag 1"},{"type":"point","points":[{"x":225,"y":75}],"name":"Point 2","tag":"Tag 1"},{"type":"point","points":[{"x":225,"y":100}],"name":"Point 3","tag":"Tag 1"},{"type":"line","points":[{"x":150,"y":200},{"x":175,"y":225},{"x":200,"y":200},{"x":225,"y":225},{"x":250,"y":200}],"name":"Line 1","tag":"Tag 2"},{"type":"area","points":[{"x":100,"y":125},{"x":125,"y":150},{"x":150,"y":150},{"x":175,"y":125}],"name":"Area 1","tag":"Tag 3"},{"type":"area","points":[{"x":300,"y":125},{"x":300,"y":150},{"x":350,"y":150},{"x":350,"y":125}],"name":"Area 2","tag":"Tag 3"}]
}
</script>
<script class="remove" type="text/javascript" src="../../../_common/modules/pemFioi/importModules-1.4-mobileFirst.js" id="import-modules"></script>
<script class="remove" type="text/javascript">
var json = {
"id": "test-map2d",
"license": "",
"authors": [],
"language": "en",
"version": "fr.01",
"translators": []
};
var modulesPath = '../../../_common/modules';
importModules([
'jquery-1.7.1',
'JSON-js',
'raphael-2.2.1',
'jschannel',
'platform-pr',
'installationAPI.01',
'miniPlatform',
'fonts-loader-1.0',
'map2d_styles',
'map2d',
'openstreetmap_task'
]);
</script>
</head>
<body>
<div id="task">
<div class="intro">
<h2 class="title">Test Map2D task</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class="taskContent"></div>
</div>
</body>
</html>