-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
176 lines (164 loc) · 6.57 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html lang="jp">
<head>
<title>SIRO Language Interpreter|シロ言語用のオンライン実行環境</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="css/styles.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<!-- OGP -->
<meta property="og:title" content="SIRO Language Interpreter" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://yameholo.github.io/SiroLangInterpreter/" />
<meta property="og:image" content="https://yameholo.github.io/SiroLangInterpreter/img/ogp.png" />
<meta property="og:site_name" content="SIRO Language Interpreter" />
<meta property="og:description" content="シロ言語用のオンライン実行環境" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@app1e_s" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-120056704-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-120056704-1");
</script>
<!-- for icon font -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous" />
<!-- for model javascript -->
<script src="js/sbf.js"></script>
<script>
const today = new Date();
if (today.getMonth() === 3 && today.getDate() === 1) {
location.href = 'https://yameholo.github.io/SiroLangInterpreter/index-april-fool.html'
}
</script>
</head>
<body>
<nav class="navbar navbar-expand navbar-dark bg-dark">
<a class="navbar-brand" href="#">SIRO Language Interpreter</a>
<div class="collapse navbar-collapse justify-content-end" id="navbar">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown">
JP
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="">日本語</a>
<a class="dropdown-item" href="index-en.html">English</a>
<a class="dropdown-item" href="index-tofu.html">Tofu</a>
</div>
</li>
</ul>
</div>
</nav>
<div class="jumbotron text-center">
<h1>SIRO Language Interpreter</h1>
<h4 class="text-muted">シロちゃんの動画は為になるなぁ</h4>
</div>
<div class="container">
<div class="row">
<div class="col-md-4">
<h3>Siro言語仕様</h3>
<p>シロちゃんの名言を命令にする。それ以外の文字は無視する。</p>
<table class="table table-hover table-sm">
<thead>
<tr>
<th scope="col">命令</th>
<th scope="col">役割</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">いーねっ!</th>
<td>ポインタを1進める</td>
</tr>
<tr>
<th scope="row">おほほい</th>
<td>ポインタの指す要素の値を1増やす。</td>
</tr>
<tr>
<th scope="row">キューイ</th>
<td>ポインタを1戻す。</td>
</tr>
<tr>
<th scope="row">ぱいーん</th>
<td>ポインタの指す要素の値を1減らす。</td>
</tr>
<tr>
<th scope="row">白組さん</th>
<td>
ポインタの指す要素の値が"0"だったら対応する次の"救済"までジャンプ。
</td>
</tr>
<tr>
<th scope="row">救済</th>
<td>対応する前の "白組さん" までジャンプ。</td>
</tr>
<tr>
<th scope="row">なんて日だ!</th>
<td>ポインタの指す要素の値を外に出力。</td>
</tr>
<tr>
<th scope="row">ズンドコズンドコ♪</th>
<td>外から値を入力して、ポインタの指す場所へ入れる。</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-8">
<h3>Interpreter</h3>
<div class="form-group">
<label for="source">プログラム</label>
<textarea class="form-control" rows="15" id="source"></textarea>
</div>
<div class="clearfix">
<a class="btn btn-primary float-right m-1 px-5" href="javascript:void(0)" onclick="run()">実行</a>
<a class="btn btn-success float-right m-1 px-5" href="javascript:void(0)" onclick="sampleCode()">サンプルコード</a>
</div>
<p>実行結果</p>
<div class="card card-body bg-light">
<pre id="out"></pre>
</div>
</div>
</div>
</div>
<footer class="page-footer font-small bg-dark mt-4">
<div class="text-center pt-3">
<ul class="list-inline">
<li class="list-inline-item">
<a class="text-muted" href="https://qiita.com/benisho_ga/items/50e674fded183a9e12f1">
About SIRO-lang
</a>
</li>
<li class="list-inline-item">
<a class="text-muted" href="https://twitter.com/app1e_s">
Contact
</a>
</li>
<li class="list-inline-item">
<a class="text-muted"
href="https://twitter.com/intent/tweet?text=シロ組さん専用のプログラミング言語「siro」オンラインインタープリター&url=https://yameholo.github.io/SiroLangInterpreter">
Share
</a>
</li>
<li class="list-inline-item">
<a class="text-muted" href="https://github.com/yameholo/SiroLangInterpreter">
GitHub
</a>
</li>
</ul>
</div>
<div class="footer-copyright text-center pb-2 text-muted">
© 2020
<a href="https://twitter.com/app1e_s">meiehi</a>
</div>
</footer>
</body>
</html>