-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (104 loc) · 6.98 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
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
<title>Kuroko</title>
<script src="src-min/ace.js"></script>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="favicon.ico">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<div class="container-fluid">
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav ms-auto mb-2 mb-md-0">
<li class="nav-item">
<a class="nav-link force-cursor" onclick="insertCode('tutorial()')">Tutorial</a>
</li>
<li class="nav-item">
<a class="nav-link force-cursor" href="/ide/">IDE</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Examples
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><h6 class="dropdown-header">Getting Started</h6></li>
<li><a class="dropdown-item force-cursor" onclick="insertCode(codeSamples.helloworld)">Hello, world!</a></li>
<li><a class="dropdown-item force-cursor" onclick="insertCode(codeSamples.variables)">Variable Declarations</a></li>
<li><a class="dropdown-item force-cursor" onclick="insertCode(codeSamples.classes)">Classes</a></li>
<li><a class="dropdown-item force-cursor" onclick="insertCode(codeSamples.comprehensions)">Iterable Comprehensions</a></li>
<li><hr class="dropdown-divider"></li>
<li><h6 class="dropdown-header">Web REPL Tricks</h6></li>
<li><a class="dropdown-item force-cursor" onclick="insertCode(codeSamples.tutorialsource)">Tutorial Source</a></li>
<li><a class="dropdown-item force-cursor" onclick="insertCode(codeSamples.loadgist)">Load from a Gist</a></li>
<li><a class="dropdown-item force-cursor" onclick="insertCode(codeSamples.clear)">Clear Terminal</a></li>
</ul>
</li>
</ul>
</div>
<div class="mx-auto order-0" style="padding-left: 2rem; padding-right: 2rem">
<a class="navbar-brand" href="/">
<img src="logo.png" style="height: 2rem; padding-right: 0.5rem;">
Kuroko
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav me-auto mb-2 mb-md-0">
<li class="nav-item">
<a class="nav-link" href="https://github.com/kuroko-lang/kuroko">Github</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/kuroko-lang/kuroko/releases">Downloads</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/docs/">Docs</a>
</li>
</ul>
</div>
</div>
</nav>
<main class="container">
<div class="bg-light p-5 rounded text-center">
<p class="lead">
Kuroko is a lightweight, bytecode-compiled, dynamic, interpreted programming language with familiar Python-compatible syntax and a small, embeddable core - small enough that you can try it right here in your browser!
</p>
<a class="btn btn-lg m-1 btn-secondary" onclick="insertCode('tutorial()')" role="button">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-book-open"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg>
Follow the tutorial »
</a>
<a class="btn btn-lg m-1 btn-danger" onclick="insertCode('tutorial11()')" role="button">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>
See what's new in 1.1 »
</a>
<a class="btn btn-lg m-1 btn-secondary" href="https://github.com/kuroko-lang/kuroko/" role="button">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-github"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>
See Kuroko on Github »
</a>
</div>
<div class="py-3">
<div id="container" class="terminal-container ace-sunsmoke">
<span style="color: #fff">This is an in-browser REPL for <a href="https://github.com/kuroko-lang/kuroko">Kuroko</a>.<br>
JavaScript and WebAssembly are required to view this page - if you're seeing this message, you may have JavaScript disabled.<br>
The total size of scripts, including the WebAssembly bytecode for the interpreter, is less than 1MB and no off-site resources are fetched.</span>
</div>
</div>
<footer class="container text-center mb-3">
<p class="mb-0">Copyright 2020-2024 <a href="https://github.com/klange">K. Lange</a></p>
<p class="mb-0">
<a href="https://github.com/kuroko-lang/kuroko-wasm-repl">WebAssembly repl</a> is powered by
<a href="https://emscripten.org">emscripten</a>, <a href="https://ace.c9.io/">Ace</a>, and <a href="https://getbootstrap.com/">Bootstrap</a>.
</p>
</footer>
</main>
<script type="text/javascript" src="base.js"></script>
<script async type="text/javascript" src="index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
</body>
</html>