View 2fiddle.js
1 2 3 4 5 6 7 8 9 10
if (typeof gistJSUrl != 'undefined') {
 
frame = document.createElement('iframe');
body = document.getElementsByTagName('body')[0];
body.appendChild(frame);
frame.src = gistJSUrl;
 
form = document.createElement('form');
body.appendChild(form);
form.action = "http://jsfiddle.net/api/post/mootools/1.2/";
View objExtend.js
1 2 3 4 5 6 7 8 9 10
$(function(){
 
//===========================================================
// JavaScript object 'namespace' extension experiments
// by @addyosmani (comparing deep extension in vanilla JS vs.
// jQuery's $.extend)
//
//
// The goal here is to:
//
View logResult.js
1 2 3 4 5 6 7 8 9 10
function logResult(result) {
var container = document.createElement('PRE');
document.body.appendChild(document.createElement('HR'));
document.body.appendChild(container);
container.setAttribute('class', 'logResult');
container.innerHTML = typeof result + ': ' + result;
}
 
/*
logResult(234);
View Module.js
1 2 3 4 5 6 7 8 9 10
// ht: http://www.digital-web.com/articles/scope_in_javascript/
 
function BigComputer(answer) {
var the_answer = answer;
var ask_question = function () {
return check_answer(the_answer);
}
function check_answer(ans) {
return the_answer;
}
View flot_v_raphael.html
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE HTML>
<html>
<head>
<title>flot vs raphael</title>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.flot.min.js"></script>
<script type="text/javascript" src="raphael.js"></script>
<script type="text/javascript" src="g.raphael-min.js"></script>
Something went wrong with that request. Please try again.