mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 20:18:08 +01:00
add copy code thingy hehe
This commit is contained in:
parent
535131f55d
commit
3a0b5da64f
1 changed files with 42 additions and 3 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -57,6 +58,30 @@ height: 100%;
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<% if (type == "copy_code") { %>
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
color:#000;
|
||||||
|
font-family:sans-serif
|
||||||
|
}
|
||||||
|
textarea {
|
||||||
|
width: 46em;
|
||||||
|
height: 4em;
|
||||||
|
resize: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
|
||||||
|
copy the html code to embed this webpage bellow: </p>
|
||||||
|
|
||||||
|
<textarea disabled="true"><iframe title="Play video" src="https://poketube.fun/embed/<%=video.id%>" allowfullscreen="true" data-orig-height="360" data-orig-width="640" style="width: 640px; height: 360px;" width="640" height="360" frameborder="0"></iframe></textarea>
|
||||||
|
<% } %>
|
||||||
|
|
||||||
|
<% if (type !== "copy_code") { %>
|
||||||
<link href=/css/app-cdn.min.css rel=stylesheet>
|
<link href=/css/app-cdn.min.css rel=stylesheet>
|
||||||
<link href=/css/app.main.css rel=stylesheet>
|
<link href=/css/app.main.css rel=stylesheet>
|
||||||
<link href="/css/watch.main.css?v=56" rel=stylesheet>
|
<link href="/css/watch.main.css?v=56" rel=stylesheet>
|
||||||
|
@ -64,9 +89,6 @@ height: 100%;
|
||||||
<link href="https://fonts.poketube.fun/css/fonts.css" rel=stylesheet>
|
<link href="https://fonts.poketube.fun/css/fonts.css" rel=stylesheet>
|
||||||
<link href="/css/watch-navbar.css?v=56" rel=stylesheet>
|
<link href="/css/watch-navbar.css?v=56" rel=stylesheet>
|
||||||
<link href=https://p.poketube.fun/https://site-assets.fontawesome.com/releases/v6.1.1/css/all.css rel=stylesheet>
|
<link href=https://p.poketube.fun/https://site-assets.fontawesome.com/releases/v6.1.1/css/all.css rel=stylesheet>
|
||||||
</head>
|
|
||||||
|
|
||||||
|
|
||||||
<body style="width: 100%;height: 100%;">
|
<body style="width: 100%;height: 100%;">
|
||||||
<div class="app" style="color:#fff;height: 100%;justify-content: center;width: 100%;">
|
<div class="app" style="color:#fff;height: 100%;justify-content: center;width: 100%;">
|
||||||
|
|
||||||
|
@ -146,7 +168,24 @@ height: 100%;
|
||||||
<!-- END <%=t%> -->
|
<!-- END <%=t%> -->
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
<% } %>
|
||||||
|
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<script>
|
||||||
|
if (window.top !== window) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
<% if (type == "copy_code") { %>
|
||||||
|
|
||||||
|
<% } else { %>
|
||||||
|
|
||||||
|
// the current page is not being used inside an iframe
|
||||||
|
location.href = location.origin + "/watch?v=<%=video.id%>"
|
||||||
|
<% } %>
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<script src="/css/custom-css.js"> </script>
|
<script src="/css/custom-css.js"> </script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue