MediaWiki:Common.js: Difference between revisions
From Thương mại - Thuong mai
Wikibadboy (talk | contribs) (Created page with "→SORTABLE: $(document).ready(function() { var mytable = new ttable('ttable'); // Styling Parameters mytable.style.table = 'table-default'; mytable.style.tablehead = 'head-default'; mytable.style.tablebody = 'body-default'; mytable.style.tablecaption = 'caption-default'; // Hovering Parameters mytable.style.headhover = true; mytable.style.tablehead_hover = 'hoverhead-default'; mytable.style.tableheadtd_hover = 'hoverheadtd-default'; mytable.style.bodyhover = true; my...") |
Wikibadboy (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
/* SORTABLE */ | /* SORTABLE */ | ||
$(document).ready(function() { | $(document).ready(function() { | ||
var mytable = new ttable('ttable'); | var mytable = new ttable('ttable'); | ||
mytable.style.table = 'table-default'; | |||
mytable.style.table = 'table-default'; | mytable.style.tablehead = 'head-default'; | ||
mytable.style.tablehead = 'head-default'; | mytable.style.tablebody = 'body-default'; | ||
mytable.style.tablebody = 'body-default'; | mytable.style.tablecaption = 'caption-default'; | ||
mytable.style.tablecaption = 'caption-default'; | mytable.style.headhover = true; | ||
mytable.style.tablehead_hover = 'hoverhead-default'; | |||
mytable.style.headhover = true; | mytable.style.tableheadtd_hover = 'hoverheadtd-default'; | ||
mytable.style.tablehead_hover = 'hoverhead-default'; | mytable.style.bodyhover = true; | ||
mytable.style.tableheadtd_hover = 'hoverheadtd-default'; | mytable.style.tablebody_hover = 'hoverbody-default'; | ||
mytable.style.bodyhover = true; | mytable.style.stripped = true; | ||
mytable.style.tablebody_hover = 'hoverbody-default'; | mytable.style.odd_row = 'odd-default'; | ||
mytable.style.num = true; | |||
mytable. | mytable.style.num_class = 'num-default'; | ||
mytable. | |||
mytable. | mytable.highlight.enabled = true; | ||
mytable. | mytable.highlight.style = 'highlight-default'; | ||
mytable.highlight.onclick = true; | |||
mytable. | mytable.highlight.onclick_style = 'clicklight-default'; | ||
mytable.style | |||
mytable.sorting.enabled = false; | |||
mytable. | mytable.sorting.sortall = false; | ||
mytable. | mytable.sorting.resetnum = false; | ||
mytable.sorting.sortedstyle = 'sorted-default'; | |||
mytable.sorting.enabled = false; | mytable.sorting.clickablestyle = 'clickable-default'; | ||
mytable.sorting.sortall = false; | mytable.sorting.sortascstyle = 'sortasc-default'; | ||
mytable.sorting.resetnum = false; | mytable.sorting.sortdescstyle = 'sortdesc-default'; | ||
mytable.sorting.sortedstyle = 'sorted-default'; | |||
mytable.sorting.clickablestyle = 'clickable-default'; | mytable.pagination.enabled = true; | ||
mytable.sorting.sortascstyle = 'sortasc-default'; | mytable.pagination.rowperpage=5; | ||
mytable.sorting.sortdescstyle = 'sortdesc-default'; | mytable.edit.enabled = true; | ||
var mytable1 = new ttable('ttable1'); | |||
mytable.pagination.enabled = true; | mytable1.rendertable(); | ||
mytable.pagination.rowperpage=5; | mytable.rendertable(); | ||
mytable.edit.enabled = true; | mytable.search.enabled = true; | ||
mytable.search.inputID = 'filter'; | |||
mytable.search.casesensitive = false; | |||
$('#exporttable').click(function() {alert($('#ttable4').tocsv(','));}); | |||
var mytable1 = new ttable('ttable1'); | |||
mytable1.rendertable(); | |||
$('#exporttable').click(function() { | |||
alert($('#ttable4').tocsv(',')); | |||
} | |||
}); | }); |
Revision as of 11:38, 30 January 2024
/* SORTABLE */ $(document).ready(function() { var mytable = new ttable('ttable'); mytable.style.table = 'table-default'; mytable.style.tablehead = 'head-default'; mytable.style.tablebody = 'body-default'; mytable.style.tablecaption = 'caption-default'; mytable.style.headhover = true; mytable.style.tablehead_hover = 'hoverhead-default'; mytable.style.tableheadtd_hover = 'hoverheadtd-default'; mytable.style.bodyhover = true; mytable.style.tablebody_hover = 'hoverbody-default'; mytable.style.stripped = true; mytable.style.odd_row = 'odd-default'; mytable.style.num = true; mytable.style.num_class = 'num-default'; mytable.highlight.enabled = true; mytable.highlight.style = 'highlight-default'; mytable.highlight.onclick = true; mytable.highlight.onclick_style = 'clicklight-default'; mytable.sorting.enabled = false; mytable.sorting.sortall = false; mytable.sorting.resetnum = false; mytable.sorting.sortedstyle = 'sorted-default'; mytable.sorting.clickablestyle = 'clickable-default'; mytable.sorting.sortascstyle = 'sortasc-default'; mytable.sorting.sortdescstyle = 'sortdesc-default'; mytable.pagination.enabled = true; mytable.pagination.rowperpage=5; mytable.edit.enabled = true; var mytable1 = new ttable('ttable1'); mytable1.rendertable(); mytable.rendertable(); mytable.search.enabled = true; mytable.search.inputID = 'filter'; mytable.search.casesensitive = false; $('#exporttable').click(function() {alert($('#ttable4').tocsv(','));}); });