Skip to content

Commit

Permalink
增加事件build和keypress
Browse files Browse the repository at this point in the history
  • Loading branch information
ksky521 committed Dec 9, 2015
1 parent 1d14222 commit 3c456d5
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 43 deletions.
4 changes: 3 additions & 1 deletion assets/js/nodeppt.control.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@

function timerCtrl() {
var $body = document.body;
if ($body.offsetWidth / window.devicePixelRatio < 640) {
var ua = navigator.userAgent;
//.test(ua)
if (/(android|iphone|ipod)/i.test(ua) && $body.offsetWidth / window.devicePixelRatio < 400) {
//太小的屏幕不要显示下一页了
return;
}
Expand Down
Loading

0 comments on commit 3c456d5

Please sign in to comment.