mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2026-05-23 00:14:10 +02:00
Update 6 files
- /assets/js/pjax.js - /assets/js/gitalk.min.js - /assets/js/jquery.min.js - /assets/css/gitalk.css - /_data/proxylist.yml - /_tools/stormkit-env_install
This commit is contained in:
parent
b25a864ee3
commit
1a529143a8
@ -2,6 +2,7 @@ proxies:
|
|||||||
- https://blog.mayx.workers.dev/
|
- https://blog.mayx.workers.dev/
|
||||||
- https://mayx.deno.dev/
|
- https://mayx.deno.dev/
|
||||||
- https://mayx.val.run/
|
- https://mayx.val.run/
|
||||||
|
- https://mayx.azion.app/
|
||||||
- https://yuki.gear.host/
|
- https://yuki.gear.host/
|
||||||
- https://mayx.global.ssl.fastly.net/
|
- https://mayx.global.ssl.fastly.net/
|
||||||
mirrors:
|
mirrors:
|
||||||
|
|||||||
1
_tools/stormkit-env_install
Normal file
1
_tools/stormkit-env_install
Normal file
@ -0,0 +1 @@
|
|||||||
|
curl -LO https://github.com/Homebrew/homebrew-portable-ruby/releases/download/3.4.5/portable-ruby-3.4.5.x86_64_linux.bottle.tar.gz && mkdir -p ~/.local/portable-ruby && tar -xvf portable-ruby-3.4.5.x86_64_linux.bottle.tar.gz -C ~/.local/portable-ruby --strip-components=1 && export PATH="$HOME/.local/portable-ruby/3.4.5/bin:$PATH" && bundle install
|
||||||
@ -1274,5 +1274,3 @@
|
|||||||
transform: rotate(360deg);
|
transform: rotate(360deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*# sourceMappingURL=gitalk.css.map*/
|
|
||||||
1
assets/js/gitalk.min.js
vendored
1
assets/js/gitalk.min.js
vendored
File diff suppressed because one or more lines are too long
1
assets/js/jquery.min.js
vendored
1
assets/js/jquery.min.js
vendored
File diff suppressed because one or more lines are too long
@ -184,7 +184,28 @@
|
|||||||
$(document).on('pjax:error', function (xhr, textStatus, error) {
|
$(document).on('pjax:error', function (xhr, textStatus, error) {
|
||||||
console.warn('[pjax] error, fallback:', error);
|
console.warn('[pjax] error, fallback:', error);
|
||||||
});
|
});
|
||||||
|
$(document).on('pjax:end', function (event, xhr, options) {
|
||||||
|
var $container = $(options.container || PJAX_OPTS.container);
|
||||||
|
|
||||||
|
$container.find('script[type="module"]').each(function () {
|
||||||
|
var oldScript = this;
|
||||||
|
var newScript = document.createElement('script');
|
||||||
|
newScript.type = 'module';
|
||||||
|
|
||||||
|
// 如果是外链脚本 (<script src="..."></script>)
|
||||||
|
if (oldScript.src) {
|
||||||
|
newScript.src = oldScript.src;
|
||||||
|
} else {
|
||||||
|
// 如果是行内脚本 (<script>...code...</script>)
|
||||||
|
newScript.textContent = oldScript.textContent;
|
||||||
|
}
|
||||||
|
// 插入到 body 中触发浏览器执行
|
||||||
|
document.body.appendChild(newScript);
|
||||||
|
|
||||||
|
// 运行完后建议移除,防止 DOM 变得混乱(不影响模块执行)
|
||||||
|
newScript.remove();
|
||||||
|
});
|
||||||
|
});
|
||||||
// 首次加载初始化
|
// 首次加载初始化
|
||||||
reinitCopyButtons();
|
reinitCopyButtons();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user