This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Postnidea weather now", | |
"version": "1.0", | |
"description": "Postnidea weather now provide you runtime weather report like temprature, humidity etc according to geographical region", | |
"icons": {"128": "images/icon-128.png"}, | |
"permissions": ["storage"], | |
"homepage_url": "http://postnidea.com", | |
"browser_action": { | |
"default_popup": "popup.html", | |
"default_icon": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="scripts/jquery.min.js"></script> | |
<script src="scripts/popup.js"></script> | |
<style type="text/css"> | |
#weather-report{ width:180px; font-size: 14px; min-height:180px; } | |
#weather-report th, td{ text-align: left; } | |
td.place { height: 22px; border-bottom: 2px solid #000; margin-bottom: 12px; } | |
.loading_text{margin-left:58px;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
var geoURL = "https://ipv6.ip.nf/me.json"; | |
//get Geo information of the user | |
if(navigator.onLine){ | |
$.getJSON(geoURL).done(function(geoData){ | |
var lat =geoData.ip.latitude; | |
var lon =geoData.ip.longitude; | |
//Get the user geo weather information |
OlderNewer