www/js/prod_forum.js

Fri, 24 Apr 2020 14:10:47 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 24 Apr 2020 14:10:47 +0200
changeset 660
0e9a725354ac
parent 565
dfc850e6ee1f
permissions
-rw-r--r--

Fixed bugs in calculation of boil volume/batch or boiltime changes.


$(document).ready(function() {

 /**
  * This will copy the innerHTML of an element to the clipboard
  * @param element reference OR string
  */
 function copyToClipboard(e) {
    var tempItem = document.createElement('textarea');

    document.body.appendChild(tempItem);
    tempItem.value = e;
    tempItem.select();
    document.execCommand('Copy');

    tempItem.parentElement.removeChild(tempItem);
 }


 $('#copytoClipboard').jqxButton({ template: 'success', theme: theme, width: 150 });
 $('#copytoClipboard').click(function() {
  copyToClipboard(forumstr);
  window.close();
 });

});

mercurial