File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1183,9 +1183,13 @@ <h1 class="footer__title">Nipun</h1>
1183
1183
< div id ="visits "> ...</ div >
1184
1184
</ div >
1185
1185
</ footer >
1186
-
1187
1186
</ main >
1188
- < script src ="./js/counter.js "> </ script >
1187
+ < script >
1188
+ function cb ( response ) {
1189
+ console . log ( response . value ) ;
1190
+ document . getElementById ( 'visits' ) . innerText = response . value ;
1191
+ }
1192
+ </ script >
1189
1193
< script async src ="https://api.countapi.xyz/hit/nipunh.github.io/visits?callback=cb "> </ script >
1190
1194
< script type ="text/javascript " src ="https://cdn.jsdelivr.net/npm/@emailjs/browser@4/dist/email.min.js "> </ script >
1191
1195
< script src ="./js/main.js "> </ script >
Original file line number Diff line number Diff line change 1
1
function cb ( response ) {
2
- document . getElementById ( 'visits' ) . innerText = response . value ;
3
2
console . log ( response . value )
3
+ document . getElementById ( 'visits' ) . innerText = response . value ;
4
4
}
You can’t perform that action at this time.
0 commit comments