<commit_before>extends ../layout
block content
    script.
        $(document).ready(function() {
            var directions = {
                0: "To get started, open your Chrome DevTools. The #next-exercise button is disabled below. Try using jQuery's .attr() method to turn the disabled attribute to false.",
                1: "Move the .target element from #location1 to #location2.",
                2: "Change the background color of .target to red.",
                3: "Change the background color of the even-numbered targets to red.",
                4: "Change the background color of the target4 to red.",
                5: "Clone the target2 in #location1 so that it also exists in #location2.",
                6: "Remove the target3 from element from #location1.",
                7: "Check the following checkboxes using jQuery.",
                8: "Make the text input field read-only.",
                9: "Select the target2 option in the select box.",
                10: "Add the following css classes to .target: 'animated' and 'hinge'.",
                11: "Use jQuery to read the data of .target.",
                12: "Use 'length' to count the number of child elements in #location1, then display that value in #location2.",
                13: "There's an element hidden in #location1. Show it using jQuery, and then click on it."
            };
            var hint = {
                0: "$('#next-exercise').attr('disabled', false);",
                1: "$('.target').appendTo('#location2');",
                2: "$('.target').css('background', 'red');",
                3: "$('.target:even').css({'background': 'red'});",
                4: "$('.target:nth-child(4)').css({'background': 'red'});",
                5: "$('.target:nth-child(2)').clone().appendTo($('#location2'));",
                6: "$('.target:nth-child(3)').remove();",
                7: "$('#location1 input').attr('checked', 'true')",
                8: "$('#location1 input').attr('readonly', 'true')",
                9: "$('#location1 select').val('target2');",
                10: "$('.target').addClass('animated hinge');",
                11: "$('.target').data();",
                12: "$('#location2').text($('#location1').children().length)",
                13: "$('#finished-button').show().click();"
            };
            var elements = {
                0: "",
                1: "<div class='btn btn-default target'>.target</div>",
                2: "<div class='btn btn-default target'>.target</div>",
                3: "<div class='btn btn-default target'>target0</div><div class='btn btn-default target'>target1</div><div class='btn btn-default target'>target2</div><div class='btn btn-default target'>target3</div><div class='btn btn-default target'>target4</div>",
                4: "<div class='btn btn-default target'>target1</div><div class='btn btn-default target'>target2</div><div class='btn btn-default target'>target3</div><div class='btn btn-default target'>target4</div><div class='btn btn-default target'>target5</div>",<commit_msg>Edit wording of jquery exercises<commit_after>extends ../layout
block content
    script.
        $(document).ready(function() {
            var directions = {
                0: "To get started, open your Chrome DevTools. The #next-exercise button is disabled below. Try using jQuery's .attr() method to turn the disabled attribute to false.",
                1: "Move the .target element from #location1 to #location2.",
                2: "Change the background color of .target to red.",
                3: "Change the background color of the even-numbered targets to red.",
                4: "Change the background color of target4 to red.",
                5: "Clone target2 in #location1 so that it also exists in #location2.",
                6: "Remove the target3 element from #location1.",
                7: "Check the following checkboxes using jQuery.",
                8: "Make the text input field read-only.",
                9: "Select target2 option in the select box.",
                10: "Add the following css classes to .target: 'animated' and 'hinge'.",
                11: "Use jQuery to read the data of .target.",
                12: "Use 'length' to count the number of child elements in #location1, then display that value in #location2.",
                13: "There's an element hidden in #location1. Show it using jQuery, and then click on it."
            };
            var hint = {
                0: "$('#next-exercise').attr('disabled', false);",
                1: "$('.target').appendTo('#location2');",
                2: "$('.target').css('background', 'red');",
                3: "$('.target:even').css({'background': 'red'});",
                4: "$('.target:nth-child(4)').css({'background': 'red'});",
                5: "$('.target:nth-child(2)').clone().appendTo($('#location2'));",
                6: "$('.target:nth-child(3)').remove();",
                7: "$('#location1 input').attr('checked', 'true')",
                8: "$('#location1 input').attr('readonly', 'true')",
                9: "$('#location1 select').val('target2');",
                10: "$('.target').addClass('animated hinge');",
                11: "$('.target').data();",
                12: "$('#location2').text($('#location1').children().length)",
                13: "$('#finished-button').show().click();"
            };
            var elements = {
                0: "",
                1: "<div class='btn btn-default target'>.target</div>",
                2: "<div class='btn btn-default target'>.target</div>",
                3: "<div class='btn btn-default target'>target0</div><div class='btn btn-default target'>target1</div><div class='btn btn-default target'>target2</div><div class='btn btn-default target'>target3</div><div class='btn btn-default target'>target4</div>",
                4: "<div class='btn btn-default target'>target1</div><div class='btn btn-default target'>target2</div><div class='btn btn-default target'>target3</div><div class='btn btn-default target'>target4</div><div class='btn btn-default target'>target5</div>",
{'fraction_non_alphanumeric': 0.17077922077922078, 'fraction_numerical': 0.024025974025974027, 'mean_word_length': 2.2273441592456784, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4213173', 'n_tokens_mistral': 1599, 'n_tokens_neox': 1566, 'n_words': 515}