メニューを切り替える
Toggle preferences menu
個人設定を切り替える
ログインしていません
編集を行うと、IPアドレスが公開されます。

「モジュール:Tracklist」の版間の差分

提供: MONACA Wiki
ページの作成:「local p = {} --共通変数 local track = {} --トラックテーブル格納用テーブル local all = {} --全○○格納用テーブル local desc = {nil, nil} --コメント格納用テーブル local credits = {} --クレジット表示可否格納用テーブル local args = {} --その他引数格納用テーブル local col = 0 --列数 local width = {} --列幅格納用テーブル local collapsed = false --折りたたみ可否 local writer, lyrics, mus…」
 
編集の要約なし
167行目: 167行目:
--見出し行追加(#列・タイトル列追加)
--見出し行追加(#列・タイトル列追加)
result = result .. '<tr style="text-align:left; background-color:#eee; font-size:111%;"><th scope="col" style="width:2em; padding-right:0.3em; text-align:right; white-space:nowrap;">#</th><th scope="col" style="width:' .. width.title .. '; padding-left:0.9em; white-space:nowrap;">タイトル</th>'
result = result .. '<tr style="text-align:left; font-size:111%;"><th scope="col" style="width:2em; padding-right:0.3em; text-align:right; white-space:nowrap;">#</th><th scope="col" style="width:' .. width.title .. '; padding-left:0.9em; white-space:nowrap;">タイトル</th>'
if credits.writing then
if credits.writing then
280行目: 280行目:
total = '<time datetime="PT' .. min .. 'M' .. sec .. 'S">'.. min .. ':' .. sec .. '</time>'
total = '<time datetime="PT' .. min .. 'M' .. sec .. 'S">'.. min .. ':' .. sec .. '</time>'
--合計時間行追加
--合計時間行追加
return '<tr style="text-align:right; font-size:111%;"><th colspan="' .. (col - 1) .. '"><div style="width:7.5em; text-align:left; margin:0 0 0 auto; padding-left:0.5em; white-space:nowrap; font-weight:bold; background-color:#eee; outline:1px solid #eee;">合計時間:</div></th><td style="padding-right:0.5em; background-color:#eee;">'.. total .. '</td></tr>'
return '<tr style="text-align:right; font-size:111%;"><th colspan="' .. (col - 1) .. '"><div style="width:7.5em; text-align:left; margin:0 0 0 auto; padding-left:0.5em; white-space:nowrap; font-weight:bold; outline:1px solid #eee;">合計時間:</div></th><td style="padding-right:0.5em;">'.. total .. '</td></tr>'
else
else
return ''
return ''