akaaafk commited on
Commit
9aa945a
·
verified ·
1 Parent(s): a436398

Add benchmark/MIT_Mystery_Hunt [commit 300/329, files through 29466/32277]

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. benchmark/MIT_Mystery_Hunt/puzzles/1996/mit1996metaendgame_MIT_Mystery_Hunt_1996_Endgame/puzzle10asolution.html +77 -0
  2. benchmark/MIT_Mystery_Hunt/puzzles/2002/mit200224_MIT_Mystery_Hunt_2002_D2_The_Mighty_Duck_Konundrum/chessboard4.gif +3 -0
  3. benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013242_MIT_Mystery_Hunt_2013_Dessert_Party/index.html +104 -0
  4. benchmark/MIT_Mystery_Hunt/puzzles/2013/mit20133mm_MIT_Mystery_Hunt_2013_Get_Smart_Meta/camera.png +3 -0
  5. benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013510_MIT_Mystery_Hunt_2013_Trochees_Etc/index.html +107 -0
  6. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014d3_MIT_Mystery_Hunt_2014_Find_Your_Way_Across/puzzle.js +92 -0
  7. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e1_MIT_Mystery_Hunt_2014_Auditions_for_the_WonderMusical/puzzle.js +92 -0
  8. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e2_MIT_Mystery_Hunt_2014_Lobster_Quadrille/puzzle.js +92 -0
  9. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e3_MIT_Mystery_Hunt_2014_Cards_Against_Wonderland/puzzle.js +92 -0
  10. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c2_MIT_Mystery_Hunt_2014_A_Meta_Puzzle/puzzle.js +92 -0
  11. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c4_MIT_Mystery_Hunt_2014_Black_and_White/puzzle.js +92 -0
  12. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c5_MIT_Mystery_Hunt_2014_Bumblebee_Tune-a/puzzle.js +92 -0
  13. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c7_MIT_Mystery_Hunt_2014_Stage_Select/puzzle.js +92 -0
  14. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c9_MIT_Mystery_Hunt_2014_Local_Shorts/puzzle.js +92 -0
  15. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1cj_MIT_Mystery_Hunt_2014_Safety_First/puzzle.js +92 -0
  16. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1ck_MIT_Mystery_Hunt_2014_BLAST_from_the_Past/_solution_assets/solution.css +176 -0
  17. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1ck_MIT_Mystery_Hunt_2014_BLAST_from_the_Past/puzzle.js +92 -0
  18. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1cx_MIT_Mystery_Hunt_2014_Clubs_Meta/round.js +89 -0
  19. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d2_MIT_Mystery_Hunt_2014_Across_the_Hall/puzzle.js +92 -0
  20. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d8_MIT_Mystery_Hunt_2014_Dressing_Down/puzzle.js +92 -0
  21. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d9_MIT_Mystery_Hunt_2014_Upstairs_Downstairs/puzzle.js +92 -0
  22. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1dj_MIT_Mystery_Hunt_2014_Opposites_Are_Not_Downbeats/puzzle.js +92 -0
  23. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1dx_MIT_Mystery_Hunt_2014_Diamonds_Meta/round.js +89 -0
  24. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s3_MIT_Mystery_Hunt_2014_Sneaky_Fox/puzzle.js +92 -0
  25. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s5_MIT_Mystery_Hunt_2014_Build_Your_Own_Sudoku/puzzle.js +92 -0
  26. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s6_MIT_Mystery_Hunt_2014_Apocalypse/puzzle.js +92 -0
  27. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s7_MIT_Mystery_Hunt_2014_Intersecting_Personalities/puzzle.js +92 -0
  28. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s8_MIT_Mystery_Hunt_2014_Ring_Around_the_Music/puzzle.js +92 -0
  29. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s9_MIT_Mystery_Hunt_2014_Feed_Your_Head/puzzle.js +92 -0
  30. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1sx_MIT_Mystery_Hunt_2014_Spades_Meta/round.js +89 -0
  31. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1xx_MIT_Mystery_Hunt_2014_MIT_Meta/round.js +89 -0
  32. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r205_MIT_Mystery_Hunt_2014_Now_Let_s_Create_Melodies/puzzle.js +92 -0
  33. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r206_MIT_Mystery_Hunt_2014_Hedgehogs_and_Flamingos/puzzle.js +92 -0
  34. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r207_MIT_Mystery_Hunt_2014_Can_Tab_Rig_Ian/puzzle.js +92 -0
  35. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r208_MIT_Mystery_Hunt_2014_Monster_Potatoes/puzzle.js +92 -0
  36. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r210_MIT_Mystery_Hunt_2014_The_Spy_Who_Read_Me/puzzle.js +92 -0
  37. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r211_MIT_Mystery_Hunt_2014_Obsessive-Compulsive_Dickishness/puzzle.js +92 -0
  38. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r213_MIT_Mystery_Hunt_2014_Uncommon_Nonsense/puzzle.js +92 -0
  39. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r214_MIT_Mystery_Hunt_2014_A_Rose_By_Any_Other/puzzle.js +92 -0
  40. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r215_MIT_Mystery_Hunt_2014_Guess_What_I_m_Thinking/puzzle.js +92 -0
  41. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r216_MIT_Mystery_Hunt_2014_The_Most_Dangerous_Night/puzzle.js +92 -0
  42. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r301_MIT_Mystery_Hunt_2014_Nothing_But_a_House_of_Cards/puzzle.js +92 -0
  43. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r302_MIT_Mystery_Hunt_2014_Common_Bonds/puzzle.js +92 -0
  44. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r303_MIT_Mystery_Hunt_2014_Cross-Pollination/puzzle.js +92 -0
  45. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r304_MIT_Mystery_Hunt_2014_Cut_and_Tape/puzzle.js +92 -0
  46. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r305_MIT_Mystery_Hunt_2014_Assemble_Me/puzzle.js +92 -0
  47. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r306_MIT_Mystery_Hunt_2014_Safer_Sephiroth/puzzle.js +92 -0
  48. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r308_MIT_Mystery_Hunt_2014_Round_Tripper/puzzle.js +92 -0
  49. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r309_MIT_Mystery_Hunt_2014_Initial_Impressions/puzzle.js +92 -0
  50. benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r311_MIT_Mystery_Hunt_2014_Please_Remain_Seated/puzzle.js +92 -0
benchmark/MIT_Mystery_Hunt/puzzles/1996/mit1996metaendgame_MIT_Mystery_Hunt_1996_Endgame/puzzle10asolution.html ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <title>MIT Mystery Hunt 1996 / Puzzle 10A Solution</title>
5
+ <style>
6
+ body, html {
7
+ width: 1000px;
8
+ font-family: "Lucida Grande", "Corbel", Arial, sans-serif;
9
+ margin: 20px 0px 20px 20px;
10
+ }
11
+ </style>
12
+ </head>
13
+ <body>
14
+
15
+ <h2><a href=".">Mystery Hunt 1996</a> / Puzzle 10A Solution</h2>
16
+
17
+ <p>If you found the correct path through the puzzle, you would have visited the
18
+ following pages in order, and gotten the subsequent letters and numbers:</p>
19
+ <UL>
20
+ <LI><A HREF="path/thes.html">thes.html</A> B 11</li>
21
+ <LI><A HREF="path/enam.html">enam.html</A> C 16</li>
22
+ <LI><A HREF="path/eaco.html">eaco.html</A> B 14</li>
23
+ <LI><A HREF="path/ntto.html">ntto.html</A> F 1</li>
24
+ <LI><A HREF="path/ingt.html">ingt.html</A> D 10</li>
25
+ <LI><A HREF="path/efil.html">efil.html</A> G 4</li>
26
+ <LI><A HREF="path/esar.html">esar.html</A> B 0</li>
27
+ <LI><A HREF="path/unte.html">unte.html</A> A 12</li>
28
+ <LI><A HREF="path/tion.html">tion.html</A> F 4</li>
29
+ <LI><A HREF="path/othe.html">othe.html</A> C 3</li>
30
+ <LI><A HREF="path/solu.html">solu.html</A> D 13</li>
31
+ <LI><A HREF="path/augm.html">augm.html</A> D 12</li>
32
+ <LI><A HREF="path/ngit.html">ngit.html</A> C 2</li>
33
+ <LI><A HREF="path/rpoi.html">rpoi.html</A> F 18</li>
34
+ <LI><A HREF="path/ruet.html">ruet.html</A> G 11</li>
35
+ <LI><A HREF="path/pebu.html">pebu.html</A> E 2</li>
36
+ <LI><A HREF="path/enti.html">enti.html</A> A 12</li>
37
+ <LI><A HREF="path/lead.html">lead.html</A> F 4</li>
38
+ <LI><A HREF="path/zzle.html">zzle.html</A> A 6</li>
39
+ <LI><A HREF="path/ofth.html">ofth.html</A> E 16</li>
40
+ <LI><A HREF="path/ssco.html">ssco.html</A> D 1</li>
41
+ <LI><A HREF="path/tnot.html">tnot.html</A> A 7</li>
42
+ <LI><A HREF="path/thet.html">thet.html</A> A 13</li>
43
+ <LI><A HREF="path/heme.html">heme.html</A> G 16</li>
44
+ <LI><A HREF="path/ispu.html">ispu.html</A> ? 10</li>
45
+ </UL>
46
+
47
+ <p>The letters passed in order were:</p>
48
+ <PRE>
49
+ BCBFDGBAFCDDCFGEAFAEDAAG*
50
+ </PRE>
51
+ <p>(where that last letter is either an F or a G, since there's no defined
52
+ path off the last page)</p>
53
+
54
+ <P>And if you added the numbers as specified in the directions, you get:
55
+ </font>
56
+ <PRE>
57
+ LSOMEWHEREOVERTHERAINBOW*
58
+ </PRE>
59
+ <p>(where the last letter is either a Y or a Z, depending on which path you
60
+ considered off of the last page).</p>
61
+
62
+ <P>As per the directions, if you discard the first and last letter, you are
63
+ left with the answer <STRONG>SOMEWHEREOVERTHERAINBOW</STRONG>.</p>
64
+
65
+ <H3>The Fake-out</H3>
66
+ <p>
67
+ The filenames were meant to be somewhat arbitrary, but of course no puzzle
68
+ hunters would believe that! So, if you followed through the web pages in a
69
+ certain methodical manner, the filenames (without the .html extension) spell
70
+ out the following:
71
+ <EM>
72
+ These filenames are a counterpoint to the true theme of this puzzle, augmenting
73
+ its scope but not leading to the solution.
74
+ </EM>
75
+ </p>
76
+ </BODY>
77
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/2002/mit200224_MIT_Mystery_Hunt_2002_D2_The_Mighty_Duck_Konundrum/chessboard4.gif ADDED

Git LFS Details

  • SHA256: f92c13261e0e874a37fa9e644fd7563ca6e146bd76acc743802d1fe12d0a97b7
  • Pointer size: 129 Bytes
  • Size of remote file: 3.06 kB
benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013242_MIT_Mystery_Hunt_2013_Dessert_Party/index.html ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Richard Feynman -- COINHEIST</title>
5
+ <meta charset="utf-8" />
6
+ <link rel="stylesheet/less" href="../../static/less/base.less"/>
7
+
8
+
9
+ <link rel="stylesheet/less" type="text/css" media="all" href="../feynman.less" />
10
+
11
+
12
+ <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'></script>
13
+ <script src="../../static/js/less-1.3.0.min.js" type="text/javascript"></script>
14
+
15
+
16
+ <script type="text/javascript" src="../../static/js/fixie-nav.js"></script>
17
+ <link href='http://fonts.googleapis.com/css?family=Crete+Round:400,400italic' rel='stylesheet' type='text/css'>
18
+
19
+
20
+
21
+ <!-- handy bit of code for making IE browsers act normal -->
22
+ <!-- [if lt IE 8]>
23
+ <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
24
+ <![endif]-->
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+ </head>
34
+
35
+ <body id="feynman" class="puzzle">
36
+ <div id="pre-container">
37
+
38
+ <div id="container">
39
+
40
+ <div id="stuff">
41
+ <div id="header">
42
+
43
+ <img src="../feynman.jpg" align="left" height="160" style="padding-right: 15px;"/><h1><a href="../index.html">Physics 101</a></h1>
44
+ <h2>Professor R. Feynman</h2>
45
+ <div class="clearer"></div>
46
+
47
+ </div>
48
+
49
+ <div id="content">
50
+
51
+ <h2>Dessert Party: <span class="answer">Q.E.D.</span></h2>
52
+
53
+ <p>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.</p>
54
+
55
+ <p>Friday, midnight - 1 AM, W20 Mezzanine Lounge. 2 people per team.</p>
56
+
57
+
58
+ </div>
59
+
60
+ <div id="footer">
61
+
62
+
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </div>
67
+
68
+
69
+ <div id="fixie-nav">
70
+ <h3>Status:</h3>
71
+
72
+ <div id="fixie-nav-expanded">
73
+ <ul class="team-status">
74
+ <li>Name: Manic Sages</li>
75
+
76
+ <li>Options: <strong>0</strong></li>
77
+ <li style="font-size: 75%">(100 options = 1 free answer)</li>
78
+ <li style="font-size: 75%">(Options increase up to 200 with time)</li>
79
+ <h4>To next unlock:</h4>
80
+ <li class="unlock"><strong>None</strong> hour(s) or fewer</li>
81
+
82
+ </ul>
83
+ <ul class="nav">
84
+ <li><a href="../../index.html">Home</a></li>
85
+ <li><a href="../../index.html#notes">Notes</a></li>
86
+ <li><a href="../../notes/eventlist/index.html">Event Schedule</a></li>
87
+
88
+ <li><strong><a href="answer/index.html">Solution</a></strong></li>
89
+
90
+ <li><strong><a href="../../contact_hq/index.html" id="contact-hq-link">Contact HQ</a></strong></li>
91
+ </ul>
92
+ </div>
93
+ </div>
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+ </body><script type="module" src="/checkanswer.js"></script>
103
+
104
+ </html>
benchmark/MIT_Mystery_Hunt/puzzles/2013/mit20133mm_MIT_Mystery_Hunt_2013_Get_Smart_Meta/camera.png ADDED

Git LFS Details

  • SHA256: 15e59388d426977b68d7f452797d537ca6dcdedcfbf39d4684dcd621852965fe
  • Pointer size: 129 Bytes
  • Size of remote file: 3.06 kB
benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013510_MIT_Mystery_Hunt_2013_Trochees_Etc/index.html ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Trochees, Etc. -- COINHEIST</title>
5
+ <meta charset="utf-8" />
6
+ <link rel="stylesheet/less" href="../../static/less/base.less"/>
7
+
8
+
9
+ <link rel="stylesheet/less" type="text/css" media="all" href="../sneakers.less" />
10
+
11
+
12
+ <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'></script>
13
+ <script src="../../static/js/less-1.3.0.min.js" type="text/javascript"></script>
14
+
15
+
16
+ <script type="text/javascript" src="../../static/js/fixie-nav.js"></script>
17
+ <link href='http://fonts.googleapis.com/css?family=Crete+Round:400,400italic' rel='stylesheet' type='text/css'>
18
+
19
+
20
+
21
+ <!-- handy bit of code for making IE browsers act normal -->
22
+ <!-- [if lt IE 8]>
23
+ <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
24
+ <![endif]-->
25
+
26
+
27
+
28
+
29
+ <script src="../sneakers.js"></script>
30
+
31
+
32
+
33
+
34
+
35
+
36
+ </head>
37
+
38
+ <body id="sneakers" class="puzzle">
39
+ <div id="pre-container">
40
+
41
+ <div id="container">
42
+
43
+ <div id="stuff">
44
+ <div id="header">
45
+
46
+
47
+ </div>
48
+
49
+ <div id="content">
50
+
51
+ <div class="window-outer">
52
+ <div class="window-title">Trochees, Etc.<span class="answer"> [SOLVED]</span></div>
53
+ <div class="window-inner">
54
+
55
+ <a href="puzzle.png"> <img style="width: 900px; height: auto" src="puzzle.png" title="Pandas and zombies and dragons with wings; these are a few of my favorite things."></a>
56
+
57
+ </div>
58
+ </div>
59
+
60
+ </div>
61
+
62
+ <div id="footer">
63
+
64
+ <a href="../index.html"> Manic Sages 20:~/evil/$ cd ..<span class="highlight">&nbsp;</span></a>
65
+
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </div>
70
+
71
+
72
+ <div id="fixie-nav">
73
+ <h3>Status:</h3>
74
+
75
+ <div id="fixie-nav-expanded">
76
+ <ul class="team-status">
77
+ <li>Name: Manic Sages</li>
78
+
79
+ <li>Options: <strong>0</strong></li>
80
+ <li style="font-size: 75%">(100 options = 1 free answer)</li>
81
+ <li style="font-size: 75%">(Options increase up to 200 with time)</li>
82
+ <h4>To next unlock:</h4>
83
+ <li class="unlock"><strong>None</strong> hour(s) or fewer</li>
84
+
85
+ </ul>
86
+ <ul class="nav">
87
+ <li><a href="../../index.html">Home</a></li>
88
+ <li><a href="../../index.html#notes">Notes</a></li>
89
+ <li><a href="../../notes/eventlist/index.html">Event Schedule</a></li>
90
+
91
+ <li><strong><a href="answer/index.html">Solution</a></strong></li>
92
+
93
+ <li><strong><a href="../../contact_hq/index.html" id="contact-hq-link">Contact HQ</a></strong></li>
94
+ </ul>
95
+ </div>
96
+ </div>
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+ </body><script type="module" src="/checkanswer.js"></script>
106
+
107
+ </html>
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014d3_MIT_Mystery_Hunt_2014_Find_Your_Way_Across/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/find_your_way_across/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e1_MIT_Mystery_Hunt_2014_Auditions_for_the_WonderMusical/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/auditions_for_the_wondermusical/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e2_MIT_Mystery_Hunt_2014_Lobster_Quadrille/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/lobster_quadrille/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014e3_MIT_Mystery_Hunt_2014_Cards_Against_Wonderland/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/cards_against_wonderland/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c2_MIT_Mystery_Hunt_2014_A_Meta_Puzzle/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/a_meta_puzzle/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c4_MIT_Mystery_Hunt_2014_Black_and_White/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/black_and_white/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c5_MIT_Mystery_Hunt_2014_Bumblebee_Tune-a/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/bumblebee_tune_a/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c7_MIT_Mystery_Hunt_2014_Stage_Select/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/stage_select/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1c9_MIT_Mystery_Hunt_2014_Local_Shorts/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/local_shorts/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1cj_MIT_Mystery_Hunt_2014_Safety_First/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/safety_first/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1ck_MIT_Mystery_Hunt_2014_BLAST_from_the_Past/_solution_assets/solution.css ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ html {
2
+ min-height: 100%
3
+ }
4
+ body, td, input {
5
+ font-family: 'Alice', sans-serif;
6
+ font-size: 18px;
7
+ }
8
+ table {
9
+ text-align: left;
10
+ }
11
+ td {
12
+ padding: 2px 4px;
13
+ }
14
+ #mh-title {
15
+ font-family: 'Alice', sans-serif;
16
+ font-size: 50px;
17
+ }
18
+ .mh-flavortext {
19
+ font-style: italic;
20
+ text-align: center;
21
+ margin: 0px 30px;
22
+ }
23
+ .mh-roundtext {
24
+ font-style: italic;
25
+ text-align: left;
26
+ margin: 0px 30px;
27
+ }
28
+ #mh-content {
29
+ padding: 10px;
30
+ text-align: justify;
31
+ clear: both;
32
+ }
33
+ #mh-outer {
34
+ width: 900px;
35
+ }
36
+ #mh-controls {
37
+ position: relative;
38
+ }
39
+ table.mh-center {
40
+ margin-left: auto;
41
+ margin-right: auto;
42
+ }
43
+
44
+
45
+ @media screen {
46
+
47
+ body {
48
+ width: 100%;
49
+ margin: 0px;
50
+ text-align: center;
51
+ }
52
+ .mh-fancy #mh-outer {
53
+ padding-top: 10px;
54
+ display: inline-block;
55
+ text-align: left;
56
+ position: relative;
57
+ }
58
+ .mh-fancy #mh-controls {
59
+ padding-bottom: 5px;
60
+ overflow: hidden;
61
+ }
62
+ .mh-fancy #mh-controls a, .mh-fancy #mh-controls span {
63
+ color: #fff;
64
+ text-shadow: 0px 0px 4px #000, 0px 2px 4px #000;
65
+ font-size: 90%;
66
+ text-decoration: none;
67
+ }
68
+ .mh-fancy #mh-back {
69
+ position: relative;
70
+ left: 20px;
71
+ }
72
+ .mh-fancy #mh-elsewhere {
73
+ position: relative;
74
+ left: 40px;
75
+ }
76
+ .mh-fancy #mh-plain-toggle {
77
+ position: absolute;
78
+ right: 160px;
79
+ }
80
+ .mh-fancy #mh-answer, .mh-fancy #mh-contact {
81
+ position: absolute;
82
+ right: 20px;
83
+ }
84
+ .mh-fancy #mh-page {
85
+ background: #fff;
86
+ box-shadow: 0px 0px 8px #000;
87
+ border-radius: 15px;
88
+ overflow: hidden;
89
+ margin-bottom: 20px;
90
+ }
91
+ .mh-fancy #mh-banner {
92
+ border-top-left-radius: 15px;
93
+ border-top-right-radius: 15px;
94
+ }
95
+ .mh-fancy #mh-title {
96
+ padding: 40px 20px;
97
+ text-shadow: 0px 0px 4px #eee;
98
+ color: #000;
99
+ }
100
+ .mh-fancy #mh-content {
101
+ color: #000;
102
+ border-top: 1px solid #aaa;
103
+ border-bottom-left-radius: 15px;
104
+ border-bottom-right-radius: 15px;
105
+ }
106
+
107
+ .mh-plain #mh-controls {
108
+ text-align: center;
109
+ }
110
+ .mh-plain #mh-back {
111
+ display: none;
112
+ }
113
+ .mh-plain #mh-plain-toggle {
114
+ position: absolute;
115
+ right: 0px;
116
+ }
117
+ .mh-plain #mh-answer, .mh-plain #mh-contact {
118
+ display: none;
119
+ }
120
+ .mh-plain #mh-title {
121
+ text-align: center;
122
+ padding: 10px 0px;
123
+ }
124
+ .mh-plain a {
125
+ color: #520;
126
+ }
127
+
128
+ }
129
+
130
+
131
+
132
+ @media print {
133
+ #mh-controls {
134
+ text-align: center;
135
+ }
136
+ #mh-back {
137
+ display: none;
138
+ }
139
+ #mh-elsewhere {
140
+ display: none;
141
+ }
142
+ #mh-answer, #mh-plain-toggle, #mh-contact {
143
+ display: none;
144
+ }
145
+ #mh-title {
146
+ text-align: center;
147
+ }
148
+ a {
149
+ color: #520;
150
+ }
151
+ }
152
+
153
+
154
+
155
+ @media screen {
156
+ body.mh-fancy {
157
+ background: #d0ceca url('../../round/mit/background.jpg') no-repeat top center;
158
+ }
159
+ }
160
+
161
+ .t {
162
+ border-collapse: collapse;
163
+ }
164
+ .t TH {
165
+ border: 1px solid black;
166
+ padding: 2px 4px;
167
+ }
168
+ .t TD {
169
+ border-left: 1px solid black;
170
+ border-right: 1px solid black;
171
+ white-space: nowrap;
172
+ }
173
+ .t TR.endsec {
174
+ border-bottom: 1px solid black;
175
+ }
176
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1ck_MIT_Mystery_Hunt_2014_BLAST_from_the_Past/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/blast_from_the_past/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1cx_MIT_Mystery_Hunt_2014_Clubs_Meta/round.js ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('slow', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/mit/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d2_MIT_Mystery_Hunt_2014_Across_the_Hall/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/across_the_hall/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d8_MIT_Mystery_Hunt_2014_Dressing_Down/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/dressing_down/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d9_MIT_Mystery_Hunt_2014_Upstairs_Downstairs/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/upstairs_downstairs/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1dj_MIT_Mystery_Hunt_2014_Opposites_Are_Not_Downbeats/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/opposites_are_not_downbeats/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1dx_MIT_Mystery_Hunt_2014_Diamonds_Meta/round.js ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('slow', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/mit/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s3_MIT_Mystery_Hunt_2014_Sneaky_Fox/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/sneaky_fox/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s5_MIT_Mystery_Hunt_2014_Build_Your_Own_Sudoku/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/build_your_own_sudoku/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s6_MIT_Mystery_Hunt_2014_Apocalypse/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/apocalypse/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s7_MIT_Mystery_Hunt_2014_Intersecting_Personalities/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/intersecting_personalities/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s8_MIT_Mystery_Hunt_2014_Ring_Around_the_Music/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/ring_around_the_music/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1s9_MIT_Mystery_Hunt_2014_Feed_Your_Head/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/feed_your_head/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1sx_MIT_Mystery_Hunt_2014_Spades_Meta/round.js ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('slow', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/mit/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1xx_MIT_Mystery_Hunt_2014_MIT_Meta/round.js ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('slow', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/mit/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r205_MIT_Mystery_Hunt_2014_Now_Let_s_Create_Melodies/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/now_lets_create_melodies/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r206_MIT_Mystery_Hunt_2014_Hedgehogs_and_Flamingos/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/hedgehogs_and_flamingos/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r207_MIT_Mystery_Hunt_2014_Can_Tab_Rig_Ian/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/can_tab_rig_ian/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r208_MIT_Mystery_Hunt_2014_Monster_Potatoes/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/monster_potatoes/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r210_MIT_Mystery_Hunt_2014_The_Spy_Who_Read_Me/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/the_spy_who_read_me/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r211_MIT_Mystery_Hunt_2014_Obsessive-Compulsive_Dickishness/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/obsessive_compulsive_dickishness/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r213_MIT_Mystery_Hunt_2014_Uncommon_Nonsense/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/uncommon_nonsense/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r214_MIT_Mystery_Hunt_2014_A_Rose_By_Any_Other/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/a_rose_by_any_other/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r215_MIT_Mystery_Hunt_2014_Guess_What_I_m_Thinking/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/guess_what_im_thinking/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r216_MIT_Mystery_Hunt_2014_The_Most_Dangerous_Night/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/the_most_dangerous_night/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r301_MIT_Mystery_Hunt_2014_Nothing_But_a_House_of_Cards/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/nothing_but_a_pack_of_cards/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r302_MIT_Mystery_Hunt_2014_Common_Bonds/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/common_bonds/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r303_MIT_Mystery_Hunt_2014_Cross-Pollination/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/cross_pollination/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r304_MIT_Mystery_Hunt_2014_Cut_and_Tape/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/cut_and_tape/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r305_MIT_Mystery_Hunt_2014_Assemble_Me/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/assemble_me/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r306_MIT_Mystery_Hunt_2014_Safer_Sephiroth/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/safer_sephiroth/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r308_MIT_Mystery_Hunt_2014_Round_Tripper/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/round_tripper/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r309_MIT_Mystery_Hunt_2014_Initial_Impressions/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/initial_impressions/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+
benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r311_MIT_Mystery_Hunt_2014_Please_Remain_Seated/puzzle.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var mh = {};
2
+ (function($){
3
+ $.fn.disableSelection = function() {
4
+ return this
5
+ .attr('unselectable', 'on')
6
+ .css('user-select', 'none')
7
+ .css('user-drag', 'none')
8
+ .on('selectstart', false);
9
+ };
10
+ })(jQuery);
11
+ $('#mh-controls, #mh-controls > *').disableSelection();
12
+ mh.set_iframe_location = function(id, location) {
13
+ var iframe = $('#'+id)[0];
14
+ var iframe_window = iframe.contentWindow || iframe.contentDocument.defaultView;
15
+ iframe_window.location.replace(location);
16
+ };
17
+
18
+ mh.nav = function() {
19
+ var page = $('#mh-page, #mh-book');
20
+ var outer = $('#mh-nav');
21
+ outer.css('top', page.offset().top + 20);
22
+ outer.css('left', page.offset().left + 20);
23
+ var bg = $('#mh-nav-bg');
24
+ $('#mh-nav-inner').html($('#mh-nav-iframe').contents().find('body').html());
25
+ $('#mh-nav-inner a').each(function() {
26
+ var href = $(this).attr('href');
27
+ if (href.indexOf('http://') != 0 && href.indexOf('javascript:') != 0)
28
+ $(this).attr('href', '../../' + href);
29
+ });
30
+ bg.stop(true, true);
31
+ outer.stop(true, true);
32
+ if (outer.is(':visible')) {
33
+ bg.fadeTo('fast', 0, function() {
34
+ bg.hide();
35
+ });
36
+ outer.fadeToggle('slow');
37
+ } else {
38
+ bg.fadeTo('slow', 0.5);
39
+ outer.fadeToggle('slow');
40
+ }
41
+ };
42
+ $('#mh-nav-bg').click(mh.nav);
43
+ mh.submit_contact = function() {
44
+ var page = $('#mh-page, #mh-book');
45
+ var outer = $('#mh-submit-contact');
46
+ outer.css('top', page.offset().top + 20);
47
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
48
+ var bg = $('#mh-submit-contact-bg');
49
+ var inner = $('#mh-submit-contact-inner');
50
+ bg.stop(true, true);
51
+ outer.stop(true, true);
52
+ if (outer.is(':visible')) {
53
+ bg.fadeTo('fast', 0, function() {
54
+ bg.hide();
55
+ });
56
+ outer.fadeToggle('slow', function() {
57
+ mh.set_iframe_location('mh-submit-contact-iframe', 'javascript: void 0;');
58
+ });
59
+ } else {
60
+ mh.set_iframe_location('mh-submit-contact-iframe', '../../dynamic/submit/contact/');
61
+ bg.fadeTo('slow', 0.5);
62
+ outer.fadeToggle('slow');
63
+ }
64
+ };
65
+ $('#mh-submit-contact-bg').click(mh.submit_contact);
66
+
67
+ mh.submit_answer = function() {
68
+ var page = $('#mh-page');
69
+ var outer = $('#mh-submit-answer');
70
+ outer.css('top', page.offset().top + 20);
71
+ outer.css('left', page.offset().left + page.innerWidth() - 20 - outer.outerWidth());
72
+ var bg = $('#mh-submit-answer-bg');
73
+ var inner = $('#mh-submit-answer-inner');
74
+ bg.stop(true, true);
75
+ outer.stop(true, true);
76
+ if (outer.is(':visible')) {
77
+ bg.fadeTo('fast', 0, function() {
78
+ bg.hide();
79
+ });
80
+ outer.fadeToggle('slow', function() {
81
+ mh.set_iframe_location('mh-submit-answer-iframe', 'javascript: void 0;');
82
+ });
83
+ } else {
84
+ mh.set_iframe_location('mh-submit-answer-iframe', '../../dynamic/submit/puzzle/please_remain_seated/');
85
+ bg.fadeTo('slow', 0.5);
86
+ outer.fadeToggle('slow');
87
+ }
88
+ };
89
+ $('#mh-submit-answer-bg').click(mh.submit_answer);
90
+
91
+
92
+