Skip to content

Commit ecc92f5

Browse files
committed
Use $.load
1 parent 4cac721 commit ecc92f5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

javascripts/examples.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ var Examples = {
99
var lang = document.location.pathname.split('/')[1];
1010
var name = Examples.random();
1111

12-
$.get('/' + lang + '/examples/' + name + '.html', function(data) {
13-
$("#code").html(data);
14-
});
12+
$("#code").load('/' + lang + '/examples/' + name + '.html');
1513
}
1614
};
1715

0 commit comments

Comments
 (0)