File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ fetch ( 'https://services.minbrowser.org/web-events/v1/collect' , {
2+ method : 'post' ,
3+ headers : {
4+ 'Content-Type' : 'application/json'
5+ } ,
6+ body : JSON . stringify ( {
7+ os : getUserPlatform ( ) ,
8+ event : 'pageview' ,
9+ version : 'a'
10+ } )
11+ } )
12+
13+ Array . from ( document . querySelectorAll ( '.download-button' ) ) . forEach ( function ( button ) {
14+ button . addEventListener ( 'click' , function ( ) {
15+ fetch ( 'https://services.minbrowser.org/web-events/v1/collect' , {
16+ method : 'post' ,
17+ headers : {
18+ 'Content-Type' : 'application/json'
19+ } ,
20+ body : JSON . stringify ( {
21+ os : getUserPlatform ( ) ,
22+ event : 'downloadbutton' ,
23+ version : 'a'
24+ } )
25+ } )
26+ } )
27+ } )
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ <h1 class="center-heading" style="color: black">Try Min Now</h1>
106106 </ div >
107107
108108 < script src ="downloadButton.js "> </ script >
109+ < script src ="home.js "> </ script >
109110</ body >
110111
111112</ html >
You can’t perform that action at this time.
0 commit comments