mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
Update web player to the latest version
This commit is contained in:
@@ -211,6 +211,7 @@ pre.ap-terminal {
|
|||||||
color: var(--term-color-foreground);
|
color: var(--term-color-foreground);
|
||||||
background-color: var(--term-color-background);
|
background-color: var(--term-color-background);
|
||||||
border-color: var(--term-color-background);
|
border-color: var(--term-color-background);
|
||||||
|
outline: none;
|
||||||
font-family: Consolas, Menlo, 'Bitstream Vera Sans Mono', monospace, 'Powerline Symbols';
|
font-family: Consolas, Menlo, 'Bitstream Vera Sans Mono', monospace, 'Powerline Symbols';
|
||||||
font-variant-ligatures: none;
|
font-variant-ligatures: none;
|
||||||
}
|
}
|
||||||
@@ -225,7 +226,11 @@ pre.ap-terminal .ap-line span {
|
|||||||
}
|
}
|
||||||
pre.ap-terminal .ap-line {
|
pre.ap-terminal .ap-line {
|
||||||
display: block;
|
display: block;
|
||||||
width: 200%;
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
pre.ap-terminal .ap-line span {
|
||||||
|
position: absolute;
|
||||||
}
|
}
|
||||||
pre.ap-terminal .ap-line .ap-cursor-a {
|
pre.ap-terminal .ap-line .ap-cursor-a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -474,7 +479,7 @@ span.ap-marker-container:hover span.ap-marker-tooltip {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.ap-player .ap-overlay-start .ap-play-button svg {
|
.ap-player .ap-overlay-start .ap-play-button svg {
|
||||||
filter: drop-shadow(0px 0px 5px var(--term-color-background));
|
filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.4));
|
||||||
}
|
}
|
||||||
.ap-player .ap-overlay-loading .ap-loader {
|
.ap-player .ap-overlay-loading .ap-loader {
|
||||||
width: 48px;
|
width: 48px;
|
||||||
|
|||||||
2
assets/asciinema-player.min.js
vendored
2
assets/asciinema-player.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -31,13 +31,7 @@
|
|||||||
|
|
||||||
let bufferTime = params.get('bufferTime');
|
let bufferTime = params.get('bufferTime');
|
||||||
|
|
||||||
if (bufferTime === null) {
|
if (bufferTime !== null) {
|
||||||
if (loc.hostname === 'localhost' || loc.hostname === '127.0.0.1') {
|
|
||||||
bufferTime = 0.01;
|
|
||||||
} else {
|
|
||||||
bufferTime = 0.1;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
bufferTime = parseFloat(bufferTime);
|
bufferTime = parseFloat(bufferTime);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user