60 lines
1.5 KiB
HTML
Executable File
60 lines
1.5 KiB
HTML
Executable File
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" >
|
|
<head>
|
|
<title>IronRuby tutorial</title>
|
|
|
|
<style type="text/css">
|
|
html, body {
|
|
height: 99%;
|
|
overflow: auto;
|
|
}
|
|
body {
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
#silverlightControlHost {
|
|
height: 100%;
|
|
}
|
|
#errorLocation {
|
|
font-size: small;
|
|
color: Gray;
|
|
}
|
|
</style>
|
|
|
|
<script type="text/javascript">
|
|
window.DLR = {
|
|
settings: {
|
|
source: 'app.xap', debug: 'true',
|
|
background: 'white', windowless: 'true',
|
|
width: "100%", height: "100%",
|
|
}
|
|
}
|
|
</script>
|
|
<script type="text/javascript" src="/dlr-build/dlr.js"></script>
|
|
|
|
<!-- Force Python to be registered so it can be used in the tutorial -->
|
|
<script type="text/python"></script>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<!-- needed for testing -->
|
|
<script type='text/ruby' src='test/silverlight.rb' defer='true'></script>
|
|
<script type='text/ruby' src='test/test_console.rb' defer='true'></script>
|
|
<script type='text/ruby' src='console_tutorial.rb' defer='true'></script>
|
|
|
|
<!-- start script -->
|
|
<script type='text/ruby' src='app/app.rb'></script>
|
|
|
|
<script type="text/ruby">
|
|
if document.query_string.keys.include?('test')
|
|
$repl = Repl.show('ruby')
|
|
$stdout = $repl.output_buffer
|
|
$stderr = $repl.output_buffer
|
|
require "test/silverlight"
|
|
end
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|