Skip to content

Commit

Permalink
feat: Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed Mar 1, 2024
1 parent 51e91ba commit f80f97a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/examples/src/js/workers/encode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface EncodeMessage {
export type EncodeResultMessage = EncodedOk | EncodedError;

function hex2rgb(hex: string): [R: number, G: number, B: number] {
const value = parseInt(`0x${hex.slice(1, 7)}`);
const value = parseInt(hex.slice(1, 7), 16);

return [(value >> 16) & 0xff, (value >> 8) & 0xff, value & 0xff];
}
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/static/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"/><title>二维码</title><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="public/favicon.ico"/><script defer="defer" src="public/js/4f1e9ad1c8376b9c.js"></script><script defer="defer" src="public/js/49511c551b2e0a43.js"></script><script defer="defer" src="public/js/f9091e80ac6bb221.js"></script><link href="public/css/be1a0c0d225bc424.css" rel="stylesheet"/></head><body><noscript>您已禁用 JavaScript,网站无法正常工作,请启用 JavaScript!</noscript><div id="app"></div></body></html>
<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"/><title>二维码</title><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="public/favicon.ico"/><script defer="defer" src="public/js/9804ac5d88d42487.js"></script><script defer="defer" src="public/js/fdf68d9098c67ffe.js"></script><script defer="defer" src="public/js/37a1628da6c5ecd6.js"></script><link href="public/css/be1a0c0d225bc424.css" rel="stylesheet"/></head><body><noscript>您已禁用 JavaScript,网站无法正常工作,请启用 JavaScript!</noscript><div id="app"></div></body></html>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f80f97a

Please sign in to comment.