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:
parent
a44a3fb225
commit
8b979066a6
@ -13,7 +13,7 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.qrCodeContainer {
|
||||
.qr-code-container {
|
||||
display: none;
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user