LeaVerou / dabblet

An interactive CSS playground
http://dabblet.com
816 stars 147 forks source link

Library needed #196

Closed yukulele closed 7 years ago

yukulele commented 11 years ago

Adding javascript is a very good new for dabbet, but we sometime need to works with library (jquery...) or personal external.

Of course, library don't need to run on each "run JS" button click.

codler commented 11 years ago

+1

codler commented 11 years ago

To include jQuery in dabblet you can write

var js = document.createElement("script");
js.src = 'http://code.jquery.com/jquery-1.9.1.min.js';
document.body.appendChild(js);