hexo-mrzefr-filebed
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -27,3 +27,3 @@ (async function () { | ||
#pio-container .pio-dialog { | ||
right: 10%; | ||
right: 20%; | ||
line-height: 1.5; | ||
@@ -45,3 +45,3 @@ background: rgba(255, 255, 255, 0.9); | ||
width: 2em; | ||
height: 2em; | ||
height: 4em; | ||
margin-bottom: 0.6em; | ||
@@ -412,2 +412,4 @@ } | ||
})(); | ||
//提示log | ||
console.log(' %c Live2d开启成功! ', 'color: #fff; background: rgb(224, 108, 30); padding:5px;') | ||
@@ -88,3 +88,2 @@ let mr = {}; //初始化函数 | ||
$('#menu-mirror').on('click',function(){mr.Mirror();}); | ||
$('#menu-theme').on('click',function(){mr.switchTheme();}); | ||
//copyurl | ||
@@ -236,3 +235,3 @@ mr.copyUrl = function(id) { | ||
window.location.href = '#post-comment'; | ||
$("#twikoo>.tk-comments>.tk-submit textarea.el-textarea__inner").val("> "+document.getSelection().toString()+"\n\n").focus().change(); | ||
$("#twikoo>.tk-comments>.tk-submit textarea.el-textarea__inner").val(document.getSelection().toString()+"\n\n").focus().change(); | ||
} | ||
@@ -264,20 +263,2 @@ else{ | ||
} | ||
// 切换主题 | ||
mr.switchTheme=function(load=false){ | ||
let themes = ['mrzefr.css','Switch-Theme.css']; | ||
let vTheme = parseInt(localStorage.getItem('visitor-theme-mrzefr')); | ||
if(!vTheme){ | ||
vTheme = load?0:1; | ||
}else{ | ||
vTheme+=load?0:1; | ||
vTheme%=themes.length; | ||
} | ||
localStorage.setItem('visitor-theme-mrzefr',vTheme) | ||
let themesrc = '' | ||
if(themes[vTheme]){ | ||
themesrc += window.location.origin+'/css/mrzefr/'+themes[vTheme]; | ||
} | ||
$(document).find('[tag="theme"]')[0].href = themesrc; | ||
} | ||
window.addEventListener('load',function(){mr.switchTheme(true);}); | ||
//关闭右键菜单 | ||
@@ -284,0 +265,0 @@ function mrmenuOff(){ |
{ | ||
"name": "hexo-mrzefr-filebed", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Hello World", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
275032
1191