@@ -419,6 +419,20 @@ <h3 style="text-align:center;">The 1000 mile journey begins with a single step.
419
419
}
420
420
}
421
421
}
422
+
423
+ let ghx = await fetch ( "https://gh-sponsors-dsdpxxx9d-filiptronicek.vercel.app/sponsors/CrowCpp" ) ;
424
+ let ghy = await fetch ( "https://gh-sponsors-dsdpxxx9d-filiptronicek.vercel.app/count/CrowCpp" ) ;
425
+ let ghsponsors = await ghx . json ( ) ;
426
+ ghsponsors = ghsponsors . sponsors ;
427
+ let ghx_count = await ghy . json ( ) ;
428
+ ghx_count = ghx_count . sponsors . count ;
429
+
430
+ if ( ghx_count > ghsponsors . length )
431
+ {
432
+ let priv_count = ghx_count - ghsponsors . length ;
433
+ ghsponsors . push ( { handle : priv_count = 1 ? "Private sponsor" : `${ priv_count } Private sponsors` , avatar :null , profile :"https://github.com/CrowCpp" } ) ;
434
+ }
435
+
422
436
423
437
text += "<section style=\"text-align: center;\"><a href=\"https://opencollective.com/crow/contribute/sponsor-30717/checkout\"><h2>Sponsors</h2></a>" ;
424
438
for ( var i = 0 ; i < sponsors . length ; i ++ ) { let item = sponsors [ i ] ; text += makeCard ( item . name , item . image , item . profile , 10 ) ; }
@@ -432,6 +446,9 @@ <h3 style="text-align:center;">The 1000 mile journey begins with a single step.
432
446
text += "</section><br><section style=\"text-align: center;\"><a href=\"https://opencollective.com/crow/contribute/donation-30769/checkout\"><h2>Donations</h2></a>" ;
433
447
for ( var i = 0 ; i < donations . length ; i ++ ) { let item = donations [ i ] ; text += makeCard ( item . name , item . image , item . profile , 3.5 ) ; }
434
448
449
+ text += "</section><br><section style=\"text-align: center;\"><a href=\"https://opencollective.com/crow/contribute/booster-30767/checkout\"><h2>GitHub Sponsors</h2></a>" ;
450
+ for ( var i = 0 ; i < ghsponsors . length ; i ++ ) { let item = ghsponsors [ i ] ; text += makeCard ( item . handle , item . avatar , item . profile , 5 ) ; }
451
+
435
452
text += "</section><section style=\"text-align: center;\">" ;
436
453
await getGHData ( ) ;
437
454
text += "</section>" ;
0 commit comments