Created
December 23, 2011 22:29
-
-
Save basicxman/1515553 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.streamCallback = (data) -> | |
| if $.streams is undefined or data.version >= $.streams.version | |
| $.streams = data | |
| executeStreams() | |
| executeStreams = -> | |
| for stream in $.streams.streams | |
| elm = $("#blank-stream").clone() | |
| elm.attr("id", "stream-#{stream.id}") | |
| elm.html(stream.embed) | |
| elm.appendTo("#stream-container") | |
| elm.dialog({ | |
| title: stream.name | |
| }) | |
| loadStream = -> | |
| $.getScript("js/streams.js") | |
| jQuery -> | |
| loadStream() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment