@@ -9,35 +9,35 @@ document.addEventListener("DOMContentLoaded", function () {
99 currentDate . getDate ( )
1010 ) ;
1111
12- setTimeout ( ( ) => {
13- db . collection ( "Users" )
14- . where ( "lastActive" , ">=" , lastMonth )
15- . get ( )
16- . then ( ( querySnapshot ) => {
17- animateValue ( "monthly-active-users" , 0 , querySnapshot . size , 500 ) ;
18- } ) ;
12+ // setTimeout(() => {
13+ // db.collection("Users")
14+ // .where("lastActive", ">=", lastMonth)
15+ // .get()
16+ // .then((querySnapshot) => {
17+ // animateValue("monthly-active-users", 0, querySnapshot.size, 500);
18+ // });
1919
20- db . collection ( "Statistics" )
21- . doc ( "website-views" )
22- . get ( )
23- . then ( ( doc ) => {
24- if ( doc . exists ) {
25- const data = doc . data ( ) ;
26- animateValue ( "website-views" , 0 , data . views , 50 ) ;
27- } else {
28- console . error ( "No document exists." ) ;
29- }
30- } )
31- . catch ( ( error ) => {
32- console . error ( error ) ;
33- } ) ;
20+ // db.collection("Statistics")
21+ // .doc("website-views")
22+ // .get()
23+ // .then((doc) => {
24+ // if (doc.exists) {
25+ // const data = doc.data();
26+ // animateValue("website-views", 0, data.views, 50);
27+ // } else {
28+ // console.error("No document exists.");
29+ // }
30+ // })
31+ // .catch((error) => {
32+ // console.error(error);
33+ // });
3434
35- db . collection ( "Messages" )
36- . get ( )
37- . then ( ( querySnapshot ) => {
38- animateValue ( "messages-sent" , 0 , querySnapshot . size , 500 ) ;
39- } ) ;
40- } , 500 ) ;
35+ // db.collection("Messages")
36+ // .get()
37+ // .then((querySnapshot) => {
38+ // animateValue("messages-sent", 0, querySnapshot.size, 500);
39+ // });
40+ // }, 500);
4141
4242 // if (window.mobileCheck()) {
4343 // document.getElementById('members-container').classList.replace('grid', 'grid-cols-2', 'gap-6')
0 commit comments