Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbb2ac5c

Browse files
committed
update
1 parent3203416 commitbb2ac5c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎_includes/my-body.html‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
{% endcomment %}
108108

109109

110-
<scripttype="text/javascript">
110+
<script>
111111
(function(){
112112
constREPO='donydchen/donydchen.github.io';
113113
constAPI_URL=`https://api.github.com/repos/${REPO}`;
@@ -160,16 +160,14 @@
160160

161161
document.addEventListener('DOMContentLoaded',scheduleUpdate);
162162

163-
// Attach to the <hy-push-state> element directly
164163
functionattachPushStateListeners(){
165164
consthyEl=document.querySelector('hy-push-state');
166-
if(!hyEl)return;// nothing yet, maybe not loaded
165+
if(!hyEl)return;
167166
['hy-push-state-after','hy-push-state-ready'].forEach(ev=>
168167
hyEl.addEventListener(ev,()=>scheduleUpdate(400))
169168
);
170169
}
171170

172-
// Try immediately and again when DOM ready
173171
attachPushStateListeners();
174172
document.addEventListener('DOMContentLoaded',attachPushStateListeners);
175173
})();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp