Sha256: 052f55832edb5e726963188ff68109f084952eb21ca1a45dd752dece0e0483dd
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
<script> window.Cobot = window.Cobot || {}; window.Cobot.iframeResize = function(height) { if(window.top !== window) { window.socket.postMessage(height || window.Cobot.iframeHeight()); } } window.Cobot.iframeHeight = window.Cobot.iframeHeight || function() { return $('body').outerHeight(); } window.Cobot.scrollTop = 0; easyXDM.query = <%== xdm_params.to_json %>; $(window).load(function() { window.socket = new easyXDM.Socket({ onReady: function() { window.Cobot.iframeResize(); }, onMessage: function(message) { var message = JSON.parse(message); if(message.scrollTop) { window.Cobot.scrollTop = message.scrollTop; } } }); }); </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cobot_client-0.6.5 | app/views/cobot_client/_resize_script.html.erb |