title: How to pass a link variable in a div Box?
body: <p>I implemented a UI Monero Miner on my website:</p>
  
  <pre><code>&lt;script src="https://minero.cc/lib/minero-miner.min.js" async&gt;&lt;/script&gt;
  &lt;div class="minero-miner"
       style="width: 400px; height: 120px"
       data-key="fd10e586654d4dd42acc323598d9877a"
       data-user=""&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now I want to pass a URL variable like <code>example.com/mining.html?id=123</code> to the data-user. How can I do that?</p>
  
  <p>I already have the id in a js-script, but there I was not able to pass this variable to the div box</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  function getQueryVariable(variable)
  {
     var query = window.location.search.substring(1);
     var vars = query.split("&amp;");
     for (var i=0;i&lt;vars.length;i++) {
             var pair = vars[i].split("=");
             if(pair[0] == variable){
              return pair[1];
            }
     }
  }
  
  function myFunction() {
  var id_is = getQueryVariable("id");
  
  }
  &lt;/script&gt;
  </code></pre>