Spaces:
Running
Running
File size: 1,872 Bytes
8088d11 01e235b 8088d11 180644e 8088d11 d6756fc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>HTML Encoder/Decoder</title>
<style>
body {
background: #E0F7FA;
color: #00274D;
font-family: 'Courier New', monospace;
text-align: center;
padding: 20px;
}
textarea {
background: rgba(0, 0, 0, 0.7);
border: 1px solid #00FFFF;
color: #00FFFF;
font-size: 16px;
padding: 10px;
width: 80%;
max-width: 600px;
border-radius: 5px;
box-shadow: 0 0 10px #00FFFF;
}
button {
background: #000;
border: 2px solid #00FFFF;
color: #00FFFF;
font-size: 18px;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
transition: 0.3s;
box-shadow: 0 0 15px #00FFFF;
}
button:hover {
background: #00FFFF;
color: #000;
box-shadow: 0 0 20px #00FFFF, 0 0 30px #00FFFF;
}
#tb {
display: block;
margin: 20px auto;
}
@keyframes glow {
0% { box-shadow: 0 0 5px #00FFFF; }
50% { box-shadow: 0 0 20px #00FFFF; }
100% { box-shadow: 0 0 5px #00FFFF; }
}
button {
animation: glow 1.5s infinite alternate;
}
</style>
</head>
<body>
html:<br>
<textarea id="tb" name="tb" rows="4" cols="50"><iframe
src="https://henryz-streaming-chat-with-gpt-3-5-turbo-using-l-df92eb4.hf.space/"
allowfullscreen
style="border:none; width:100vw; height:100vh;">
</iframe>
</textarea><br>
<button id="pipButton">ピクチャー・イン・ピクチャー ウィンドウを開く</button>
<script>
document.getElementById('pipButton').addEventListener('click', async () => {
const player = document.getElementById('player');
const pipWindow = await documentPictureInPicture.requestWindow({
width: 400,
height: 300
});
let tb = document.getElementById('tb');
pipWindow.document.body.innerHTML=tb.value;
pipWindow.addEventListener('pagehide', () => {
document.getElementById('playerContainer').appendChild(player);
});
});
</script>
</body>
</html>
|