<h2>工具介绍</h2>
<p>在线生成二维码</p>



<div class="panel panel-default">
<div class="panel-heading font-bold">二维码生成</div>
<div class="panel-body">
<div class="form-group">
<textarea class="textarea form-control" id="text" rows="5"></textarea>
</div>
<div class="text-center">
<button type="submit" id="btn" class="btn btn-info">生成二维码</button></div>
</div>
</div>
<div class="entry-content l-h-2x" id="data"></div>
<script>$('#btn').click(function() {

        var textdata = $('#text').val();
        if (textdata == "") {
          swal({
            title: "请输入内容",
            text: "请输入您要生成的二维码的内容",
            icon: "warning",
            buttons: false,
            timer: 3000,
          });
        } else {
          layer.msg('生成成功');
          $('#data').html('<small class="text-muted letterspacing github_tips"></small><div class="repo-list text-center"><div class="blankslate"><h4><a data-fancybox="gallery" no-pjax="" data-type="image" data-caption="" href="https://gordsky.cn/api/ewm.php?text=' + textdata + '&size=300" class="light-link"><img src="https://gordsky.cn/api/ewm.php?text=' + textdata + '&size=300"></a></h4></div></div>');
        }
      });</script>