更新xlsx预览样式
parent
693b13e818
commit
e39e8bd907
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,12 +1,12 @@
|
|||
|
||||
// Features specially written for demo
|
||||
|
||||
(function() {
|
||||
(function () {
|
||||
|
||||
// language
|
||||
function language(params) {
|
||||
|
||||
var lang = navigator.language||navigator.userLanguage;//常规浏览器语言和IE浏览器
|
||||
|
||||
var lang = navigator.language || navigator.userLanguage;//常规浏览器语言和IE浏览器
|
||||
lang = lang.substr(0, 2);//截取lang前2位字符
|
||||
|
||||
return lang;
|
||||
|
@ -17,9 +17,9 @@
|
|||
const text = language() === 'zh' ? '反馈' : 'Forum';
|
||||
const link = language() === 'zh' ? 'https://support.qq.com/product/288322' : 'https://groups.google.com/g/luckysheet';
|
||||
|
||||
document.querySelector("body").insertAdjacentHTML('beforeend', '<a id="container" href="'+ link +'" target="_blank" style="z-index:2;width:50px;height:50px;line-height:50px;position:fixed;right:40px;bottom:86px;border-radius:50px;cursor:pointer;background:rgb(71,133,249);color:#fff;text-align:center;text-decoration:none;">'+ text +'</a>');
|
||||
document.querySelector("body").insertAdjacentHTML('beforeend', '<a id="container" href="' + link + '" target="_blank" style="z-index:2;width:50px;height:50px;line-height:50px;position:fixed;right:40px;bottom:86px;border-radius:50px;cursor:pointer;background:rgb(71,133,249);color:#fff;text-align:center;text-decoration:none;font-size: 12px;">' + text + '</a>');
|
||||
}
|
||||
|
||||
|
||||
supportButton()
|
||||
|
||||
/**
|
||||
|
@ -27,16 +27,16 @@
|
|||
*/
|
||||
function getRequest() {
|
||||
var vars = {};
|
||||
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,
|
||||
function(m,key,value) {
|
||||
vars[key] = value;
|
||||
});
|
||||
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,
|
||||
function (m, key, value) {
|
||||
vars[key] = value;
|
||||
});
|
||||
return vars;
|
||||
}
|
||||
|
||||
window.luckysheetDemoUtil = {
|
||||
language:language,
|
||||
getRequest:getRequest
|
||||
language: language,
|
||||
getRequest: getRequest
|
||||
}
|
||||
|
||||
|
||||
})()
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue