– Data Ninja 10/1/2016
The technique used in this script is to leverage jquery’s class selector functionality – e.g. $(‘.myclass’)… – to create custom tags. By eliminating the dot ‘.’ in the class selector search string, jquery grabs any tag with a tag name that matches what is specified in a ‘dot-less’ class selector entry.
For instance, to create the custom tag, this script starts by using the following code – ‘$(“streetmap”)… that finds every instance of the streetmap tag on a web page, reads its attributes – ‘data-…’ – and renders the streetmap accordingly.
Eliminating the need for programming altogether!
I hope non-programmers and programmers alike find this script useful. Drop me a note if you have any questions.
HTML5 Streetmaps – available NOW at codecanyon.net! Click here!
my codecanyon portfolio: click here