Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroverint <emcmahonzx@gmail.com>2017-10-22 05:01:15 +0300
committeroverint <emcmahonzx@gmail.com>2017-10-22 05:01:15 +0300
commit8b979066a60c112eed6f879c0b0afee07bf0ca81 (patch)
tree7285a3c93cf4065f58dcc5db05e1fd7c899d4d82
parenta44a3fb22519b6ef27ea7d3018d42609cfb384c4 (diff)
#347 Update selector names
-rw-r--r--public/css/shorten_result.css2
-rw-r--r--public/js/shorten_result.js4
-rw-r--r--resources/views/shorten_result.blade.php4
3 files changed, 5 insertions, 5 deletions
diff --git a/public/css/shorten_result.css b/public/css/shorten_result.css
index 39db788..71f8255 100644
--- a/public/css/shorten_result.css
+++ b/public/css/shorten_result.css
@@ -13,7 +13,7 @@
text-align: center;
}
-.qrCodeContainer {
+.qr-code-container {
display: none;
width: 300px;
height: 300px;
diff --git a/public/js/shorten_result.js b/public/js/shorten_result.js
index 402919e..e497843 100644
--- a/public/js/shorten_result.js
+++ b/public/js/shorten_result.js
@@ -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,
diff --git a/resources/views/shorten_result.blade.php b/resources/views/shorten_result.blade.php
index 1f65d32..4098acd 100644
--- a/resources/views/shorten_result.blade.php
+++ b/resources/views/shorten_result.blade.php
@@ -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