2017-06-03 22:00:44 +00:00
|
|
|
{{ define "main" }}
|
2017-06-03 23:19:19 +00:00
|
|
|
<h1>Game Compatibility List</h1>
|
|
|
|
<p>The Citra Emulator compatibility list contains all the games we tested, sorted by how well they work on the emulator.</p>
|
2017-06-04 18:06:33 +00:00
|
|
|
<table class="table table-striped table-bordered">
|
2017-06-03 23:19:19 +00:00
|
|
|
<tbody>
|
2017-06-04 18:12:44 +00:00
|
|
|
{{ range .Site.Data.compatibility }}
|
|
|
|
<tr>
|
2017-06-04 23:54:35 +00:00
|
|
|
<td style="width: 128px;"><div class="square-icon" style="background-color: {{ .color }}"></div> {{ .name }}</td>
|
2017-06-04 18:12:44 +00:00
|
|
|
<td>{{ .description }}</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
2017-06-03 23:19:19 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-06-04 17:57:52 +00:00
|
|
|
|
2017-06-05 21:34:27 +00:00
|
|
|
<div id="highchart-container" style="height: 100px; margin: 0 auto"></div>
|
|
|
|
|
2017-06-05 20:25:37 +00:00
|
|
|
<table class="table table-responsive">
|
2017-06-04 18:12:44 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Compatibility</th>
|
|
|
|
<th>Date Tested</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2017-06-05 20:25:37 +00:00
|
|
|
{{ range .Data.Pages }}
|
2017-06-04 18:12:44 +00:00
|
|
|
{{ $rating := index .Site.Data.compatibility ( string .Params.compatibility | default "0" ) }}
|
2017-06-03 22:00:44 +00:00
|
|
|
<tr>
|
2017-06-05 20:25:37 +00:00
|
|
|
<td style="width: 55px;"><img class="img-responsive game-icon-list" src="{{ .Site.BaseURL }}images/game/icons/{{ default (print .File.BaseFileName ".png") }}" /></td>
|
2017-06-04 18:12:44 +00:00
|
|
|
<td><a href="{{ .Permalink }}">{{ .Params.title }}</a></td>
|
2017-06-05 21:34:27 +00:00
|
|
|
<td class="compatibility-row"><div class="square-icon compatibility-{{ replace ($rating.name | urlize) "/" "" }}" style="background-color: {{ $rating.color }}"></div> {{ $rating.name }}</td>
|
2017-06-04 18:12:44 +00:00
|
|
|
<td>{{ dateFormat "January 2, 2006" .Params.tested_date }}</td>
|
2017-06-03 22:00:44 +00:00
|
|
|
</tr>
|
2017-06-04 18:12:44 +00:00
|
|
|
{{ end }}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-06-03 22:00:44 +00:00
|
|
|
{{ end }}
|
2017-06-05 21:34:27 +00:00
|
|
|
|
|
|
|
{{ define "scripts" }}
|
|
|
|
<script src="https://code.highcharts.com/highcharts.js"></script>
|
|
|
|
<script src="https://code.highcharts.com/modules/exporting.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
Highcharts.chart('highchart-container', {
|
|
|
|
chart: { type: 'bar' },
|
|
|
|
colors: [{{ range .Site.Data.compatibility }}"{{ .color }}", {{- end }}],
|
|
|
|
credits: { enabled: false },
|
|
|
|
exporting: { enabled: false },
|
|
|
|
title: { text: '' },
|
|
|
|
xAxis: { categories: [''] },
|
|
|
|
yAxis: { min: 0, max: $(".compatibility-row").length, title: { text: '' } },
|
|
|
|
legend: { enabled: false },
|
|
|
|
plotOptions: { series: { stacking: 'normal' } },
|
|
|
|
series: [
|
|
|
|
{{ range .Site.Data.compatibility }}
|
|
|
|
{ "name": "{{ .name }}", "data": [$(".compatibility-{{ replace (.name | urlize) "/" "" }}").length] },
|
|
|
|
{{ end }}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{{ end }}
|