/
KCipho
/
openedu-auto
Обзор
Документация
Войти
/
KCipho
/
openedu-auto
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/pull/pull_fill.html
220 строк
11 KB
usiqwerty
feat: parse correct answers
22 мар 2025, 18:39
22 мар 2025, 18:39
e7dee33
Код
Авторство
О чём код?
<div class="xblock xblock-student_view xblock-student_view-problem xmodule_display xmodule_ProblemBlock xblock-initialized" data-course-id="course-v1:urfu+HIST+spring_2025" data-init="XBlockToXModuleShim" data-runtime-class="LmsRuntime" data-runtime-version="1" data-block-type="problem" data-usage-id="block-v1:urfu+HIST+spring_2025+type@problem+block@ccce274d168a3aa15059" data-request-token="f43d20da072511f09b8632609edb2f15" data-graded="True" data-has-score="True"> <div id="problem_ccce274d168a3aa15059" class="problems-wrapper" role="group" aria-labelledby="ccce274d168a3aa15059-problem-title" data-problem-id="block-v1:urfu+HIST+spring_2025+type@problem+block@ccce274d168a3aa15059" data-url="/courses/course-v1:urfu+HIST+spring_2025/xblock/block-v1:urfu+HIST+spring_2025+type@problem+block@ccce274d168a3aa15059/handler/xmodule_handler" data-problem-score="1" data-problem-total-possible="1" data-attempts-used="2" data-content=" <h3 class="hd hd-3 problem-header" id="ccce274d168a3aa15059-problem-title" aria-describedby="block-v1:urfu+HIST+spring_2025+type@problem+block@ccce274d168a3aa15059-problem-progress" tabindex="-1"> . </h3> <div class="problem-progress" id="block-v1:urfu+HIST+spring_2025+type@problem+block@ccce274d168a3aa15059-problem-progress"></div> <div class="problem"> <div> <div class="wrapper-problem-response" tabindex="-1" aria-label="Вопрос 1" role="group"><p><em>Дополните</em> </p><p>«И пошел на Оку реку и на Волгу, и встретил вятичей и сказал им: «Кому дань даете?» Они же ответили: «Хазарам – по шлягу от рала даем».</p> <p>В год 6472. Пошел ______________ на хазар. Услышав же, хазары вышли навстречу во главе со своим князем Каганом и сошлись биться, и в битве одолел _____________ хазар и город их Белую Вежу взял. И победил ясов и касогов».</p> <div id="inputtype_ccce274d168a3aa15059_2_1" class=" capa_inputtype textline"> <div class="correct "> <label class="problem-group-label" for="input_ccce274d168a3aa15059_2_1" id="label_ccce274d168a3aa15059_2_1">Прочтите отрывок из документа и напишите пропущенное в нем имя древнерусского князя</label> <input type="text" name="input_ccce274d168a3aa15059_2_1" id="input_ccce274d168a3aa15059_2_1" aria-describedby="status_ccce274d168a3aa15059_2_1" value="Святослав " autocomplete="off" size="20"/> <span class="trailing_text" id="trailing_text_ccce274d168a3aa15059_2_1"/> <span class="status correct" id="status_ccce274d168a3aa15059_2_1" data-tooltip="Это правильный ответ."> <span class="sr">верно</span><span class="status-icon" aria-hidden="true"/> </span> <p id="answer_ccce274d168a3aa15059_2_1" class="answer"/> </div> </div></div> </div> <div class="action"> <input type="hidden" name="problem_id" value="." /> <div class="problem-action-buttons-wrapper"> <span class="problem-action-button-wrapper"> <button type="button" class="show problem-action-btn btn-link btn-small" aria-describedby="ccce274d168a3aa15059-problem-title"><span class="show-label">Show answer</span></button> </span> </div> <div class="submit-attempt-container"> <button type="button" class="submit btn-brand" data-submitting="Отправка" data-value="Отправить" data-should-enable-submit-button="False" aria-describedby="submission_feedback_ccce274d168a3aa15059" disabled> <span class="submit-label">Отправить</span> </button> <div class="submission-feedback " id="submission_feedback_ccce274d168a3aa15059"> Вы использовали 2 из 2 попыток <span class="sr">В некоторых задачах доступны следующие действия: сохранение, сброс, показ подсказки или ответа. Соответствующие кнопки расположены рядом с кнопкой «Отправить».</span> </div> </div> </div> <div class="notification warning notification-gentle-alert is-hidden" tabindex="-1"> <span class="icon fa fa-exclamation-circle" aria-hidden="true"></span> <span class="notification-message" aria-describedby="ccce274d168a3aa15059-problem-title"> </span> <div class="notification-btn-wrapper"> <button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Просмотреть</button> </div> </div> <div class="notification warning notification-save is-hidden" tabindex="-1"> <span class="icon fa fa-save" aria-hidden="true"></span> <span class="notification-message" aria-describedby="ccce274d168a3aa15059-problem-title">None </span> <div class="notification-btn-wrapper"> <button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Просмотреть</button> </div> </div> <div class="notification general notification-show-answer is-hidden" tabindex="-1"> <span class="icon fa fa-info-circle" aria-hidden="true"></span> <span class="notification-message" aria-describedby="ccce274d168a3aa15059-problem-title">Ответы в задаче отмечены </span> <div class="notification-btn-wrapper"> <button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Просмотреть</button> </div> </div> </div> <script> function emit_event(message) { parent.postMessage(message, '*'); } </script> " data-graded="True"> <h3 class="hd hd-3 problem-header" id="ccce274d168a3aa15059-problem-title" aria-describedby="block-v1:urfu+HIST+spring_2025+type@problem+block@ccce274d168a3aa15059-problem-progress" tabindex="-1"> . </h3> <div class="problem-progress" id="block-v1:urfu+HIST+spring_2025+type@problem+block@ccce274d168a3aa15059-problem-progress">1/1 point (graded)</div> <div class="problem"> <div> <div class="wrapper-problem-response" tabindex="-1" aria-label="Вопрос 1" role="group"><p><em>Дополните</em> </p><p>«И пошел на Оку реку и на Волгу, и встретил вятичей и сказал им: «Кому дань даете?» Они же ответили: «Хазарам – по шлягу от рала даем».</p> <p>В год 6472. Пошел ______________ на хазар. Услышав же, хазары вышли навстречу во главе со своим князем Каганом и сошлись биться, и в битве одолел _____________ хазар и город их Белую Вежу взял. И победил ясов и касогов».</p> <div id="inputtype_ccce274d168a3aa15059_2_1" class=" capa_inputtype textline"> <div class="correct "> <label class="problem-group-label" for="input_ccce274d168a3aa15059_2_1" id="label_ccce274d168a3aa15059_2_1">Прочтите отрывок из документа и напишите пропущенное в нем имя древнерусского князя</label> <input type="text" name="input_ccce274d168a3aa15059_2_1" id="input_ccce274d168a3aa15059_2_1" aria-describedby="status_ccce274d168a3aa15059_2_1" value="Святослав " autocomplete="off" size="20"> <span class="trailing_text" id="trailing_text_ccce274d168a3aa15059_2_1"></span> <span class="status correct" id="status_ccce274d168a3aa15059_2_1" data-tooltip="Это правильный ответ."> <span class="sr">верно</span><span class="status-icon" aria-hidden="true"></span> </span> <p id="answer_ccce274d168a3aa15059_2_1" class="answer"></p> </div> </div></div> </div> <div class="action"> <input type="hidden" name="problem_id" value="."> <div class="problem-action-buttons-wrapper"> <span class="problem-action-button-wrapper"> <button type="button" class="show problem-action-btn btn-link btn-small" aria-describedby="ccce274d168a3aa15059-problem-title"><span class="show-label">Show answer</span></button> </span> </div> <div class="submit-attempt-container"> <button type="button" class="submit btn-brand" data-submitting="Отправка" data-value="Отправить" data-should-enable-submit-button="False" aria-describedby="submission_feedback_ccce274d168a3aa15059" disabled=""> <span class="submit-label">Отправить</span> </button> <div class="submission-feedback " id="submission_feedback_ccce274d168a3aa15059"> Вы использовали 2 из 2 попыток <span class="sr">В некоторых задачах доступны следующие действия: сохранение, сброс, показ подсказки или ответа. Соответствующие кнопки расположены рядом с кнопкой «Отправить».</span> </div> </div> </div> <div class="notification warning notification-gentle-alert is-hidden" tabindex="-1"> <span class="icon fa fa-exclamation-circle" aria-hidden="true"></span> <span class="notification-message" aria-describedby="ccce274d168a3aa15059-problem-title"> </span> <div class="notification-btn-wrapper"> <button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Просмотреть</button> </div> </div> <div class="notification warning notification-save is-hidden" tabindex="-1"> <span class="icon fa fa-save" aria-hidden="true"></span> <span class="notification-message" aria-describedby="ccce274d168a3aa15059-problem-title">None </span> <div class="notification-btn-wrapper"> <button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Просмотреть</button> </div> </div> <div class="notification general notification-show-answer is-hidden" tabindex="-1"> <span class="icon fa fa-info-circle" aria-hidden="true"></span> <span class="notification-message" aria-describedby="ccce274d168a3aa15059-problem-title">Ответы в задаче отмечены </span> <div class="notification-btn-wrapper"> <button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Просмотреть</button> </div> </div> </div> <script> function emit_event(message) { parent.postMessage(message, '*'); } </script> </div> </div>