-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
113 lines (102 loc) · 3.51 KB
/
index.html
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!doctype html>
<html style="background-color: white; min-height: 100%;overflow-y: scroll;">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Opal: CDN distribution</title>
<link rel="icon" href="favicon.ico" />
<link href="./stylesheets/application.css" rel="stylesheet" type="text/css">
<script src="./javascripts/application.js" type="text/javascript"></script>
<link href="http://code.ionicframework.com/ionicons/1.4.1/css/ionicons.min.css" rel="stylesheet" type="text/css">
<script src="opal/current/opal.min.js"></script>
<script src="opal/current/native.min.js"></script>
<script src="opal/current/opal-parser.min.js"></script>
</head>
<body class="index">
<nav class="navbar navbar-default opal-nav" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="http://opalrb.org">
<img height="22"
src="https://secure.gravatar.com/avatar/88298620949a6534d403da2e356c9339?s=420&d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-org-420.png"
style="margin-top:-10%;" width="22">
Opal
</a>
<button class="navbar-toggle" data-target="#opal-navbar" data-toggle="collapse" type="button">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse" id="opal-navbar">
<ul class="nav navbar-nav">
<li class="active">
<a href="#">
<i class="ion-earth"></i>
CDN
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div>
<img
src="https://secure.gravatar.com/avatar/88298620949a6534d403da2e356c9339?s=420&d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-org-420.png"
alt="" style="float:right;margin-top:-24px" width="96" height="96">
<div class="page-header">
<h1>Opal
<small>CDN distribution</small>
</h1>
</div>
</div>
<h2 id="url_scheme">URL scheme</h2>
<pre><code>//cdn.opalrb.org/opal/<VERSION>/opal.js
//cdn.opalrb.org/opal/<VERSION>/opal.min.js
//cdn.opalrb.org/opal/<VERSION>/opal.min.js.gz
</code></pre>
<p>Where <code><VERSION></code> is the desired version number or <code>current</code>.
<h3>Versions available</h3>
<ul>
<li>0.5.5</li>
<li>0.6.0</li>
<li>0.6.1</li>
<li>0.6.2</li>
<li>0.6.3</li>
<li>0.7.0</li>
<li>0.7.1</li>
<li>0.8.0.rc2</li>
<li><a href="opal/0.8.0/index.html">0.8.0</a></li>
<li><a href="opal/0.8.1/index.html">0.8.1</a></li>
<li><a href="opal/0.9.0.beta2/index.html">0.9.0.beta2</a></li>
<li><a href="opal/0.9.2/index.html">0.9.2</a></li>
<li><a href="opal/0.9.3/index.html">0.9.3</a></li>
<li><a href="opal/0.9.4/index.html">0.9.4</a></li>
<li><a href="opal/0.10.0/index.html">0.10.0</a></li>
<li><a href="opal/0.10.1/index.html">0.10.1</a></li>
</ul>
<h2 id="license">License</h2>
<p>See <a href="http://opalrb.org">http://opalrb.org</a>.</p>
</div>
<script>
Opal.load('native');
Opal.load('opal-parser');
</script>
<script type="text/ruby">
puts 'Hello from the console!'
class User
attr_accessor :name
def initialize(name)
@name = name
end
def admin?
@name == 'Admin'
end
end
user = User.new('Bob')
puts user
puts user.admin?
</script>
</body>
</html>