Skip to content

@bugcloud /wb.coffee
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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
Something went wrong with that request. Please try again.