Web front of showtimes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

210 lines
7.4 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Showtimes</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
<link href="/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
</head>
<body>
<script type="text/x-handlebars">
<div class="navbar">
<div class="navbar-inner">
<a class="brand">{{appName}}</a>
<ul class="nav">
<li>{{#link-to 'groups'}}Theaters{{/link-to}}</li>
<li>{{#link-to 'api'}}API{{/link-to}}</a></li>
<li>{{#link-to 'about'}}About{{/link-to}}</a></li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<span class="pull-right">
<span class="fb-like" style="top:-6px" data-href="http://showtimes.everyday.in.th" data-layout="button_count" data-action="like" data-show-faces="true" data-share="true"></span>
<span class="g-plusone" data-href="http://showtimes.everyday.in.th/"></span>
</span>
</div>
</div>
{{outlet}}
</script>
<script type="text/x-handlebars" data-template-name="groups">
<div class="container-fluid">
<div class="row-fluid">
<div class="span2">
<table class='table'>
<thead>
<tr>
<td>
<img src="http://zzyzx.co/static/showtimes-web-icon.png" width="128" height="128">
</td>
</tr>
<tr><th>Groups</th></tr>
</thead>
<tbody>
{{#each model}}
<tr>
<td>
<h4>{{#link-to 'theaters' name}}{{name}} <small class='muted'>#{{id}}</small>{{/link-to}}</h4>
</td>
</tr>
{{/each}}
<tr>
<td>
<a href="https://play.google.com/store/apps/details?id=co.zzyzx.showtimes.android">
<img alt="Get it on Google Play" src="http://zzyzx.co/static/en_generic_rgb_wo_45.png" />
</a>
</td>
</tr>
</tbody>
</table>
</div>
<div class="span10">
{{outlet}}
</div>
</div>
</div>
</script>
<script type="text/x-handlebars" data-template-name="theaters">
<div class="row-fluid">
<div class="span5">
<table class='table'>
<thead>
<tr><th>Theaters</th></tr>
</thead>
<tbody>
{{#each model}}
<tr>
<td>
{{#link-to 'showtimes' code}}{{name}}{{/link-to}}
</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
<div class="span7">
{{outlet}}
</div>
</div>
</script>
<script type="text/x-handlebars" data-template-name="showtimes">
<table class='table'>
<thead>
<tr><th>Movie Showtimes</th></tr>
</thead>
<tbody>
{{#each model}}
<tr>
<td>
{{#if poster_path}}<div class="pull-left" style="margin-right:0.5em"><img src="http://image.tmdb.org/t/p/w92{{unbound poster_path}}" align="left" class="img-rounded" /></div>{{/if}}
<h4>{{movie}} <small class='muted'><mark>{{audio}}</mark> {{is3d extra}}<br/>on {{format-date date}}</small></h4>
<p>
{{#if cinema}}<small class='muted'>#{{cinema}}</small><br/>{{/if}}
{{showtimes}}
<span style="color:#7C7C7C"><br/><br/>
{{#if imdb_id}}<a href="http://www.imdb.com/title/{{unbound imdb_id}}/" class="btn btn-info btn-mini">IMDb</a>{{/if}}
{{#if vote_average}}<a href="http://www.themoviedb.org/movie/{{unbound movie_id}}/" class="btn btn-info btn-mini">TMDb</a> rating {{vote_average}} ({{vote_count}} vote){{/if}}
{{#if videos}}<br/><strong>Trailer</strong> {{#each videos}}
<a href="http://{{unbound site}}.com/watch?v={{unbound key}}" class="btn btn-default btn-mini">Link</a>&nbsp;
{{/each}}{{/if}}
</span>
</p>
</td>
</tr>
{{else}}
<tr>
<td>
Try checking out again after 9 in the morning since data will be processed around that time. Nope SF/Major-group does not update that frequent. I could not do a thing about it.
</td>
</tr>
{{/each}}
</tbody>
</table>
</script>
<script type="text/x-handlebars" data-template-name="api">
<div class='about'>
<h1>#ShowtimesTH Public API</h1>
<p>While this is in BETA, there will be no key or whatever. Data should be self explanation and is updating daily, roughly 9am ICT.</p>
<p>Information provided is based on the sources, SF/Major's web site.</p>
<p>So far, data is in JSON format only. Please refer back to us if you use it.</p>
<table class="table">
<thead>
<tr>
<th>What</th>
<th>Detail <small class="muted">application/json response</small></th>
</tr>
</head>
<tbody>
<tr>
<td>Groups</td>
<td>
get an array of theaters' groups
<br/><br/>
<pre>GET http://showtimes.everyday.in.th/api/groups/</pre>
</td>
</tr>
<tr>
<td>Theaters</td>
<td>
get a list of theaters
<br/><br/>
<pre>GET http://showtimes.everyday.in.th/api/theaters/</pre>
<pre>GET http://showtimes.everyday.in.th/api/theaters/&lt;group&gt;/</pre>
</td>
</tr>
<tr>
<td>Showtimes</td>
<td>
get a list of showtimes; return all showtimes if no date specified.
<br/><br/>
<pre>GET http://showtimes.everyday.in.th/api/showtimes/&lt;group&gt;/</pre>
<pre>GET http://showtimes.everyday.in.th/api/showtimes/&lt;group&gt;/&lt;theater_code&gt;/</pre>
<pre>GET http://showtimes.everyday.in.th/api/showtimes/&lt;group&gt;/&lt;theater_code&gt;/?d=YYYY-MM-DD</pre>
</td>
</tr>
</body>
</table>
</div>
</script>
<script type="text/x-handlebars" data-template-name="about">
<div class='about'>
<h1>Zzyzx</h1>
<p>Whatever it is, it is awesome. Talk with us <a href="http://facebook.com/zzyzx.io">Zzyzx@Facebook</a></p>
<hr/>
<h4>BETA channel</h4>
<p>If you like to try cutting-edge version--possibly buggy, Android app BETA channel sign up as following:</p>
<ul>
<li>Join Google group <a href="https://groups.google.com/d/forum/zzyzxer">ZZYZXer</a></li>
<li>Become a tester at <a href="https://play.google.com/apps/testing/co.zzyzx.showtimes.android">@ShowtimesTH BETA</a>, you will get beta version as soon as it arrives automatically.</li>
</ul>
<hr/>
</div>
</script>
<script src="/js/libs/jquery-1.11.1.min.js"></script>
<script src="/js/libs/handlebars-1.1.2.js"></script>
<script src="/js/libs/ember-1.7.0.min.js"></script>
<script src="/bower_components/showdown/compressed/showdown.js"></script>
<script src="/bower_components/moment/moment.js"></script>
<script src="/js/app.js"></script>
<script src="/js/trackers.js" async defer></script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<div id="fb-root"></div>
</body>
</html>