-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
91 lines (83 loc) · 3.16 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
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Hammer it Home</title>
<link rel="stylesheet" href="style.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body class="loading">
<div class="mode" id="client-introduction">
<h1 id="client-name">Your client</h1>
<p><img id="client-avatar"/></p>
<div id="client-story"></div>
<div id="client-preferences"></div>
<p>Budget: ⨓ <strong id="client-budget">1000</strong></p>
<button id="accept-client">Accept client</button>
</div>
<div class="mode" id="inspection">
<h1>Lot <strong class="lot-number">4</strong> of <strong class="total-lots">12</strong></h1>
<p class="address">69 dick lane, tiddlington-on-the-cream, brushinghamshire</p>
<img id="floorplan"/>
<p>Features:</p>
<ul id="rooms"></ul>
<p>Comes furnished with:</p>
<ul id="furniture"></ul>
<p><button id="accept-lot">Start auction</button></p>
</div>
<div class="mode" id="auction-house">
<div id="stage">
<dl id="client-meta">
<p>Budget: ⨓ <strong id="client-meta-budget"></strong></p>
<p>Desires:</p>
<ul id="client-meta-desires"></ul>
</dl>
<div id="lot-info">
<p class="address">69 dick lane, tiddlington-on-the-cream, brushinghamshire</p>
<img id="displayed-floor-plan"/>
</div>
<div id="auctioneer">
<div id="auctioneer-interactions">
<p><button id="bid-button">place bid</button></p>
<p>current bid: ⨓ <strong id="current-bid">30</strong>, by <strong id="highest-bidder">you</strong>
<p id="goings">
<span>going…</span>
<span>going…</span>
<span>gone! sold to <strong id="winning-participant">you</strong></span>
</p>
</div>
</div>
<ul id="participants">
</ul>
</div>
</div>
<script>
if (!Element.prototype.toggleAttribute) {
Element.prototype.toggleAttribute = function(name, force) {
if(force !== void 0) force = !!force
if (this.getAttribute(name) !== null) {
if (force) return true;
this.removeAttribute(name);
return false;
} else {
if (force === false) return false;
this.setAttribute(name, "");
return true;
}
};
}
</script>
<div id="image-cache">
<canvas id="floorplan-canvas" width="1200" height="1200"></canvas>
<img id="floorplan-door-n" src="floorplan/symbols/door_nowall_n.png"/>
<img id="floorplan-door-e" src="floorplan/symbols/door_nowall_e.png"/>
<img id="floorplan-door-s" src="floorplan/symbols/door_nowall_s.png"/>
<img id="floorplan-door-w" src="floorplan/symbols/door_nowall_w.png"/>
<img id="floorplan-window-h" src="floorplan/walls/window_h.png"/>
<img id="floorplan-window-v" src="floorplan/walls/window_v.png"/>
</div>
<script src="parts.js"></script>
<script src="game.js"></script>
</body>
</html>