From 2ece95423c71f27780529a82410b15206dcfefee Mon Sep 17 00:00:00 2001
From: davidz
Date: Wed, 5 Feb 2020 21:59:35 +0800
Subject: [PATCH] Site updated: 2020-02-05 21:59:34
---
404.html | 1 -
anu-comp2310-assignment1/index.html | 1 -
archives/2020/01/index.html | 1 -
archives/2020/02/index.html | 1 -
archives/2020/index.html | 1 -
archives/index.html | 1 -
beauty-is-productivity-windows-terminal/index.html | 1 -
categories/Internship/index.html | 1 -
categories/Personal/index.html | 1 -
categories/Productivity/index.html | 1 -
categories/Study/index.html | 1 -
categories/index.html | 3 +--
hello-world/index.html | 1 -
index.html | 1 -
inspur-internship/index.html | 1 -
js/obsidian.js | 8 +++-----
tags/ANU/index.html | 1 -
tags/Ada/index.html | 1 -
tags/Cpp/index.html | 1 -
tags/Microsoft/index.html | 1 -
tags/Open-Source/index.html | 1 -
tags/Others/index.html | 1 -
tags/Terminal/index.html | 1 -
tags/index.html | 1 -
whoami/index.html | 1 -
windows-package-manager-scoop/index.html | 1 -
26 files changed, 4 insertions(+), 31 deletions(-)
diff --git a/404.html b/404.html
index 9f0dfce..09ed1c3 100644
--- a/404.html
+++ b/404.html
@@ -137,7 +137,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/anu-comp2310-assignment1/index.html b/anu-comp2310-assignment1/index.html
index bbe323c..9ff8375 100644
--- a/anu-comp2310-assignment1/index.html
+++ b/anu-comp2310-assignment1/index.html
@@ -617,7 +617,6 @@ $$
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/archives/2020/01/index.html b/archives/2020/01/index.html
index 43dfdc7..ac3b2c2 100644
--- a/archives/2020/01/index.html
+++ b/archives/2020/01/index.html
@@ -249,7 +249,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/archives/2020/02/index.html b/archives/2020/02/index.html
index eb80b43..6f1ce5e 100644
--- a/archives/2020/02/index.html
+++ b/archives/2020/02/index.html
@@ -249,7 +249,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/archives/2020/index.html b/archives/2020/index.html
index 6295514..a028d28 100644
--- a/archives/2020/index.html
+++ b/archives/2020/index.html
@@ -249,7 +249,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/archives/index.html b/archives/index.html
index 1de981c..0255717 100644
--- a/archives/index.html
+++ b/archives/index.html
@@ -249,7 +249,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/beauty-is-productivity-windows-terminal/index.html b/beauty-is-productivity-windows-terminal/index.html
index d75a642..9c2ffab 100644
--- a/beauty-is-productivity-windows-terminal/index.html
+++ b/beauty-is-productivity-windows-terminal/index.html
@@ -435,7 +435,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/categories/Internship/index.html b/categories/Internship/index.html
index 5402706..0dcc448 100644
--- a/categories/Internship/index.html
+++ b/categories/Internship/index.html
@@ -265,7 +265,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/categories/Personal/index.html b/categories/Personal/index.html
index b3b008d..fe24ef4 100644
--- a/categories/Personal/index.html
+++ b/categories/Personal/index.html
@@ -270,7 +270,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/categories/Productivity/index.html b/categories/Productivity/index.html
index a1e2de8..6c49273 100644
--- a/categories/Productivity/index.html
+++ b/categories/Productivity/index.html
@@ -323,7 +323,6 @@ $env:SCOOP='path/to/scoop'
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/categories/Study/index.html b/categories/Study/index.html
index b7d4cda..b0fad19 100644
--- a/categories/Study/index.html
+++ b/categories/Study/index.html
@@ -264,7 +264,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/categories/index.html b/categories/index.html
index efda60e..baa1d96 100644
--- a/categories/index.html
+++ b/categories/index.html
@@ -63,7 +63,7 @@
@@ -137,7 +137,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/hello-world/index.html b/hello-world/index.html
index 45b07d0..c2a698b 100644
--- a/hello-world/index.html
+++ b/hello-world/index.html
@@ -270,7 +270,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/index.html b/index.html
index 097b5bb..b178e26 100644
--- a/index.html
+++ b/index.html
@@ -479,7 +479,6 @@ $env:SCOOP='path/to/scoop'
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/inspur-internship/index.html b/inspur-internship/index.html
index 1840dfd..0ca446b 100644
--- a/inspur-internship/index.html
+++ b/inspur-internship/index.html
@@ -448,7 +448,6 @@ set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib/)
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/js/obsidian.js b/js/obsidian.js
index 5db24a3..38833d5 100644
--- a/js/obsidian.js
+++ b/js/obsidian.js
@@ -30,10 +30,9 @@ function scrollSpy(menuSelector, options) {
var fromTop = $(this).scrollTop() + offset;
// Get id of current scroll item
- var id = scollTarget.filter(function () {
+ var id = scollTarget.prevObject.filter(function () {
return $(this).offset().top < fromTop;
- }).last().parent().attr("id") || "";
-
+ }).last().attr("id") || "";
if (lastId !== id) {
active.removeClass(activeClassName);
var newActive = [];
@@ -443,7 +442,6 @@ var Obsidian = {
scrollSpy(tocContainer, {
offset: 200
});
-
$(".toc-item").on("scrollspy", function () {
var tocTop = toc.scrollTop(),
link = $(this).children(".toc-link"),
@@ -465,7 +463,7 @@ var Obsidian = {
var winWidth = $(window).width();
var firstPostHeight = $('#post0').height();
if (winWidth <= 900) {
- postSpacing = 100;
+ postSpacing = 180;
}
if (firstPostHeight + postSpacing > winHeight || winWidth <= 900) {
$('#mark').css('height', firstPostHeight + postSpacing + 'px');
diff --git a/tags/ANU/index.html b/tags/ANU/index.html
index 63bf090..89c0eca 100644
--- a/tags/ANU/index.html
+++ b/tags/ANU/index.html
@@ -265,7 +265,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/tags/Ada/index.html b/tags/Ada/index.html
index b2be71c..b0455da 100644
--- a/tags/Ada/index.html
+++ b/tags/Ada/index.html
@@ -265,7 +265,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/tags/Cpp/index.html b/tags/Cpp/index.html
index 946e50a..c8b43cb 100644
--- a/tags/Cpp/index.html
+++ b/tags/Cpp/index.html
@@ -266,7 +266,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/tags/Microsoft/index.html b/tags/Microsoft/index.html
index ee2a607..58631ce 100644
--- a/tags/Microsoft/index.html
+++ b/tags/Microsoft/index.html
@@ -268,7 +268,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/tags/Open-Source/index.html b/tags/Open-Source/index.html
index 31bb1d9..2a240ba 100644
--- a/tags/Open-Source/index.html
+++ b/tags/Open-Source/index.html
@@ -324,7 +324,6 @@ $env:SCOOP='path/to/scoop'
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/tags/Others/index.html b/tags/Others/index.html
index a5f59e0..af97e93 100644
--- a/tags/Others/index.html
+++ b/tags/Others/index.html
@@ -271,7 +271,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/tags/Terminal/index.html b/tags/Terminal/index.html
index e652b8e..0ff70e3 100644
--- a/tags/Terminal/index.html
+++ b/tags/Terminal/index.html
@@ -268,7 +268,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/tags/index.html b/tags/index.html
index c277152..974ac5a 100644
--- a/tags/index.html
+++ b/tags/index.html
@@ -138,7 +138,6 @@
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/whoami/index.html b/whoami/index.html
index c7fe04f..917e36e 100644
--- a/whoami/index.html
+++ b/whoami/index.html
@@ -171,7 +171,6 @@ Advanced computing international student at AUN. Programmer and Pythonista.
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
diff --git a/windows-package-manager-scoop/index.html b/windows-package-manager-scoop/index.html
index b99e896..4bcac3b 100644
--- a/windows-package-manager-scoop/index.html
+++ b/windows-package-manager-scoop/index.html
@@ -454,7 +454,6 @@ scoop list
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
- console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});