From 30833fd0b38be675e4a8b1e5e107475692023f0e Mon Sep 17 00:00:00 2001 From: NikaZhenya Date: Thu, 4 Oct 2018 17:30:48 -0500 Subject: [PATCH] Comments test going well --- js/main.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/js/main.js b/js/main.js index c46e024..2f1e5a8 100644 --- a/js/main.js +++ b/js/main.js @@ -9,15 +9,9 @@ window.onload = function () { function add_shares (url) { var section = document.getElementsByTagName('section')[0], - div = document.createElement('div'), script = document.createElement('script'); - div.id = 'social'; - div.style.cssText = 'margin-top:1em;padding-top:1em;border-top:1px dashed gray;' - div.innerHTML += '

Comments

'; - section.appendChild(div); - script.type = 'text/javascript'; script.src = '/hashover/comments.php'; - div.appendChild(script); + section.appendChild(script); }