22< html lang ="en ">
33< head >
44 < meta charset ="UTF-8 ">
5- < title > Send whatsapp message without saving a number</ title >
5+ < title > Send WhatsApp message without saving a number</ title >
66 < meta name ="viewport " content ="width=device-width, initial-scale=1 " />
77 < meta name ="description " content ="send whatsapp message without saving a number " />
88 < meta name ="keywords " content ="Send message to whatsapp, whatsapp, send, send whatsapp message without saving a number " />
99 < link href ='https://fonts.googleapis.com/css?family=Pacifico ' rel ='stylesheet ' type ='text/css '>
1010 < link rel ="stylesheet " href ="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css ">
11+
12+ <!-- The core Firebase JS SDK is always required and must be listed first -->
13+ < script src ="https://www.gstatic.com/firebasejs/7.19.1/firebase-app.js "> </ script >
14+ < script src ="https://www.gstatic.com/firebasejs/7.19.1/firebase-database.js "> </ script >
15+
16+
1117 < script src ="https://code.jquery.com/jquery-3.3.1.slim.min.js " integrity ="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo " crossorigin ="anonymous "> </ script >
1218 < script src ="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js " integrity ="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1 " crossorigin ="anonymous "> </ script >
1319 < script src ="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js " integrity ="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM " crossorigin ="anonymous "> </ script >
20+
21+
1422 <!-- <link rel="manifest" href="/manifest.json"> -->
23+ < style >
24+ .footer {
25+ position : fixed;
26+ left : 0 ;
27+ bottom : 0 ;
28+ width : 100% ;
29+ background-color : # 00ff37b3 ;
30+ color : white;
31+ text-align : center;
32+ }
33+ </ style >
34+
35+
1536
1637</ head >
1738< body >
1839 < div class ="container ">
1940 < div class ="m-5 align-self-center align-items-center justify-content-center ">
20- Send message on whatsapp without adding to your contacts
41+ Send message on WhatsApp without adding to your contacts list
2142 </ div >
2243 < form class ="m-5 align-self-center align-items-center justify-content-center ">
2344 < div class ="form-group ">
2445 < label for ="mobileNumber "> Country Code</ label >
25- < a href ="https://countrycode.org/ " target ="_blank "> (What is mine?) </ a >
46+ < a href ="https://countrycode.org/ " target ="_blank "> ? </ a >
2647 < input type ="text " class ="form-control " id ="countryCode " placeholder ="91 " />
2748 </ div >
2849 < div class ="form-group ">
3455 Send
3556 </ button >
3657 </ div >
58+
3759 </ form >
60+ < div class ="m-5 align-self-center align-items-center justify-content-center ">
61+ < ul class ="list-group ">
62+ < li class ="list-group-item "> You can send message on your own WhatsApp number</ li >
63+ < li class ="list-group-item "> We did not store anything.</ li >
64+ </ ul >
65+ </ div >
66+
67+ < div class ="footer ">
68+ < p > Vistors</ p >
69+ < div style ="color: black " id ="total_page_view "> </ div >
70+ </ div >
71+
3872 </ div >
73+
74+
75+
76+ < script type ="application/javascript ">
77+ // Your web app's Firebase configuration
78+ var firebaseConfig = {
79+ apiKey : "AIzaSyCW-9jswKWSVR5Ow6Z0AwDLjNL0LfjdDlA" ,
80+ authDomain : "zerowhatsapplivecounter.firebaseapp.com" ,
81+ databaseURL : "https://zerowhatsapplivecounter.firebaseio.com" ,
82+ projectId : "zerowhatsapplivecounter" ,
83+ storageBucket : "zerowhatsapplivecounter.appspot.com" ,
84+ messagingSenderId : "837356615942" ,
85+ appId : "1:837356615942:web:fd52d37cd72cc3ad858687"
86+ } ;
87+ // Initialize Firebase
88+ firebase . initializeApp ( firebaseConfig ) ;
89+
90+ var viewers_ip ;
91+ function get_viewer_ip ( json ) {
92+ viewers_ip = json . ip ;
93+ countView ( viewers_ip )
94+ }
95+ function countView ( viewers_ip ) {
96+ var views ;
97+ var ipToString = viewers_ip . toString ( ) ;
98+
99+ for ( var i = 0 ; i < ipToString . length ; i ++ ) {
100+ ipToString = ipToString . replace ( "." , "-" )
101+ }
102+
103+ firebase . database ( ) . ref ( ) . child ( "page_view/" + ipToString ) . set ( {
104+ viewers_ip : viewers_ip
105+ } ) ;
106+
107+ firebase . database ( ) . ref ( ) . child ( "page_view" ) . on ( "value" , function ( snapshot ) {
108+ views = snapshot . numChildren ( ) ;
109+ $ ( '#total_page_view' ) . text ( views ) ;
110+ } )
111+
112+ }
113+ </ script >
114+ < script type ="text/javascript " src ="https://api.ipify.org?format=jsonp&callback=get_viewer_ip "> </ script >
39115 < script src ="./whatsapp.js "> </ script >
40116</ body >
41117</ html >
0 commit comments