openct-tasks/bebras/2018/2018-FR-07-checkers-graph/index_en.html

140 lines
5.0 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>2018-FR-07-checkers-graph</title>
<script>
window.stringsLanguage = 'en';
</script>
<script class="remove" type="text/javascript" src="../../modules/pemFioi/importModules-1.1_M.js" id="import-modules"></script>
<script class="remove" type="text/javascript">
var modulesPath = '../../modules';
importModules([
'jquery-1.7.1', 'jquery-ui.touch-punch', 'raphael-2.2.1', 'JSON-js',
'beav-1.0', 'beaver-task-2.0', 'simulation-2.0', 'raphaelFactory-1.0',
'delayFactory-1.0', 'simulationFactory-1.0', 'raphaelButton-1.0',
'platform-pr', 'buttonsAndMessages', 'installationAPI.01',
'miniPlatform', 'taskStyles-0.1','graph-1.0', 'visual-graph-1.0', 'grid-1.0']);
</script>
<script class="remove" type="text/javascript">
var json = {
"id": "",
"language": "en",
"version": "en.01",
"authors": "France-ioi",
"translators": [],
"license": "CC BY-SA 3.0",
"taskPathPrefix": "",
"modulesPathPrefix": "",
"browserSupport": [],
"fullFeedback": true,
"acceptedAnswers": [],
"usesRandomSeed": false
};
</script>
<script type="text/javascript">
var taskStrings = {
success: "Congratulations, you have succeeded!",
errorWrongEdge: "The connexion marked in red should not be there.",
errorMissingEdge: "The connexion marked in red is missing in the current situation.",
connectTokens: function(srcToken, dstToken, direction) {
var message = srcToken + " is linked to " + dstToken + " because it is on the same ";
if (direction == "vertical") {
message += "column.";
} else {
message += "row.";
}
return message;
},
connexionsInBlue: "These tokens are colored in blue in the diagram.",
noConnexions: function(srcToken) {
return "No token on the same row or column as " + srcToken + ", so we don't add connexions."
}
};
</script>
<script type="text/javascript" src="task.js"></script>
<style>
#board
{
width : 450px;
margin: 10px 10px;
}
#board, #graphContainer
{
display: inline-block;
vertical-align: top;
}
#target
{
margin-bottom: 15px;
}
#graphContainer
{
width: 200px;
margin: auto;
text-align: center;
font-size: 18px;
}
.graphTitle {
margin-bottom: 0.5em;
}
#displayHelper_graderMessage {
margin-top: 1em;
margin-bottom: 1em;
text-align: center;
font-weight: bold;
color: red;
}
#layoutTable {
margin-top: 20px;
}
#layoutTable td {
vertical-align: top
}
td#layoutTableFirstCol {
width: 480px;
}
#message {
color: green;
}
</style>
</head>
<body>
<div id="task">
<h1>Checker's graph</h1>
<div id="tabsContainer"></div> <!-- will contain the versions tabs -->
<div id="taskContent"> <!-- will contain the content of the task -->
<div id="zone_1">
<div class="consigne">
<p>Move the tokens in the grid so that your diagram has the same connexions as the objective<.</p>
<p>There is a connexion between two tokens if they are on the same row or same column in the grid.</p>
</div>
</div>
<div id="zone_2">
<table id="layoutTable">
<tr><td id="layoutTableFirstCol">
<div id="board"></div>
<div id="message"></div>
</td><td>
<div id="graphContainer">
<div class="graphTitle">Objective:</div>
<div id="target"></div>
<div class="graphTitle">Your diagram:</div>
<div id="current"></div>
</div>
</td></tr></table>
</div>
</div>
<img src="icon.png" style="display:none">
</div><!-- #task -->
<div id="solution">
<h2>Solution</h2>
<!-- description of the solution -->
<h2>It's informatics&nbsp;!</h2>
<!-- explanations on why this task is about informatics -->
<img src="icon.png" style="display:none">
</div>
</body>
</html>