Skip to content

Instantly share code, notes, and snippets.

@ondrek
Forked from zalun/fiddle.css
Last active December 14, 2015 08:09
Show Gist options
  • Save ondrek/5056153 to your computer and use it in GitHub Desktop.
Save ondrek/5056153 to your computer and use it in GitHub Desktop.
body {
font-family: Helvetica, Verdana
}
<p>Result will appear below with 1 sec delay</p>
<div id="demo"><p>This text will be replaced</p></div>
<p><a href='http://doc.jsfiddle.net/use/gist_read.html' target='_new'>Documentation</a></p>
<p><a href='http://gist.github.com/606699/' target='_new'>Gist Demo</a></p>
lorem ipsum
name: Request.HTML - jsFiddle/Gist integration demo
description: jsFiddle demo hosted on Gist using HTML Request to get Ajax data
authors:
- Piotr Zalewa
resources:
- /js/empty.js
- /css/normalize.css
normalize_css: no
<p>This <span>content</span> is loaded from Gist via XHR request (<span>Ajax</span>)</p>
<p>It has also some <span>JavaScript</span> code which is setting the background for spans</p>
<script type='text/javascript'>
$$('#demo span').each(function(el) {
el.setStyle('backgroundColor', '#ffb');
});
</script>
@ondrek
Copy link
Author

ondrek commented Oct 14, 2013

You can run this in jsFiddle (based on jsF api)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment