moved rrweb-player into packages/rrweb-player
This commit is contained in:
36
packages/rrweb-player/public/index.html
Normal file
36
packages/rrweb-player/public/index.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
|
||||
<title>Svelte app</title>
|
||||
|
||||
<link rel="stylesheet" href="/global.css" />
|
||||
<link rel="stylesheet" href="/bundle.css" />
|
||||
|
||||
<script src="/bundle.js"></script>
|
||||
<script src="./events.js"></script>
|
||||
</head>
|
||||
|
||||
<body></body>
|
||||
<script>
|
||||
// eslint-disable-next-line
|
||||
const component = new rrwebPlayer({
|
||||
target: document.body,
|
||||
data: {
|
||||
events,
|
||||
skipInactive: true,
|
||||
showDebug: false,
|
||||
showWarning: false,
|
||||
autoPlay: true,
|
||||
mouseTail: {
|
||||
strokeStyle: 'yellow',
|
||||
},
|
||||
},
|
||||
});
|
||||
window.$c = component;
|
||||
component.addEventListener('finish', () => console.log('finish'));
|
||||
// component.addEventListener('ui-update-progress', console.log);
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user