-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplate.html
More file actions
58 lines (54 loc) · 1.79 KB
/
template.html
File metadata and controls
58 lines (54 loc) · 1.79 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GeoGebra 演示</title>
<script src="https://cdn.geogebra.org/apps/deployggb.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="header">
<h1><i class="fas fa-gem"></i> GeoGebra 演示工具</h1>
<p>可视化教学工具</p>
</div>
<main class="main-content-area">
<div class="viewer-container-tri card">
<div id="ggb-element" class="ggb-container"></div>
</div>
<div class="control-panel">
<div class="control-group">
</div>
</div>
</main>
<script>
var parameters = {
"appName": "3d",
"width": "700",
"height": "500",
"borderColor": "#FFFFFF",
"borderRadius": "12px",
"showToolBar": false,
"showAlgebraInput": false,
"showMenuBar": false,
"allowStyleBar": false,
"enable3d": true,
"perspective": "T",
"appletOnLoad": function (api) {
window.ggbApp = api;
initialize();
},
"language": "zh-CN",
};
var applet = new GGBApplet(parameters, true);
window.addEventListener("load", function () {
applet.inject("ggb-element");
});
function initialize() {
ggbApp.evalCommand(`A=(1, 1, 1)`);
}
</script>
</body>
</html>