Skip to content

Commit b768d33

Browse files
committed
Fix: code-block selector for examples, logo sketch background
1 parent 96ebf2e commit b768d33

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

assets/logo_sketch.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html><head>
3-
<style>*{margin:0;padding:0;overflow:hidden}body{background:#fff}canvas{display:block;background:#fff}</style>
3+
<style>*{margin:0;padding:0;overflow:hidden}body{background:#fff}canvas{display:block}</style>
44
</head><body>
55
<canvas id="canvas"></canvas>
66
<script>

assets/nav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
marker.id = 'ref-cm-loaded';
123123
document.head.appendChild(marker);
124124
const dark = document.body.classList.contains('dark-mode');
125-
document.querySelectorAll('.syntax-block, .impl-block, .example-code, .code-example').forEach(el => {
125+
document.querySelectorAll('.syntax-block, .impl-block, .code-block').forEach(el => {
126126
const code = el.innerHTML
127127
.replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&amp;/g, '&').trim();
128128
const wrap = document.createElement('div');

0 commit comments

Comments
 (0)