Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <b:if cond='data:blog.pageType == "item"'>
- <script type='text/javascript'>var flagItem = 0;</script>
- </b:if>
- <b:if cond='data:blog.pageType == "static_page"'>
- <script type='text/javascript'>var flagItem = 1;</script>
- </b:if>
- <script type='text/javascript'>
- var indexa = '<data:top.id/>';
- var indexb = '<data:post.id/>';
- //<![CDATA[
- flagItem="0"==flagItem?"&postID=":"&pageID=";
- function replyOriginal() {
- var b = document.getElementById("comment-editor").getAttribute("src"), a = b.indexOf("#"), b = b.substring(a), a = document.getElementById("comment-editor");
- a.parentNode.removeChild(a);
- a = document.getElementById("replypost");
- a.parentNode.removeChild(a);
- b = "http://www.blogger.com/comment-iframe.g?blogID=" + (indexa + flagItem + indexb + b) + "";
- a = document.createElement("iframe");
- a.setAttribute("id", "comment-editor");
- a.setAttribute("name", "comment-editor");
- a.setAttribute("src", b);
- a.setAttribute("height", "250px");
- a.setAttribute("width", "100%");
- a.setAttribute("frameBorder", "0");
- a.setAttribute("allowtransparency", "true");
- document.getElementById("comment-form-thread").appendChild(a)
- }
- function reply(b) {
- var a = document.getElementById("comment-editor").getAttribute("src"), c = a.indexOf("#"), a = a.substring(c), c = document.getElementById("comment-editor");
- c.parentNode.removeChild(c);
- a = "http://www.blogger.com/comment-iframe.g?blogID=" + (indexa + flagItem + indexb) + "&parentID=" + (b + a) + "";
- c = document.createElement("iframe");
- c.setAttribute("id", "comment-editor");
- c.setAttribute("name", "comment-editor");
- c.setAttribute("src", a);
- c.setAttribute("height", "250px");
- c.setAttribute("width", "100%");
- c.setAttribute("frameBorder", "0");
- c.setAttribute("allowtransparency", "true");
- document.getElementById("contenedorreply-" + b + "").appendChild(c);
- document.getElementById("replypost") || (b = document.createElement("a"), b.innerHTML = "Add a comment", b.setAttribute("id", "replypost"), b.setAttribute("href", "javascript:void(0)"), b.setAttribute("class", "LoadMore"), document.getElementById("comment-form-thread").appendChild(b));
- var clickOn = document.getElementById("replypost");
- clickOn.addEventListener ? clickOn.addEventListener("click", replyOriginal, !1) : clickOn.attachEvent("onclick", replyOriginal);
- }
- //]]>
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement