Skip to content

Commit

Permalink
文档目录变更
Browse files Browse the repository at this point in the history
  • Loading branch information
Benature committed May 7, 2020
1 parent 6288fa8 commit 87a5276
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions WordReview/static/css/thirdParty/bootstrap.min.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions WordReview/static/js/homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ $.ajax({
$img.height(H);
$img.width(H / h * w);
}


})
7 changes: 2 additions & 5 deletions WordReview/static/js/review.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,9 @@ $(function () {
flagType = false;
break;
}
console.log(flagType)
if (flagType != false) {
console.log(flagType)
$flag.removeClass('icon' + flagType + 'disabled').addClass('icon' + flagType + 'enabled');
}
console.log(data.flag, data.panFlag)

// 相关词
relatedWords.forEach((rw) => {
Expand Down Expand Up @@ -461,7 +458,6 @@ $(function () {
}



$('#meaning-box').on('click', function (e) {
readText(word);
$('.hide').removeClass('d-none');
Expand Down Expand Up @@ -964,4 +960,5 @@ window.onbeforeunload = function (event) {
} else if (wordIndex != wordArray.length - 1) {
return "本轮背单词进度将会丢失😣";
}
}
}

File renamed without changes.
4 changes: 2 additions & 2 deletions WordReview/templates/base.pug
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ html
link(href="/static/css/thirdParty/bootstrap.min.css" rel="stylesheet")
link(href="/static/font/fontawesome/font-awesome.min.css" rel="stylesheet")
link(href="/static/css/base.css" rel="stylesheet")
script(src="/static/jquery/jquery-3.5.1.min.js")
script(src="/static/jquery/jquery.tmpl.min.js")
script(src="/static/js/thirdParty/jquery/jquery-3.5.1.min.js")
script(src="/static/js/thirdParty/jquery/jquery.tmpl.min.js")
script(src="/static/js/thirdParty/layer/layer.js")

script(src="/static/js/util.js")
Expand Down
3 changes: 2 additions & 1 deletion extension/js/content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ function renderWordSand(word_now) {
if (/<td.*valign.*width.*bgcolor.*>([\s\S]*?)<\/td>/g.test(response.content)) {
content = RegExp.$1
.replace(/<center>[\s\S]+?<\/center>/, '')
.replace(/<font.*?>/, '<font>');
.replace(/<font.*?>/, '<font>')
.replace('<hr>', '');
document.getElementById('word-sand').innerHTML = content;
if ($.trim($('#word-sand').text()) != '') {
$('#word-sand').css('display', '');
Expand Down

0 comments on commit 87a5276

Please sign in to comment.