2018-04-26 04:55:34 +02:00
|
|
|
{{ define "header" }}
|
|
|
|
<div class="container">
|
|
|
|
<div class="section pb-xs">
|
|
|
|
<h1 class="title">Game Compatibility List</h1>
|
|
|
|
<p class="content">
|
2018-10-17 02:33:45 +02:00
|
|
|
The compatibility list contains all the games we tested, sorted by how well they work on the emulator.
|
2018-04-26 04:55:34 +02:00
|
|
|
</p>
|
|
|
|
<table class="table is-fullwidth">
|
|
|
|
<tbody>
|
2018-10-17 02:33:45 +02:00
|
|
|
{{ range .Site.Data.compatibility }}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="is-square" style="background-color: {{ .color }}"></div> {{ .name }}
|
|
|
|
</td>
|
|
|
|
<td>{{ .description }}</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
2018-04-26 04:55:34 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2018-11-10 07:03:59 +01:00
|
|
|
<!-- <div id="highchart-container" style="height: 100px; margin: 0 auto"></div> -->
|
2018-04-26 04:55:34 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
2022-10-20 01:16:05 +02:00
|
|
|
<div id="game-listing">
|
|
|
|
<div class="container1">
|
|
|
|
<div class="div1">
|
|
|
|
<ul class="pagination paginationTop is-pulled-left"></ul>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<form>
|
|
|
|
<div class="form-group">
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="input-group search-box div2">
|
|
|
|
<input type="text" class="search input is-rounded" id="search-box" placeholder="Search...">
|
|
|
|
<!-- <span class="clear-search input-group-addon">X</span> -->
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="section pt-xs">
|
|
|
|
<table id="compatibility-list" class="table table-responsive is-fullwidth">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th class="sort" data-sort="title">Game Title</th>
|
|
|
|
<th class="sort" data-sort="compatibility">Compatibility</th>
|
|
|
|
<th class="sort" data-sort="date-tested">Date Tested</th>
|
2018-04-26 04:55:34 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2022-10-20 01:16:05 +02:00
|
|
|
<tbody class="list is-size-6">
|
2018-10-17 02:33:45 +02:00
|
|
|
{{ range .Pages }}
|
|
|
|
{{ $rating := index .Site.Data.compatibility .Params.compatibility }}
|
|
|
|
<tr data-key="{{ .Params.section_id }}">
|
2022-10-20 01:16:05 +02:00
|
|
|
<td class="hidden listing-metadata">
|
|
|
|
<span hidden>{{ .Params.title }} {{ $rating.name }}</span>
|
|
|
|
</td>
|
2019-03-03 23:22:47 +01:00
|
|
|
<td data-title="{{ .Params.title }}">
|
2018-10-17 02:33:45 +02:00
|
|
|
<a href="{{ .Permalink }}">{{ .Params.title }}</a>
|
|
|
|
</td>
|
|
|
|
<td data-compatibility="{{ $rating.key }}">
|
|
|
|
<div class="is-square" style="background-color: {{ $rating.color }}"></div> <span>{{ $rating.name }}</span>
|
|
|
|
</td>
|
|
|
|
<td data-timestamp="{{ .Params.testcase_date }}">
|
2019-03-03 23:22:47 +01:00
|
|
|
{{ if .Params.testcase_date }}
|
|
|
|
<span>{{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
|
|
|
|
{{ else }}
|
|
|
|
<span></span>
|
|
|
|
{{ end }}
|
2018-10-17 02:33:45 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
2018-04-26 04:55:34 +02:00
|
|
|
</tbody>
|
2018-10-17 02:33:45 +02:00
|
|
|
</table>
|
2022-10-20 01:16:05 +02:00
|
|
|
<ul class="pagination paginationBottom is-pulled-left"></ul>
|
|
|
|
</div>
|
2018-04-26 04:55:34 +02:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "scripts" }}
|
2022-10-20 01:16:05 +02:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"
|
|
|
|
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/list.js/2.3.1/list.min.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
|
|
|
function getLastSorted(list){
|
|
|
|
var currentSorted = $(list.listContainer).find(".asc, .desc").attr("data-sort");
|
|
|
|
if ('undefined' !== typeof currentSorted)
|
|
|
|
list.lastSorted = currentSorted;
|
|
|
|
return list.lastSorted;
|
|
|
|
}
|
|
|
|
|
|
|
|
function filterTable(_) {
|
|
|
|
var rating = this.name;
|
|
|
|
var index = this.index;
|
|
|
|
|
|
|
|
$("#search-box").val(rating);
|
|
|
|
list.search(index, ['compatibility']);
|
|
|
|
}
|
|
|
|
|
|
|
|
function clearSearch() {
|
|
|
|
$("#search-box").val("");
|
|
|
|
list.search();
|
|
|
|
}
|
|
|
|
|
|
|
|
var options = {
|
|
|
|
valueNames: [
|
|
|
|
'listing-metadata',
|
|
|
|
{ name: 'title', attr: 'data-title' },
|
|
|
|
{ name: 'compatibility', attr: 'data-compatibility' },
|
|
|
|
{ name: 'date-tested', attr: 'data-timestamp' }
|
|
|
|
],
|
|
|
|
searchColumns: [ 'listing-metadata' ],
|
|
|
|
pagination: [
|
|
|
|
{ paginationClass: "paginationTop" },
|
|
|
|
{ paginationClass: "paginationBottom" }
|
|
|
|
],
|
|
|
|
indexAsync: true,
|
|
|
|
page: 30
|
|
|
|
};
|
|
|
|
|
|
|
|
var list = new List('game-listing', options);
|
|
|
|
|
|
|
|
list.sort("title", {order: "asc"});
|
|
|
|
|
|
|
|
list.on("updated", function(list){
|
|
|
|
var $list = $(list.list);
|
|
|
|
var $items = $list.children();
|
|
|
|
$items.removeClass("key");
|
|
|
|
if ('title' == getLastSorted(list)){
|
|
|
|
$items.each(function(){
|
|
|
|
var key = $(this).attr("data-key")
|
|
|
|
if (
|
|
|
|
$list
|
|
|
|
.children("[data-key='" + key + "']")
|
|
|
|
.first()
|
|
|
|
.is( $(this) )
|
|
|
|
){
|
|
|
|
$(this).addClass("key");
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#game-listing .clear-search').click(clearSearch);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2018-10-17 02:33:45 +02:00
|
|
|
{{ end }}
|