From 40083923ed74eb026135d78600ebf55ff0a9e32c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 1 Sep 2014 15:12:27 -0700 Subject: Support BIP32 HD Wallets --- public/js/print_element.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 public/js/print_element.js (limited to 'public/js/print_element.js') diff --git a/public/js/print_element.js b/public/js/print_element.js new file mode 100644 index 00000000..ee0e7212 --- /dev/null +++ b/public/js/print_element.js @@ -0,0 +1,26 @@ +function printElement(elem, append, delimiter) { + var domClone = elem.cloneNode(true); + + var $printSection = document.getElementById("printSection"); + + if (!$printSection) { + var $printSection = document.createElement("div"); + $printSection.id = "printSection"; + document.body.appendChild($printSection); + } + + if (append !== true) { + $printSection.innerHTML = ""; + } + + else if (append === true) { + if (typeof (delimiter) === "string") { + $printSection.innerHTML += delimiter; + } + else if (typeof (delimiter) === "object") { + $printSection.appendChlid(delimiter); + } + } + + $printSection.appendChild(domClone); +} -- cgit v1.2.3