diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/1996/mit1996metaendgame_MIT_Mystery_Hunt_1996_Endgame/puzzle10asolution.html b/benchmark/MIT_Mystery_Hunt/puzzles/1996/mit1996metaendgame_MIT_Mystery_Hunt_1996_Endgame/puzzle10asolution.html
new file mode 100644
index 0000000000000000000000000000000000000000..da65ac1c09f8c7f6bb6b23381dd4064bfa53ab97
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/1996/mit1996metaendgame_MIT_Mystery_Hunt_1996_Endgame/puzzle10asolution.html
@@ -0,0 +1,77 @@
+
+
+
+ MIT Mystery Hunt 1996 / Puzzle 10A Solution
+
+
+
+
+
+
+If you found the correct path through the puzzle, you would have visited the
+following pages in order, and gotten the subsequent letters and numbers:
+
+
+The letters passed in order were:
+
+BCBFDGBAFCDDCFGEAFAEDAAG*
+
+(where that last letter is either an F or a G, since there's no defined
+path off the last page)
+
+And if you added the numbers as specified in the directions, you get:
+
+
+LSOMEWHEREOVERTHERAINBOW*
+
+(where the last letter is either a Y or a Z, depending on which path you
+considered off of the last page).
+
+As per the directions, if you discard the first and last letter, you are
+left with the answer SOMEWHEREOVERTHERAINBOW .
+
+The Fake-out
+
+The filenames were meant to be somewhat arbitrary, but of course no puzzle
+hunters would believe that! So, if you followed through the web pages in a
+certain methodical manner, the filenames (without the .html extension) spell
+out the following:
+
+These filenames are a counterpoint to the true theme of this puzzle, augmenting
+its scope but not leading to the solution.
+
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2002/mit200224_MIT_Mystery_Hunt_2002_D2_The_Mighty_Duck_Konundrum/chessboard4.gif b/benchmark/MIT_Mystery_Hunt/puzzles/2002/mit200224_MIT_Mystery_Hunt_2002_D2_The_Mighty_Duck_Konundrum/chessboard4.gif
new file mode 100644
index 0000000000000000000000000000000000000000..b9b40f4a4200ee68f55597f9821234d53c30c927
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2002/mit200224_MIT_Mystery_Hunt_2002_D2_The_Mighty_Duck_Konundrum/chessboard4.gif
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f92c13261e0e874a37fa9e644fd7563ca6e146bd76acc743802d1fe12d0a97b7
+size 3061
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013242_MIT_Mystery_Hunt_2013_Dessert_Party/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013242_MIT_Mystery_Hunt_2013_Dessert_Party/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..0af2a5d6d0325006ba0608697a64f00d91e8f5cb
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013242_MIT_Mystery_Hunt_2013_Dessert_Party/index.html
@@ -0,0 +1,104 @@
+
+
+
+Richard Feynman -- COINHEIST
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Dessert Party: Q.E.D.
+
+
You are invited to an evening get-together. We will provide a snack and dessert. Please bring a small amount of something to drink to share with your fellow guests.
+
+
Friday, midnight - 1 AM, W20 Mezzanine Lounge. 2 people per team.
+
+
+
+
+
+
+
+
+
+
+
+
Status:
+
+
+
+ Name: Manic Sages
+
+ Options: 0
+ (100 options = 1 free answer)
+ (Options increase up to 200 with time)
+ To next unlock:
+ None hour(s) or fewer
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit20133mm_MIT_Mystery_Hunt_2013_Get_Smart_Meta/camera.png b/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit20133mm_MIT_Mystery_Hunt_2013_Get_Smart_Meta/camera.png
new file mode 100644
index 0000000000000000000000000000000000000000..c64cafde06c10255cb872a4a791210262a9a1a16
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit20133mm_MIT_Mystery_Hunt_2013_Get_Smart_Meta/camera.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:15e59388d426977b68d7f452797d537ca6dcdedcfbf39d4684dcd621852965fe
+size 3060
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013510_MIT_Mystery_Hunt_2013_Trochees_Etc/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013510_MIT_Mystery_Hunt_2013_Trochees_Etc/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..93605a298c80c00a2854786fb26b484d4e951447
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013510_MIT_Mystery_Hunt_2013_Trochees_Etc/index.html
@@ -0,0 +1,107 @@
+
+
+
+Trochees, Etc. -- COINHEIST
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Trochees, Etc. [SOLVED]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Status:
+
+
+
+ Name: Manic Sages
+
+ Options: 0
+ (100 options = 1 free answer)
+ (Options increase up to 200 with time)
+ To next unlock:
+ None hour(s) or fewer
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014d3_MIT_Mystery_Hunt_2014_Find_Your_Way_Across/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014d3_MIT_Mystery_Hunt_2014_Find_Your_Way_Across/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..7d887f6ea768d79e689905d6444b389201235f5c
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014d3_MIT_Mystery_Hunt_2014_Find_Your_Way_Across/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/find_your_way_across/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e1_MIT_Mystery_Hunt_2014_Auditions_for_the_WonderMusical/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e1_MIT_Mystery_Hunt_2014_Auditions_for_the_WonderMusical/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..cea46bf124f73438d2303a0c5c40bf8f88e5643c
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e1_MIT_Mystery_Hunt_2014_Auditions_for_the_WonderMusical/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/auditions_for_the_wondermusical/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e2_MIT_Mystery_Hunt_2014_Lobster_Quadrille/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e2_MIT_Mystery_Hunt_2014_Lobster_Quadrille/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..f545801695d2d7041b8e8506efcaea9bc1e5dc74
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e2_MIT_Mystery_Hunt_2014_Lobster_Quadrille/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/lobster_quadrille/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e3_MIT_Mystery_Hunt_2014_Cards_Against_Wonderland/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e3_MIT_Mystery_Hunt_2014_Cards_Against_Wonderland/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..16544fbc4f7971163cb60eeeb05826d25a91c70d
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e3_MIT_Mystery_Hunt_2014_Cards_Against_Wonderland/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/cards_against_wonderland/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c2_MIT_Mystery_Hunt_2014_A_Meta_Puzzle/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c2_MIT_Mystery_Hunt_2014_A_Meta_Puzzle/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..f859a5f73e798f09eb147b2f762e4ca7438ee176
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c2_MIT_Mystery_Hunt_2014_A_Meta_Puzzle/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/a_meta_puzzle/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c4_MIT_Mystery_Hunt_2014_Black_and_White/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c4_MIT_Mystery_Hunt_2014_Black_and_White/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..adc5aefc0fd0dbadb1423f52ee776f0b6608178c
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c4_MIT_Mystery_Hunt_2014_Black_and_White/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/black_and_white/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c5_MIT_Mystery_Hunt_2014_Bumblebee_Tune-a/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c5_MIT_Mystery_Hunt_2014_Bumblebee_Tune-a/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..336859b807d713d664f62765abd150457fcd2e9d
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c5_MIT_Mystery_Hunt_2014_Bumblebee_Tune-a/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/bumblebee_tune_a/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c7_MIT_Mystery_Hunt_2014_Stage_Select/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c7_MIT_Mystery_Hunt_2014_Stage_Select/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..e14ce7677d7d1437b99a701c1d36b1119ae6807a
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c7_MIT_Mystery_Hunt_2014_Stage_Select/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/stage_select/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c9_MIT_Mystery_Hunt_2014_Local_Shorts/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c9_MIT_Mystery_Hunt_2014_Local_Shorts/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..b4829c87750b5cfef61d138d0cb3da44fac51fdc
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c9_MIT_Mystery_Hunt_2014_Local_Shorts/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/local_shorts/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1cj_MIT_Mystery_Hunt_2014_Safety_First/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1cj_MIT_Mystery_Hunt_2014_Safety_First/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..0413f9cd77667322c6148c5320490ca00edfaa56
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1cj_MIT_Mystery_Hunt_2014_Safety_First/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/safety_first/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1ck_MIT_Mystery_Hunt_2014_BLAST_from_the_Past/_solution_assets/solution.css b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1ck_MIT_Mystery_Hunt_2014_BLAST_from_the_Past/_solution_assets/solution.css
new file mode 100644
index 0000000000000000000000000000000000000000..898addb4616278ddaef046f116dbf6752f9322b1
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1ck_MIT_Mystery_Hunt_2014_BLAST_from_the_Past/_solution_assets/solution.css
@@ -0,0 +1,176 @@
+html {
+ min-height: 100%
+}
+body, td, input {
+ font-family: 'Alice', sans-serif;
+ font-size: 18px;
+}
+table {
+ text-align: left;
+}
+td {
+ padding: 2px 4px;
+}
+#mh-title {
+ font-family: 'Alice', sans-serif;
+ font-size: 50px;
+}
+.mh-flavortext {
+ font-style: italic;
+ text-align: center;
+ margin: 0px 30px;
+}
+.mh-roundtext {
+ font-style: italic;
+ text-align: left;
+ margin: 0px 30px;
+}
+#mh-content {
+ padding: 10px;
+ text-align: justify;
+ clear: both;
+}
+#mh-outer {
+ width: 900px;
+}
+#mh-controls {
+ position: relative;
+}
+table.mh-center {
+ margin-left: auto;
+ margin-right: auto;
+}
+
+
+@media screen {
+
+ body {
+ width: 100%;
+ margin: 0px;
+ text-align: center;
+ }
+ .mh-fancy #mh-outer {
+ padding-top: 10px;
+ display: inline-block;
+ text-align: left;
+ position: relative;
+ }
+ .mh-fancy #mh-controls {
+ padding-bottom: 5px;
+ overflow: hidden;
+ }
+ .mh-fancy #mh-controls a, .mh-fancy #mh-controls span {
+ color: #fff;
+ text-shadow: 0px 0px 4px #000, 0px 2px 4px #000;
+ font-size: 90%;
+ text-decoration: none;
+ }
+ .mh-fancy #mh-back {
+ position: relative;
+ left: 20px;
+ }
+ .mh-fancy #mh-elsewhere {
+ position: relative;
+ left: 40px;
+ }
+ .mh-fancy #mh-plain-toggle {
+ position: absolute;
+ right: 160px;
+ }
+ .mh-fancy #mh-answer, .mh-fancy #mh-contact {
+ position: absolute;
+ right: 20px;
+ }
+ .mh-fancy #mh-page {
+ background: #fff;
+ box-shadow: 0px 0px 8px #000;
+ border-radius: 15px;
+ overflow: hidden;
+ margin-bottom: 20px;
+ }
+ .mh-fancy #mh-banner {
+ border-top-left-radius: 15px;
+ border-top-right-radius: 15px;
+ }
+ .mh-fancy #mh-title {
+ padding: 40px 20px;
+ text-shadow: 0px 0px 4px #eee;
+ color: #000;
+ }
+ .mh-fancy #mh-content {
+ color: #000;
+ border-top: 1px solid #aaa;
+ border-bottom-left-radius: 15px;
+ border-bottom-right-radius: 15px;
+ }
+
+ .mh-plain #mh-controls {
+ text-align: center;
+ }
+ .mh-plain #mh-back {
+ display: none;
+ }
+ .mh-plain #mh-plain-toggle {
+ position: absolute;
+ right: 0px;
+ }
+ .mh-plain #mh-answer, .mh-plain #mh-contact {
+ display: none;
+ }
+ .mh-plain #mh-title {
+ text-align: center;
+ padding: 10px 0px;
+ }
+ .mh-plain a {
+ color: #520;
+ }
+
+}
+
+
+
+@media print {
+ #mh-controls {
+ text-align: center;
+ }
+ #mh-back {
+ display: none;
+ }
+ #mh-elsewhere {
+ display: none;
+ }
+ #mh-answer, #mh-plain-toggle, #mh-contact {
+ display: none;
+ }
+ #mh-title {
+ text-align: center;
+ }
+ a {
+ color: #520;
+ }
+}
+
+
+
+@media screen {
+ body.mh-fancy {
+ background: #d0ceca url('../../round/mit/background.jpg') no-repeat top center;
+ }
+}
+
+.t {
+ border-collapse: collapse;
+}
+.t TH {
+ border: 1px solid black;
+ padding: 2px 4px;
+}
+.t TD {
+ border-left: 1px solid black;
+ border-right: 1px solid black;
+ white-space: nowrap;
+}
+.t TR.endsec {
+ border-bottom: 1px solid black;
+}
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1ck_MIT_Mystery_Hunt_2014_BLAST_from_the_Past/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1ck_MIT_Mystery_Hunt_2014_BLAST_from_the_Past/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..3cce66503093e502039901eae24a0c5fcb02a005
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1ck_MIT_Mystery_Hunt_2014_BLAST_from_the_Past/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/blast_from_the_past/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1cx_MIT_Mystery_Hunt_2014_Clubs_Meta/round.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1cx_MIT_Mystery_Hunt_2014_Clubs_Meta/round.js
new file mode 100644
index 0000000000000000000000000000000000000000..a7685f4a2127df1bb4da1e7b907957507134ad2d
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1cx_MIT_Mystery_Hunt_2014_Clubs_Meta/round.js
@@ -0,0 +1,89 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('slow', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/mit/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d2_MIT_Mystery_Hunt_2014_Across_the_Hall/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d2_MIT_Mystery_Hunt_2014_Across_the_Hall/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..20c909506a0bc7b5b8d2da8ce21429c7f9ad7feb
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d2_MIT_Mystery_Hunt_2014_Across_the_Hall/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/across_the_hall/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d8_MIT_Mystery_Hunt_2014_Dressing_Down/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d8_MIT_Mystery_Hunt_2014_Dressing_Down/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..4971035801233686c73ae694bfeb2fa9613ea547
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d8_MIT_Mystery_Hunt_2014_Dressing_Down/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/dressing_down/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d9_MIT_Mystery_Hunt_2014_Upstairs_Downstairs/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d9_MIT_Mystery_Hunt_2014_Upstairs_Downstairs/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..fb50cd21883014ed56637f2960570220e96e6ac4
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d9_MIT_Mystery_Hunt_2014_Upstairs_Downstairs/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/upstairs_downstairs/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1dj_MIT_Mystery_Hunt_2014_Opposites_Are_Not_Downbeats/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1dj_MIT_Mystery_Hunt_2014_Opposites_Are_Not_Downbeats/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..bfc93ef18fd14a0912e07d550292aafd10b1dc98
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1dj_MIT_Mystery_Hunt_2014_Opposites_Are_Not_Downbeats/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/opposites_are_not_downbeats/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1dx_MIT_Mystery_Hunt_2014_Diamonds_Meta/round.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1dx_MIT_Mystery_Hunt_2014_Diamonds_Meta/round.js
new file mode 100644
index 0000000000000000000000000000000000000000..a7685f4a2127df1bb4da1e7b907957507134ad2d
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1dx_MIT_Mystery_Hunt_2014_Diamonds_Meta/round.js
@@ -0,0 +1,89 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('slow', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/mit/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s3_MIT_Mystery_Hunt_2014_Sneaky_Fox/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s3_MIT_Mystery_Hunt_2014_Sneaky_Fox/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..5949fd88a96ff72518df3f350f18ff788c4c89e8
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s3_MIT_Mystery_Hunt_2014_Sneaky_Fox/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/sneaky_fox/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s5_MIT_Mystery_Hunt_2014_Build_Your_Own_Sudoku/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s5_MIT_Mystery_Hunt_2014_Build_Your_Own_Sudoku/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..e68d979c5d49da62be4c3785bdf32eb61ad32a49
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s5_MIT_Mystery_Hunt_2014_Build_Your_Own_Sudoku/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/build_your_own_sudoku/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s6_MIT_Mystery_Hunt_2014_Apocalypse/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s6_MIT_Mystery_Hunt_2014_Apocalypse/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..41c41b67c203459d2c40c92b4aab419df52a64b8
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s6_MIT_Mystery_Hunt_2014_Apocalypse/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/apocalypse/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s7_MIT_Mystery_Hunt_2014_Intersecting_Personalities/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s7_MIT_Mystery_Hunt_2014_Intersecting_Personalities/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..b721b9245bd4e6c751d1c147c93f7ac90527a336
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s7_MIT_Mystery_Hunt_2014_Intersecting_Personalities/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/intersecting_personalities/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s8_MIT_Mystery_Hunt_2014_Ring_Around_the_Music/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s8_MIT_Mystery_Hunt_2014_Ring_Around_the_Music/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..e6718e4e4a3e949c9278f406c696d9814d975c2f
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s8_MIT_Mystery_Hunt_2014_Ring_Around_the_Music/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/ring_around_the_music/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s9_MIT_Mystery_Hunt_2014_Feed_Your_Head/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s9_MIT_Mystery_Hunt_2014_Feed_Your_Head/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..7ededc7b74c0ee1aa4603120d59a9a20556c0a05
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s9_MIT_Mystery_Hunt_2014_Feed_Your_Head/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/feed_your_head/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1sx_MIT_Mystery_Hunt_2014_Spades_Meta/round.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1sx_MIT_Mystery_Hunt_2014_Spades_Meta/round.js
new file mode 100644
index 0000000000000000000000000000000000000000..a7685f4a2127df1bb4da1e7b907957507134ad2d
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1sx_MIT_Mystery_Hunt_2014_Spades_Meta/round.js
@@ -0,0 +1,89 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('slow', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/mit/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1xx_MIT_Mystery_Hunt_2014_MIT_Meta/round.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1xx_MIT_Mystery_Hunt_2014_MIT_Meta/round.js
new file mode 100644
index 0000000000000000000000000000000000000000..a7685f4a2127df1bb4da1e7b907957507134ad2d
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1xx_MIT_Mystery_Hunt_2014_MIT_Meta/round.js
@@ -0,0 +1,89 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('slow', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/mit/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r205_MIT_Mystery_Hunt_2014_Now_Let_s_Create_Melodies/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r205_MIT_Mystery_Hunt_2014_Now_Let_s_Create_Melodies/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..2fadbc218cda85ee7afc60be4fd26bad777d315b
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r205_MIT_Mystery_Hunt_2014_Now_Let_s_Create_Melodies/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/now_lets_create_melodies/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r206_MIT_Mystery_Hunt_2014_Hedgehogs_and_Flamingos/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r206_MIT_Mystery_Hunt_2014_Hedgehogs_and_Flamingos/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..29eb57e47c1a4d773973288d1e1897c2e677929c
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r206_MIT_Mystery_Hunt_2014_Hedgehogs_and_Flamingos/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/hedgehogs_and_flamingos/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r207_MIT_Mystery_Hunt_2014_Can_Tab_Rig_Ian/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r207_MIT_Mystery_Hunt_2014_Can_Tab_Rig_Ian/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..2ba2d15ede14292557ad70f5d46cd5e71d218a2a
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r207_MIT_Mystery_Hunt_2014_Can_Tab_Rig_Ian/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/can_tab_rig_ian/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r208_MIT_Mystery_Hunt_2014_Monster_Potatoes/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r208_MIT_Mystery_Hunt_2014_Monster_Potatoes/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..b56ef8fb385e85861f1a892a23374836720ce9a9
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r208_MIT_Mystery_Hunt_2014_Monster_Potatoes/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/monster_potatoes/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r210_MIT_Mystery_Hunt_2014_The_Spy_Who_Read_Me/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r210_MIT_Mystery_Hunt_2014_The_Spy_Who_Read_Me/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..d9a2214cbb402cfd0103aaee32ae876390b3c958
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r210_MIT_Mystery_Hunt_2014_The_Spy_Who_Read_Me/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/the_spy_who_read_me/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r211_MIT_Mystery_Hunt_2014_Obsessive-Compulsive_Dickishness/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r211_MIT_Mystery_Hunt_2014_Obsessive-Compulsive_Dickishness/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..6cff6e8e6ce41b5d5bbe457c837a7b212298427b
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r211_MIT_Mystery_Hunt_2014_Obsessive-Compulsive_Dickishness/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/obsessive_compulsive_dickishness/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r213_MIT_Mystery_Hunt_2014_Uncommon_Nonsense/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r213_MIT_Mystery_Hunt_2014_Uncommon_Nonsense/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..4df993fca28d5b7ca3674f0f67ad872a36aab164
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r213_MIT_Mystery_Hunt_2014_Uncommon_Nonsense/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/uncommon_nonsense/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r214_MIT_Mystery_Hunt_2014_A_Rose_By_Any_Other/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r214_MIT_Mystery_Hunt_2014_A_Rose_By_Any_Other/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..884607f31a90c33623d2614f03efc455f1df5284
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r214_MIT_Mystery_Hunt_2014_A_Rose_By_Any_Other/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/a_rose_by_any_other/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r215_MIT_Mystery_Hunt_2014_Guess_What_I_m_Thinking/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r215_MIT_Mystery_Hunt_2014_Guess_What_I_m_Thinking/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..16a1e0f75108840221abd47ff62e3863a67805fc
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r215_MIT_Mystery_Hunt_2014_Guess_What_I_m_Thinking/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/guess_what_im_thinking/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r216_MIT_Mystery_Hunt_2014_The_Most_Dangerous_Night/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r216_MIT_Mystery_Hunt_2014_The_Most_Dangerous_Night/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..1099e3c13358463e1707560c81151bffb41fe2ea
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r216_MIT_Mystery_Hunt_2014_The_Most_Dangerous_Night/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/the_most_dangerous_night/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r301_MIT_Mystery_Hunt_2014_Nothing_But_a_House_of_Cards/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r301_MIT_Mystery_Hunt_2014_Nothing_But_a_House_of_Cards/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..29da38bfef934bf6341b27f3b118fa27f466fdea
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r301_MIT_Mystery_Hunt_2014_Nothing_But_a_House_of_Cards/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/nothing_but_a_pack_of_cards/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r302_MIT_Mystery_Hunt_2014_Common_Bonds/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r302_MIT_Mystery_Hunt_2014_Common_Bonds/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..3fd614aa7e49fabeb63529025e73e6c78f40c5e0
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r302_MIT_Mystery_Hunt_2014_Common_Bonds/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/common_bonds/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r303_MIT_Mystery_Hunt_2014_Cross-Pollination/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r303_MIT_Mystery_Hunt_2014_Cross-Pollination/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..504f4c9bbe10b74218b6572d6a346f4738a839b8
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r303_MIT_Mystery_Hunt_2014_Cross-Pollination/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/cross_pollination/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r304_MIT_Mystery_Hunt_2014_Cut_and_Tape/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r304_MIT_Mystery_Hunt_2014_Cut_and_Tape/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..2f9aac90cf2ccdbda7a0594b773bd1556726f112
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r304_MIT_Mystery_Hunt_2014_Cut_and_Tape/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/cut_and_tape/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r305_MIT_Mystery_Hunt_2014_Assemble_Me/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r305_MIT_Mystery_Hunt_2014_Assemble_Me/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..231e20f0e1ad8a80b62d610ddb3bea7eb6e54ee8
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r305_MIT_Mystery_Hunt_2014_Assemble_Me/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/assemble_me/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r306_MIT_Mystery_Hunt_2014_Safer_Sephiroth/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r306_MIT_Mystery_Hunt_2014_Safer_Sephiroth/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..4e93525425f952685eb525dbb2352c87146eff75
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r306_MIT_Mystery_Hunt_2014_Safer_Sephiroth/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/safer_sephiroth/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r308_MIT_Mystery_Hunt_2014_Round_Tripper/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r308_MIT_Mystery_Hunt_2014_Round_Tripper/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..5be0d6adb4d4f523fd572143917f465bb68c37fa
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r308_MIT_Mystery_Hunt_2014_Round_Tripper/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/round_tripper/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r309_MIT_Mystery_Hunt_2014_Initial_Impressions/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r309_MIT_Mystery_Hunt_2014_Initial_Impressions/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..3ccff43619115d55b2e02bde4a11cec7a2917800
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r309_MIT_Mystery_Hunt_2014_Initial_Impressions/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/initial_impressions/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r311_MIT_Mystery_Hunt_2014_Please_Remain_Seated/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r311_MIT_Mystery_Hunt_2014_Please_Remain_Seated/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..7776fd98e66718f25fda59d5e17a80f829cf5c5c
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r311_MIT_Mystery_Hunt_2014_Please_Remain_Seated/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/please_remain_seated/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r312_MIT_Mystery_Hunt_2014_Stronghold_Fire/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r312_MIT_Mystery_Hunt_2014_Stronghold_Fire/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..e7ba1b70859526a9eb12efb0e0b43b35eaeb9579
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r312_MIT_Mystery_Hunt_2014_Stronghold_Fire/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/stronghold_fire/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r401_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_WILLIAMS/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r401_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_WILLIAMS/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..876d7bd0b52c148267a1fe32c2742ec12388abe2
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r401_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_WILLIAMS/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/puzzle_with_answer_williams/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r402_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_LYNN/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r402_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_LYNN/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..949f7bce4d30c6d7edd630f794d29505f42ab69b
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r402_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_LYNN/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/puzzle_with_answer_lynn/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r403_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_CLEMENS/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r403_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_CLEMENS/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..c4311c12ae78b6a56dcefe40a49ecfa9d0b30c62
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r403_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_CLEMENS/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/puzzle_with_answer_clemens/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r404_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_YOUKILIS/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r404_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_YOUKILIS/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..072dff3812c49b6da32dead1fca48d861c791471
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r404_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_YOUKILIS/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/puzzle_with_answer_youkilis/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r405_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_SULLIVAN/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r405_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_SULLIVAN/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..6b1d6e7d12ab1e453d21da8cdb6d249f7d555f38
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r405_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_SULLIVAN/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/puzzle_with_answer_sullivan/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r406_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_CRONIN/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r406_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_CRONIN/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..e146478ffad8cd9d37891ec4efee715310697e25
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r406_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_CRONIN/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/puzzle_with_answer_cronin/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r407_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_GARCIAPARRA/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r407_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_GARCIAPARRA/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..cfc68354a9ec25bd0098a2a903d6fc31bebfb1e9
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r407_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_GARCIAPARRA/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/puzzle_with_answer_garciaparra/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r409_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_RICE/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r409_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_RICE/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..2dfd992ad490190d3498f51535f0a99918515987
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r409_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_RICE/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/puzzle_with_answer_rice/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r410_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_NOWHERE_MAN/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r410_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_NOWHERE_MAN/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..e2825781f43baa2e59548acad202720be696d32d
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r410_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_NOWHERE_MAN/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/puzzle_with_answer_nowhere_man/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r413_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_LOVE_ME_DO/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r413_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_LOVE_ME_DO/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..adbd67f869743aeba50ea7f33435c84d83476c96
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r413_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_LOVE_ME_DO/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/puzzle_with_answer_love_me_do/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r416_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_DRIVE_MY_CAR/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r416_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_DRIVE_MY_CAR/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..09a5440b65b764791168f6cc340972acc8cfcfb4
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r416_MIT_Mystery_Hunt_2014_A_Puzzle_with_the_Answer_DRIVE_MY_CAR/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/puzzle_with_answer_drive_my_car/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r501_MIT_Mystery_Hunt_2014_Callooh_Callay_World/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r501_MIT_Mystery_Hunt_2014_Callooh_Callay_World/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..75955d26cc82ef5a278158b5bf448539bc1aedf5
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r501_MIT_Mystery_Hunt_2014_Callooh_Callay_World/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/callooh_callay_world/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r503_MIT_Mystery_Hunt_2014_Walk_Across_Some_Dungeons/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r503_MIT_Mystery_Hunt_2014_Walk_Across_Some_Dungeons/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..99883f85b1b7569fe2a7aae8d740d3de71cd6268
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r503_MIT_Mystery_Hunt_2014_Walk_Across_Some_Dungeons/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/walk_across_some_dungeons/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r504_MIT_Mystery_Hunt_2014_Indie_Audio_Productions/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r504_MIT_Mystery_Hunt_2014_Indie_Audio_Productions/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..cf77aad77ad4b4039d9ba213ab01b7f174892c8d
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r504_MIT_Mystery_Hunt_2014_Indie_Audio_Productions/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/indie_audio_productions/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r505_MIT_Mystery_Hunt_2014_A_Mad_Cocktail_Party/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r505_MIT_Mystery_Hunt_2014_A_Mad_Cocktail_Party/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..cecec212321963471c354c5914eaeafd95ad8c12
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r505_MIT_Mystery_Hunt_2014_A_Mad_Cocktail_Party/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/a_mad_cocktail_party/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r506_MIT_Mystery_Hunt_2014_The_Duck_Konundrum_VI_Now_with_Way_Way_Way_Way/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r506_MIT_Mystery_Hunt_2014_The_Duck_Konundrum_VI_Now_with_Way_Way_Way_Way/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..e153de991616892b10912cfb7bb9b9cb07a38095
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r506_MIT_Mystery_Hunt_2014_The_Duck_Konundrum_VI_Now_with_Way_Way_Way_Way/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/the_duck_konundrum_vi/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r507_MIT_Mystery_Hunt_2014_Wandering_Stars/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r507_MIT_Mystery_Hunt_2014_Wandering_Stars/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..3250ce64e748a4c6bc5e4de5fc669cda75d917fe
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r507_MIT_Mystery_Hunt_2014_Wandering_Stars/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/wandering_stars/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r508_MIT_Mystery_Hunt_2014_Campus_Art_from_Z_to_A/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r508_MIT_Mystery_Hunt_2014_Campus_Art_from_Z_to_A/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..ea229b61c1abb1b4e318d416e71f13438a45f714
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r508_MIT_Mystery_Hunt_2014_Campus_Art_from_Z_to_A/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/campus_art_from_z_to_a/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r509_MIT_Mystery_Hunt_2014_Thank_Heaven_for_Little_Girls/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r509_MIT_Mystery_Hunt_2014_Thank_Heaven_for_Little_Girls/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..f6a9210cd17251934d37b701c3087e020dd0f620
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r509_MIT_Mystery_Hunt_2014_Thank_Heaven_for_Little_Girls/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/thank_heaven_for_little_girls/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r510_MIT_Mystery_Hunt_2014_Filed_Erector/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r510_MIT_Mystery_Hunt_2014_Filed_Erector/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..b4b9ced9fbf63eb73b08235c339e1a2e146a9210
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r510_MIT_Mystery_Hunt_2014_Filed_Erector/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/filed_erector/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r511_MIT_Mystery_Hunt_2014_Hole_Wizard/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r511_MIT_Mystery_Hunt_2014_Hole_Wizard/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..8458dd92b6a34ae7c6755b54627d73d70e895f43
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r511_MIT_Mystery_Hunt_2014_Hole_Wizard/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/hole_wizard/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r512_MIT_Mystery_Hunt_2014_Some_Nutty_Lines/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r512_MIT_Mystery_Hunt_2014_Some_Nutty_Lines/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..b9c9fdd170c8b0a63624d42e085000bc64ed7a2d
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r512_MIT_Mystery_Hunt_2014_Some_Nutty_Lines/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/some_nutty_lines/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r513_MIT_Mystery_Hunt_2014_Stalk_Us_Maybe/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r513_MIT_Mystery_Hunt_2014_Stalk_Us_Maybe/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..3aa7d76b33739fd4251f07407fbee31885aec668
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r513_MIT_Mystery_Hunt_2014_Stalk_Us_Maybe/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/stalk_us_maybe/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r515_MIT_Mystery_Hunt_2014_Marking_Territory/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r515_MIT_Mystery_Hunt_2014_Marking_Territory/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..8fbbe5abd09b8e3d7a2006ba4744d3f35b97bf82
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r515_MIT_Mystery_Hunt_2014_Marking_Territory/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/marking_territory/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r516_MIT_Mystery_Hunt_2014_Diplomatic_Victory/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r516_MIT_Mystery_Hunt_2014_Diplomatic_Victory/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..737281109db59993a71d03fcfd704290298127ec
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r516_MIT_Mystery_Hunt_2014_Diplomatic_Victory/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/diplomatic_victory/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r601_MIT_Mystery_Hunt_2014_Crossed_Wires/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r601_MIT_Mystery_Hunt_2014_Crossed_Wires/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..01d231d4378c9b1df2369b6c4b7749dd4b4ac72e
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r601_MIT_Mystery_Hunt_2014_Crossed_Wires/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/crossed_wires/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r602_MIT_Mystery_Hunt_2014_Modern_Cubism_Artist/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r602_MIT_Mystery_Hunt_2014_Modern_Cubism_Artist/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..133fc6283ccd43afde4ec3d47438a3f020a94ed9
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r602_MIT_Mystery_Hunt_2014_Modern_Cubism_Artist/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/modern_cubism_artist/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r604_MIT_Mystery_Hunt_2014_1_2_3_4_4649/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r604_MIT_Mystery_Hunt_2014_1_2_3_4_4649/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..84553f43d6796d022ab7b81693568a51e177377f
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r604_MIT_Mystery_Hunt_2014_1_2_3_4_4649/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/1_2_3_4_4649/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r605_MIT_Mystery_Hunt_2014_Gone_with_the_Wind/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r605_MIT_Mystery_Hunt_2014_Gone_with_the_Wind/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..a79567b31182aad9efa081e87de8feb0709561cf
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r605_MIT_Mystery_Hunt_2014_Gone_with_the_Wind/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/gone_with_the_wind/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r606_MIT_Mystery_Hunt_2014_You_ve_Got_Some_Nerve/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r606_MIT_Mystery_Hunt_2014_You_ve_Got_Some_Nerve/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..8e42fabfea4349a4c99c229e196ca22d1b61c39f
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r606_MIT_Mystery_Hunt_2014_You_ve_Got_Some_Nerve/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/youve_got_some_nerve/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r607_MIT_Mystery_Hunt_2014_Cruciform_Heraldry/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r607_MIT_Mystery_Hunt_2014_Cruciform_Heraldry/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..5b009f207bb4787560ea8adda940cf4496b749a7
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r607_MIT_Mystery_Hunt_2014_Cruciform_Heraldry/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/cruciform_heraldry/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r608_MIT_Mystery_Hunt_2014_Growth_and_Fixed_Costs/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r608_MIT_Mystery_Hunt_2014_Growth_and_Fixed_Costs/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..76181e7761fb9f0572c2354a63e146c12396ead4
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r608_MIT_Mystery_Hunt_2014_Growth_and_Fixed_Costs/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/growth_and_fixed_costs/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r609_MIT_Mystery_Hunt_2014_Let_s_Meet_in_the_Middle/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r609_MIT_Mystery_Hunt_2014_Let_s_Meet_in_the_Middle/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..57cec5229ad94b53b8d040dca2f15d67694b0159
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r609_MIT_Mystery_Hunt_2014_Let_s_Meet_in_the_Middle/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/lets_meet_in_the_middle/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r610_MIT_Mystery_Hunt_2014_Saturdy_amp_Sundy/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r610_MIT_Mystery_Hunt_2014_Saturdy_amp_Sundy/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..ce67ec78dacd74d9cd7c41c8fcc065433e8bcb6a
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r610_MIT_Mystery_Hunt_2014_Saturdy_amp_Sundy/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/saturdy_sundy/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r611_MIT_Mystery_Hunt_2014_Venntersections/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r611_MIT_Mystery_Hunt_2014_Venntersections/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..e84dfe5d5dac46a71caac6e43d96a1862e85af03
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r611_MIT_Mystery_Hunt_2014_Venntersections/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/venntersections/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r612_MIT_Mystery_Hunt_2014_Magic_Mushrooms/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r612_MIT_Mystery_Hunt_2014_Magic_Mushrooms/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..fd8b476d5e962da3e67f578c14c431c64007eecd
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r612_MIT_Mystery_Hunt_2014_Magic_Mushrooms/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/magic_mushrooms/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r613_MIT_Mystery_Hunt_2014_Crosswalks/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r613_MIT_Mystery_Hunt_2014_Crosswalks/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..0709d27658af0e9480b91530752dd24d55f3473e
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r613_MIT_Mystery_Hunt_2014_Crosswalks/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/crosswalks/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r701_MIT_Mystery_Hunt_2014_Compose_Yourself/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r701_MIT_Mystery_Hunt_2014_Compose_Yourself/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..7eaf32198de2fe618b9f1641e8df54008223a2c7
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r701_MIT_Mystery_Hunt_2014_Compose_Yourself/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/compose_yourself/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r703_MIT_Mystery_Hunt_2014_Sledgehammered/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r703_MIT_Mystery_Hunt_2014_Sledgehammered/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..747f82e3fab9c9ed7fb3da1003f59b4feabffd64
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r703_MIT_Mystery_Hunt_2014_Sledgehammered/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/sledgehammered/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r705_MIT_Mystery_Hunt_2014_Directions_in_Writing/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r705_MIT_Mystery_Hunt_2014_Directions_in_Writing/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..ef5b39eaea61741cafb4b389ec9a6e30acfe70d2
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r705_MIT_Mystery_Hunt_2014_Directions_in_Writing/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/directions_in_writing/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r708_MIT_Mystery_Hunt_2014_The_Great_Collapse/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r708_MIT_Mystery_Hunt_2014_The_Great_Collapse/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..d2e38704d8fd4a66195e17931ba904a52b8af5c3
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r708_MIT_Mystery_Hunt_2014_The_Great_Collapse/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/the_great_collapse/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r711_MIT_Mystery_Hunt_2014_A_Curious_INCIDENCE/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r711_MIT_Mystery_Hunt_2014_A_Curious_INCIDENCE/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..ca7ad4eabfa2b6ec322ef99cc579a314bfb649ea
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r711_MIT_Mystery_Hunt_2014_A_Curious_INCIDENCE/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/a_curious_incidence/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r714_MIT_Mystery_Hunt_2014_The_Circle_of_Life/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r714_MIT_Mystery_Hunt_2014_The_Circle_of_Life/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..281cc29740bded341b5f90bf6603fb038d1136d8
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r714_MIT_Mystery_Hunt_2014_The_Circle_of_Life/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/the_circle_of_life/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014z1_MIT_Mystery_Hunt_2014_The_Duchess/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014z1_MIT_Mystery_Hunt_2014_The_Duchess/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..949f7bce4d30c6d7edd630f794d29505f42ab69b
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014z1_MIT_Mystery_Hunt_2014_The_Duchess/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/puzzle_with_answer_lynn/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014z3_MIT_Mystery_Hunt_2014_The_Lion_and_the_Unicorn/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014z3_MIT_Mystery_Hunt_2014_The_Lion_and_the_Unicorn/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..5be0d6adb4d4f523fd572143917f465bb68c37fa
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014z3_MIT_Mystery_Hunt_2014_The_Lion_and_the_Unicorn/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/round_tripper/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014z5_MIT_Mystery_Hunt_2014_Where_is_the_White_Rabbit/puzzle.js b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014z5_MIT_Mystery_Hunt_2014_Where_is_the_White_Rabbit/puzzle.js
new file mode 100644
index 0000000000000000000000000000000000000000..ce67ec78dacd74d9cd7c41c8fcc065433e8bcb6a
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014z5_MIT_Mystery_Hunt_2014_Where_is_the_White_Rabbit/puzzle.js
@@ -0,0 +1,92 @@
+var mh = {};
+(function($){
+ $.fn.disableSelection = function() {
+ return this
+ .attr('unselectable', 'on')
+ .css('user-select', 'none')
+ .css('user-drag', 'none')
+ .on('selectstart', false);
+ };
+})(jQuery);
+$('#mh-controls, #mh-controls > *').disableSelection();
+mh.set_iframe_location = function(id, location) {
+ var iframe = $('#'+id)[0];
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
+ iframe_window.location.replace(location);
+};
+
+mh.nav = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-nav');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + 20);
+ var bg = $('#mh-nav-bg');
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
+ $('#mh-nav-inner a').each(function() {
+ var href = $(this).attr('href');
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
+ $(this).attr('href', '../../' + href);
+ });
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow');
+ } else {
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-nav-bg').click(mh.nav);
+mh.submit_contact = function() {
+ var page = $('#mh-page, #mh-book');
+ var outer = $('#mh-submit-contact');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-contact-bg');
+ var inner = $('#mh-submit-contact-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-contact-bg').click(mh.submit_contact);
+
+mh.submit_answer = function() {
+ var page = $('#mh-page');
+ var outer = $('#mh-submit-answer');
+ outer.css('top', page.offset().top + 20);
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
+ var bg = $('#mh-submit-answer-bg');
+ var inner = $('#mh-submit-answer-inner');
+ bg.stop(true, true);
+ outer.stop(true, true);
+ if (outer.is(':visible')) {
+ bg.fadeTo('fast', 0, function() {
+ bg.hide();
+ });
+ outer.fadeToggle('slow', function() {
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
+ });
+ } else {
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/saturdy_sundy/');
+ bg.fadeTo('slow', 0.5);
+ outer.fadeToggle('slow');
+ }
+};
+$('#mh-submit-answer-bg').click(mh.submit_answer);
+
+
+
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0304_MIT_Mystery_Hunt_2016_Trubled_Monicas/6a.png b/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0304_MIT_Mystery_Hunt_2016_Trubled_Monicas/6a.png
new file mode 100644
index 0000000000000000000000000000000000000000..5fb768f19fc1095c92103d08d0883b6f8ffd8d13
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0304_MIT_Mystery_Hunt_2016_Trubled_Monicas/6a.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:df21b824cdbc8bd25e3b1101559e71885c0596907262143fe61a8503ff81684c
+size 3055
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0721_MIT_Mystery_Hunt_2016_Vocabulary_quiz/_solution_assets/chemical.png b/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0721_MIT_Mystery_Hunt_2016_Vocabulary_quiz/_solution_assets/chemical.png
new file mode 100644
index 0000000000000000000000000000000000000000..8d23eeaed4ceaf1e8ab17fd89716d8268f95bbbd
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0721_MIT_Mystery_Hunt_2016_Vocabulary_quiz/_solution_assets/chemical.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:23417e61e01fae369af011f058fd130599869252d1169804d4f999d1293be102
+size 3061
diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0721_MIT_Mystery_Hunt_2016_Vocabulary_quiz/chemical.png b/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0721_MIT_Mystery_Hunt_2016_Vocabulary_quiz/chemical.png
new file mode 100644
index 0000000000000000000000000000000000000000..8d23eeaed4ceaf1e8ab17fd89716d8268f95bbbd
--- /dev/null
+++ b/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0721_MIT_Mystery_Hunt_2016_Vocabulary_quiz/chemical.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:23417e61e01fae369af011f058fd130599869252d1169804d4f999d1293be102
+size 3061