Difference between revisions of "Widget:HalidomMapGridLineToggle"
Jump to navigation
Jump to search
imported>Elaeagnifolia (Created page with "// Load modules, init, etc. RLQ.push( function() { $(document).ready(function() { init(); }); }); function init() { document.getElementById("halidom-grid-toggle-containe...") |
imported>Elaeagnifolia |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | <includeonly><script type="text/javascript"> | ||
// Load modules, init, etc. | // Load modules, init, etc. | ||
RLQ.push( function() { | RLQ.push( function() { | ||
| Line 7: | Line 8: | ||
function init() { | function init() { | ||
| − | document.getElementById("halidom-grid-toggle-container").innerHTML = '<input type="checkbox" id="halidom-grid-toggle" | + | document.getElementById("halidom-grid-toggle-container").innerHTML = '<input type="checkbox" id="halidom-grid-toggle" onchange="toggleGridlines()"><label for="halidom-grid-toggle">Toggle gridlines</label>'; |
} | } | ||
| Line 18: | Line 19: | ||
} | } | ||
} | } | ||
| − | + | </script> | |
| − | <div id="halidom-grid-toggle"></div> | + | <div id="halidom-grid-toggle-container"></div> |