Skip to content

Commit

Permalink
docs: Add Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon committed Nov 6, 2023
1 parent ff42e54 commit 1b1c5cd
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vitepress/.vitepress/config/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export const enConfig = {
["meta", { property: "twitter:url", content: META_URL }],
["meta", { property: "twitter:title", content: META_TITLE }],
["meta", { property: "twitter:description", content: META_DESCRIPTION }],
["script", { async: "", src: "https://www.googletagmanager.com/gtag/js?id=G-D9P8XT4LJS" }],
["script", { async: "", src: "/js/google.js" }],
["script", { async: "", src: "https://cdn.wwads.cn/js/makemoney.js" }],
["script", { async: "", src: "/js/baidu.js" }],
["script", { async: "", src: "/js/microsoft.js" }],
],
themeConfig: {
nav: [
Expand Down
5 changes: 5 additions & 0 deletions vitepress/.vitepress/config/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ export const zhConfig = {
["meta", { property: "twitter:url", content: META_URL }],
["meta", { property: "twitter:title", content: META_TITLE }],
["meta", { property: "twitter:description", content: META_DESCRIPTION }],
["script", { async: "", src: "https://www.googletagmanager.com/gtag/js?id=G-D9P8XT4LJS" }],
["script", { async: "", src: "/js/google.js" }],
["script", { async: "", src: "https://cdn.wwads.cn/js/makemoney.js" }],
["script", { async: "", src: "/js/baidu.js" }],
["script", { async: "", src: "/js/microsoft.js" }],
],
themeConfig: {
nav: [
Expand Down
8 changes: 8 additions & 0 deletions vitepress/public/js/baidu.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var _hmt = _hmt || [];
(function () {
console.log('baidu');
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?3132de7130a225150415222801ddb498";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
5 changes: 5 additions & 0 deletions vitepress/public/js/google.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'G-D9P8XT4LJS');
5 changes: 5 additions & 0 deletions vitepress/public/js/microsoft.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(function (c, l, a, r, i, t, y) {
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jd1g2f2bie");
1 change: 1 addition & 0 deletions vitepress/public/wwads-cn-verify.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
58238e9ae2dd305d79c2ebc8c1883422

0 comments on commit 1b1c5cd

Please sign in to comment.