-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevtools_panel.html
97 lines (86 loc) · 2.71 KB
/
devtools_panel.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Div Selector DevTools Panel</title>
<!-- Include necessary CSS files for jsTree and FontAwesome icons -->
<link rel="stylesheet" href="libs/jstree.min.css" />
<link rel="stylesheet" href="libs/css/all.min.css" />
<style>
/* Basic styles for the body and container elements */
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
#panel-container {
padding: 10px;
box-sizing: border-box;
}
/* Styles for the filter input box */
#filter-input {
width: 100%;
padding: 5px;
margin-bottom: 10px;
box-sizing: border-box;
font-size: 14px;
}
/* Styles for the jsTree container */
#jstree {
width: 100%;
height: 70vh;
overflow: auto;
border: 1px solid #ddd;
scrollbar-width: thin;
overflow-x: scroll;
overflow-y: scroll;
}
/* Styles for the buttons container */
#buttons-container {
display: flex;
margin-top: 10px;
}
/* Styles for the copy button */
#copyButton {
flex: 1;
margin-right: 10px;
padding: 8px;
cursor: pointer;
background-color: #4CAF50;
color: white;
border: none;
font-size: 14px;
}
/* Styles for the debug container */
#debug {
margin-top: 10px;
border-top: 1px solid #ccc;
padding-top: 10px;
font-size: 12px;
color: #666;
}
/* Highlight style used for matching text in the jsTree */
.highlight {
background-color: yellow;
}
</style>
</head>
<body>
<div id="panel-container">
<!-- Input field for filtering the jsTree -->
<input type="text" id="filter-input" placeholder="Type to filter tree..." />
<!-- Container for the jsTree element -->
<div id="jstree"></div>
<!-- Container for buttons, currently has the Copy Text button -->
<div id="buttons-container">
<button id="copyButton">Copy Text</button>
</div>
<!-- Debug area to display messages to the user -->
<div id="debug"></div>
</div>
<!-- Include necessary JavaScript libraries -->
<script src="libs/jquery.min.js"></script>
<script src="libs/jstree.min.js"></script>
<script src="devtools_panel.js"></script>
</body>
</html>