title: QR Codes How to Get link current page?
body: <p>Hello i'm new in programming need a little help to customize QR code script and want to use on my website.</p>
  
  <p>what i want is automatic get link so edited below line and replace Input Text with  </p>
  
  <pre><code>&lt;input id="text" type="text" value="http://www.demo.com"/&gt;&lt;br /&gt;
  </code></pre>
  
  <p>but i when i tried on wordpress site i gives input line i don't want that line just only QR code image of current link i think need to remove and replace something in this script 
  also tried to remove 
  
  <pre><code>&lt;meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" /&gt;
  &lt;script type="text/javascript" src="jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="qrcode.js"&gt;&lt;/script&gt;
  &lt;body&gt;
  &lt;input id="text" type="text" value="&lt;?php echo get_permalink(); ?&gt;"/&gt;&lt;br /&gt;
  &lt;div id="qrcode" style="width:100px; height:100px; margin-top:15px;"&gt;&lt;/div&gt;
  &lt;script type="text/javascript"&gt;
  var qrcode = new QRCode(document.getElementById("qrcode"), {
  width : 100,
  height : 100
  });
  function makeCode () {      
  var elText = document.getElementById("text");
  
  if (!elText.value) {
      alert("Input a text");
      elText.focus();
      return;
  }
  
  qrcode.makeCode(elText.value);
  }
  makeCode();
  $("#text").
  on("blur", function () {
      makeCode();
  }).
  on("keydown", function (e) {
      if (e.keyCode == 13) {
          makeCode();
      }
  });
  &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>