-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (50 loc) · 1.89 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>SPAGHETTI!</title>
<link href="https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>spaghetti.js</h1>
<h2>a framework for strings.</h2>
<p>spaghetti.js provides helpful (or maybe just cool) functions such as: </p>
<ul>
<li>Flexibly reversing strings</li>
<li>Encrypting/decrypting strings</li>
<li>Locking and hiding string values</li>
<li>Rearranging strings</li>
<li>And more!</li>
</ul>
<h2>Getting started</h2>
<p>To use spaghetti.js, just paste this into your page: </p>
<code><script src="https://2kinc.github.io/spaghetti-js/main.js"></script></code>
<p>or <a href="main.js" download>download</a> the script. </p>
<h2>Docs</h2>
<ul style="list-style:none;">
<li>
<code class="big">$s(<i>string</i>)</code>
<p>The main function you use to make spaghetti strings.</p>
</li><br>
<li>
<code class="big">.val</code>
<p>Returns the value of the string.</p>
</li><br>
<li>
<code class="big">.len</code>
<p>Returns the length of the string.</p>
</li><br>
<li>
<code class="big">.reverse(<i>splitter</i> = '')</code>
<p>Reverse all characters of the string against a splitter.</p>
</li><br>
<li>
<code class="big">.reversed</code>
<p>Returns the reversed string.</p>
</li><br>
</ul>
<script src="main.js" charset="utf-8"></script>
<script src="index.js"></script>
</body>
</html>