Portfolio

Code::Stats Embed


Github repository: https://github.com/byjokese/code-stats-embedded/

Embed your Code::Stats profile anywhere

Everybody loves stats. So why not to share them where ever you want?

Installation

Add the following code to your html:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/byjokese/code-stats-embedded@latest/dist/codestatsembedded.min.css" />
<script src="https://cdn.jsdelivr.net/gh/byjokese/code-stats-embedded@latest/dist/codestatsembedded.min.js"></script>
<script>
  CodeStatsEmbed("ContainerSelector", "username");
</script>

or download the files from dist folder.

Documentation

CodeStatsEmbed("ContainerSelector", "username");

Brings the stadistics from Code::Stats (provided username) into your page.

Params

  • String-HTMLElement container: The calendar container (query selector or the element itself).
  • String username: The Code::Stats username.

Thanks

  • Part of the CSS and JS code was taken from the offical project of Code::Stats in GitLab (https://gitlab.com/code-stats/code-stats).
  • To Mikko Ahlroth from Code::Stats for creating such great service.

License

Permissions of this strong copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights.

Let's Get In Touch!


Actions speaks louder than words! Do you want to contact me? Go ahead!