-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
294 lines (265 loc) · 12.1 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<?php
include './inc/init.php';
$tmpl->add('js', 'http://maps.google.com/maps/api/js?sensor=false');
//$tmpl->add('js', 'script/maps.js');
$tmpl->add('js', 'script/jquery.xml2json.pack.js');
$tmpl->add('js', 'script/mainPageSimpleFeed.js');
$tmpl->add('js', 'script/geigermap/grid_map.js');
$tmpl->add('js', 'http://widgets.twimg.com/j/2/widget.js');
$tmpl->add('js', '/script/fancybox/jquery.fancybox-1.3.4.pack.js');
$tmpl->add('js', '/script/fancybox/jquery.mousewheel-3.0.4.pack.js');
$tmpl->add('js', '/script/flot/jquery.flot.js');
$tmpl->add('js', '/script/flot/jquery.flot.axislabel.js');
$tmpl->add('css', '/script/fancybox/jquery.fancybox-1.3.4.css');
$tmpl->set('title', 'Safecast');
$tmpl->set('siteName', $translations->siteName);
$tmpl->set('siteTagline', $translations->siteTagline);
$tmpl->set('formallyKnownAs', $translations->formallyKnownAs);
$tmpl->set('aboutCaps', $translations->about);
$tmpl->set('maps', $translations->maps);
$tmpl->set('wiki', $translations->wiki);
$tmpl->set('blog', $translations->blog);
$tmpl->set('japan', $translations->japan);
$tmpl->set('forums', $translations->forums);
$tmpl->set('submitAReading', $translations->submitAReading);
$tmpl->set('languageSelect', $translations->languageSelect);
$tmpl->set('contact', $translations->contact);
$tmpl->set('follow', $translations->follow);
$tmpl->set('termsPolicy', $translations->termsPolicy);
$tmpl->set('conceivedPart1', $translations->conceivedPart1);
$tmpl->set('conceivedPart2', $translations->conceivedPart2);
$tmpl->set('pageName', 'index');
$tmpl->set('lang', $lang);
$tmpl->place('header');
?>
<div class="content">
<div class="relativeWrap">
<div class="fullScreenWidth posColumn1 whiteBg">
<div class="sectionHeadRight">Safecast Map</div>
<div id="grid_map_canvas" class="map_canvas"></div>
<script>
gm_init({
zoom:7,
lat:37.207889,
lng:139.969678,
div: "grid_map_canvas",
map_name: "jp_grid",
show_label:true,
view_by: "grid"
});
gm_load_feeds({
json: new Array("/feeds/gridFusion.json"),
});
create_maps();
</script>
<div class="oneColumnWidth posColumn3">
<div id="steps" class="box">
<div class="sectionHeadRight"> </div>
<div class="leftHalfSizeBody" style="">
<!--<p style="padding-top: 10px;"><img src="/images/gridmap_grey.png" class="pinImage" height="18" width="18"/> <?php echo $translations->gridMapLegend1; ?></p>
<p style="padding-top: 10px;"><img src="/images/gridmap_green.png" class="pinImage" height="18" width="18"/> <?php echo $translations->gridMapLegend2; ?></p> -->
<p><?php echo $translations->gridMapBody; ?> <a href="<?php echo $translations->driveListHref; ?>"><?php echo $translations->gridMapBodyLink; ?></a></p>
<p><br /><br /><div class="redButton"><a href="/fusion">All Safecast Data 全データセットを見る</a></div><br /></p>
<p><div class="redButton"><a href="<?php echo $translations->driveListHref; ?>">Individual drive maps 各ドライブマップ</a></div></p>
<div id="donateBox" align="center"><br /><br />Want to help us collect more data?<br />データ収集支援のため寄付をする<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="DK487PKCJLGX6">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form></div>
</div>
</div>
</div>
<!--
<div class="oneColumnWidth posColumn3">
<div id="steps" class="box">
<div class="sectionHeadRight"><?php echo $translations->safecastBlogPosts; ?></div>
<div id="blogBody">
<script src="http://feeds.feedburner.com/safecastorg?format=sigpro" type="text/javascript" ></script>
<noscript><p>Subscribe to RSS headline updates from: <a href="http://feeds.feedburner.com/rdtnorg"></a></p> </noscript>
</div>
<div class="leftHalfSizeBody">
<li><a href="http://blog.safecast.org">... more</a></li>
<div class="rowSpacer20"></div>
</div>
</div>
</div>
-->
</div>
<div class="rowSpacer20"></div>
<div class="relativeWrap">
<div class="halfScreenWidth posColumn1">
<div id="safecasting" class="wideBox">
<div class="sectionHeadRight"><?php echo $translations->safecastingTitle; ?></div>
<a href="/drive/6"><img src="/images/sampleDrive.jpg" alt="Drive 6" /></a>
<div class="leftHalfSizeBody" style="background-color: white;padding: 10px;line-height: 15px; font-size: 11px; color: black;">
<p><?php echo $translations->safecastingBody; ?> </p>
<div class="rowSpacer20"></div>
<div class="redButton"><a href="<?php echo $translations->driveListHref; ?>">Full List of Maps ドライブマップ一覧</a></div>
<div class="rowSpacer20"></div>
</div>
</div>
</div>
<div class="halfScreenWidth posSecondHalf">
<div class="relativeWrap">
<div class="halfScreenWidth posColumn1">
<div class="wideBox" id="safecastNetwork">
<div class="sectionHeadRight"><?php echo $translations->sensorNetworkTitle; ?></div>
<div id="small_map_canvas" class="map_canvas"></div>
<div class="wideBoxContent" style="background-color: white;padding: 10px;line-height: 15px; font-size: 11px; color: black;">
<p><?php echo $translations->sensorNetworkBody1; ?><br />
<?php echo $translations->sensorNetworkBody2; ?> </p>
<div class="rowSpacer20"></div>
<div class="redButton"><a href="/feedmap"><?php echo $translations->aggregateButton; ?></a></div>
<div class="rowSpacer20"></div>
</div>
</div>
</div>
</div>
<!--
<div class="oneColumnWidth posColumn1">
<div class="box" id="aboutRdtn">
<div class="sectionHeadRight"><?php echo $translations->aboutHead; ?></div>
<div class="leftHalfSizeBody">
<p>
<?php echo $translations->aboutPart1; ?>
</p>
<p>
<?php echo $translations->aboutPart2; ?>
</p>
<p>
<?php echo $translations->aboutPart3; ?>
</p>
<p>
<?php echo $translations->aboutPart4; ?>
</p>
<li><a href="http://www.pachube.com">Pachube.com</a></li>
<li><a href="http://www.sendung.de/japan-radiation-open-data/">Marian Steinbach</a></li>
<li><a href="http://www.GeigerCrowd.net">GeigerCrowd.net</a></li>
<li><a href="http://www.mext.go.jp/english/"><?php echo $translations->mextOfJapan; ?></a></li>
<li><a href="http://radiation.crowdmap.com/">Radiation Crowdmap</a></li>
<hr class="dotted"/>
<p>
<?php echo $translations->aboutPart5; ?>
</p>
<li><a href="http://bit.ly/fgGX3a"><?php echo $translations->otherWaysLink1; ?></a></li>
<li><a href="http://bit.ly/fWD0Hi"><?php echo $translations->otherWaysLink2; ?></a></li>
<li><a href="http://bit.ly/icxEJR"><?php echo $translations->otherWaysLink3; ?></a></li>
<li><a href="https://www.mercycorps.org/donate/japan"><?php echo $translations->otherWaysLink4; ?></a></li>
<li><a href="http://www.2hj.org/index.php/eng_home"><?php echo $translations->otherWaysLink5; ?></a></li>
</div>
</div>
</div>
-->
</div>
<div class="rowSpacer20"></div>
<div class="relativeWrap">
<!--
<div class="oneColumnWidth posColumn1">
<div class="box">
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 6,
interval: 6000,
width: 305,
height: 300,
theme: {
shell: {
background: '#e6e7ed',
color: '#7a767a'
},
tweets: {
background: '#ffffff',
color: '#474547',
links: '#5ea6c0'
}
},
features: {
scrollbar: false,
loop: false,
live: true,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'all'
}
}).render().setUser('safecastdotorg').start();
</script>
</div>
</div>
-->
<!--
<div class="oneColumnWidth posColumn2">
<div class="box">
<div style="padding-left:15px;"><br/>
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.safecast.org"
scrolling="no" frameborder="0"
style="border:none; width:250px; height:80px"></iframe>
</div>
</div>
-->
<!--
<div class="box" id="creditRdtn">
<div class="sectionHeadRight"><?php echo $translations->creditAndThanks; ?></div>
<div class="creditSectionBody">
<div class="creditIntro"><?php echo $translations->creditBlurb; ?></div>
<p><?php echo $translations->alphabeticalOrder; ?></p>
<div class="creditNames">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<p>Ed Borden</p>
<p>Jesse Conway</p>
<p>Silke von Esenwein</p>
<p>David Evans</p>
<p><a href="http://freaklabs.org/">FreakLabs</a></p>
<p>GeigerCrowd.net</p>
<p>Usman Haque</p>
<p>Peter Hoffman</p>
<p>Aaron Huslage</a></p>
<p><a href="http://www.twitter.com/joi" target="_blank">Joi Ito</a></p>
<p><a href="http://www.twitter.com/tokyomango" target="_blank">Lisa Katayama</a></p>
<p><a href="http://www.twitter.com/magck" target="_blank">Margaret Kendall</a></p>
<p>Ivy Lin</p>
<p><a href="http://www.twitter.com/anisthmus" target="_blank">Jeremy Lind</a></p>
<p>Masataka Odaka </p>
</td>
<td>
<p>Megan Parish</p>
<p><a href="http://www.twitter.com/paryshnikov" target="_blank">Nick Parish</a></p>
<p>Surj Patel</p>
<p>Christina Perry</p>
<p>Staci Bernard Roth</p>
<p>Brad Rhodes</p>
<p>Alexey Sidorenko</p>
<p><a href="http://www.twitter.com/MarianSteinbach" target="_blank">Marian Steinbach</a></p>
<p>Gregg Sullivan</p>
<p>Dan Sythe</p>
<p><a href="http://www.tokyohackerspace.org/">Tokyo Hackerspace</a></p>
<p><a href="http://www.twitter.com/turoczy" target="_blank">Rick Turoczy</a></p>
<p>James Yaegashi</p>
<p>Amazon.com</p>
<p>Digital Garage</p>
</td>
</tr>
</table>
</div>
</div>
</div>
-->
</div>
</div>
</div>
</div>
</div>
</div>
<script>
$("#address").keyup(function(event){
if(event.keyCode == 13){
$("#addressSubmit").click();
}
});
</script>
<?php $tmpl->place('footer') ?>