Skip to content

Instantly share code, notes, and snippets.

@bugcloud
Created December 9, 2011 10:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bugcloud/1450983 to your computer and use it in GitHub Desktop.
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', () ->
wb.remove()
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