open-avatar-chat / index.html
bboygun's picture
Update index.html
306aa23 verified
raw
history blame
1.94 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>open-avatar-chat</title>
<style>
html,
body {
margin: 0;
padding: 0;
overflow: hidden;
height: 100%; /* Ensure full height */
}
.github-container {
position: absolute;
top: 10px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center; /* Vertically align content */
background: white;
padding: 10px; /* Spacing inside container */
border-radius: 6px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add shadow */
z-index: 1; /* Ensure it's above the iframe */
}
.github-container img {
width: 24px;
height: 24px;
margin-right: 8px; /* Spacing between icon and text */
}
.github-container a {
text-decoration: none;
color: #0366d6; /* GitHub link color */
font-size: 14px;
}
.github-container a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="github-container">
<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" alt="GitHub" />
<a href="https://github.com/HumanAIGC-Engineering/OpenAvatarChat" target="_blank">
open-avatar-chat🔥
</a>
</div>
<script>
(function () {
const iframe = document.createElement("iframe");
iframe.style.width = "100%";
iframe.style.height = "100vh";
iframe.style.border = "none";
iframe.allow = "microphone; camera";
iframe.src = "https://open-avatar.holoworld.com.cn:8282/";
iframe.sandbox = "allow-scripts allow-same-origin";
document.body.appendChild(iframe);
})();
</script>
</body>
</html>