Skip to content

Commit 5f4dd8d

Browse files
committed
改名q为q$
1 parent d0d0666 commit 5f4dd8d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

checkessay.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function show_check_results(only_unusual = false)
6060
</ruby>
6161
`);
6262

63-
var div_comments_above_char = div_essayChar.q(".div_comments_above_char");
63+
var div_comments_above_char = div_essayChar.q$(".div_comments_above_char");
6464
if ( charObj.cInfo.showCode == true )
6565
{
6666
var codeDiv = htmlStr2dom(`
@@ -71,10 +71,10 @@ function show_check_results(only_unusual = false)
7171
div_comments_above_char.insertBefore(codeDiv, div_comments_above_char.firstChild);
7272
}
7373

74-
var div_origChar_n_aboveText = div_essayChar.q(".div_origChar_n_aboveText");
75-
var div_origChar = div_essayChar.q(".div_orig_char");
76-
var ruby_rt = div_essayChar.q("rt");
77-
var unusual_span = div_essayChar.q("#unusual");
74+
var div_origChar_n_aboveText = div_essayChar.q$(".div_origChar_n_aboveText");
75+
var div_origChar = div_essayChar.q$(".div_orig_char");
76+
var ruby_rt = div_essayChar.q$("rt");
77+
var unusual_span = div_essayChar.q$("#unusual");
7878

7979

8080
if (charObj.isUnusual)

common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function $$$(s)
1010
return document.querySelectorAll(s);
1111
}
1212

13-
Object.prototype.q = function(selectorStr) {
13+
Object.prototype.q$ = function(selectorStr) {
1414
function handleNonArrayObject(obj)
1515
{
1616
return obj.querySelector(selectorStr);

unusual_conditions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ onDCL(function() {
9797
<input type="checkbox" class="unusual_cond_checkbox" name="${name}" >${escapeHtml(condObj['full_desc'])}</input>
9898
</div>
9999
`);
100-
checkbox_span.q("input").checked = condObj.default_checked;
100+
checkbox_span.q$("input").checked = condObj.default_checked;
101101
form.appendChild(checkbox_span);
102102
}
103103
});

0 commit comments

Comments
 (0)