1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-09 11:42:28 +01:00

#347 Update selector names

This commit is contained in:
overint 2017-10-22 13:01:15 +11:00
parent a44a3fb225
commit 8b979066a6
3 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@
text-align: center;
}
.qrCodeContainer {
.qr-code-container {
display: none;
width: 300px;
height: 300px;

View File

@ -10,8 +10,8 @@ $('.result-box').change(function () {
});
$('#generateQRCode').click(function () {
var container = $('.qrCodeContainer');
$('#generate-qr-code').click(function () {
var container = $('.qr-code-container');
container.empty();
new QRCode(container.get(0), {
text: original_link,

View File

@ -7,10 +7,10 @@
@section('content')
<h3>Shortened URL</h3>
<input type='text' class='result-box form-control' value='{{$short_url}}' />
<button id="generateQRCode" class='btn btn-primary back-btn'>Generate QR Code</button>
<a id="generate-qr-code" class='btn btn-primary back-btn'>Generate QR Code</a>
<a href='{{route('index')}}' class='btn btn-info back-btn'>Shorten another</a>
<div class="qrCodeContainer"></div>
<div class="qr-code-container"></div>
@endsection