Page MenuHomePhabricator

Migrate inline JS to appropriate script files in QuizGame
Open, Needs TriagePublic

Description

grep -ri onclick
js/QuizGame.js: var quiz_controls = '<div id="quiz-controls"><a href="javascript:void(0)" onclick="QuizGame.pauseQuiz()" class="stop-button">' +
QuestionGameHome.body.php: <input type=\"button\" class=\"site-button\" value=\"" . $this->msg( 'quizgame-save-page-button' )->text() . "\" onclick=\"javascript:document.quizGameEditForm.submit()\"/>
QuestionGameHome.body.php: <input type=\"button\" class=\"site-button\" value=\"" . $this->msg( 'quizgame-cancel-button' )->text() . "\" onclick=\"javascript:document.location='" .
QuestionGameHome.body.php: $this->msg( 'quizgame-main-page-button' )->text() . '" onclick="window.location=\'' .
QuestionGameHome.body.php: $this->msg( 'quizgame-login-button' )->text() . '" onclick="window.location=\'' .
QuestionGameHome.body.php: $this->msg( 'quizgame-create-button' )->text() . '" onclick="window.location=\'' .
QuestionGameHome.body.php: <p><input class="site-button" type="button" onclick="document.location=\'' .
ViewQuizzes.php: $output .= "<div class=\"view-quizzes-row\" id=\"{$row_id}\" onclick=\"window.location='" . $url . '\'">';
ViewQuizzes.php: $output .= "<div class=\"view-quizzes-row-bottom\" id=\"{$row_id}\" onclick=\"window.location='" . $url . '\'">';
grep -ri href=\"javascript
js/QuizGame.js: '<a href="javascript:QuizGame.goToNextQuiz();" class="stop-button">' +
js/QuizGame.js: var quiz_controls = '<div id="quiz-controls"><a href="javascript:void(0)" onclick="QuizGame.pauseQuiz()" class="stop-button">' +
js/QuizGame.js: var view_results_button = '<a href="javascript:QuizGame.goToQuiz(' +
QuestionGameHome.body.php: $output .= '<a class="skip-question-link" href="javascript:void(0);">' .