$(function(){ if(lang=='zh') $("#apps_table").DataTable({ language: { "sProcessing": "处理中...", "sLengthMenu": "每页 _MENU_ 项", "sZeroRecords": "没有匹配结果", "sInfo": "显示第 _START_ 项至 第 _END_ 项结果,共 _TOTAL_ 项", "sInfoEmpty": "显示第 0 项至 0 项结果,共 0 项", "sInfoFiltered": "(由 _MAX_ 项结果过滤)", "sInfoPostFix": "", "sSearch": "搜索:", "sUrl": "", "sEmptyTable": "表中数据为空", "sLoadingRecords": "载入中...", "sInfoThousands": ",", "oPaginate": { "sFirst": "首页", "sPrevious": "上页", "sNext": "下页", "sLast": "末页" }, "oAria": { "sSortAscending": ": 以升序排列此列", "sSortDescending": ": 以降序排列此列" } } }); else if(lang=='tw') $("#apps_table").DataTable({ language: { "sProcessing": "處理中...", "sLengthMenu": "每頁 _MENU_ 項", "sZeroRecords": "沒有匹配結果", "sInfo": "顯示第 _START_ 項至 第 _END_ 項結果,共 _TOTAL_ 項", "sInfoEmpty": "顯示第 0 項至 0 項結果,共 0 項", "sInfoFiltered": "(由 _MAX_ 項結果過濾)", "sInfoPostFix": "", "sSearch": "搜索:", "sUrl": "", "sEmptyTable": "表中數據為空", "sLoadingRecords": "載入中...", "sInfoThousands": ",", "oPaginate": { "sFirst": "首頁", "sPrevious": "上頁", "sNext": "下頁", "sLast": "末頁" }, "oAria": { "sSortAscending": ": 以升序排列此列", "sSortDescending": ": 以降序排列此列" } } }); else $("#apps_table").DataTable(); }) var pause_share = function(shareid){ $.get('modifyShare',{ 'shareid':shareid, 'method':'0' },function(res){ if(res==1) { window.location.href = window.location.href } }) } var play_share = function(shareid){ $.get('modifyShare',{ 'shareid':shareid, 'method':'1' },function(res){ if(res==1) { window.location.href = window.location.href } }) } var delete_share = function(shareid){ $.get('modifyShare',{ 'shareid':shareid, 'method':'2' },function(res){ if(res==1) { window.location.href = window.location.href } }) } var view_share = function(res){ var link = window.location.href.split('/') link.pop() link.push("observe?sid="+res) link = link.join('/') var resDiv = $("
") resDiv.append($(""+JSLang[lang].aucode+"")) resDiv.append($(""+res+"")) resDiv.append($(""+JSLang[lang].guestURL+"")) resDiv.append($(""+link+"")) var qrCode = $("") resDiv.append(qrCode) var backButton = $('') backButton.click(function(){ d.close() }) resDiv.append(backButton) new QRCode(qrCode[0],{ text: link, width: 100, height: 100, colorDark : "#000000", colorLight : "#ffffff", correctLevel : QRCode.CorrectLevel.M }) var d = dialog({ content: resDiv[0], }); d.showModal(); }