Created
December 9, 2011 10:11
-
-
Save bugcloud/1450983 to your computer and use it in GitHub Desktop.
Whiteboard from Google+ stream
This file contains 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
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