mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-26 17:54:52 +02:00
disqus hash links
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
<meta property="og:locale" content="en-GB" />
|
<meta property="og:locale" content="en-GB" />
|
||||||
<meta property="og:type" content="article" />
|
<meta property="og:type" content="article" />
|
||||||
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
|
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
|
||||||
<meta property="og:updated_time" content="2020-09-25T23:03:04+00:00" />
|
<meta property="og:updated_time" content="2020-09-26T04:08:40+00:00" />
|
||||||
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
||||||
<meta property="og:section" content="Bézier Curves" />
|
<meta property="og:section" content="Bézier Curves" />
|
||||||
<meta property="og:tag" content="Bézier Curves" />
|
<meta property="og:tag" content="Bézier Curves" />
|
||||||
@@ -7170,7 +7170,16 @@ for(let L = 1; L <= order; L++) {
|
|||||||
<a href="https://github.com/Pomax/bezierinfo/blob/master/LICENSE.md">almost no rights reserved</a>. Go do something cool with it!
|
<a href="https://github.com/Pomax/bezierinfo/blob/master/LICENSE.md">almost no rights reserved</a>. Go do something cool with it!
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- fix firefox's scroll position algorithm. Due to how it works, it cannot be async/defer -->
|
<script>
|
||||||
<script src="./js/site/fix-scroll.js"></script>
|
if (window.location.hash.includes(`#comment-`)) {
|
||||||
|
const baseHash = window.location.hash;
|
||||||
|
document.addEventListener(`disqus:ready`, () => {
|
||||||
|
console.log(`setting location`);
|
||||||
|
window.location.hash = ``;
|
||||||
|
window.location.hash = baseHash;
|
||||||
|
});
|
||||||
|
document.getElementById(`disqus_thread`).scrollIntoView();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
<meta property="og:locale" content="ja-JP" />
|
<meta property="og:locale" content="ja-JP" />
|
||||||
<meta property="og:type" content="article" />
|
<meta property="og:type" content="article" />
|
||||||
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
|
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
|
||||||
<meta property="og:updated_time" content="2020-09-25T23:03:04+00:00" />
|
<meta property="og:updated_time" content="2020-09-26T04:08:40+00:00" />
|
||||||
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
||||||
<meta property="og:section" content="Bézier Curves" />
|
<meta property="og:section" content="Bézier Curves" />
|
||||||
<meta property="og:tag" content="Bézier Curves" />
|
<meta property="og:tag" content="Bézier Curves" />
|
||||||
@@ -7007,7 +7007,16 @@ for(let L = 1; L <= order; L++) {
|
|||||||
<a href="https://github.com/Pomax/bezierinfo/blob/master/LICENSE.md">almost no rights reserved</a>. Go do something cool with it!
|
<a href="https://github.com/Pomax/bezierinfo/blob/master/LICENSE.md">almost no rights reserved</a>. Go do something cool with it!
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- fix firefox's scroll position algorithm. Due to how it works, it cannot be async/defer -->
|
<script>
|
||||||
<script src="./js/site/fix-scroll.js"></script>
|
if (window.location.hash.includes(`#comment-`)) {
|
||||||
|
const baseHash = window.location.hash;
|
||||||
|
document.addEventListener(`disqus:ready`, () => {
|
||||||
|
console.log(`setting location`);
|
||||||
|
window.location.hash = ``;
|
||||||
|
window.location.hash = baseHash;
|
||||||
|
});
|
||||||
|
document.getElementById(`disqus_thread`).scrollIntoView();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -13,6 +13,13 @@ let loadDisqus = () => {
|
|||||||
globalThis.disqus_config = function () {
|
globalThis.disqus_config = function () {
|
||||||
this.page.url = "https://pomax.github.io/bezierinfo";
|
this.page.url = "https://pomax.github.io/bezierinfo";
|
||||||
this.page.identifier = "bezierinfo";
|
this.page.identifier = "bezierinfo";
|
||||||
|
this.callbacks.onReady = [
|
||||||
|
function () {
|
||||||
|
setTimeout(() => {
|
||||||
|
document.dispatchEvent(new CustomEvent(`disqus:ready`));
|
||||||
|
}, 200);
|
||||||
|
},
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
const script = document.createElement("script");
|
const script = document.createElement("script");
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
<meta property="og:locale" content="en-GB" />
|
<meta property="og:locale" content="en-GB" />
|
||||||
<meta property="og:type" content="article" />
|
<meta property="og:type" content="article" />
|
||||||
<meta property="og:published_time" content="Thu Sep 17 2020 17:00:00 +00:00" />
|
<meta property="og:published_time" content="Thu Sep 17 2020 17:00:00 +00:00" />
|
||||||
<meta property="og:updated_time" content="Fri Sep 25 2020 16:03:04 +00:00" />
|
<meta property="og:updated_time" content="Fri Sep 25 2020 21:08:40 +00:00" />
|
||||||
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
||||||
<meta property="og:section" content="Bézier Curves" />
|
<meta property="og:section" content="Bézier Curves" />
|
||||||
<meta property="og:tag" content="Bézier Curves" />
|
<meta property="og:tag" content="Bézier Curves" />
|
||||||
@@ -255,8 +255,5 @@ draw() {
|
|||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<footer class="copyright">This post is a news entry for the <a href="https://pomax.github.io/bezierinfo/">Primer on Bézier Curves</a></footer>
|
<footer class="copyright">This post is a news entry for the <a href="https://pomax.github.io/bezierinfo/">Primer on Bézier Curves</a></footer>
|
||||||
|
|
||||||
<!-- fix firefox's scroll position algorithm. Due to how it works, it cannot be async/defer -->
|
|
||||||
<script src="./js/site/fix-scroll.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
<meta property="og:description" content="" />
|
<meta property="og:description" content="" />
|
||||||
<meta property="og:locale" content="en-GB" />
|
<meta property="og:locale" content="en-GB" />
|
||||||
<meta property="og:type" content="article" />
|
<meta property="og:type" content="article" />
|
||||||
<meta property="og:published_time" content="Fri Sep 25 2020 16:03:04 GMT-0700 (Pacific Daylight Time)" />
|
<meta property="og:published_time" content="Fri Sep 25 2020 21:08:40 GMT-0700 (Pacific Daylight Time)" />
|
||||||
<meta property="og:updated_time" content="" />
|
<meta property="og:updated_time" content="" />
|
||||||
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
||||||
<meta property="og:section" content="Bézier Curves" />
|
<meta property="og:section" content="Bézier Curves" />
|
||||||
@@ -101,8 +101,5 @@
|
|||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<footer class="copyright">This post is a news entry for the <a href="..">Primer on Bézier Curves</a></footer>
|
<footer class="copyright">This post is a news entry for the <a href="..">Primer on Bézier Curves</a></footer>
|
||||||
|
|
||||||
<!-- fix firefox's scroll position algorithm. Due to how it works, it cannot be async/defer -->
|
|
||||||
<script src="./js/site/fix-scroll.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
<atom:link href="https://pomax.github.io/bezierinfo" rel="self"></atom:link>
|
<atom:link href="https://pomax.github.io/bezierinfo" rel="self"></atom:link>
|
||||||
<description>News updates for the <a href="https://pomax.github.io/bezierinfo">primer on Bézier Curves</a> by Pomax</description>
|
<description>News updates for the <a href="https://pomax.github.io/bezierinfo">primer on Bézier Curves</a> by Pomax</description>
|
||||||
<language>en-GB</language>
|
<language>en-GB</language>
|
||||||
<lastBuildDate>Fri Sep 25 2020 16:03:04 +00:00</lastBuildDate>
|
<lastBuildDate>Fri Sep 25 2020 21:08:40 +00:00</lastBuildDate>
|
||||||
<image>
|
<image>
|
||||||
<url>https://pomax.github.io/bezierinfo/images/og-image.png</url>
|
<url>https://pomax.github.io/bezierinfo/images/og-image.png</url>
|
||||||
<title>A Primer on Bézier Curves</title>
|
<title>A Primer on Bézier Curves</title>
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
<meta property="og:locale" content="zh-CN" />
|
<meta property="og:locale" content="zh-CN" />
|
||||||
<meta property="og:type" content="article" />
|
<meta property="og:type" content="article" />
|
||||||
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
|
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
|
||||||
<meta property="og:updated_time" content="2020-09-25T23:03:04+00:00" />
|
<meta property="og:updated_time" content="2020-09-26T04:08:40+00:00" />
|
||||||
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
||||||
<meta property="og:section" content="Bézier Curves" />
|
<meta property="og:section" content="Bézier Curves" />
|
||||||
<meta property="og:tag" content="Bézier Curves" />
|
<meta property="og:tag" content="Bézier Curves" />
|
||||||
@@ -6981,7 +6981,16 @@ for(let L = 1; L <= order; L++) {
|
|||||||
<a href="https://github.com/Pomax/bezierinfo/blob/master/LICENSE.md">almost no rights reserved</a>. Go do something cool with it!
|
<a href="https://github.com/Pomax/bezierinfo/blob/master/LICENSE.md">almost no rights reserved</a>. Go do something cool with it!
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- fix firefox's scroll position algorithm. Due to how it works, it cannot be async/defer -->
|
<script>
|
||||||
<script src="./js/site/fix-scroll.js"></script>
|
if (window.location.hash.includes(`#comment-`)) {
|
||||||
|
const baseHash = window.location.hash;
|
||||||
|
document.addEventListener(`disqus:ready`, () => {
|
||||||
|
console.log(`setting location`);
|
||||||
|
window.location.hash = ``;
|
||||||
|
window.location.hash = baseHash;
|
||||||
|
});
|
||||||
|
document.getElementById(`disqus_thread`).scrollIntoView();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -79,9 +79,18 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
{% block scrollfix %}
|
{% block commenthash %}
|
||||||
<!-- fix firefox's scroll position algorithm. Due to how it works, it cannot be async/defer -->
|
<script>
|
||||||
<script src="./js/site/fix-scroll.js"></script>
|
if (window.location.hash.includes(`#comment-`)) {
|
||||||
|
const baseHash = window.location.hash;
|
||||||
|
document.addEventListener(`disqus:ready`, () => {
|
||||||
|
console.log(`setting location`);
|
||||||
|
window.location.hash = ``;
|
||||||
|
window.location.hash = baseHash;
|
||||||
|
});
|
||||||
|
document.getElementById(`disqus_thread`).scrollIntoView();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
@@ -33,3 +33,5 @@
|
|||||||
{% block footer %}
|
{% block footer %}
|
||||||
This post is a news entry for the <a href="..">Primer on Bézier Curves</a>
|
This post is a news entry for the <a href="..">Primer on Bézier Curves</a>
|
||||||
{% endblock%}
|
{% endblock%}
|
||||||
|
|
||||||
|
{% block commenthash %}{% endblock %}
|
||||||
|
@@ -19,3 +19,5 @@
|
|||||||
{% block footer %}
|
{% block footer %}
|
||||||
This post is a news entry for the <a href="https://pomax.github.io/bezierinfo/">Primer on Bézier Curves</a>
|
This post is a news entry for the <a href="https://pomax.github.io/bezierinfo/">Primer on Bézier Curves</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block commenthash %}{% endblock %}
|
||||||
|
Reference in New Issue
Block a user