Skip to content
Snippets Groups Projects
Commit 81d76952 authored by giacomo's avatar giacomo
Browse files

updated exercise description

parent 57eb5b92
No related branches found
No related tags found
No related merge requests found
......@@ -347,15 +347,15 @@ let Content = {
order: 8
},
css_checked_pseudo: {
instructions: "You need to add a new style rule (little + icon in the developer tools). That adds a <code>text-decoration</code> property with a value of <code>line-through</code> to any label elements that are <em>adjacent siblings</em> to a checked input. Hint: you can use <code>:checked</code> pseudo-element to select only those inputs which have been checked.",
instructions: "You need to add a new style rule (little + icon in the developer tools). That adds a <code>text-decoration</code> property with a value of <code>line-through</code> to any label elements that are <em>adjacent siblings</em> to a checked input. Hint: you can use <code>:checked</code> pseudo-element to select only those inputs which have been checked. To add the new style with the developer tools, right click on the exercise window and choose \"Inspect\". If you go directly to the deveoper tools, the browser might not apply the style.",
html: "<form id=\"todo-list-form\"><input type=\"checkbox\" name=\"todo-list\" id=\"exercise\"><label for=\"excercise\">Exercise</label><br><input type=\"checkbox\" name=\"todo-list\" id=\"shopping\"><label for=\"shopping\">Shopping</label><br><input type=\"checkbox\" name=\"todo-list\" id=\"clean\"><label for=\"clean\">Clean</label></form>",
selector: "#todo-list-form",
events: "change",
points: function ($element, config, event) {
let givePoints = true;
let feedback = "";
const checkedLabels = $('#todo-list-form input:checked + label')
const allLabels = $('#todo-list-form input + label')
const checkedLabels = $('#todo-list-form input:checked + label');
const allLabels = $('#todo-list-form input + label');
const inputs = $('#todo-list-form input');
let checkedSeen = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment