From 97fd6a617682c39c3ec0a7c0af2c65839940bf66 Mon Sep 17 00:00:00 2001
From: leonidas <l.wallner@gmx.de>
Date: Fri, 26 Jan 2018 17:18:38 +0100
Subject: [PATCH]

---
 index.html | 123 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 122 insertions(+), 1 deletion(-)

diff --git a/index.html b/index.html
index 980a0d5..73599d2 100644
--- a/index.html
+++ b/index.html
@@ -1 +1,122 @@
-Hello World!
+<!DOCTYPE html>
+<html>
+<body>
+
+<h2> 1st Step: Enter the Pool- and Wallet-Data </h2>
+Pool-address:
+<input type="text" id="pool_address1" value="pool_server.com:12345" size="100">
+<br>
+The URL of the pool to connect to:
+<ul>
+<li><b>cryptonight.usa.nicehash.com:3355</b> for nicehash.com (USA-Server)</li>
+<li><b>xmrpool.eu:3333</b> for the pool xmrpool.eu</li>
+<li>Or check your pool's documentation to find out the URL</li>
+</ul>
+<hr>
+Wallet:
+<input type="text" id="wallet1" value="4999aeniCU9Ug67..." size="100"> <br>
+Example: It should look somehow like <b>4999aeniCU9Ug67vs7yvyJTSkxVUZRirUYUerT66fqzoYMhiShFLBqZHmFxmPD6oABafM5cVKc77yj3Fypvi9CDRTYEvDPL</b> , but of course you should use your own wallet!
+<hr>
+Activate nicehash.com compatibility:
+<input type="checkbox" id="nicehash1" checked>
+<br> Activate this checkbox if you are mining with nicehash.com
+<hr>
+<!-- Show advanced parameters for the primary pool:
+<input type="checkbox" id="showextracheck1" onclick="PriExtraVisibility()">
+<br>
+<span id="showextra1" style="display: none;">
+Wallet-suffix that will be appended to the wallet-address (e.g. worker-ID). <input type="text" id="workerID1" value=""> <br>
+<ul>
+<li> Start with '.' when using nicehash.com, e.g. <b>.myworkerID</b> </li>
+<li> Start with '+' when using xmrpool.eu, e.g. <b>+myworkerID</b> </li>
+<li> Or check your pool's documentation to find out the required starting-character </li>
+</ul>
+
+<hr>
+Pool Password (use the default 'x' if unsure):
+<input type="text" id="pool_pass1" value="x">
+<br>
+</span>
+ -->
+<!-- <hr>
+Enable secondary mining pool:
+<input type="checkbox" id="enable_sec_pool"  onclick="SecPoolVisibility()">
+<br>
+
+
+<span id="sec_pool" style="display: none;">
+<h2>Secondary mining pool</h2>
+
+Pool-address:
+<input type="text" id="pool_address2" value="Some text...">
+<br>
+Wallet:
+<input type="text" id="wallet2" value="Some text...">
+<br>
+Pool Password (use the default 'x' if unsure):
+<input type="text" id="pool_pass2" value="Some text...">
+<br>
+Activate nicehash.com compatability:
+<input type="checkbox" id="nicehash2" value="true">
+<br>
+</span> -->
+
+
+<h2> 2nd Step: Click the Button to Generate the script </h2>
+<button type="button"
+onclick="assemblescript()"/>
+Generate azure-batch-startup-task-script</button>
+
+<hr>
+<h2> 3rd Step: Use the Following Text as the Command-Line in the Start-Task of your Azure-Pool: </h2>
+
+<textarea name="result" id="result" cols="40" rows="20" readonly></textarea>
+
+<script>
+
+function SecPoolVisibility()
+{
+    if (document.getElementById("enable_sec_pool").checked)
+        document.getElementById("sec_pool").style.display = 'block';
+    else
+        document.getElementById("sec_pool").style.display = 'none';
+        
+}
+
+function PriExtraVisibility()
+{
+    if (document.getElementById("showextracheck1").checked)
+        document.getElementById("showextra1").style.display = 'block';
+    else
+        document.getElementById("showextra1").style.display = 'none';
+        
+}
+
+
+function assemblescript() {
+    var result= "/bin/bash -c \""
+
+    result += "export pool_address1=" +document.getElementById("pool_address1").value +";";
+    result += "export wallet1=" + document.getElementById("wallet1").value +";";
+    if (document.getElementById("nicehash1").checked) result+="export nicehash1=true;"
+    else result+="export nicehash1=false;";
+    
+    /*if (document.getElementById("enable_sec_pool").checked) 
+    {
+        result += "pool_address2=" +document.getElementById("pool_address2").value +"\r\n";
+        result += "wallet2=" + document.getElementById("wallet2").value +"\n";
+        if (document.getElementById("nicehash2").checked) result+="nicehash2=true\r\n"
+        else result+="nicehash2=false\r\n";
+    }
+    */
+    
+    result+="wget https://raw.githubusercontent.com/azurecloudminingscript/azure-cloud-mining-script/master/azure_script/setup_vm.sh ; chmod u+x setup_vm.sh ; ./setup_vm.sh\""
+    
+    document.getElementById("result").value = result;
+    
+}
+</script>
+
+
+</body>
+</html> 
-- 
GitLab