mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-11-17 11:05:39 +01:00
14 lines
429 B
JavaScript
14 lines
429 B
JavaScript
|
(function() {
|
||
|
var d = document, s = d.createElement('script');
|
||
|
s.src = 'https://esphomelib.disqus.com/embed.js';
|
||
|
s.setAttribute('data-timestamp', +new Date());
|
||
|
(d.head || d.body).appendChild(s);
|
||
|
})();
|
||
|
|
||
|
var disqus_config = function () {
|
||
|
let disqusThread = document.getElementById("disqus_thread");
|
||
|
if (disqusThread === null)
|
||
|
return;
|
||
|
this.page.identifier = disqusThread.getAttribute('data-disqus-identifier');
|
||
|
};
|