Browse Source

Update links to forum, 3D indicator for major's

master
sipp11 10 years ago
parent
commit
5821a39107
  1. 8
      index.html
  2. 16
      js/app.js

8
index.html

@ -108,7 +108,7 @@
<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> on {{format-date date}}</small></h4>
<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}}
@ -125,7 +125,7 @@
{{else}}
<tr>
<td>
Try checking out again after 7 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.
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}}
@ -137,7 +137,7 @@
<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 7am ICT.</p>
<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">
@ -185,7 +185,7 @@
<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://zzyzx.pw/category/app/showtimes">@Zzyzx Forum</a></p>
<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>

16
js/app.js

@ -22,7 +22,7 @@ var groups = [
];
var restUrl = 'http://showtimes.everyday.in.th/api';
// var restUrl = 'http://localhost:8888';
// var restUrl = 'http://localhost:8989';
var today = new Date();
App.Router.map(function() {
@ -68,6 +68,20 @@ App.ShowtimesRoute = Ember.Route.extend({
var showdown = new Showdown.converter();
Ember.Handlebars.helper('is3d', function(inputArr) {
if (!inputArr)
return "";
var itis = false;
if (inputArr.length < 1)
return "";
for (var i = 0;i<inputArr.length;i++) {
if (inputArr[i].match("3d"))
itis = true
};
return ((itis) ? "3D" : "");
});
Ember.Handlebars.helper('format-markdown', function(input) {
return new Handlebars.SafeString(showdown.makeHtml(input));
});

Loading…
Cancel
Save