Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A function that creates a dynamic link for my geography project
function ArrayFunc(item, index) {
console.log('Renderování <li> elementu pro ' + item + ', které je v seznamu ' + realIndex + '. (Aleš list)');
var map =
'<iframe width="600" height="500" id="gmap_canvas" src="' +
encodeURIComponent(item) +
'&t=&z=13&ie=UTF8&iwloc=&output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>';
var link =
" <li><a id='location' onClick='openMap(\"" + item + '")\'>' + item + '</a></li>';
document.getElementById('ales').innerHTML += link + '<br />';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.