Skip to content

Instantly share code, notes, and snippets.

@gufril15
Created November 13, 2023 08:37
Show Gist options
  • Save gufril15/3556c10fabe447eeaa8cc6e318c020dd to your computer and use it in GitHub Desktop.
Save gufril15/3556c10fabe447eeaa8cc6e318c020dd to your computer and use it in GitHub Desktop.
Langkah Menambahkan Scripts dan Styles ChatGPT ke Blog
<!-- Tambahkan Stylesheet -->
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/elhakimyasya/Contoh-Kode@499c89b6039eef8c034b65c9d936e95c557f0503/dist/chat-gpt.css"
rel="preload" />
<!-- Container untuk ChatGPT -->
<div class="elcreative-chatgpt"></div>
<!-- Sisipkan Script ChatGPT -->
<script
src="https://cdn.jsdelivr.net/gh/elhakimyasya/Contoh-Kode@499c89b6039eef8c034b65c9d936e95c557f0503/dist/chat-gpt.js"></script>
<!-- Inisialisasi dan Konfigurasi ChatGPT -->
<script>
bloggerChatGPT({
elementContainer: '.elcreative-chatgpt',
config: {
apiKey: 'API_KEY_CHATGPT',
minCharacter: JUMLAH_KARAKTER_MINIMAL,
imageUser: 'URL_GAMBAR_USER',
imageBot: 'URL_GAMBAR_BOT',
},
});
</script>
</code>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment