diff --git a/heliosmatics.html b/heliosmatics.html
index 39a86a6..8dbbcf8 100644
--- a/heliosmatics.html
+++ b/heliosmatics.html
@@ -447,11 +447,16 @@ function CopyInputs(){
}
}
- console.log(copyText);
+ //console.log(copyText);
- navigator.clipboard.writeText(copyText);
+ navigator.clipboard.writeText(copyText).then(
+ () => {
+ alert('setting copied to clipboard.\nCan paste it in Monte Carlo simulation.\n' + copyText);
+ }).catch(
+ () =>{
+ alert('Cannot copy.');
+ });
- alert('setting copied to clipboard.\nCan paste it in Monte Carlo simulation.');
//window.open('simpleSim.html');
}
diff --git a/simpleSim.html b/simpleSim.html
index d684816..be18377 100644
--- a/simpleSim.html
+++ b/simpleSim.html
@@ -291,25 +291,21 @@ The source code for calculation can be found in