-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
140 lines (95 loc) · 2.88 KB
/
index.php
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<style>
html {
background: #fff;
font-family: verdana;
font-size: 12px;
}
body {
width: 50%;
margin: auto;
padding: 2em;
background: #eee;
}
.section-header {
background: lightyellow;
padding: 0.3em;
margin: 0 0 0.4em 0;
}
.section-pin {
display: inline-block;
color: transparent;
width: 20px;
height: 20px;
background: #ccc;
vertical-align: bottom;
border-radius: 100%;
box-sizing: border-box;
}
.section-pin.pinned {
border: 2px solid black;
}
.section-wrapper {
background: #fff;
margin-bottom: 2em;
padding: 0.3em;
}
.section-wrapper:last-child {
margin:0;
}
h2 { }
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!-- for saving keep-open panel preferences in cookie -->
<script src="cookie.js" type="text/javascript"></script>
<script src="listingform-accordion.js"></script>
<script>
$(document).ready( function(){ window.accordion = new AccordionMemory(); } );
</script>
</head>
<body>
<p id="toggleAll"> <span class="button">Expand / Collapse All</span></p>
<p onclick="accordion.toggleSection($('.section-header').first())"> toggle first </p>
<p onclick="accordion.toggleSection($('.section-header').last())"> toggle last </p>
<p onclick="accordion.toggleSection($('.section-header').eq(5))"> toggle youtube </p>
<h2 class="section-header">Listing Details <span title="Click here to have this section automatically open on every page load" class="section-pin">Keep Open</span></h2>
<div id="sectDetails" class="section-wrapper">
section 1
</div>
<h2 class="section-header">Location <span class="section-pin">Keep Open</span></h2>
<div id="sectLocation" class="section-wrapper">
section 2
</div>
<h2 class="section-header">Description <span class="section-pin">Keep Open</span></h2>
<div id="sectDescription" class="section-wrapper">
section 3
</div>
<h2 class="section-header">Property Types & Key Features __ <span class="section-pin">Keep Open</span></h2>
<div id="sectProptype" class="section-wrapper fieldspecific">
section 4
</div>
<h2 class="section-header">Commercial Sale Specific <span class="section-pin">Keep Open</span></h2>
<div id="sectCommSale" class="section-wrapper fieldspecific">
section 5
</div>
<h2 class="section-header">Youtube Videos, Classified Advert & Other Details <span class="section-pin">Keep Open</span></h2>
<div id="sectClassified" class="section-wrapper">
section 6
</div>
<h2 class="section-header">Common Features, Amenities, & Facilities <span class="section-pin">Keep Open</span></h2>
<div id="sectCommonAmenities" class="section-wrapper">
section 7
</div>
<h2 class="section-header">Notes <span class="section-pin">Keep Open</span> </h2>
<div id="sectNotes" class="section-wrapper">
section 8
</div>
<pre>
$_COOKIE contents:
<? print_r($_COOKIE) ?>
</pre>
</body>
</html>