Bloggify / github-calendar

:bar_chart: Embed your GitHub calendar everywhere.
https://bloggify.github.io/github-calendar/example/
MIT License
1.24k stars 213 forks source link

Integration Issues #137

Open chinmayprele opened 3 years ago

chinmayprele commented 3 years ago

The code example shown in the README is different to the one shown in the example.

Which one is correct to use?

I tried to use the one in the example, and the example itself worked, but when I attempted to use drosophominin (me) instead of your-username, it fails to work.

I am trying the following:

<!-- Include the library. -->
<script
  src="https://unpkg.com/github-calendar@latest/dist/github-calendar.min.js"
></script>

<!-- Optionally, include the theme (if you don't want to struggle to write the CSS) -->
<link
   rel="stylesheet"
   href="https://unpkg.com/github-calendar@latest/dist/github-calendar-responsive.css"
/>

<!-- Prepare a container for your calendar. -->
<div class="calendar">
    <!-- Loading stuff -->
    Loading the data just for you.
</div>

<script>
    GitHubCalendar(".calendar", "drosophominin);
    // or enable responsive functionality
    GitHubCalendar(".calendar", "drosophominin", { responsive: true });
</script>
secondl1ght commented 3 years ago

Can you link to the repo with your code in it? I might be able to help.

IonicaBizau commented 2 years ago

How does it fail more exactly...? Please post the console output.