Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Whiteboard from Google+ stream
streamsAll = []
streams = []
$("#contentPane .Sq>div").each () ->
streamsAll.push this
return undefined
oids = []
for st in streamsAll
a = $(st).find(".jr a:first")
oid = a.attr('oid')
if oids.indexOf(oid) < 0
oids.push oid
streams.push st
html = "<div id='whiteBoardWrapper' style='width:100%;height:100%;background-color:rgba(10,10,10,0.8);position:absolute;top:0;left:0;z-index:9999;'><p id='whiteBoardCloseBtn' style='font-size:20px;color:#fff;cursor:pointer;'>x</p></div>"
$("body").prepend html
wb = $("#whiteBoardWrapper")
$("#whiteBoardCloseBtn").bind 'click', () ->
return undefined
for s in streams
wb.append $(s).clone()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment