Gangsta-GPT / index.html
AlexandroRocha's picture
Upload index.html
d2c0695 verified
Raw
History Blame Contribute Delete
842 Bytes
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Gangsta GPT</title>
<style>
body {
margin: 0;
background: #111;
}
iframe {
width: 100%;
height: 100vh;
border: none;
}
</style>
</head>
<body>
<iframe
src="https://alexandrorocha-gangsta-gpt.hf.space?__theme=dark"
id="chatbot">
</iframe>
<script>
// Hide Hugging Face footer (only works if Space allows embedding)
document.getElementById('chatbot').onload = function() {
const iframeDoc = this.contentDocument || this.contentWindow.document;
const style = iframeDoc.createElement('style');
style.innerHTML = `
footer, .footer { display: none !important; }
`;
iframeDoc.head.appendChild(style);
};
</script>
</body>
</html>