javascript - show local weather using openweathermap api on GitHub pages
问题描述
I create a simple weather web app using HTML +CSS + JS with API Key from "OpenWeatherMap.org" it use browser location permission to get correct temperature , I test it locally and it working fine , but when upload to GitHub pages the site request location permission but temperature is not appear ?!
this is site folders on GitHub
https://github.com/MoSalem84/weatherApp
and this is link of web app
https://mosalem84.github.io/weatherApp/
so what is wrong that case web app unable to fetch location info?
解决方案
推荐阅读
- bash - 预期条件二元运算符:“$1”附近的语法错误
- .net - 为什么 Boolean 不是可位表类型?
- ionic-framework - Ionic 1 公共 api 保护只能由 android 智能手机使用
- python - 寻找“SupportsRound”的工作示例
- php - 为什么 curl 不适用于我的活动会话?
- javascript - Ajax 将空值传递给控制器
- r - 指示特定值第一次出现的新变量
- .net-core - 如何正确地将 DateTime 添加到 DotNet Core 应用程序?
- machine-learning - 使用 4 维数据的 keras 双向层
- android - 将android项目迁移到AndroidX时构建失败