Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use github issues as idea list #1

Open
ThaDafinser opened this issue Aug 5, 2014 · 2 comments
Open

Use github issues as idea list #1

ThaDafinser opened this issue Aug 5, 2014 · 2 comments

Comments

@ThaDafinser
Copy link

If someone is interested in a talk or have a suggestion -> just open an issue here.

We can than use the github api, and list the ideas easily on the website.
The more comments -> the more interest 😄

@ThaDafinser
Copy link
Author

@ThaDafinser
Copy link
Author

Todo:

  • sort by comment count
  • ...
<section>
        <h2>Ideen f&uuml;r Vortr&auml;ge</h2>
        <ol id="ideas"></ol>
      </section>
        var http = new XMLHttpRequest();
        http.open('GET', 'https://api.github.com/repos/VlbgWebDev/vlbgwebdev.github.io/issues?labels=talk%20idea', true);
        http.onreadystatechange = function() {
            if (http.readyState == 4) {
                var html = '';

                var result = JSON.parse(http.responseText);
                result.forEach(function(issue) {
                    html += '<li><a href="' + issue.html_url + '">';
                    html += issue.title + '</a> Kommentare: ' + issue.comments;
                    html += '</li>';
                });

                document.getElementById('ideas').innerHTML = html;
            }
        }
        http.send(null);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant