mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-12-22 23:35:34 +00:00
game/list: Address feedback
This commit is contained in:
parent
fd7df582bf
commit
8e449ec43b
|
@ -37,7 +37,6 @@
|
||||||
<td>
|
<td>
|
||||||
<div class="input-group search-box search-container">
|
<div class="input-group search-box search-container">
|
||||||
<input type="text" class="search input is-rounded" id="search-box" placeholder="Search...">
|
<input type="text" class="search input is-rounded" id="search-box" placeholder="Search...">
|
||||||
<!-- <span class="clear-search input-group-addon">X</span> -->
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -71,11 +70,7 @@
|
||||||
<span>{{ $rating.name }}</span>
|
<span>{{ $rating.name }}</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="date-tested" data-timestamp="{{ .Params.testcase_date }}">
|
<td class="date-tested" data-timestamp="{{ .Params.testcase_date }}">
|
||||||
{{ if .Params.testcase_date }}
|
<span>{{ if .Params.testcase_date }}{{ dateFormat "January 2, 2006" .Params.testcase_date }}{{ end }}</span>
|
||||||
<span>{{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
|
|
||||||
{{ else }}
|
|
||||||
<span></span>
|
|
||||||
{{ end }}
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -89,14 +84,16 @@
|
||||||
{{ define "scripts" }}
|
{{ define "scripts" }}
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"
|
||||||
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
|
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/list.js/2.3.1/list.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/list.js/2.3.1/list.min.js"
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js"></script>
|
integrity="sha256-NEVvGNMGqFvs6adGLZjm5sLgcuX9rGTg1wlGtA1f7M8=" crossorigin="anonymous"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js"
|
||||||
|
integrity="sha256-+8RZJua0aEWg+QVVKg4LEzEEm/8RFez5Tb4JBNiV5xA=" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
function getLastSorted(list){
|
function getLastSorted(list){
|
||||||
var currentSorted = $(list.listContainer).find(".asc, .desc").attr("data-sort");
|
var currentSorted = $(list.listContainer).find(".asc, .desc").attr("data-sort");
|
||||||
if ('undefined' !== typeof currentSorted)
|
if (!currentSorted)
|
||||||
list.lastSorted = currentSorted;
|
list.lastSorted = currentSorted;
|
||||||
return list.lastSorted;
|
return list.lastSorted;
|
||||||
}
|
}
|
||||||
|
@ -135,7 +132,7 @@
|
||||||
var $list = $(list.list);
|
var $list = $(list.list);
|
||||||
var $items = $list.children();
|
var $items = $list.children();
|
||||||
$items.removeClass("key");
|
$items.removeClass("key");
|
||||||
if ('title' == getLastSorted(list)){
|
if ('title' === getLastSorted(list)){
|
||||||
$items.each(function(){
|
$items.each(function(){
|
||||||
var key = $(this).attr("data-key")
|
var key = $(this).attr("data-key")
|
||||||
if (
|
if (
|
||||||
|
@ -152,7 +149,7 @@
|
||||||
|
|
||||||
$('#game-listing .clear-search').click(clearSearch);
|
$('#game-listing .clear-search').click(clearSearch);
|
||||||
|
|
||||||
let dataset = [
|
var dataset = [
|
||||||
{{- $dataPages := .Data.Pages }}
|
{{- $dataPages := .Data.Pages }}
|
||||||
{{- range .Site.Data.compatibility }}
|
{{- range .Site.Data.compatibility }}
|
||||||
{{- $dataPagesFiltered := where $dataPages ".Params.compatibility" .key }}
|
{{- $dataPagesFiltered := where $dataPages ".Params.compatibility" .key }}
|
||||||
|
@ -180,7 +177,7 @@
|
||||||
},
|
},
|
||||||
indexAxis: 'y',
|
indexAxis: 'y',
|
||||||
onClick: (e) => {
|
onClick: (e) => {
|
||||||
const points = chart.getElementsAtEventForMode(e, 'nearest', {
|
var points = chart.getElementsAtEventForMode(e, 'nearest', {
|
||||||
intersect: true
|
intersect: true
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue