parent
c3db014055
commit
9107169acc
|
@ -25,7 +25,7 @@
|
||||||
<td>
|
<td>
|
||||||
<div class="input-group search-box">
|
<div class="input-group search-box">
|
||||||
<input type="text" class="form-control search" id="search-box" placeholder="Search...">
|
<input type="text" class="form-control search" id="search-box" placeholder="Search...">
|
||||||
<span onclick="clearSearch()" class="clear-search input-group-addon">X</span>
|
<span class="clear-search input-group-addon">X</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -88,27 +88,27 @@
|
||||||
<script src="https://code.highcharts.com/modules/exporting.js"></script>
|
<script src="https://code.highcharts.com/modules/exporting.js"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
$(function() {
|
$(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 = {
|
var options = {
|
||||||
valueNames: [
|
valueNames: [
|
||||||
'listing-metadata',
|
'listing-metadata',
|
||||||
|
@ -146,6 +146,8 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#game-listing .clear-search').click(clearSearch);
|
||||||
|
|
||||||
Highcharts.chart('highchart-container', {
|
Highcharts.chart('highchart-container', {
|
||||||
chart: { type: 'bar' },
|
chart: { type: 'bar' },
|
||||||
colors: [{{ range .Site.Data.compatibility }}"{{ .color }}", {{- end }}],
|
colors: [{{ range .Site.Data.compatibility }}"{{ .color }}", {{- end }}],
|
||||||
|
|
Reference in New Issue