Skip to content

Commit 4b15d2f

Browse files
committed
Readme and screenshots added
1 parent 9a6a532 commit 4b15d2f

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

README.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# QR Code Generator
2+
3+
## Overview
4+
This QR Code Generator Web App is very useful. You can convert your information
5+
to the form of qr code and you can also download generated qr in your local device.
6+
7+
<br/>
8+
### Screenshots
9+
![](./screenshots/qr-code-screenshot.png)
10+
<br/><br/>
11+
12+
13+
### Links
14+
15+
- Live Site URL: [See Website](https://qr-cod.netlify.app/)
16+
17+
## My process
18+
19+
### Built with
20+
21+
- HTML5
22+
- CSS
23+
- Flexbox
24+
- API
25+
- File Saver functions
26+
27+
### What I learned
28+
- How to work with API.
29+
- How to save qr code file in local device
30+
31+
## Author
32+
33+
- Website - [Sagar Sharma](https://sagar-io.github.io/)

app.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ let userText = 'Hello, World !';
66
let link;
77

88
function handleQR() {
9-
userText = this.value;
9+
if(this.value) {
10+
userText = (this.value);
11+
}
12+
1013
link = `https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=${userText}` ;
1114
qrImg.src = link;
1215
}

images/qr-img.png

358 KB
Loading

screenshots/qr-code-screenshot.png

61.4 KB
Loading

0 commit comments

Comments
 (0)