Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (48 sloc) 1.88 KB
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>SimpleWalletURL</title>
<meta id="i18n_pagename" content="message">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" type="text/css" href="https://static.medishares.net/css/materialize.min.css">
<link rel="stylesheet" type="text/css" href="https://static.medishares.net/css/common.css?v=2018082901">
<script src="https://static.medishares.net/js/jquery-3.2.1.min.js"></script>
<script src="https://static.medishares.net/js/vue.min.js"></script>
<script src="https://static.medishares.net/js/common.js?v=2018082901"></script>
</head>
<body>
<div class="mds-group">
<link href="https://static.medishares.net/css/market/qixi2018.css" rel="stylesheet">
<div class="qixi">
<div class="card" style="text-align:center">
<a class="confirm" onclick="opendappURL()">Open DAPP URL</a>
</div>
<div style="clear: both;"></div>
<ul class="qixi-about">
<li>
<h3>该示例展示通过链接打开麦子钱包,跳转DAPP网页</h3>
<h3>请使用手机浏览器打开本页面,点击上面的按钮</h3>
<h3>详细SDK方案查看:<a href="http://doc.mathwallet.org" style="color:#fff">MathWallet SDK</a></h3>
</li>
</ul>
</div>
<script type="text/javascript">
function opendappURL(){
var params = {
"action": "openUrl",
"protocol": "SimpleWallet",
"dappUrl": "https://gateway.eosdt.com/",
"dappName": "MathWalletSDK-Demo",
"blockchain": "eosio",
"version": "1.0",
"callback": "mathwalletdemos://mathwalletsdk?action=openUrl",
"desc": "",
"dappIcon": ""
};
window.location.href = "mathwallet://mathwallet.org?param="+JSON.stringify(params);
}
</script>
</div>
</body>
</html>
You can’t perform that action at this time.