Skip to content

Instantly share code, notes, and snippets.

View rakeshkumar125's full-sized avatar

Rakesh Kumar rakeshkumar125

View GitHub Profile
{
"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": {
<!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;}
$(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
@rakeshkumar125
rakeshkumar125 / tree-structure-menu-with-mysql-using-array
Created February 9, 2019 11:16
Tree structure category menu with mysql minimum query using array
<?php
function treeMenu($parent, $data){
$childs = getChild($parent,$data);
$text = '';
if(count($childs)>0){
foreach ($childs as $child) {
$text .= '<li class="menucolor">'
.'<a href="' . htmlspecialchars($child['link']) . '">' . htmlspecialchars($child['title']) . '</a>'