mirror of
https://github.com/f/awesome-chatgpt-prompts.git
synced 2025-04-19 14:41:17 +00:00
deploy: 7c65334f534942a277b6615a8b5dbed4f6f41adb
This commit is contained in:
parent
9fdee0843f
commit
a829fe1589
27
index.html
27
index.html
@ -21,7 +21,7 @@
|
||||
{"@context":"https://schema.org","@type":"WebSite","description":"This repo includes ChatGPT prompt curation to use ChatGPT and other LLM tools better.","headline":"Awesome ChatGPT Prompts","name":"Awesome ChatGPT Prompts","url":"/"}</script>
|
||||
<!-- End Jekyll SEO tag -->
|
||||
|
||||
<link rel="stylesheet" href="/assets/css/style.css?v=b0e75bacb4d62ce3c120f440db711339edc46993">
|
||||
<link rel="stylesheet" href="/assets/css/style.css?v=7c65334f534942a277b6615a8b5dbed4f6f41adb">
|
||||
<style>
|
||||
:root {
|
||||
--bg-color-light: #ffffff;
|
||||
@ -5225,6 +5225,23 @@ scaling solutions.</p>
|
||||
const grokOptions = document.querySelectorAll('.grok-mode-option');
|
||||
let isGrokDropdownVisible = false;
|
||||
|
||||
// Add event listeners for all platform buttons
|
||||
const platformButtons = document.querySelectorAll('.platform-tag');
|
||||
platformButtons.forEach(button => {
|
||||
button.addEventListener('click', () => {
|
||||
const platform = button.getAttribute('data-platform');
|
||||
// If platform is not github-copilot, set audience to "everyone"
|
||||
if (platform !== 'github-copilot') {
|
||||
audienceSelect.value = 'everyone';
|
||||
document.body.classList.remove('dev-mode');
|
||||
// Trigger filtering if needed
|
||||
if (typeof filterPrompts === 'function') {
|
||||
filterPrompts();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Hide dropdown when clicking outside
|
||||
document.addEventListener('click', (e) => {
|
||||
if (!e.target.closest('.platform-tag-container')) {
|
||||
@ -5249,6 +5266,14 @@ scaling solutions.</p>
|
||||
grokButton.textContent = selectedText;
|
||||
grokDropdown.style.display = 'none';
|
||||
isGrokDropdownVisible = false;
|
||||
|
||||
// Also set audience to "everyone" for Grok options
|
||||
audienceSelect.value = 'everyone';
|
||||
document.body.classList.remove('dev-mode');
|
||||
// Trigger filtering if needed
|
||||
if (typeof filterPrompts === 'function') {
|
||||
filterPrompts();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user