user2314737's public fiddles
-
From 0 to Infinity
No-Library (pure JS), HTML, CSS, JavaScript
-
yswraym4
No-Library (pure JS), HTML, CSS, JavaScript
-
Google Maps elevation API
No-Library (pure JS), HTML, CSS, JavaScript
-
How to export tainted canvas
This fiddle demonstrates how to circumvent the error message "VM101:61 Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported." that occurs in Chrome. By adding crossOrigin="Anonymous" to the <img> tag the image data from the canvas can be downloaded. Related Stackoverflow questions: http://stackoverflow.com/questions/22710627/tainted-canvases-may-not-be-exported http://stackoverflow.com/questions/9972049/cross-origin-data-in-html5-canvas
-
Download canvas to image
No-Library (pure JS), HTML, CSS, JavaScript
-
Example of HTML5 canvas context rotate
Example of canvas rotate rotate() rotates around the canvas' origin (width/2,height/2) therefore we translate the context to the center of the canvas before the rotation so that the rotation is about the center (and translate back afterwards).
-
c3kdz6wx
No-Library (pure JS), HTML, CSS, JavaScript
-
Show text, value, index for Javascript select
Dropdown list
-
Basic bar chart with d3.js
This demo shows how to generate a histogram in two different ways: - using thresholds for bins - by giving one single value (in this example 5) to prescribe the number of bins Source: https://bl.ocks.org/mbostock/3048450 Related Stackoverflow question: http://stackoverflow.com/questions/37445495/binning-an-array-in-javascript-for-a-histogram
-
gedkpgt5
No-Library (pure JS), HTML, CSS, JavaScript
-
HTML5 Geolocation
If your browser supports geolocation, show your current location on map.
-
Parse email and URL in text
Find emails and URLs in unstructured text using regular expressions
-
Run method on map object ui-leaflet angular.js
Docs: https://github.com/angular-ui/ui-leaflet
-
Basic example center map with ui-leaflet angular.js
Source: http://angular-ui.github.io/ui-leaflet/examples/0101-basic-center-example.html
-
Draw on map with Leaflet.js and leaflet.draw
A simple example of how to draw on map with leaflet js. Leaflet is an an open-source JavaScript library for mobile-friendly interactive maps http://leafletjs.com/ Leaflet.draw is a leaflet plugin for drawing on a map. Leaflet.draw code is from: https://github.com/Leaflet/Leaflet.draw https://github.com/Leaflet/Leaflet.draw Here data is provided by OpenStreetMap
-
Simple click event
jQuery 2.2.1, HTML, CSS, JavaScript
-
mta0kx7f
doesn't work
-
Show KML layer on Google map
No-Library (pure JS), HTML, CSS, JavaScript
-
nk0m2ekv
jQuery 2.2.3, HTML, CSS, JavaScript
-
Change options in DirectionsRenderer
DirectionsRendererOptions object specification: https://developers.google.com/maps/documentation/javascript/reference#DirectionsRenderer