1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | QR code in Blogger 一、管理介面 設計 / 新增小工具 / HTML/JavaScript 二、插入底下資料,儲存後就可以啦! <h2 class='title'>QR Code</h2> <div class='widget-content'> <div id="qrcode"></div> <script> var img = document.createElement('img'); img.src = 'https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=' + encodeURIComponent(document.location.href); document.getElementById('qrcode').appendChild(img); </script> </div> |
Direct link: https://paste.plurk.com/show/795115