-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocumentation.html
More file actions
43 lines (37 loc) · 1.61 KB
/
documentation.html
File metadata and controls
43 lines (37 loc) · 1.61 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CarrotScript Documentation</title>
<link rel="shortcut icon" type="image/jpg" href="favicon.png"/>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/570e7065ed.js" crossorigin="anonymous"></script>
</head>
<body>
<h1><img src="logo_transparent.png" width="200"><br>Documentation</h1><br><br>
<p>
<h2>Post Tag</h2>
Post data:<br>
<code>carrotscript.post("Data name", "Data Value");</code><br><br>
Change data:<br>
<code>carrotscript.post("Name of value to change", "Value to change to");</code><br><br><br>
<h2>Get Tag</h2>
Get data:<br>
<code>carrotscript.get("Data name");</code><br><br>
Example:<br>
<code>var get-example = carrotscript.get("Data name");<br>
doument.body.innerHTML= get-example;
</code><br><br><br>
<h2>Print Tag</h2>
Print data:<br>
<code>carrotscript.print("Data name");</code><br><br><br>
<h2>Replace Tag</h2>
Replace an element:<br>
<code>carrotscript.replace("Id of element", "Data name to replae with");</code><br><br><br>
</p>
</body>
</html>