Sha256: 49e38e6ec0ab352e9f5ef36568b4362c37d3ee59220e61b96e519f311f16fb92
Contents?: true
Size: 778 Bytes
Versions: 1
Compression:
Stored size: 778 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() { $('body').outerHeight(); } window.Cobot.scrollTop = 0; easyXDM.query = <%== xdm_params.to_json %>; window.socket = new easyXDM.Socket({ onReady: function() { setTimeout(function() { window.Cobot.iframeResize(); }, 100); }, 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.3 | app/views/cobot_client/_resize_script.html.erb |