public
Created

Whiteboard from Google+ stream

  • Download Gist
wb.coffee
CoffeeScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
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()

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.