數碼中文坊

 取回密碼
 我要註冊
檢視: 1247|回覆: 0

[分享] 為DZ加入天氣概況

[複製連結]
發表於 2020-9-24 22:29:42 | 顯示全部樓層 |閱讀模式

發佈類型: 外掛(插件)
Discuz! 版本: 7.x X 1.x X 2.0 X 2.5 X 3.0 X 3.1 X 3.2 X 3.3 X 3.4 其他 
下載網址: https://weatherwidget.io/
對映網址: https://iothk.co

馬上註冊,結交更多好友,享用更多功能,讓你輕鬆瀏覽論壇。

你需要 登入 才可以下載或檢視,沒有帳號?我要註冊

x
本文章最後由 iothk 於 2020-9-24 11:24 PM 編輯

請尊重智慧產權,轉載包括原著資訊,感謝合作及使用
原著 : Internet of Talking講聯網

code修正參照  :
https://weatherwidget.io/
or
http://www.106tv.com/modules/WeatherLinkService.asp
or
https://openweathermap.org/widgets-constructor
or
https://www.booked.net/widgets/weather
or
https://www.weatherwx.com/free_weather_on_for_your_website.html
or
https://www.visualcrossing.com/resources/documentation/weather-api/how-do-i-add-weather-forecast-to-my-webpage/
or
https://www.powr.io/plugins/weather/standalone
or
https://www.bithacker.dev/fetch-weather-openweathermap-api-javascript
or
https://www.tianqi.com/plugin/

./template/default/common/ 下的文件
footer.htm

  1.     </body>
複製代碼

上面加入
  1. <a class="weatherwidget-io" href="https://forecast7.com/en/5d98116d07/asia-city/" data-label_1="ASIA CITY" data-label_2="WEATHER" data-theme="original" >ASIA CITY WEATHER</a>
  2. <script>
  3. !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='https://weatherwidget.io/js/widget.min.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','weatherwidget-io-js');
  4. </script>
複製代碼


你需要登入後才可以回覆 登入 | 我要註冊

本版積分規則

Archiver|禁閉室|手機版|數碼中文坊

GMT+8, 2024-4-16 11:33 PM

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回覆 返回頂端 返回清單