widget doc

pull/101/head
a77uu 2019-08-10 00:47:41 +08:00 committed by GitHub
parent 955ae5b579
commit 8e1d7b0668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

28
widget.html 100644
View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Seniverse Widget Test Page</title>
<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/hmac-sha1.js"></script>
<style>.tpwthwidt .copyright_3C74fJC{display: none;}</style>
</head>
<body>
<script>(function(T,h,i,n,k,P,a,g,e){g=function(){P=h.createElement(i);a=h.getElementsByTagName(i)[0];P.src=k;P.charset="utf-8";P.async=1;a.parentNode.insertBefore(P,a)};T["ThinkPageWeatherWidgetObject"]=n;T[n]||(T[n]=function(){(T[n].q=T[n].q||[]).push(arguments)});T[n].l=+new Date();if(T.attachEvent){T.attachEvent("onload",g)}else{T.addEventListener("load",g,false)}}(window,document,"script","tpwidget","https://widget.seniverse.com/widget/chameleon.js"))</script>
<script>tpwidget("init", {
"flavor": "bubble",
"location": "ip",
"geolocation": "disabled",
"position": "bottom-right",
"margin": "40px 10px",
"language": "zh-Hans",
"unit": "c",
"theme": "chameleon",
"uid": "U785B76FC9",
"hash": "ac69f82a97d0242f9c98d18bdf6ff241"
});
tpwidget("show");</script>
</body>
</html>