mirror of
				https://github.com/Mabbs/mabbs.github.io
				synced 2025-10-31 17:12:09 +08:00 
			
		
		
		
	Update 3 files
- /assets/js/main.js - /_layouts/default.html - /_layouts/post.html
This commit is contained in:
		| @@ -22,7 +22,7 @@ | |||||||
|  |  | ||||||
|   <script src="/assets/js/jquery.min.js"></script> |   <script src="/assets/js/jquery.min.js"></script> | ||||||
|   <script> |   <script> | ||||||
|     var lastUpdated = new Date("{{ site.time | date_to_xmlschema }}"); |     var lastUpdated = new Date("{{ site.time | date_to_rfc822 }}"); | ||||||
|     var BlogAPI = "https://summary.mayx.eu.org"; |     var BlogAPI = "https://summary.mayx.eu.org"; | ||||||
|   </script> |   </script> | ||||||
|   <script src="/assets/js/main.js"></script> |   <script src="/assets/js/main.js"></script> | ||||||
|   | |||||||
| @@ -12,12 +12,7 @@ layout: default | |||||||
|   <br /><br /> |   <br /><br /> | ||||||
| </div> | </div> | ||||||
| <script> | <script> | ||||||
|   BirthDay = new Date("{{ page.date | date_to_xmlschema }}"); |   daysold = Math.floor((new Date().getTime() - new Date("{{ page.date | date_to_rfc822 }}").getTime()) / (24 * 60 * 60 * 1000)); | ||||||
|   today = new Date(); |  | ||||||
|   timeold = (today.getTime() - BirthDay.getTime()); |  | ||||||
|   secondsold = Math.floor(timeold / 1000); |  | ||||||
|   e_daysold = timeold / (24 * 60 * 60 * 1000); |  | ||||||
|   daysold = Math.floor(e_daysold); |  | ||||||
|   if (daysold > 90) { |   if (daysold > 90) { | ||||||
|     document.getElementById("outdate").style.display = "block"; |     document.getElementById("outdate").style.display = "block"; | ||||||
|     document.getElementById("outime").innerHTML = daysold; |     document.getElementById("outime").innerHTML = daysold; | ||||||
|   | |||||||
| @@ -1,18 +1,19 @@ | |||||||
| var message_Path = '/Live2dHistoire/live2d/'; | var message_Path = '/Live2dHistoire/live2d/'; | ||||||
| var talkAPI = BlogAPI + "/ai_chat"; | var talkAPI = BlogAPI + "/ai_chat"; | ||||||
|  |  | ||||||
| (function () { |  | ||||||
|     var $backToTopTxt = "返回顶部", $backToTopEle = $('<div class="backToTop"></div>').appendTo($("body")) |  | ||||||
|         .text($backToTopTxt).attr("title", $backToTopTxt).click(function () { |  | ||||||
|             $("html, body").animate({ scrollTop: 0 }, 120); |  | ||||||
|         }), $backToTopFun = function () { |  | ||||||
|             var st = $(document).scrollTop(), winh = $(window).height(); |  | ||||||
|             (st > 0) ? $backToTopEle.show() : $backToTopEle.hide(); |  | ||||||
|         }; |  | ||||||
|     $(window).bind("scroll", $backToTopFun); |  | ||||||
|     $(function () { $backToTopFun(); }); |  | ||||||
| })(); |  | ||||||
| $(function () { | $(function () { | ||||||
|  |     (function () { | ||||||
|  |         var $backToTopTxt = "返回顶部", $backToTopEle = $('<div class="backToTop"></div>').appendTo($("body")) | ||||||
|  |             .text($backToTopTxt).attr("title", $backToTopTxt).click(function () { | ||||||
|  |                 $("html, body").animate({ scrollTop: 0 }, 120); | ||||||
|  |             }), $backToTopFun = function () { | ||||||
|  |                 var st = $(document).scrollTop(), winh = $(window).height(); | ||||||
|  |                 (st > 0) ? $backToTopEle.show() : $backToTopEle.hide(); | ||||||
|  |             }; | ||||||
|  |         $(window).bind("scroll", $backToTopFun); | ||||||
|  |         $(function () { $backToTopFun(); }); | ||||||
|  |     })(); | ||||||
|  |  | ||||||
|     function showHitCount() { |     function showHitCount() { | ||||||
|         $(".visitors-index").each(function () { |         $(".visitors-index").each(function () { | ||||||
|             var $elem = $(this); |             var $elem = $(this); | ||||||
| @@ -21,7 +22,6 @@ $(function () { | |||||||
|             }); |             }); | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     function addCount() { |     function addCount() { | ||||||
|         var $visitor = $(".visitors:first"); |         var $visitor = $(".visitors:first"); | ||||||
|         $.get(BlogAPI + "/count_click_add?id=" + $visitor.attr('id'), function (data) { |         $.get(BlogAPI + "/count_click_add?id=" + $visitor.attr('id'), function (data) { | ||||||
| @@ -34,12 +34,7 @@ $(function () { | |||||||
|         showHitCount(); |         showHitCount(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     today = new Date(); |     if (Math.floor((new Date().getTime() - lastUpdated.getTime()) / (24 * 60 * 60 * 1000)) > 90) { | ||||||
|     timeold = (today.getTime() - lastUpdated.getTime()); |  | ||||||
|     secondsold = Math.floor(timeold / 1000); |  | ||||||
|     e_daysold = timeold / (24 * 60 * 60 * 1000); |  | ||||||
|     daysold = Math.floor(e_daysold); |  | ||||||
|     if (daysold > 90) { |  | ||||||
|         $("html")[0].style = "-webkit-filter: grayscale(100%);filter:progid:DXImageTransform.Microsoft.BasicImage(graysale=1);"; |         $("html")[0].style = "-webkit-filter: grayscale(100%);filter:progid:DXImageTransform.Microsoft.BasicImage(graysale=1);"; | ||||||
|         $("html")[0].innerHTML = $("html")[0].innerHTML.replace(/Mayx/g, "Ghost"); |         $("html")[0].innerHTML = $("html")[0].innerHTML.replace(/Mayx/g, "Ghost"); | ||||||
|         console.warn("Mayx may already be Dead"); |         console.warn("Mayx may already be Dead"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user