/
body.html.erb
executable file
·41 lines (35 loc) · 1.42 KB
/
body.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!--
Syntax/Runtime errors from Silverlight will be displayed here.
This will contain debugging information and should be removed
or hidden when debugging is completed
-->
<div id='<%= options[:reportErrors] %>' style="font-size: small;color: Gray;"></div>
<div id="debug_print"></div>
<!--
Silverlight control: allows us to write Ruby in the browser
-->
<div id="SilverlightControlHost" onload="self.focus()">
<object
data="data:application/x-silverlight,"
type="application/x-silverlight-2"
width="<%= options[:properties][:width] %>" height="<%= options[:properties][:height] %>">
<param name="source" value="<%= public_xap_file %>" />
<param name="onerror" value="onSilverlightError" />
<param name="background" value="<%= options[:properties][:background] %>" />
<param name="windowless" value="<%= options[:properties][:windowless] %>" />
<param name="initParams" value="<%= generate_init_params(options) %>" />
<!--
Provide installation prompt, including image, if
Silverlight needs to be installed on the client.
-->
<a
href="http://go.microsoft.com/fwlink/?LinkID=124807"
style="text-decoration: none;">
<img
src="http://go.microsoft.com/fwlink/?LinkId=108181"
alt="Get Microsoft Silverlight"
style="border-style: none" />
</a>
</object>
<iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe>
</div>