Skip to content
This repository has been archived by the owner on Oct 26, 2019. It is now read-only.

Contribution: simple JS widget #1

Open
Pharkie opened this issue Jul 3, 2012 · 1 comment
Open

Contribution: simple JS widget #1

Pharkie opened this issue Jul 3, 2012 · 1 comment

Comments

@Pharkie
Copy link

Pharkie commented Jul 3, 2012

Don't know how to put this in Git and make a pull request, but I spent a few hours putting a new Javascript widget together today and hope it's useful to share with you:

http://jsbin.com/ojevos/4/edit#html

Also as a Gist, which has a Git repo apparently: https://gist.github.com/3040924

The main part of the code is a 'date/time formatting' library which I used in-line because I couldn't find a reliable CDN or hosted version. My actual widget is toward the end and is only a few lines. It's meant as a straightforward way of getting the next N events from a specific meetup and showing compact details encouraging a click-through to the main site for more. It's simple, unstyled and should fit anywhere. I've made it self-contained since I need it to work in a 'paste your HTML/widget code here' in a CMS.

This code could be used as a base for a 'Widget foundry' where you select which of the JSON object attributes you want to display in what format and it generates the code for you. That's what I was looking for and found nothing like it in the current list.

Hopefully someone may find this useful.

@softprops
Copy link
Contributor

You can fork the widget repo into your own account by clicking the "fork" button in the top right of your screen. From there you can just add a new widget html files. See the project's readme notes for using your api key. When you think you are ready you can submit a pull request to us by clicking the "pull request" button, also in the top right.

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

No branches or pull requests

2 participants