-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
49 lines (45 loc) · 1.71 KB
/
Copy pathexample.html
File metadata and controls
49 lines (45 loc) · 1.71 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Free Block Engine</title>
<link rel="stylesheet" href="example.css" />
</head>
<body>
<div class="toolbar">
<button onclick="createNewBlock()">New Block</button>
<div class="link-type-selector">
<select id="linkTypeSelect">
<option value="single">→ Single</option>
<option value="reverse">← Reverse</option>
<option value="double">↔ Double</option>
</select>
<button onclick="linkSelectedBlocks()">Link Selected</button>
</div>
<button onclick="arrangeBlocks()">Auto Arrange</button>
<div class="separator"></div>
<div class="view-toggle">
<button id="freeViewBtn" class="active" onclick="setViewMode('free')">Free</button>
<button id="gridViewBtn" onclick="setViewMode('grid')">Grid</button>
</div>
<div class="separator"></div>
<input type="text" id="searchInput" placeholder="Search blocks..." onkeyup="searchBlocks()">
<div class="separator"></div>
<button onclick="exportData()">Export</button>
<button onclick="importData()">Import</button>
<input type="file" id="importFile" style="display: none;" accept=".json" onchange="handleImport(event)">
<div id="status"></div>
</div>
<div id="blocks-container"></div>
<div class="help-text">
<strong>Tips:</strong><br>
• Double-click on arrows to edit link direction<br>
• Ctrl+click to select multiple blocks<br>
• Drag blocks to reposition them
</div>
<script src="blockEngine.js"></script>
<script src="blockRenderer.js"></script>
<script src="example.js"></script>
</body>
</html>