mirror of
https://github.com/f/awesome-chatgpt-prompts.git
synced 2025-03-28 16:48:02 -04:00
deploy: b9f3c80ced74334056c97b4ad77ce0854503c756
This commit is contained in:
parent
62f593ce14
commit
6d0ac92d71
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/style.css?v=52bed5ba60a0de16f422ed085e94c60e9e6946bf">
|
||||
<link rel="stylesheet" href="/style.css?v=b9f3c80ced74334056c97b4ad77ce0854503c756">
|
||||
</head>
|
||||
<body class="">
|
||||
<div class="layout-wrapper">
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/style.css?v=52bed5ba60a0de16f422ed085e94c60e9e6946bf">
|
||||
<link rel="stylesheet" href="/style.css?v=b9f3c80ced74334056c97b4ad77ce0854503c756">
|
||||
</head>
|
||||
<body class="vibe">
|
||||
<div class="layout-wrapper">
|
||||
|
@ -356,7 +356,7 @@ function showModal(app, prompt, contributor) {
|
||||
<a class="modal-contributor" target="_blank" rel="noopener"></a>
|
||||
</div>
|
||||
<div class="modal-footer-right">
|
||||
<button class="modal-chat-button" onclick="openModalChat()">
|
||||
<button class="modal-chat-button">
|
||||
<svg class="terminal-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<polyline points="4 17 10 11 4 5"></polyline>
|
||||
<line x1="12" y1="19" x2="20" y2="19"></line>
|
||||
@ -381,9 +381,15 @@ function showModal(app, prompt, contributor) {
|
||||
});
|
||||
|
||||
// Add copy functionality
|
||||
const modalCopyButton = modalOverlay.querySelector('.modal-copy-button');
|
||||
modalCopyButton.addEventListener('click', () => {
|
||||
copyPrompt(modalCopyButton, encodeURIComponent(prompt));
|
||||
const modalCopyButton = modalOverlay.querySelectorAll('.modal-copy-button, .modal-chat-button');
|
||||
modalCopyButton.forEach(button => {
|
||||
button.addEventListener('click', () => {
|
||||
// TODO: Add open in chat functionality
|
||||
copyPrompt(button, encodeURIComponent(prompt));
|
||||
if (button.classList.contains('modal-chat-button')) {
|
||||
alert('Now you can paste the prompt into your AI IDE, deeplinks to AI IDEs are coming soon (I hope)! — IDE devs, please DM me!');
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user