Publish
Publish button provides GUI to Aurora window size configuration.Â
Â
Size
Size is the first section of this window and it allows you to set window size parameters for Aurora stand-alone web address and Aurora embedding JavaScript snippet.
Aurora window can be resized dynamically or the size can be fixed.
- Dynamic resizing can be done either on every resize of the browser window or, if you check the On load only box, just once, on Aurora window load, and then this size will be kept for the duration of Aurora session.
- The second option – Fixed (in pixels) – enables you to set the size of Aurora window to fixed values. If Aurora is larger than the browser window – scroll bars will appear on the right and bottom side. If Aurora is smaller than the browser window then a grey margin will be left on the right side and below Aurora window. The two screenshots below show both scenarios:
Bottom margin (in pixels)Â allows you to force Aurora window to leave a margin on the bottom of browser window.
Aurora stand-alone web address:
This is a simple link to the results of Aurora Creator Script. You can copy it to any web browser to see the results.
Aurora embedding JavaScript snippet:
Aurora embedding JavaScript snippet is an automatically generated code which can be used as a part of html code to embed an Aurora application on website.
Example:
Simple html code with included Aurora embedding JavaScript snippet :
<html> <head> </head> <body> <div id="AuroraSample" style="width: 100%; height: 100%; display: block; overflow: hidden; position: relative"></div> <div> <noscript> <h1>JavaScript is not enabled</h1> For full functionality of this site it is necessary to enable JavaScript. Here are the <a href="http://www.enable-javascript.com/" target="_blank"> instructions how to enable JavaScript in your web browser</a>. </noscript> <script type="text/javascript"> var s = document.createElement('script'); s.type = 'text/javascript'; window.AuroraSampleReady = function(auroraApp) { }; s.src = 'https://192.168.56.101/map/Aurora.svc/Frame?hostid=AuroraSample&username=admin&script=\\Aurora\\My Aurora - localhost.AuroraScript$&callback=AuroraSampleReady&resize=always&margin_bottom=10'; document.getElementsByTagName('head')[0].appendChild(s); </script> </div> </body> </html>