Removed comments

This commit is contained in:
Remy Sharp 2010-01-20 09:02:23 +00:00
parent 4b22812d36
commit 25909c0406
2 changed files with 5 additions and 39 deletions

View File

@ -19,10 +19,7 @@ var debug = false,
// if the user linked directly to #html, initially hide the JS panel
if (window.location.hash == '#html') {
document.getElementById('bin').className += ' html-only';
} // else if (window.location.hash == '#output' || window.location.hash == '#preview') {
// document.body.className = 'preview';
// }
}
$(window).unload(unload);
@ -53,7 +50,9 @@ if (/gist\/\d+/.test(window.location.pathname) && (!sessionStorage.getItem('java
}
$(document).bind('codeChange', function (event, revert) {
if (revert == undefined) revert = false;
if (revert == undefined) {
revert = false;
}
if (!revert && !/\*$/.test(document.title)) {
if (/debug/i.test(document.title)) {

View File

@ -45,32 +45,6 @@ $('#control .button').click(function (event) {
}
});
// $('#control div.help a.video').click(function (event) {
// event.preventDefault();
// var useAjax = false,
// url = $(this).attr('href'); // using href to ensure the url doesn't resolve
//
// if (url.substr(0, 1) == '#') {
// url = this.hash; // id based
// } else {
// useAjax = true;
// }
//
// if (useAjax) {
// $.ajax({
// url: url,
// dataType: 'html',
// error: function () {
// // console.log(arguments);
// },
// complete: function (res) {
// var content = $('<div />').append(res.responseText.replace(/<script(.|\s)*?\/script>/g, "")).find('#content').html();
// var lightbox = new Lightbox(content, 100).show();
// }
// });
// }
// });
$('#control div.help a:last').click(function () {
$(window).trigger('togglehelp');
return false;
@ -100,11 +74,4 @@ $(document).keyup(function (event) {
if (helpOpen && event.keyCode == 27) {
$(window).trigger('togglehelp');
}
});
});