简体   繁体   English

Google+反馈系统的屏幕截图部分如何运作?

[英]How does the Screenshot part of the Google+ Feedback system work?

I don't have an invite but it been used on TWIG. 我没有邀请,但它在TWIG上使用过。 It works as following: 它的工作原理如下:

You can select a parts to highlight, parts to blackout. 您可以选择要突出显示的部件,停电部件。 In the next step a screenshot of that is created (??) and you can preview what other browser information is transmitted. 在下一步中,创建了截图(??),您可以预览其他浏览器信息的传输。

So how does Google create that screenshot? 那么Google如何创建该截图? does it send the complete modified DOM for server-side processing? 它是否发送完整的修改DOM用于服务器端处理? or what other black magic is involved here? 或者其他什么黑魔法?

The highlights and black outs are just HTML divs . 亮点和黑色外观只是HTML divs The screenshot of the page is a canvas. 该页面的屏幕截图是一个画布。

I used Chrome's developer tools to confirm this. 我使用Chrome的开发者工具来确认这一点。 It even works in Firefox and Internet Explorer, so it definitely isn't just a Chrome thing. 它甚至适用于Firefox和Internet Explorer,所以它绝对不仅仅是Chrome的东西。

Here's a screenshot of developer tools with one of the highlight elements highlighted to show that it is a div : 这是开发人员工具的屏幕截图,其中一个突出显示的元素突出显示它是一个div

Google Chrome开发者工具 - 反馈工具

There is one canvas: 有一个画布:

帆布

When the dialog says this: 当对话框显示:

Please wait while we take a snapshot of the page so you can highlight the relevant areas. 请稍等我们拍摄页面快照,以便您突出显示相关区域。

It seems to be rendering a screenshot of the page on the server (as there is a request in the Network tab and it has to do with a snapshot and the feedback according to the variables in the request URL) and then it places the screenshot over the page. 它似乎是在服务器上呈现页面的屏幕截图(因为在“网络”选项卡中有一个请求,它与快照和根据请求URL中的变量的反馈有关)然后它将屏幕截图放在这页纸。

After you click on "Next," another dialog opens with all of the information and renders the final screenshot with your highlights and black outs in it. 单击“下一步”后,将打开另一个包含所有信息的对话框,并显示最终屏幕截图,其中包含高亮显示和黑屏。

最后的对话

I'm not sure how they did the "Highlighted Text" part though. 我不确定他们是如何做“突出显示的文字”部分的。

它可以将整个DOM树发送到服务器并在另一端呈现它。

dont know the feature, but how your describing it; 不知道这个特征,但是你如何描述它; its not a crossplatform feature and not in the specs. 它不是跨平台功能而不是规格。 Your looking for drawWindow of the canvas element. 你正在寻找canvas元素的drawWindow They then base64/urlencode the canvas and send it to the server. 然后他们对画布进行base64 / urlencode并将其发送到服务器。 Can imagine they back it with serverside black magic for IE6 support.. or they make google+ a html5 browser only thing.. 可以想象他们用IE6支持的服务器黑魔法支持它。或者他们只做google + html5浏览器的东西..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何构建像google+这样的拖放圈子系统 - How to build a drag and drop circle system like google+ tumblr 和 google+ 如何像拼图一样堆叠图像? - How does tumblr and google+ stack images like a puzzle? 如何使用JavaScript拍摄Google Maps部分的屏幕截图 - How to take the screenshot of part of Google Maps use JavaScript 如何从主页分享几个帖子,每个帖子都有自己的截图,但都有一个网址? Facebook,Google +,Twitter,Pinterest - How share from Homepage several Posts each with own Screenshot, but all have one URL? Facebook, Google+, Twitter, Pinterest 使用ctrl + enter提交google +回复,但无法将“ click”事件发送到“提交”按钮 - Use ctrl+enter to submit google+ reply but does not work sending a 'click' event to the submit button 与Google+共享不起作用 - Sharing to Google+ doesn't work 如何截取网页的特定部分 - How to screenshot particular part of the webpage 将HTML放入HTML文本框(标签,Google+邀请等)的小部件如何工作? - How do widgets that put HTML in a HTML textbox (tags, Google+ Invite, etc) work? 如何记录成功的Google+分享 - How to record a successful Google+ share 如何获取某人的Google+ ID - How to get Google+ ID of a person
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM