A very basic starter template with fundamental HTML5 markup -- only the basics.
Based on HTML5 Bones | http://html5bones.com
// http://phrogz.net/SVG/convert_path_to_polygon.xhtml | |
function pathToPolygon(path,samples){ | |
if (!samples) samples = 0; | |
var doc = path.ownerDocument; | |
var poly = doc.createElementNS('http://www.w3.org/2000/svg','polygon'); | |
// Put all path segments in a queue | |
for (var segs=[],s=path.pathSegList,i=s.numberOfItems-1;i>=0;--i) segs[i] = s.getItem(i); | |
var segments = segs.concat(); |
/* | |
* NAME | |
* | |
* statistics-distributions.js - JavaScript library for calculating | |
* critical values and upper probabilities of common statistical | |
* distributions | |
* | |
* SYNOPSIS | |
* | |
* |
//Javascript for finding latitude and longitude range boundaries. | |
//Based on the excellent Java example by http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates | |
var GeoLocation = GeoLocation ? GeoLocation : { | |
TO_RADIAN: 0.0174532925, | |
TO_DEGREE: 57.2957795, | |
EARTH_RADIUS: 6371.01, | |
TO_MILE: 0.621371192, | |
TO_KM: 1.609344, | |
MIN_LAT: function() { return GeoLocation.degreeToRadian(-90) }, |
var p1 = { | |
x: 20, | |
y: 20 | |
}; | |
var p2 = { | |
x: 40, | |
y: 40 | |
}; |
A very basic starter template with fundamental HTML5 markup -- only the basics.
Based on HTML5 Bones | http://html5bones.com