NGToolsCSharp/NGTools/Scripts/MUI/examples/ad.html
2024-09-13 16:44:30 +08:00

47 lines
1.6 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>advertisement广告演示</title>
<link href="../css/mui.min.css" rel="stylesheet" />
</head>
<body>
<header class="mui-bar mui-bar-nav">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title">advertisement广告演示</h1>
</header>
<div class="mui-content">
<div class="mui-content-padded">
<p>DCloud广告联盟可以给DCloud的开发者提供更好的变现方式更优质的广告体验。点击如下链接前往体验<a href="http://m3w.cn/helload">广告演示</a></p>
<p>目前已支持悬浮红包、推送广告,更多广告陆续接通中,包括开屏广告、信息流广告。</p>
<p>了解更多DCloud广告联盟的优势及加入广告联盟的方式请点击<a href="http://dcloud.io/dad">http://dcloud.io/dad</a></p>
</div>
</div>
</body>
<script src="../js/mui.min.js"></script>
<script type="text/javascript">
mui.init();
mui.plusReady(function () {
if(plus.networkinfo.getCurrentType() == plus.networkinfo.CONNECTION_NONE){
mui.toast("当前网络不给力");
}
});
//处理点击事件,需要打开原生浏览器
mui('body').on('tap', 'a', function(e) {
var href = this.getAttribute('href');
if (href) {
if (window.plus) {
plus.runtime.openURL(href);
} else {
location.href = href;
}
}
});
</script>
</html>