Skip to content

Commit

Permalink
调整显示
Browse files Browse the repository at this point in the history
  • Loading branch information
axipo committed Nov 8, 2019
1 parent 43b3eb8 commit 886afbf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

——追求简洁·优雅·美观的解决之道

这是一个具有划词翻译功能的pdf阅读器,用着挺好用开源一下帮助众科研人员**欢迎star**
这是一个具有划词翻译功能的pdf阅读器,用着挺好用开源一下造福众科研人员**欢迎star**

## 太长不读通道
[点此下载](https://github.com/axipo/pdfTranslator/releases),双击打开
Expand Down
10 changes: 0 additions & 10 deletions web/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ document.addEventListener('click', clickFun);
'use strict'
var bg = document.getElementsByTagName('canvas');
var wd = document.querySelectorAll('.page span');
// var textLayer = document.getElementsByClassName('textLayer');
var timeSep = '300'; //ms
var timeDurition = 2;
bg = Array.prototype.slice.call(bg);
Expand All @@ -76,14 +75,6 @@ document.addEventListener('click', clickFun);
for(var ind = 0; ind < bg.length; ind++){
bg[ind].style.visibility = 'hidden';
}
// for(let ind = 0; ind < wd.length; ind++){
// let aNode = wd[ind];
// setTimeout(() =>{
// aNode.style.transition='transform ' + timeDurition + 's' + ',opacity ' + timeDurition + 's';
// aNode.style.transform = 'rotate(180deg) scale(0, 0)';
// aNode.style.opacity = '0';
// }, timeSep * (ind + 1))
// }
var curInd = 0;
var killOneByOne = function (){
let aNode = wd[curInd];
Expand All @@ -103,7 +94,6 @@ document.addEventListener('click', clickFun);
'use strict'
var MININTERVAL = 400;
var keypressed = String.fromCharCode(event.keyCode);
// console.log(keypressed);
timeSeq.push(keypressed);
timeSeq.shift();
if(timeSeq.join('') === 'XBDL'){
Expand Down

0 comments on commit 886afbf

Please sign in to comment.