diff --git a/index.html b/index.html index 3027a3b..317def6 100644 --- a/index.html +++ b/index.html @@ -74,10 +74,7 @@ - - - - - + + diff --git a/js/baidu.js b/js/baidu.js new file mode 100644 index 0000000..e585a2d --- /dev/null +++ b/js/baidu.js @@ -0,0 +1,2 @@ +// 百度统计 +var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="https://hm.baidu.com/hm.js?e4a38d186cb7e65e5ead3eb3f7eb190e";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s)})(); \ No newline at end of file diff --git a/js/weather.js b/js/weather.js new file mode 100644 index 0000000..c5c6868 --- /dev/null +++ b/js/weather.js @@ -0,0 +1,37 @@ +// 天气预报插件 +(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", "//widget.seniverse.com/widget/chameleon.js")); + +tpwidget("init", { + "flavor": "slim", + "location": "WX4FBXXFKE4F", + "geolocation": "enabled", + "language": "zh-chs", + "unit": "c", + "theme": "chameleon", + "container": "tp-weather-widget", + "bubble": "disabled", + "alarmType": "badge", + "color": "#FFFFFF", + "uid": "U9EC08A15F", + "hash": "039da28f5581f4bcb5c799fb4cdfb673" +}); +tpwidget("show");