:HTML/embed_music_list_rev_sunrise
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
<link rel="stylesheet" type="text/css" media="screen" hr...
<style type="text/css">
tbody tr th {
padding: 0 5px;
}
tbody tr td.number {
text-align: center;
}
tbody tr td.mark {
text-align: center;
}
tbody tr td.text {
text-align: left;
}
</style>
<script type="text/javascript" src="https://marines.saku...
<script type="text/javascript" src="https://marines.saku...
<script type="text/javascript">
var musics;
var table;
var level_min = 0;
var level_max = 99;
var level_delta = 10;
var notes_min = 0;
var notes_max = 999;
var notes_delta = 100;
$(document).ready(function() {
musics = [{"text_id":"adverseeffect","number":0,"tit...
table = $('#table_musics');
select_level = $('#select_level');
select_level.append($('<option/>', {
value: -1, text: 'すべて'
}));
for (var i = level_min; i < level_max; i += level_de...
select_level.append($('<option/>', {
value: i, text: i + '~' + (i + level_delta - 1)
}));
}
select_notes = $('#select_notes');
select_notes.append($('<option/>', {
value: -1, text: 'すべて'
}));
for (var i = notes_min; i < notes_max; i += notes_de...
select_notes.append($('<option/>', {
value: i, text: i + '~' + (i + notes_delta - 1)
}));
}
createMusicTable();
filterMusicTable();
});
function createMusicTable() {
var table_data = {};
table_data.thead_column_classes = [
'style_th', 'style_th', 'style_th', 'style_th', 's...
];
table_data.tbody_column_classes = [
'style_th', 'text', 'mark', 'number', 'number'
];
table_data.thead = [];
table_data.tbody = [];
table_data.thead[0] = {
values: ['#', 'タイトル', '難易度', 'レベル', 'ノ...
};
$.each(musics, function(i, music) {
if (!music.deleted) {
if (music.esy.level) {
table_data.tbody[table_data.tbody.length] = {
id: music.text_id + '_esy',
class_name: 'chart_esy',
values: [
'-', music.full_title, 'ESY',
parseInt(music.esy.level), music.esy.notes
]
};
}
if (music.std.level) {
table_data.tbody[table_data.tbody.length] = {
id: music.text_id + '_std',
class_name: 'chart_std',
values: [
'-', music.full_title, 'STD',
parseInt(music.std.level), music.std.notes
]
};
}
if (music.hrd.level) {
table_data.tbody[table_data.tbody.length] = {
id: music.text_id + '_hrd',
class_name: 'chart_hrd',
values: [
'-', music.full_title, 'HRD',
parseInt(music.hrd.level), music.hrd.notes
]
};
}
if (music.mas.level) {
table_data.tbody[table_data.tbody.length] = {
id: music.text_id + '_mas',
class_name: 'chart_mas',
values: [
'-', music.full_title, 'MAS',
parseInt(music.mas.level), music.mas.notes
]
};
}
if (music.unl.level) {
table_data.tbody[table_data.tbody.length] = {
id: music.text_id + '_unl',
class_name: 'chart_unl',
values: [
'-', music.full_title, 'UNL',
parseInt(music.unl.level), music.unl.notes
]
};
}
}
});
table.json2table(table_data);
table.tablesorter({sortList: [[3, 1]]});
}
function filterMusicTable() {
diff = parseInt($(':radio[name="diff"]:checked').val...
level = parseInt($('select[name="level"]').val());
notes = parseInt($('select[name="notes"]').val());
$.each(musics, function (i, music) {
if ((diff == 0) || (diff == 1)) {
$('#' + music.text_id + '_esy').show();
} else {
$('#' + music.text_id + '_esy').hide();
}
if ((diff == 0) || (diff == 2)) {
$('#' + music.text_id + '_std').show();
} else {
$('#' + music.text_id + '_std').hide();
}
if ((diff == 0) || (diff == 3)) {
$('#' + music.text_id + '_hrd').show();
} else {
$('#' + music.text_id + '_hrd').hide();
}
if ((diff == 0) || (diff == 4)) {
$('#' + music.text_id + '_mas').show();
} else {
$('#' + music.text_id + '_mas').hide();
}
if ((diff == 0) || (diff == 5)) {
$('#' + music.text_id + '_unl').show();
} else {
$('#' + music.text_id + '_unl').hide();
}
if (level != -1) {
if ((music.esy.level < level) || (music.esy.leve...
$('#' + music.text_id + '_esy').hide();
}
if ((music.std.level < level) || (music.std.leve...
$('#' + music.text_id + '_std').hide();
}
if ((music.hrd.level < level) || (music.hrd.leve...
$('#' + music.text_id + '_hrd').hide();
}
if ((music.mas.level < level) || (music.mas.leve...
$('#' + music.text_id + '_mas').hide();
}
if (music.unl.level && ((music.unl.level < level...
$('#' + music.text_id + '_unl').hide();
}
}
if (notes != -1) {
if ((music.esy.notes < notes) || (music.esy.note...
$('#' + music.text_id + '_esy').hide();
}
if ((music.std.notes < notes) || (music.std.note...
$('#' + music.text_id + '_std').hide();
}
if ((music.hrd.notes < notes) || (music.hrd.note...
$('#' + music.text_id + '_hrd').hide();
}
if ((music.mas.notes < notes) || (music.mas.note...
$('#' + music.text_id + '_mas').hide();
}
if (music.unl.notes && ((music.unl.notes < notes...
$('#' + music.text_id + '_unl').hide();
}
}
});
}
</script>
<p>
難易度フィルター:
<label><input type="radio" name="diff" value="0" oncha...
<label><input type="radio" name="diff" value="1" oncha...
<label><input type="radio" name="diff" value="2" oncha...
<label><input type="radio" name="diff" value="3" oncha...
<label><input type="radio" name="diff" value="4" oncha...
<label><input type="radio" name="diff" value="5" oncha...
</p>
<p>
レベルフィルター: <select id="select_level" name="leve...
/
ノート数フィルター: <select id="select_notes" name="no...
</p>
<table id="table_musics" class="tablesorter style_table"...
終了行:
<link rel="stylesheet" type="text/css" media="screen" hr...
<style type="text/css">
tbody tr th {
padding: 0 5px;
}
tbody tr td.number {
text-align: center;
}
tbody tr td.mark {
text-align: center;
}
tbody tr td.text {
text-align: left;
}
</style>
<script type="text/javascript" src="https://marines.saku...
<script type="text/javascript" src="https://marines.saku...
<script type="text/javascript">
var musics;
var table;
var level_min = 0;
var level_max = 99;
var level_delta = 10;
var notes_min = 0;
var notes_max = 999;
var notes_delta = 100;
$(document).ready(function() {
musics = [{"text_id":"adverseeffect","number":0,"tit...
table = $('#table_musics');
select_level = $('#select_level');
select_level.append($('<option/>', {
value: -1, text: 'すべて'
}));
for (var i = level_min; i < level_max; i += level_de...
select_level.append($('<option/>', {
value: i, text: i + '~' + (i + level_delta - 1)
}));
}
select_notes = $('#select_notes');
select_notes.append($('<option/>', {
value: -1, text: 'すべて'
}));
for (var i = notes_min; i < notes_max; i += notes_de...
select_notes.append($('<option/>', {
value: i, text: i + '~' + (i + notes_delta - 1)
}));
}
createMusicTable();
filterMusicTable();
});
function createMusicTable() {
var table_data = {};
table_data.thead_column_classes = [
'style_th', 'style_th', 'style_th', 'style_th', 's...
];
table_data.tbody_column_classes = [
'style_th', 'text', 'mark', 'number', 'number'
];
table_data.thead = [];
table_data.tbody = [];
table_data.thead[0] = {
values: ['#', 'タイトル', '難易度', 'レベル', 'ノ...
};
$.each(musics, function(i, music) {
if (!music.deleted) {
if (music.esy.level) {
table_data.tbody[table_data.tbody.length] = {
id: music.text_id + '_esy',
class_name: 'chart_esy',
values: [
'-', music.full_title, 'ESY',
parseInt(music.esy.level), music.esy.notes
]
};
}
if (music.std.level) {
table_data.tbody[table_data.tbody.length] = {
id: music.text_id + '_std',
class_name: 'chart_std',
values: [
'-', music.full_title, 'STD',
parseInt(music.std.level), music.std.notes
]
};
}
if (music.hrd.level) {
table_data.tbody[table_data.tbody.length] = {
id: music.text_id + '_hrd',
class_name: 'chart_hrd',
values: [
'-', music.full_title, 'HRD',
parseInt(music.hrd.level), music.hrd.notes
]
};
}
if (music.mas.level) {
table_data.tbody[table_data.tbody.length] = {
id: music.text_id + '_mas',
class_name: 'chart_mas',
values: [
'-', music.full_title, 'MAS',
parseInt(music.mas.level), music.mas.notes
]
};
}
if (music.unl.level) {
table_data.tbody[table_data.tbody.length] = {
id: music.text_id + '_unl',
class_name: 'chart_unl',
values: [
'-', music.full_title, 'UNL',
parseInt(music.unl.level), music.unl.notes
]
};
}
}
});
table.json2table(table_data);
table.tablesorter({sortList: [[3, 1]]});
}
function filterMusicTable() {
diff = parseInt($(':radio[name="diff"]:checked').val...
level = parseInt($('select[name="level"]').val());
notes = parseInt($('select[name="notes"]').val());
$.each(musics, function (i, music) {
if ((diff == 0) || (diff == 1)) {
$('#' + music.text_id + '_esy').show();
} else {
$('#' + music.text_id + '_esy').hide();
}
if ((diff == 0) || (diff == 2)) {
$('#' + music.text_id + '_std').show();
} else {
$('#' + music.text_id + '_std').hide();
}
if ((diff == 0) || (diff == 3)) {
$('#' + music.text_id + '_hrd').show();
} else {
$('#' + music.text_id + '_hrd').hide();
}
if ((diff == 0) || (diff == 4)) {
$('#' + music.text_id + '_mas').show();
} else {
$('#' + music.text_id + '_mas').hide();
}
if ((diff == 0) || (diff == 5)) {
$('#' + music.text_id + '_unl').show();
} else {
$('#' + music.text_id + '_unl').hide();
}
if (level != -1) {
if ((music.esy.level < level) || (music.esy.leve...
$('#' + music.text_id + '_esy').hide();
}
if ((music.std.level < level) || (music.std.leve...
$('#' + music.text_id + '_std').hide();
}
if ((music.hrd.level < level) || (music.hrd.leve...
$('#' + music.text_id + '_hrd').hide();
}
if ((music.mas.level < level) || (music.mas.leve...
$('#' + music.text_id + '_mas').hide();
}
if (music.unl.level && ((music.unl.level < level...
$('#' + music.text_id + '_unl').hide();
}
}
if (notes != -1) {
if ((music.esy.notes < notes) || (music.esy.note...
$('#' + music.text_id + '_esy').hide();
}
if ((music.std.notes < notes) || (music.std.note...
$('#' + music.text_id + '_std').hide();
}
if ((music.hrd.notes < notes) || (music.hrd.note...
$('#' + music.text_id + '_hrd').hide();
}
if ((music.mas.notes < notes) || (music.mas.note...
$('#' + music.text_id + '_mas').hide();
}
if (music.unl.notes && ((music.unl.notes < notes...
$('#' + music.text_id + '_unl').hide();
}
}
});
}
</script>
<p>
難易度フィルター:
<label><input type="radio" name="diff" value="0" oncha...
<label><input type="radio" name="diff" value="1" oncha...
<label><input type="radio" name="diff" value="2" oncha...
<label><input type="radio" name="diff" value="3" oncha...
<label><input type="radio" name="diff" value="4" oncha...
<label><input type="radio" name="diff" value="5" oncha...
</p>
<p>
レベルフィルター: <select id="select_level" name="leve...
/
ノート数フィルター: <select id="select_notes" name="no...
</p>
<table id="table_musics" class="tablesorter style_table"...
ページ名: