This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head lang="zh-CN"> | |
<meta charset="UTF-8"> | |
<title>移动端呼起键盘</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> | |
<meta name="apple-mobile-web-app-capable" content="no"/> | |
<meta name="format-detection" content="telephone=no"> | |
<link rel="stylesheet" href="http//res.wx.qq.com/wechatgame/static/game/wgui/css/wgui.min.css?max_age=100000000"> | |
<link rel="stylesheet" href="http://res.wx.qq.com/wechatgame/static/game/dist/css/style-game-post.5f9838b8.css?max_age=100000000"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dataURItoBlob(dataURI) { | |
var byteString = atob(dataURI.split(',')[1]); | |
var ab = new ArrayBuffer(byteString.length); | |
var ia = new Uint8Array(ab); | |
for (var i = 0; i < byteString.length; i++) { | |
ia[i] = byteString.charCodeAt(i); | |
} | |
return new Blob([ab], { type: 'image/jpeg' }); | |
} | |
function supportFile (){ |