Skip to content

Commit

Permalink
调整实现
Browse files Browse the repository at this point in the history
  • Loading branch information
Liudon authored Sep 4, 2023
1 parent d51c0ab commit 45314c5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions layouts/partials/extend_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,20 @@
</footer>

<script src="//liudon.com/analytics/vue.js" defer></script>
<script src="//tokinx.github.io/ViewImage/view-image.min.js" defer></script>
<script defer>
window.ViewImage && ViewImage.init('.post-content img');
function initViewImage() {
window.ViewImage && ViewImage.init('.post-content img');
}

function loadScript(url, callback) {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url + '?callback=' + callback;
document.body.appendChild(script);
}

loadScript('//tokinx.github.io/ViewImage/view-image.min.js', 'initViewImage');

window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
Expand Down

0 comments on commit 45314c5

Please sign in to comment.