0And1Story / scjycp

四川艺术教育测评平台题库
https://0and1story.github.io/scjycp/
GNU General Public License v3.0
2 stars 1 forks source link

BUG反馈帖 #2

Open 0And1Story opened 4 years ago

0And1Story commented 4 years ago

在此帖以下回复以报告BUG

SocialZxy commented 4 years ago

此网站谨供将要参加音美中考的四川学生使用

            ^

文法错误?

0And1Story commented 4 years ago

此网站谨供将要参加音美中考的四川学生使用             ^

文法错误?

@SocialZxy 帮我想一下怎么改吧,我觉得我的关于框写的太烂了

Patriot-Gao commented 4 years ago

@0And1Story 单选和多选好像没区分吧,所有题都可以多选

0And1Story commented 4 years ago

@0And1Story 单选和多选好像没区分吧,所有题都可以多选

State: invalid

@Patriot-Gao 是有区别的,单选题选项的<input>带有相同name属性,带有相同name属性的<input>只能选择其中一个

请参照 [/js/load-exam.js]79行,in function 'loadProblem()'

for (let i = 0; i < answer_object.data[serial].options.length; i ++) {
    form.innerHTML += 
    (i > 0 ? '<br>' : '') +
    '<label class="mdui-radio">' +
    '    <input type="radio" name="answer" onclick="changeAnswer(' + serial + ',' + i + ')" ' + (checked_answer[serial].indexOf(answer_object.data[serial].options[i].serial) != -1 ? 'checked ' : '') + '/>' +
    // Here->                ^^^^^^^^^^^^
    '    <i class="mdui-radio-icon"></i>' +
    '    ' + String.fromCharCode('A'.charCodeAt(0) + i) + '. ' + answer_object.data[serial].options[i].txt +
    '</label>' +
    (answer_object.data[serial].options[i].url == '' ? '' : '<br>' + (answer_object.data[serial].options[i].type == 1 ? '<img src="' + answer_object.data[serial].options[i].url + '">' : '<audio src="' + answer_object.data[serial].options[i].url + '" controls="controls"></audio>'));
}
SocialZxy commented 4 years ago

@0And1Story 单选和多选好像没区分吧,所有题都可以多选

State: invalid

@Patriot-Gao 是有区别的,单选题选项的<input>带有相同name属性,带有相同name属性的<input>只能选择其中一个

请参照 [/js/load-exam.js]79行,in function 'loadProblem()'

for (let i = 0; i < answer_object.data[serial].options.length; i ++) {
    form.innerHTML += 
    (i > 0 ? '<br>' : '') +
    '<label class="mdui-radio">' +
    '    <input type="radio" name="answer" onclick="changeAnswer(' + serial + ',' + i + ')" ' + (checked_answer[serial].indexOf(answer_object.data[serial].options[i].serial) != -1 ? 'checked ' : '') + '/>' +
    // Here->                ^^^^^^^^^^^^
    '    <i class="mdui-radio-icon"></i>' +
    '    ' + String.fromCharCode('A'.charCodeAt(0) + i) + '. ' + answer_object.data[serial].options[i].txt +
    '</label>' +
    (answer_object.data[serial].options[i].url == '' ? '' : '<br>' + (answer_object.data[serial].options[i].type == 1 ? '<img src="' + answer_object.data[serial].options[i].url + '">' : '<audio src="' + answer_object.data[serial].options[i].url + '" controls="controls"></audio>'));
}

tql orz(话说这位好像不会js

SocialZxy commented 4 years ago

此网站谨供将要参加音美中考的四川学生使用             ^

文法错误?

@SocialZxy 帮我想一下怎么改吧,我觉得我的关于框写的太烂了

语文不好QAQ(话说能不能把我弄进来)

0And1Story commented 4 years ago

此网站谨供将要参加音美中考的四川学生使用             ^

文法错误?

@SocialZxy 帮我想一下怎么改吧,我觉得我的关于框写的太烂了

语文不好QAQ(话说能不能把我弄进来)

@SocialZxy 两个人不好管理,若有需要会把你加进来的

(话说这就是传说中的俄罗斯套引用?)