www/js/rec_forum.js

Fri, 27 Mar 2020 16:23:30 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 27 Mar 2020 16:23:30 +0100
changeset 647
243be110285c
parent 565
dfc850e6ee1f
permissions
-rw-r--r--

Adjusted the dry-yeast degradation to 4% per year.


$(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