diff --git a/settings.yaml b/settings.yaml index b8cd81c..a41bef3 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1425,6 +1425,8 @@ enhance: label: 烟花特效 - value: granule label: 粒子爆炸 + - value: prosperous + label: 富强民主 enable_sw: name: enable_sw label: "启用 Service Worker 优化" diff --git a/source/css/cursor.min.css b/source/css/cursor.min.css new file mode 100644 index 0000000..5b6d3b6 --- /dev/null +++ b/source/css/cursor.min.css @@ -0,0 +1 @@ +body{cursor:var(--cursor-default)}.actions>div,.expand-done,.main-content figure>figcaption div,.navbar-above .navbar-nav .item,.navbar-searchicon,.navbar-slideicon,.photos .picture-details,.widget .ad-tag .click-close,a,button{cursor:var(--cursor-pointer)}.aplayer .aplayer-bar-wrap,.aplayer .aplayer-icon,.aplayer .aplayer-music,.aplayer .aplayer-pic{cursor:var(--cursor-pointer)!important}.main-content :not(.jg-entry)>img:not([class]){cursor:var(--cursor-zoom-in)}blockquote,code,h1,h2,h3,h4,h5,h6,hr,input[type=text],li,p,td,textarea,th{cursor:var(--cursor-text)} \ No newline at end of file diff --git a/source/js/cursor/click/prosperous.min.js b/source/js/cursor/click/prosperous.min.js new file mode 100644 index 0000000..5b7f8b2 --- /dev/null +++ b/source/js/cursor/click/prosperous.min.js @@ -0,0 +1 @@ +(()=>{var a=0;jQuery(document).ready(function(n){n("body").click(function(o){var t=["富强","民主","文明","和谐","自由","平等","公正","法治","爱国","敬业","诚信","友善"],e=n("").text(t[a]),t=(a=(a+1)%t.length,o.pageX),o=o.pageY;o-=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop,e.css({"z-index":999,top:o-20,left:t,position:"fixed","font-weight":"bold",color:"rgb("+~~(255*Math.random())+","+~~(255*Math.random())+","+~~(255*Math.random())+")"}),n("body").append(e),e.animate({top:o-180,opacity:0},1500,function(){e.remove()})})})})(); \ No newline at end of file diff --git a/src/js/cursor/click/prosperous.js b/src/js/cursor/click/prosperous.js new file mode 100644 index 0000000..d19140d --- /dev/null +++ b/src/js/cursor/click/prosperous.js @@ -0,0 +1,23 @@ +var a_idx = 0 +jQuery(document).ready(function ($) { + $('body').click(function (e) { + var a = ['富强', '民主', '文明', '和谐', '自由', '平等', '公正', '法治', '爱国', '敬业', '诚信', '友善'] + var $i = $('').text(a[a_idx]) + a_idx = (a_idx + 1) % a.length + var x = e.pageX, y = e.pageY + let scrolly = window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop + y = y - scrolly + $i.css({ + 'z-index': 999, + 'top': y - 20, + 'left': x, + 'position': 'fixed', + 'font-weight': 'bold', + 'color': /*"#ff6651" 随机颜色写法:*/ 'rgb(' + ~~(255 * Math.random()) + ',' + ~~(255 * Math.random()) + ',' + ~~(255 * Math.random()) + ')' + }) + $('body').append($i) + $i.animate({'top': y - 180, 'opacity': 0}, 1500, function () { + $i.remove() + }) + }) +}) \ No newline at end of file