File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,17 @@ const toast = document.querySelector('#toast');
5
5
6
6
btn . addEventListener ( 'click' , generate ) ;
7
7
8
- function generate ( ) {
9
- const data = input . value ;
10
- const URL = `https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=${ data } ` ;
11
- code . src = URL ;
12
-
13
- toastDiv ( ) ;
8
+ function generate ( ) {
9
+ const data = input . value ;
10
+ const URL = `https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=${ data } ` ;
11
+ code . src = URL ;
12
+
13
+ toastDiv ( ) ;
14
14
}
15
15
16
- function toastDiv ( ) {
17
- toast . className = "show" ;
18
- setTimeout ( function ( ) {
19
- toast . className = toast . className . replace ( "show" , "" ) ;
20
- } , 2000 )
21
- }
16
+ function toastDiv ( ) {
17
+ toast . className = "show" ;
18
+ setTimeout ( function ( ) {
19
+ toast . className = toast . className . replace ( "show" , "" ) ;
20
+ } , 2000 )
21
+ }
You can’t perform that action at this time.
0 commit comments