cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <link href="http://atmpl.ru/assets/css/bootstrap.min.css" rel="stylesheet" />
<script src="http://atmpl.ru/assets/js/jquery-1.10.2.js"></script>
<script src="http://atmpl.ru/assets/js/bootstrap.min.js" type="text/javascript"></script>
<script src="http://atmpl.ru/test/qr/qr.js" type="text/javascript"></script>

<div class="container">
<div class="row">

<div id="qrGenerator" class="col-xs-12">
<h1 class="text-center">QR генератор jQuery & Bootstrap</h1>

<div id="settings" class="col-md-6">


<div class="form-group">
<div class="input-group input-group-sm col-sm-12">
<span class="input-group-addon">Ширина QR</span>
<input type="text" id="qrWidth" class="form-control" value="210" placeholder="210">
</div>
</div>

<div class="form-group">
<div class="input-group input-group-sm col-sm-12">
<span class="input-group-addon">Высота QR</span>
<input type="text" id="qrHeight" class="form-control" value="210" placeholder="210">
</div>
</div>


<div class="form-group">
<div class="input-group input-group-sm col-sm-12">
<span class="input-group-addon">Цвет QR кода</span>
<input type="text" id="qrColor" class="form-control" value="#000000">
</div>
</div>

<div class="form-group">
<div class="input-group input-group-sm col-sm-12">
<span class="input-group-addon">Фон QR кода</span>
<input type="text" id="qrBgColor" class="form-control" value="#FFFFFF">
</div>
</div>

<div class="form-group">
<div class="input-group input-group-sm col-sm-12">
<span class="input-group-addon">QR информация</span>
<input type="text" id="qrUrl" class="form-control" value="atmpl.ru" placeholder="atmpl.ru">
</div>
</div>

<input id="generate" class="btn btn-default btn-block" type="submit" value="Сделать" />

</div>

<div class="col-md-6" id="generateCell">
<br>
<div id="qr"><div class="bg"></div><canvas></canvas></div>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
            
          
!
            
              $(function () {
$('#generate').click(function () {
$('#qr .bg').empty().qrcode({
width: $('#qrWidth').val(),
height: $('#qrHeight').val(),
color: $('#qrColor').val(),
bgColor: $('#qrBgColor').val(),
text: $('#qrUrl').val()
});
$('#qr .bg').css({ background: $('#qrBgColor').val()});
});
});
            
          
!
999px
Loading ..................

Console