Skip to content

Instantly share code, notes, and snippets.

View kunalvarma05's full-sized avatar
🎧
No.

Kunal Varma kunalvarma05

🎧
No.
View GitHub Profile
@kunalvarma05
kunalvarma05 / leaflet-google.js
Created August 1, 2013 08:57 — forked from crofty/leaflet-google.js
An awesome leaflet.js plugin to integrate google map tiles in leaflet.js.
/*
* L.TileLayer is used for standard xyz-numbered tile layers.
*/
L.Google = L.Class.extend({
includes: L.Mixin.Events,
options: {
minZoom: 0,
maxZoom: 18,
tileSize: 256,
/**
* Function: sanitize
* Returns a sanitized string, typically for URLs.
*
* Parameters:
* $string - The string to sanitize.
* $lowercase - Force the string to lowercase?
* $alnum - If set to *true*, will remove all non-alphanumeric characters.
*/
function sanitize($string, $lowercase = true, $alnum = false) {
@kunalvarma05
kunalvarma05 / index.htm
Last active May 5, 2022 15:59
AJAX Contact Form with PHP
<!DOCTYPE HTML>
<html>
<head>
<title>Welcome to my Website</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="send.js"></script>
</head>
<body>
<h1>A Simple AJAX Contact Form</h1>
<form method="post" action="" id="contact_form">