JSFiddle - React, Tailwind, and code Playground
HTML
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/><meta name="theme-color" content="#000000"/><meta name="description" id="description" content="基于华米智能穿戴设备、健康大数据及算法,为合作伙伴提供数据、智能应用、IoT设备接入等开放能力,赋能合作伙伴实现业务创新,向终端用户提供个性化服务。Based on Huami smart wearable devices, health big data and algorithms, we provide partners with open capabilities such as data, smart applications, IoT device access."/><meta name="keywords" id="keywords" content="华米开放平台,华米,开放平台,开发者,华米开发者,API,数据同步,IoT,设备接入,服务接入,ZEEP支持,技术支持,Huami Open Platform,Huami, open platform, developer, huami developer, API, data synchronization, IOT, device access, service access, zeep support, technical support"/><script type="text/javascript">!function(n){if("/"===n.search[1]){var a=n.search.slice(1).split("&").map((function(n){return n.replace(/~and~/g,"&")})).join("?");window.history.replaceState(null,null,n.pathname.slice(0,-1)+a+n.hash)}}(window.location)</script><script>!function(n,e,t,i,c,u,s){n.HuamiBrowserAnalytics=c,n[c]=n[c]||function(){(n[c].queue=n[c].queue||[]).push(arguments)},n[c].queue=[],n[c].init=function(e){n[c].config=e},n[c].push=function(e){n[c].queue.push(e)},n[c].config=function(e){n[c].config=e,n[c].config.htag=1},n[c].l=1*new Date,u=e.createElement(t),s=e.getElementsByTagName(t)[0],u.async=1,u.src="https://fe-testing-cdn.huami.com/analytics-browser/2.0.0/analytics.min.js",s.parentNode.insertBefore(u,s)}(window,document,"script",0,"HM_Analytics")</script><script>const curHerf=window.location.href;curHerf.indexOf("testing")>-1||curHerf.indexOf("staging")>-1||curHerf.indexOf("localhost")>-1||curHerf.indexOf("tesweafa.huami.com")>-1||curHerf.indexOf("fe")>-1?document.write('<script src="https://fe-testing-cdn.huami.com/locale/main.js?timestamp='+(new Date).getTime()+'" /><\/script>'):document.write('<script src="https://fe-cdn.huami.com/locale/main.js?timestamp='+(new...