Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
120 lines (107 loc) · 3.95 KB
/
Copy pathindex.html
File metadata and controls
120 lines (107 loc) · 3.95 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Mapping A Website's Internal Links - Bret Bernhoft</title>
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked@12.0.2/lib/marked.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dompurify@3.1.6/dist/purify.min.js"></script>
<link rel="stylesheet" href="main.css" />
<link rel="stylesheet" href="dashboard.css" />
<link
rel="icon"
href="https://hosting.photobucket.com/bbcfb0d4-be20-44a0-94dc-65bff8947cf2/ff4a3384-baa9-4bc2-94c9-6bff4e3d3ea0.png"
sizes="any"
/>
</head>
<body>
<div id="graph-view">
<a id="dashboard-link" href="#dashboard">Analytics Dashboard →</a>
<div id="scorecard" class="scorecard">
<h3>Website Scorecard</h3>
<div id="scorecard-list"></div>
</div>
<div id="scorecard-right" class="scorecard">
<h3>Node Scorecard</h3>
<div id="tooltip-scorecard-list"></div>
<div id="claude-analysis-section" class="sc-section">
<div class="sc-section-title">Claude AI Analysis</div>
<button id="analyze-node-button" type="button">
Get Claude Analysis
</button>
<div id="claude-analysis-output"></div>
</div>
</div>
<div id="filters-box" class="scorecard filters-box">
<h4>Website Search</h4>
<div class="search-group">
<input
id="node-search"
type="search"
placeholder="Type keywords - all must match…"
autocomplete="off"
spellcheck="false"
/>
<button id="node-search-clear" type="button" title="Clear search">
x
</button>
</div>
<div class="legend-shortcuts">
<span><span class="key-hint">/</span> Focus search</span>
<span id="search-status"></span>
</div>
</div>
</div>
<div id="dashboard-view">
<header class="dash-header">
<div class="dash-header-left">
<a href="#" class="back-link">← Back to graph</a>
<h1>Site Analytics Dashboard</h1>
</div>
</header>
<main class="dash-grid">
<section id="kpi-row" class="kpi-row"></section>
<section class="card card-full">
<h2>Distributions</h2>
<div id="histograms" class="histogram-row"></div>
</section>
<section class="card">
<h2>Link structure by depth</h2>
<div id="radial-graph" class="chart-body"></div>
<div id="radial-legend" class="chart-legend"></div>
</section>
<section class="card">
<h2>Content by section</h2>
<div id="treemap" class="chart-body"></div>
<div id="treemap-legend" class="chart-legend"></div>
</section>
<section class="card">
<h2>Page speed</h2>
<div id="dumbbell-legend" class="chart-legend chart-legend-top"></div>
<div id="dumbbell" class="chart-body"></div>
</section>
<section class="card">
<h2>Audit checks by page</h2>
<div id="issue-matrix" class="chart-body scroll-x"></div>
</section>
<section class="card card-full">
<h2>All pages</h2>
<div id="page-table" class="table-wrap"></div>
</section>
</main>
<div id="dash-tooltip" class="dash-tooltip" hidden></div>
</div>
<script src="main.js"></script>
<script type="module" src="dashboard.js"></script>
<script type="module">
function syncView() {
const open = location.hash === "#dashboard";
document.body.classList.toggle("dashboard-open", open);
if (open) window.dispatchEvent(new Event("dashboard-show"));
}
window.addEventListener("hashchange", syncView);
syncView();
</script>
</body>
</html>