2023-08-24T15:43:54.png

html

<div id="tp-weather-widget" style="position:absolute;z-index:99999;"></div>

css

    a.sc-eHgmQL.hQLwwD {
        display: none;
    }

    #tp-weather-widget .sw-container {
        right: 10px !important;
        left: unset !important;
    }

javascript

(function(a, h, g, f, e, d, c, b) {
            b = function() {
                d = h.createElement(g);
                c = h.getElementsByTagName(g)[0];
                d.src = e;
                d.charset = "utf-8";
                d.async = 1;
                c.parentNode.insertBefore(d, c)
            };
            a["SeniverseWeatherWidgetObject"] = f;
            a[f] || (a[f] = function() {
                (a[f].q = a[f].q || []).push(arguments)
            });
            a[f].l = +new Date();
            if (a.attachEvent) {
                a.attachEvent("onload", b)
            } else {
                a.addEventListener("load", b, false)
            }
        }(window, document, "script", "SeniverseWeatherWidget", "//cdn.sencdn.com/widget2/static/js/bundle.js?t=" +
            parseInt((new Date().getTime() / 100000000).toString(), 10)));
        window.SeniverseWeatherWidget('show', {
            flavor: "bubble",
            location: "WX4FBXXFKE4F",
            geolocation: true,
            language: "zh-Hans",
            unit: "c",
            theme: "auto",
            token: "26c4103c-986c-4ecc-a1f7-a52b5d18b1a6",
            hover: "enabled",
            container: "tp-weather-widget"
        })