mirror of
https://codeberg.org/ashley/poke.git
synced 2025-01-31 06:53:39 -05:00
add topic mode
Signed-off-by: Ashley //// <iamashley@duck.com>
This commit is contained in:
parent
93b09b4958
commit
152756ce5b
1 changed files with 35 additions and 2 deletions
|
@ -589,7 +589,7 @@ background-color: #0000;
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<% if(shortsui) { %>
|
<% if(shortsui) { %>
|
||||||
<script>
|
<script>
|
||||||
// Function to apply styles after DOM has loaded
|
// Function to apply styles after DOM has loaded
|
||||||
function applyStyles() {
|
function applyStyles() {
|
||||||
|
@ -623,6 +623,39 @@ background-color: #0000;
|
||||||
</script>
|
</script>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
<% if (inv_vid.author.endsWith(' - Topic')) { %>
|
||||||
|
<script>
|
||||||
|
// Function to apply styles after DOM has loaded
|
||||||
|
function applyStyles() {
|
||||||
|
const styles = `
|
||||||
|
.player {
|
||||||
|
width: fit-content;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
height: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
.video-player-container {
|
||||||
|
max-width: fit-content;
|
||||||
|
min-width: fit-content;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
aspect-ratio: var(--ptd-watch-width-ratio) / var(--ptd-watch-height-ratio);
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
// Create a style element and set its content
|
||||||
|
const styleElement = document.createElement('style');
|
||||||
|
styleElement.innerHTML = styles;
|
||||||
|
|
||||||
|
// Append the style element to the document head
|
||||||
|
document.head.appendChild(styleElement);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Event listener to call applyStyles after DOM has loaded
|
||||||
|
window.onload = applyStyles;
|
||||||
|
</script>
|
||||||
|
<% } %>
|
||||||
<% if(dm) { %>
|
<% if(dm) { %>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue