Items 1-12 out of 19652 displayed
Add an id attribute to the <g>
and then try this:
document.getElementById(id_of_g_element).transform.baseVal.getItem(0).setScale(new_scalex,newscale_y);...
Maybe should insert button with type button instead submit? and then just handle onClick
for this button?
The problem you've stumbled across here is that String#search
requires a regexp
as input, you, however, seem to want to search for a string input, not a...
In short, snippets are a multi-line console, an iterative JS development workflow, and a persistent store for common debugging helpers.
To use @Yihui's hint for a button that fold all code in the html output, you need to paste the following code in an external file (I named...
Global Hide/Show button for the entire page