Frontend for Movie API which is still a subset of ShowtimesTH API.
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.

212 lines
8.3 KiB

10 years ago
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Movies by #ShowtimesTH</title>
<meta name="description" content="Now Showing Movie Information, Thailand">
<meta name="keywords" content="Now showing, Movies, Theater, Thailand">
<meta name="google-play-app" content="app-id=co.zzyzx.showtimes.android">
<link rel="stylesheet" href="css/bootstrap.min.css">
<style>
.muted {
color:#989898;
}
li.thumbnail {
margin-left: 10px;
margin-bottom: 10px;
width: 330px;
10 years ago
min-height: 150px;
}
li.thumbnail > img {
margin: 0 10px 5px 10px;
}
</style>
</head>
<body>
<script type="text/x-handlebars">
<div class="container-fluid">
<div class="row">
10 years ago
<div class="col-lg-8 col-lg-offset-2">
<h1 class="text-center">Movies <small><a href="//showtimes.everyday.in.th">#ShowtimesTH</a></small></h1>
<ul class="nav nav-pills nav-justified">
<li role="presentation">
{{#link-to 'nowshowing'}}Now Showing{{/link-to}}</a></li>
<li role="presentation">{{#link-to 'comingsoon'}}Coming Soon{{/link-to}}</li>
<li role="presentation">{{#link-to 'older'}}Older{{/link-to}}</li>
</ul>
</div>
10 years ago
</div>
<div class="row">
10 years ago
<div class="col-lg-12">
10 years ago
{{outlet}}
10 years ago
</div>
10 years ago
</div>
{{outlet modal}}
<footer>
<hr/>
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-6 col-md-offset-3 text-center">
<small class="muted">Data gathered from TheMovieDB.org and/or SF and/or Major web page</small>
</div>
</div>
</footer>
</div>
</script>
<script type="text/x-handlebars" data-template-name="movies">
10 years ago
<ul id="container" class="col-lg-12">
{{#each model}}
<li class="thumbnail">
{{#if backdrop_path}}
<img src="/img/300x169.gif" alt="" data-echo="http://image.tmdb.org/t/p/w300{{unbound backdrop_path}}" width="300" height="169" class="img-rounded" {{action 'openInfoModal' this}}>
{{else}}
{{#if poster_path}}
<img src="/img/92x138.gif" alt="" width="92" height="138" align="left" class="img-rounded" {{action 'openInfoModal' this}} data-echo="http://image.tmdb.org/t/p/w92{{unbound poster_path}}" />
{{else}}
{{#if poster_url}}
<img src="/img/158x240.gif" alt="" width="158" height="240" align="left" class="img-rounded" {{action 'openInfoModal' this}} data-echo="{{unbound poster_url}}" />
{{else}}
<img src="/img/92x138.gif" alt="" width="92" height="138" align="left" class="img-rounded" {{action 'openInfoModal' this}} />
{{/if}}
{{/if}}
{{/if}}
<div class="caption">
<h4 {{action 'openInfoModal' this}}>{{original_title}}</h4>
{{#if tagline.en}}
<blockquote class="blockquote-reverse"><footer>{{tagline.en}}</footer></blockquote>
{{/if}}
{{#each rating}}
<span class="small">{{provider}} rating: {{vote_average}} ({{vote_count}} votes)</span>
{{/each}}
<p>{{#if imdb_id}}<a href="http://www.imdb.com/title/{{unbound imdb_id}}/" class="btn btn-default btn-xs" role="button">IMDb</a> {{/if}}{{#if tmdb_id}}<a href="http://www.themoviedb.org/movie/{{unbound tmdb_id}}/" class="btn btn-default btn-xs">TMDb</a>{{/if}}</p>
{{#if release_date}}<span class="small">Release Date: {{format-date release_date}}</span>{{/if}}
</div>
</li>
{{/each}}
</ul>
</script>
<script type="text/x-handlebars" data-template-name="comingsoon">
<ul id="container" class="col-lg-12">
{{#each model}}
<li class="thumbnail">
{{#if backdrop_path}}
<img src="/img/300x169.gif" alt="" data-echo="http://image.tmdb.org/t/p/w300{{unbound backdrop_path}}" width="300" height="169" class="img-rounded" {{action 'openInfoModal' this}}>
{{else}}
{{#if poster_path}}
<img src="/img/92x138.gif" alt="" width="92" height="138" align="left" class="img-rounded" {{action 'openInfoModal' this}} data-echo="http://image.tmdb.org/t/p/w92{{unbound poster_path}}" />
{{else}}
{{#if poster_url}}
<img src="/img/158x240.gif" alt="" width="158" height="240" align="left" class="img-rounded" {{action 'openInfoModal' this}} data-echo="{{unbound poster_url}}" />
{{else}}
<img src="/img/92x138.gif" alt="" width="92" height="138" align="left" class="img-rounded" {{action 'openInfoModal' this}} />
{{/if}}
{{/if}}
{{/if}}
<div class="caption">
<h4 {{action 'openInfoModal' this}}>{{original_title}}</h4>
{{#if tagline.en}}
<blockquote class="blockquote-reverse"><footer>{{tagline.en}}</footer></blockquote>
{{/if}}
{{#each rating}}
<span class="small">{{provider}} rating: {{vote_average}} ({{vote_count}} votes)</span>
{{/each}}
<p>{{#if imdb_id}}<a href="http://www.imdb.com/title/{{unbound imdb_id}}/" class="btn btn-default btn-xs" role="button">IMDb</a> {{/if}}{{#if tmdb_id}}<a href="http://www.themoviedb.org/movie/{{unbound tmdb_id}}/" class="btn btn-default btn-xs">TMDb</a>{{/if}}</p>
{{#if release_date}}<span class="small">Release Date: {{format-date release_date}}</span>{{/if}}
</div>
</li>
{{/each}}
</ul>
</script>
<script type="text/x-handlebars" data-template-name="older">
<ul id="container" class="col-lg-12">
10 years ago
{{#each model}}
<li class="thumbnail">
{{#if backdrop_path}}
<img src="/img/300x169.gif" alt="" data-echo="http://image.tmdb.org/t/p/w300{{unbound backdrop_path}}" width="300" height="169" class="img-rounded" {{action 'openInfoModal' this}}>
10 years ago
{{else}}
{{#if poster_path}}
<img src="/img/92x138.gif" alt="" width="92" height="138" align="left" class="img-rounded" {{action 'openInfoModal' this}} data-echo="http://image.tmdb.org/t/p/w92{{unbound poster_path}}" />
10 years ago
{{else}}
{{#if poster_url}}
<img src="/img/158x240.gif" alt="" width="158" height="240" align="left" class="img-rounded" {{action 'openInfoModal' this}} data-echo="{{unbound poster_url}}" />
{{else}}
<img src="/img/92x138.gif" alt="" width="92" height="138" align="left" class="img-rounded" {{action 'openInfoModal' this}} />
{{/if}}
10 years ago
{{/if}}
{{/if}}
<div class="caption">
<h4 {{action 'openInfoModal' this}}>{{original_title}}</h4>
10 years ago
{{#if tagline.en}}
<blockquote class="blockquote-reverse"><footer>{{tagline.en}}</footer></blockquote>
{{/if}}
{{#each rating}}
<span class="small">{{provider}} rating: {{vote_average}} ({{vote_count}} votes)</span>
{{/each}}
<p>{{#if imdb_id}}<a href="http://www.imdb.com/title/{{unbound imdb_id}}/" class="btn btn-default btn-xs" role="button">IMDb</a> {{/if}}{{#if tmdb_id}}<a href="http://www.themoviedb.org/movie/{{unbound tmdb_id}}/" class="btn btn-default btn-xs">TMDb</a>{{/if}}</p>
10 years ago
{{#if release_date}}<span class="small">Release Date: {{format-date release_date}}</span>{{/if}}
10 years ago
</div>
</li>
{{/each}}
</ul>
</script>
<script type="text/x-handlebars" data-template-name="movie">
{{#base-modal close='closeModal'}}
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">{{original_title}}</h4>
</div>
<div class="modal-body">
<ul>
<li><strong>Cast</strong>:
10 years ago
{{#each cast.en}}
{{this}},
{{/each}}
</li>
10 years ago
<li><strong>Director</strong>: {{director.en}}</li>
{{#if tmdb}}
{{#if tmdb.release_date}}<li><strong>Release Date</strong>: {{format-date tmdb.release_date}}</li>{{/if}}
{{#if tmdb.budget}}<li><strong>Budget</strong>: {{tmdb.budget}}</li>{{/if}}
{{#if tmdb.runtime}}<li><strong>Runtime</strong>: {{tmdb.runtime}}</li>{{/if}}
{{/if}}
10 years ago
</ul>
10 years ago
{{#if storyline.en}}<p>{{storyline.en}}</p>{{/if}}
10 years ago
<small class="muted">{{_id}}</small>
</div>
{{/base-modal}}
</script>
<script type="text/x-handlebars" data-template-name="components/base-modal">
<div class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
{{yield}}
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</script>
<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/isotope.pkgd.min.js"></script>
10 years ago
<script src="//showtimes.everyday.in.th/bower_components/moment/moment.js"></script>
<script src="//showtimes.everyday.in.th/js/libs/handlebars-1.1.2.js"></script>
<script src="//showtimes.everyday.in.th/js/libs/ember-1.7.0.min.js"></script>
<script src="js/echo.min.js"></script>
10 years ago
<script src="/js/app.js"></script>
</body>
</html>