forked from q2apro/graphobed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphobed.html
66 lines (52 loc) · 1.65 KB
/
graphobed.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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>graphbed</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js" type="text/javascript"></script>
<script src="graphobed.js"></script>
</head>
<body>
<h1>graphobed</h1>
<pre>
/*
* graphobed
* http://www.echteinfach.tv/tools/graphobed.js
*
* graphobed is a jquery script that can find equations on your website,
* parses them and embeds the according graphs below the formula as HTML5 canvas.
* To let the script find your equations, enclose them in <span>*</span># equation <span>#</span>*
* Embedded Graphs can be changed later on, use the created input field.
* This script relies on: jquery, easeljs, math.js
*
* @version 0.0.1.2
* @date 2016-14-01
*
* @license
* Copyright (C) 2015 Kai Noack, http://www.echteinfach.tv/
*
* Distributed under the terms of the MIT license.
* http://www.opensource.org/licenses/mit-license.html
*
* This notice shall be included in all copies or substantial portions of the Software.
*
*
* USAGE:
*
* Simply embed the script in your document's head section:
*
* <script src="https://raw.githubusercontent.com/echteinfachtv/graphobed/master/graphobed.js" type="text/javascript"></script>
*
* The formula parsing is done automatically.
*
**/
</pre>
<div style="width:550px;">
<h2>graphobed Demo</h2>
<p>This is a demo of "graphobed" embedding. We have an equation in our text and the script detects and parses it:</p>
<p>Example function: *# 2^x-1,55 #*</p>
<p>Let us do a second graph: *# sin(x)*x^2 #*</p>
<p>What about pi and e? *# e^(pi*x) #*</p>
</div>
</body>
</html>