This repository has been archived by the owner on Nov 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
92 lines (89 loc) · 5.99 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="minimum-scale=1.0, width=device-width, maximum-scale=1, user-scalable=no ,initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="shortcut icon" href="images/favicon.ico">
<title>Mansion Maniac</title>
<script src="https://code.createjs.com/easeljs-0.8.1.min.js"></script>
<script src="https://code.createjs.com/preloadjs-0.6.1.min.js"></script>
<style>
@import url(css/reset.css);
@import url(css/styles.css);
</style>
</head>
<div class="archive-banner">
As of October 2024, Mansion Maniac will no longer be updated by NYPL and will soon be archived. <br/>
Source code for the site is available here: <a href="https://github.com/nypl-publicdomain/mansion-maniac">https://github.com/nypl-publicdomain/mansion-maniac</a>
<br/> and the digitized Apartment Houses of the Metropolis collection can be viewed here: <a href="https://digitalcollections.nypl.org/collections/apartment-houses-of-the-metropolis">https://digitalcollections.nypl.org/collections/apartment-houses-of-the-metropolis</a>.
</div>
<body>
<canvas id="easelCanvas" class="mansion" width="100%" height="100%"></canvas>
<div id="score">0 ft<sup>2</sup> (0 m<sup>2</sup>)</div>
<div id="controls">
<div class="zoom">
<div class="button zoomin" onmouseout="_maniac.endAction()" onmouseup="_maniac.endAction()" onmousedown="_maniac.startAction('zoomin')" ontouchstart="_maniac.startAction('zoomin')" ontouchend="_maniac.endAction()" ontouchcancel="_maniac.endAction()">+</div>
<div class="button zoomout" onmouseout="_maniac.endAction()" onmouseup="_maniac.endAction()" onmousedown="_maniac.startAction('zoomout')" ontouchstart="_maniac.startAction('zoomout')" ontouchend="_maniac.endAction()" ontouchcancel="_maniac.endAction()">-</div>
</div>
<div class="arrows">
<div class="column">
<div class="button left" onmouseout="_maniac.endAction()" onmouseup="_maniac.endAction()" onmousedown="_maniac.startAction('left')" ontouchstart="_maniac.startAction('left')" ontouchend="_maniac.endAction()" ontouchcancel="_maniac.endAction()">Left<span class="help">←</span></div>
</div>
<div class="column">
<div class="button up" onmouseout="_maniac.endAction()" onmouseup="_maniac.endAction()" onmousedown="_maniac.startAction('up')" ontouchstart="_maniac.startAction('up')" ontouchend="_maniac.endAction()" ontouchcancel="_maniac.endAction()">Up<span class="help">↑</span></div>
<div class="button down" onmouseout="_maniac.endAction()" onmouseup="_maniac.endAction()" onmousedown="_maniac.startAction('down')" ontouchstart="_maniac.startAction('down')" ontouchend="_maniac.endAction()" ontouchcancel="_maniac.endAction()">Down<span class="help">↓</span></div>
</div>
<div class="column">
<div class="button right" onmouseout="_maniac.endAction()" onmouseup="_maniac.endAction()" onmousedown="_maniac.startAction('right')" ontouchstart="_maniac.startAction('right')" ontouchend="_maniac.endAction()" ontouchcancel="_maniac.endAction()">Right<span class="help">→</span></div>
</div>
</div>
<div class="export">
<div class="button save" onclick="_maniac.saveMansion()">Save<span class="help">G</span></div>
<div class="button reset" onclick="_maniac.reset()">Reset<span class="help">Space</span></div>
</div>
</div>
<div id="credits">
<a href="//nypl.org" target="_blank" title="open nypl.org in a new window"><span class="lion">The New York Public Library</span></a> A <a href="//publicdomain.nypl.org">public domain remix</a> by <a href="//twitter.com/mgiraldo">Mauricio Giraldo</a> of <a href="http://labs.nypl.org">NYPL Labs</a>, using the <a href="http://digitalcollections.nypl.org/collections/apartment-houses-of-the-metropolis#/?tab=about">Apartment Houses of the Metropolis collection</a>. <a href="//github.com/nypl-publicdomain/mansion-maniac">View source code</a>.
</div>
<div id="loader">
<div class="wrapper">
<div class="mansion">
<h1>MANSION MANIAC</h1>
<div class="description">
<p>Built from digitized assets of the New York Public Library's collection of <a target="_blank" href="http://digitalcollections.nypl.org/collections/apartment-houses-of-the-metropolis#/?tab=about">Apartment Houses of the Metropolis</a>, this game/toy lets you explore mansion floor plans from the early 20th century in New York City.</p>
<p>Move around and zoom using the provided buttons:<br />←, ↑, ↓, →, +, -</p>
<div class="total"><span id="progress"></span></div>
<div class="button" id="start-button">Loading...</div>
</div>
</div>
</div>
</div>
<div id="save-page">
<h1>YOUR MANSION</h1>
<p id="save-score">You created a mansion with X rooms and Y ft<sup>2</sup> (Z m<sup>2</sup>).</p>
<p>Click/tap on the image to download it</p>
<p><a target="_blank" href="http://digitalcollections.nypl.org/collections/apartment-houses-of-the-metropolis#/?tab=about">View the original assets used in your floorplan</a>.</p>
<p><a onclick="_maniac.closeSave()">Return to Mansion Maniac</a></p>
<a id="mansion-image"><img width="800" /></a>
</div>
<script src="js/lib/underscore-min.js"></script>
<script src="js/mansion.js"></script>
<script type="text/javascript">
var _maniac = new Mansion.Mansion();
window.onload = function () {
_maniac.mansion();
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-1420324-131', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>