Skip to content

Instantly share code, notes, and snippets.

@ordinaryzelig
Created April 2, 2013 17:29
Show Gist options
  • Save ordinaryzelig/5294259 to your computer and use it in GitHub Desktop.
Save ordinaryzelig/5294259 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>AtoB</title>
<link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/jquery.ui.core.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/jquery.ui.theme.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/jquery.ui.autocomplete.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/jquery.ui.datepicker.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/bootstrap.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/anytime.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/home.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/search.css?body=1" media="all" rel="stylesheet" type="text/css" />
<script src="/assets/sync.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery.ui.core.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery.ui.widget.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery.ui.position.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery.ui.autocomplete.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery.ui.datepicker.js?body=1" type="text/javascript"></script>
<script src="/assets/i18n.js?body=1" type="text/javascript"></script>
<script src="/assets/i18n/translations.js?body=1" type="text/javascript"></script>
<script src="/assets/json2.js?body=1" type="text/javascript"></script>
<script src="/assets/underscore.js?body=1" type="text/javascript"></script>
<script src="/assets/backbone.js?body=1" type="text/javascript"></script>
<script src="/assets/backbone-rails.js?body=1" type="text/javascript"></script>
<script src="/assets/backbone/search_service.js?body=1" type="text/javascript"></script>
<script src="/assets/backbone/models/fare.js?body=1" type="text/javascript"></script>
<script src="/assets/backbone/models/search.js?body=1" type="text/javascript"></script>
<script src="/assets/backbone/models/segment.js?body=1" type="text/javascript"></script>
<script src="/assets/backbone/collections/fares.js?body=1" type="text/javascript"></script>
<script src="/assets/backbone/collections/segments.js?body=1" type="text/javascript"></script>
<script src="/assets/backbone/routers/journeys_router.js?body=1" type="text/javascript"></script>
<script src="/assets/searches/show.js?body=1" type="text/javascript"></script>
<script src="/assets/segments/index.js?body=1" type="text/javascript"></script>
<script src="/assets/anytime.js?body=1" type="text/javascript"></script>
<script src="/assets/autocomplete.js?body=1" type="text/javascript"></script>
<script src="/assets/backbone/views/searches/show.js?body=1" type="text/javascript"></script>
<script src="/assets/backbone/views/segments/index.js?body=1" type="text/javascript"></script>
<script src="/assets/i18n_patch.js?body=1" type="text/javascript"></script>
<script src="/assets/purchasing.js?body=1" type="text/javascript"></script>
<script src="/assets/search.js?body=1" type="text/javascript"></script>
<script src="/assets/station.js?body=1" type="text/javascript"></script>
<script src="/assets/application.js?body=1" type="text/javascript"></script>
<meta content="authenticity_token" name="csrf-param" />
<meta content="bpzQdNilhbBI6AYBJVMvgEMKeT24vqGnOB7unlfMqCI=" name="csrf-token" />
</head>
<body>
<!-- If details are set to display as 'meta', put them here in :head -->
<div class="container">
<img alt="From_a_to_b" src="/assets/from_a_to_b.png" />
<h1>Siracusa</h1>
<ul class="breadcrumb well">
<li><a href="#">Station</a> <span class="divider">/</span></li>
<li class="active">Siracusa</li>
</ul>
<!-- FORM START -->
<div class="span6 well">
<form accept-charset="UTF-8" action="/en/searches" class="form-horizontal" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="bpzQdNilhbBI6AYBJVMvgEMKeT24vqGnOB7unlfMqCI=" /></div>
<input id="form" name="form" type="hidden" value="{&quot;action&quot;:&quot;http://localhost:9393/start-search&quot;,&quot;method&quot;:&quot;POST&quot;,&quot;fields&quot;:[{&quot;name&quot;:&quot;leaving_from&quot;,&quot;type&quot;:&quot;string&quot;,&quot;label&quot;:&quot;Leaving from&quot;,&quot;required&quot;:true,&quot;list&quot;:false,&quot;autocomplete&quot;:&quot;station_suggest&quot;},{&quot;name&quot;:&quot;leaving_from_id&quot;,&quot;type&quot;:&quot;integer&quot;,&quot;label&quot;:null,&quot;required&quot;:true,&quot;list&quot;:false,&quot;autocomplete&quot;:null},{&quot;name&quot;:&quot;going_to&quot;,&quot;type&quot;:&quot;string&quot;,&quot;label&quot;:&quot;Going to&quot;,&quot;required&quot;:true,&quot;list&quot;:false,&quot;autocomplete&quot;:&quot;station_suggest&quot;},{&quot;name&quot;:&quot;going_to_id&quot;,&quot;type&quot;:&quot;integer&quot;,&quot;label&quot;:null,&quot;required&quot;:true,&quot;list&quot;:false,&quot;autocomplete&quot;:null},{&quot;name&quot;:&quot;departure_time&quot;,&quot;type&quot;:&quot;datetime&quot;,&quot;label&quot;:&quot;Departure time&quot;,&quot;required&quot;:true,&quot;list&quot;:false,&quot;autocomplete&quot;:null},{&quot;name&quot;:&quot;agency_id&quot;,&quot;type&quot;:&quot;integer&quot;,&quot;label&quot;:&quot;Agency id&quot;,&quot;required&quot;:true,&quot;list&quot;:false,&quot;autocomplete&quot;:null},{&quot;name&quot;:&quot;search_until&quot;,&quot;type&quot;:&quot;datetime&quot;,&quot;label&quot;:&quot;Search until&quot;,&quot;required&quot;:false,&quot;list&quot;:false,&quot;autocomplete&quot;:null}],&quot;submit&quot;:&quot;Search&quot;,&quot;autocomplete&quot;:{&quot;station_suggest&quot;:{&quot;action&quot;:&quot;http://localhost:9393/station-suggest&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;fields&quot;:[{&quot;name&quot;:&quot;name&quot;,&quot;type&quot;:&quot;string&quot;,&quot;label&quot;:null,&quot;required&quot;:false,&quot;list&quot;:false,&quot;autocomplete&quot;:null},{&quot;name&quot;:&quot;value&quot;,&quot;type&quot;:&quot;string&quot;,&quot;label&quot;:null,&quot;required&quot;:true,&quot;list&quot;:false,&quot;autocomplete&quot;:null},{&quot;name&quot;:&quot;coordinates&quot;,&quot;type&quot;:&quot;fieldset&quot;,&quot;label&quot;:&quot;Coordinates&quot;,&quot;required&quot;:false,&quot;list&quot;:true,&quot;autocomplete&quot;:null,&quot;fields&quot;:[{&quot;name&quot;:&quot;latitude&quot;,&quot;type&quot;:&quot;string&quot;,&quot;label&quot;:null,&quot;required&quot;:true,&quot;list&quot;:false,&quot;autocomplete&quot;:null},{&quot;name&quot;:&quot;longitude&quot;,&quot;type&quot;:&quot;string&quot;,&quot;label&quot;:null,&quot;required&quot;:true,&quot;list&quot;:false,&quot;autocomplete&quot;:null}]},{&quot;name&quot;:&quot;agency_id&quot;,&quot;type&quot;:&quot;integer&quot;,&quot;label&quot;:null,&quot;required&quot;:false,&quot;list&quot;:false,&quot;autocomplete&quot;:null}],&quot;submit&quot;:&quot;Suggest&quot;}},&quot;api_key&quot;:&quot;DEADBEEF24&quot;}" />
<div id="search_leaving_from" class="search_string">
<div class="control-group">
<label for="search_field_leaving_from" class="control-label">
Leaving from:
</label>
<div class="controls">
<input data-autocomplete="station_suggest" id="search_field_leaving_from" name="search[leaving_from]" type="text" />
</div>
</div>
</div>
<div id="search_leaving_from_id" class="search_integer">
<input id="search_field_leaving_from_id" name="search[leaving_from_id]" type="hidden" />
</div>
<div id="search_going_to" class="search_string">
<div class="control-group">
<label for="search_field_going_to" class="control-label">
Going to:
</label>
<div class="controls">
<input data-autocomplete="station_suggest" id="search_field_going_to" name="search[going_to]" type="text" />
</div>
</div>
</div>
<div id="search_going_to_id" class="search_integer">
<input id="search_field_going_to_id" name="search[going_to_id]" type="hidden" />
</div>
<div id="search_departure_time" class="search_datetime">
<div class="control-group">
<label for="search_field_departure_time" class="control-label">
Departure time:
</label>
<div class="controls">
<div class="input-append">
<input class="datetime_field" id="search_field_departure_time" name="search[departure_time]" type="text" />
<span class="add-on"><icon class="icon-calendar"></icon></span>
</div>
</div>
</div>
</div>
<div id="search_agency_id" class="search_integer">
<div class="control-group">
<label for="search_field_agency_id" class="control-label">
Agency id:
</label>
<div class="controls">
<input id="search_field_agency_id" name="search[agency_id]" type="text" />
</div>
</div>
</div>
<div id="search_search_until" class="search_datetime">
<div class="control-group">
<label for="search_field_search_until" class="control-label">
Search until:
</label>
<div class="controls">
<div class="input-append">
<input class="datetime_field" id="search_field_search_until" name="search[search_until]" type="text" />
<span class="add-on"><icon class="icon-calendar"></icon></span>
</div>
</div>
</div>
</div>
<div class="form-actions">
<input class="btn btn-warning btn-large" name="commit" type="submit" value="Search" />
</div>
</form> <form accept-charset="UTF-8" action="http://localhost:9393/station-suggest" id="station_suggest" method="get" style="display: none;"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
<div id="station_suggest_name" class="station_suggest_string">
<input id="station_suggest_field_name" name="station_suggest[name]" type="hidden" />
</div>
<div id="station_suggest_value" class="station_suggest_string">
<input id="station_suggest_field_value" name="station_suggest[value]" type="hidden" />
</div>
<div id="station_suggest_coordinates" class="station_suggest_fieldset">
<div id="station_suggest_coordinates_latitude" class="station_suggest_coordinates_string">
<input id="station_suggest_coordinates_field_latitude" name="station_suggest[coordinates][latitude]" type="hidden" />
</div>
<div id="station_suggest_coordinates_longitude" class="station_suggest_coordinates_string">
<input id="station_suggest_coordinates_field_longitude" name="station_suggest[coordinates][longitude]" type="hidden" />
</div>
</div>
<div id="station_suggest_agency_id" class="station_suggest_integer">
<input id="station_suggest_field_agency_id" name="station_suggest[agency_id]" type="hidden" />
</div>
</form> </div>
<!-- FORM END -->
<div class="span12">
<h2><small>Station Information</small> Siracusa</h2>
<div class="well">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
</p>
</div>
<!-- hash could look like any of the following: -->
<!-- 'str' => [{'str' => 'str'}] -->
<!-- 'str' => {'str' => 'str'} -->
<!-- hash contains 'details' & 'meta_details' -->
<!-- hash could look like any of the following: -->
<!-- 'str' => [{'str' => 'str'}] -->
<!-- 'str' => {'str' => 'str'} -->
<!-- hash contains 'details' & 'meta_details' -->
<!-- hash could look like any of the following: -->
<!-- 'str' => [{'str' => 'str'}] -->
<!-- 'str' => {'str' => 'str'} -->
<!-- hash contains 'details' & 'meta_details' -->
<!-- NOTE details_set could be an array or hash; let's make them arrays if they're not. -->
<h4><small>Servizi in Stazione </small> Siracusa</h4>
<table class="table table-bordered">
<thead>
<tr>
<th>Stazione</th>
<th>Biglietteria</th>
<th>Self Service Regionali</th>
<th>Self Service</th>
<th>Punti vendita biglietti Regionali</th>
<th>Collegamenti urbani</th>
<th>Collegamenti extra urbani</th>
<th>Parcheggio bici</th>
<th>Parcheggio auto</th>
<th>Deposito bagagli</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Siracusa
</td>
<td>
<i class="icon-ok"></i>
</td>
<td>
<i class="icon-ok"></i>
</td>
<td>
<i class="icon-ok"></i>
</td>
<td>
<i class="icon-ok"></i>
</td>
<td>
<i class="icon-ok"></i>
</td>
<td>
<i class="icon-ban-circle"></i>
</td>
<td>
<i class="icon-ban-circle"></i>
</td>
<td>
<i class="icon-ban-circle"></i>
</td>
<td>
<i class="icon-ban-circle"></i>
</td>
</tr>
</tbody>
</table>
<!-- NOTE details_set could be an array or hash; let's make them arrays if they're not. -->
<h4><small>Biglietterie </small> Siracusa</h4>
<table class="table table-bordered">
<thead>
<tr>
<th>Stazione</th>
<th>Giorni di apertura</th>
<th>Orario</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Siracusa
</td>
<td>
1 2 3 4 5 6 7 e Festivi
</td>
<td>
[&quot;6.55&quot;, &quot;21.17&quot;]
</td>
</tr>
</tbody>
</table>
<!-- NOTE details_set could be an array or hash; let's make them arrays if they're not. -->
<h4><small>Altri rivenditori </small> Siracusa</h4>
<table class="table table-bordered">
<thead>
<tr>
<th>Stazione</th>
<th>Località</th>
<th>Esercizio</th>
<th>Indirizzo</th>
<th>Chiusura</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Siracusa
</td>
<td>
Siracusa
</td>
<td>
Edicola
</td>
<td>
Piazzale della Stazione 17
</td>
<td>
Festivi pomeriggio
</td>
</tr>
</tbody>
</table>
<!-- NOTE details_set could be an array or hash; let's make them arrays if they're not. -->
<h4><small>Agenzie di Viaggio </small> Siracusa</h4>
<table class="table table-bordered">
<thead>
<tr>
<th>Comune</th>
<th>Provincia</th>
<th>CAP</th>
<th>Insegna</th>
<th>Indirizzo</th>
<th>Telefono</th>
<th>Fax</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Siracusa
</td>
<td>
SR
</td>
<td>
96100
</td>
<td>
EASY CONIGLIARO VIAGGI
</td>
<td>
PIAZZA DELLA REPUBBLICA N 10/11
</td>
<td>
09311765000
</td>
<td>
093169117
</td>
</tr>
<tr>
<td>
Siracusa
</td>
<td>
SR
</td>
<td>
96100
</td>
<td>
ORTIGIA VIAGGI
</td>
<td>
V.LE TICA, 160 A
</td>
<td>
0931411671
</td>
<td>
0931412335
</td>
</tr>
<tr>
<td>
Siracusa
</td>
<td>
SR
</td>
<td>
96100
</td>
<td>
WEB ARGALTOUR
</td>
<td>
VIALE LUIGI CADORNA, 39
</td>
<td>
0931464299
</td>
<td>
0931464413
</td>
</tr>
<tr>
<td>
Siracusa
</td>
<td>
SR
</td>
<td>
96100
</td>
<td>
WEB CHIARA RAUDINO VIAGGI
</td>
<td>
C.SO UMBERTO,104
</td>
<td>
0931464996
</td>
<td>
0931318975
</td>
</tr>
<tr>
<td>
Siracusa
</td>
<td>
SR
</td>
<td>
96100
</td>
<td>
WEB ELETTRA VIAGGI
</td>
<td>
VIALE TICA 199/201
</td>
<td>
09311960796
</td>
<td>
09311960207
</td>
</tr>
<tr>
<td>
Siracusa
</td>
<td>
SR
</td>
<td>
96100
</td>
<td>
WEB FUORIROTTA VIAGGI E TURISMO
</td>
<td>
CORSO GELONE,2
</td>
<td>
0931449087
</td>
<td>
0931446676
</td>
</tr>
<tr>
<td>
Siracusa
</td>
<td>
SR
</td>
<td>
96100
</td>
<td>
WEB HYBLON VIAGGI
</td>
<td>
VIA MALTA N 52
</td>
<td>
0931445000
</td>
<td>
09311960460
</td>
</tr>
<tr>
<td>
Siracusa
</td>
<td>
SR
</td>
<td>
96100
</td>
<td>
WEB METE &amp; MOTIVI
</td>
<td>
VIA ITALIA N 12
</td>
<td>
0931759765
</td>
<td>
0931494735
</td>
</tr>
</tbody>
</table>
<div class="row" style="margin-top: 60px;">
<!-- LEFT MAP -->
<div class="span5">
<h4><small>Address </small>Siracusa</h4>
<hr/>
<img alt=Staticmap?center=37.068628,15.280394&amp;markers=color:red|label:A|37.068628,15.280394&amp;zoom=14&amp;size=382x382&amp;sensor=false src= http://maps.google.com/maps/api/staticmap?center=37.068628,15.280394&amp;markers=color:red|label:A|37.068628,15.280394&amp;zoom=14&amp;size=382x382&amp;sensor=false>
<address>
<strong>Siracusa</strong>
<br>
</address>
</div>
<!-- RIGHT MAP -->
<div class="span5">
<h4><small>Stations near </small>Siracusa</h4>
<hr/>
<img alt="Staticmap?#{nearby_locations_map_params(@station, @nearbys)}".html_safe src=http://maps.google.com/maps/api/staticmap?center=37.068628,15.280394&amp;markers=color:blue|label:1|37.068628,15.280394&amp;markers=color:blue|label:2|37.069138170697,15.2804257190186&amp;markers=color:blue|label:3|37.111008,15.245495&amp;markers=color:blue|label:4|37.113466,15.234936&amp;markers=color:red|label:A|37.068628,15.280394&amp;size=382x382&amp;sensor=false>
<ul class="unstyled">
<li>
<small>[A]</small>
Siracusa
</li>
<li>
<small>
<!-- TODO get the slug and link to the station -->
[0] 0.0 km bis Siracusa (It)
<a href="/station/siracusa"></a>
</small>
</li>
<li>
<small>
<!-- TODO get the slug and link to the station -->
[1] 0.06 km bis Siracusa
<a href="/station/siracusa"></a>
</small>
</li>
<li>
<small>
<!-- TODO get the slug and link to the station -->
[2] 5.64 km bis Targia
<a href="/station/siracusa"></a>
</small>
</li>
<li>
<small>
<!-- TODO get the slug and link to the station -->
[3] 6.41 km bis Targia
<a href="/station/siracusa"></a>
</small>
</li>
</ul>
</div>
</div>
</div>
<footer class="footer">
<div class="span5" style="margin-top: 80px;">
<small>
<p>
<a href="http://www.fromatob.it/about/ip">Impressum</a>
|
<a href="http://www.fromatob.it/about/dp">Privacy</a>
|
<a href="http://www.fromatob.it/about/gtc">Terms</a>
</p>
<p>
© VerkehrsmittelVergleich.de GmbH 2012 – Alle Angaben ohne Gewähr
</p>
</small>
</div>
</footer>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment