Request.HTML - jsFiddle/Github integration demo
http://imgur.com/ajaxalbums/getimages/8FH93/hit.json?all=true https://www.reddit.com/r/Maplestory/comments/4a7vg0/looks_like_were_getting_a_black_mage_damage_skin/
by MegaScience
HTML
<script src="/js/empty.js"></script>
<link rel="stylesheet" href="/css/normalize.css">
<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/github_read.html' target='_new'>Documentation</a></p>
<p><a href='http://github.com/zalun/jsFiddleGithubDemo/tree/master/Demo/' target='_new'>Demo on Github</a></p>
SCSS
$fullred = #ff0000;
body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid $fullred;
}
JavaScript
window.addEvent('domready', function() {
new Request.HTML({
url: '/gh/get/response.html/zalun/jsFiddleGithubDemo/tree/master/Demo/',
data: {'delay': 1},
method: 'post',
update: 'demo',
onSuccess: function(response) {
$('demo').highlight();
}
}).send();
})