Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85340b85c6 | ||
|
|
efa61318f6 | ||
|
|
7572ddb565 | ||
|
|
8bc648a6bd |
@@ -1402,279 +1402,303 @@
|
|||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
// 8. YOUTUBE-IDENTICAL SEARCH BAR & VOICE MODAL ENGINE (v1.2.3 - Universal)
|
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
var activeVoiceRecognition = null;
|
// --------------------------------------------------------------------------
|
||||||
var isVoiceListeningActive = false;
|
// --------------------------------------------------------------------------
|
||||||
var modalTargetInput = null;
|
// --------------------------------------------------------------------------
|
||||||
|
// 8. FULL YOUTUBE SEARCH & VOICE MODAL ENGINE (v1.3.2 - Clean Generic Labels)
|
||||||
|
// --------------------------------------------------------------------------
|
||||||
|
var activeVoiceRec = null;
|
||||||
|
var isVoiceListening = false;
|
||||||
|
|
||||||
function createYouTubeVoiceModal() {
|
function createFullSearchModal() {
|
||||||
var existingModal = document.getElementById('yaktube-voice-modal');
|
var existingModal = document.getElementById('yaktube-full-search-modal');
|
||||||
if (existingModal) return existingModal;
|
if (existingModal) return existingModal;
|
||||||
|
|
||||||
var modal = document.createElement('div');
|
var modal = document.createElement('div');
|
||||||
modal.id = 'yaktube-voice-modal';
|
modal.id = 'yaktube-full-search-modal';
|
||||||
modal.className = 'yaktube-voice-modal-overlay';
|
modal.className = 'yaktube-full-search-modal';
|
||||||
modal.setAttribute('role', 'dialog');
|
modal.setAttribute('role', 'dialog');
|
||||||
modal.setAttribute('aria-modal', 'true');
|
modal.setAttribute('aria-modal', 'true');
|
||||||
modal.setAttribute('aria-labelledby', 'yaktube-voice-modal-title');
|
modal.setAttribute('aria-labelledby', 'yaktube-modal-search-title');
|
||||||
modal.style.display = 'none';
|
modal.style.display = 'none';
|
||||||
|
|
||||||
modal.innerHTML =
|
modal.innerHTML =
|
||||||
'<div class="yaktube-voice-modal-card">' +
|
'<div class="yaktube-modal-search-card">' +
|
||||||
'<div class="yaktube-voice-modal-header">' +
|
'<div class="yaktube-modal-search-bar">' +
|
||||||
'<h2 id="yaktube-voice-modal-title" class="yaktube-voice-modal-title">Sesle arama yapın</h2>' +
|
'<button id="yaktube-modal-back-btn" class="yaktube-modal-back-btn" aria-label="Aramadan Çık (Escape)" title="Aramadan Çık (Escape)">←</button>' +
|
||||||
'<button id="yaktube-voice-modal-close" class="yaktube-voice-modal-close-btn" aria-label="Sesli aramayı kapat">✕</button>' +
|
'<div class="yaktube-modal-input-wrap">' +
|
||||||
|
'<input id="yaktube-modal-input" type="search" placeholder="Video veya kanal ara..." aria-label="Arama Metni">' +
|
||||||
|
'<button id="yaktube-modal-clear-btn" class="yaktube-modal-clear-btn" aria-label="Metni Temizle">✕</button>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="yaktube-voice-modal-body">' +
|
'<button id="yaktube-modal-submit-btn" class="yaktube-modal-search-action-btn" aria-label="Ara">🔍 Ara</button>' +
|
||||||
'<div id="yaktube-voice-status-text" class="yaktube-voice-status-text">Dinleniyor...</div>' +
|
'<button id="yaktube-modal-voice-btn" class="yaktube-modal-voice-btn" aria-label="Sesle Ara (Shift+V)" title="Sesle Ara">🎙️</button>' +
|
||||||
'<div id="yaktube-voice-transcript-preview" class="yaktube-voice-transcript-preview"></div>' +
|
'</div>' +
|
||||||
'<div class="yaktube-voice-mic-wrapper">' +
|
'<div class="yaktube-modal-body">' +
|
||||||
'<button id="yaktube-voice-mic-pulse-btn" class="yaktube-voice-mic-pulse-btn" aria-label="Mikrofonu durdur veya başlat">' +
|
'<div id="yaktube-modal-voice-section" class="yaktube-modal-voice-section">' +
|
||||||
'🎙️' +
|
'<div id="yaktube-modal-voice-status" class="yaktube-modal-voice-status">🎙️ Dinleniyor...</div>' +
|
||||||
'</button>' +
|
'<div id="yaktube-modal-voice-transcript" class="yaktube-modal-voice-transcript">Lütfen aramak istediğiniz videoyu söyleyin...</div>' +
|
||||||
'<div id="yaktube-voice-ripple" class="yaktube-voice-ripple"></div>' +
|
'<button id="yaktube-modal-mic-pulse" class="yaktube-modal-mic-pulse-btn" aria-label="Mikrofonu durdur">🎙️</button>' +
|
||||||
|
'</div>' +
|
||||||
|
'<div class="yaktube-modal-section-title">🔥 Hızlı ve Popüler Aramalar</div>' +
|
||||||
|
'<div class="yaktube-modal-chips-grid">' +
|
||||||
|
'<button class="yaktube-modal-chip" data-query="Tarkan">🎵 Tarkan</button>' +
|
||||||
|
'<button class="yaktube-modal-chip" data-query="Barış Manço">🎸 Barış Manço</button>' +
|
||||||
|
'<button class="yaktube-modal-chip" data-query="Python Dersleri">💻 Python Dersleri</button>' +
|
||||||
|
'<button class="yaktube-modal-chip" data-query="Yapay Zeka">🤖 Yapay Zeka</button>' +
|
||||||
|
'<button class="yaktube-modal-chip" data-query="Sesli Kitap">🎧 Sesli Kitap</button>' +
|
||||||
|
'<button class="yaktube-modal-chip" data-query="Canlı Haber">📺 Canlı Haber</button>' +
|
||||||
|
'<button class="yaktube-modal-chip" data-query="Gitar Dersi">🎼 Gitar Dersi</button>' +
|
||||||
|
'<button class="yaktube-modal-chip" data-query="Bilim Belgeseli">🌍 Bilim Belgeseli</button>' +
|
||||||
|
'</div>' +
|
||||||
|
'<div class="yaktube-modal-hint-footer">' +
|
||||||
|
'<span>💡 <b>Enter</b> ile ara, <b>Shift+V</b> ile sesli ara</span>' +
|
||||||
|
'<span><b>Escape</b> ile kapat</span>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="yaktube-voice-hint-text">Aramak istediğiniz sanatçıyı, şarkıyı veya konuyu söyleyin.</div>' +
|
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>';
|
'</div>';
|
||||||
|
|
||||||
document.body.appendChild(modal);
|
document.body.appendChild(modal);
|
||||||
|
|
||||||
var closeBtn = modal.querySelector('#yaktube-voice-modal-close');
|
var inp = modal.querySelector('#yaktube-modal-input');
|
||||||
if (closeBtn) {
|
var clearBtn = modal.querySelector('#yaktube-modal-clear-btn');
|
||||||
closeBtn.addEventListener('click', function () {
|
var backBtn = modal.querySelector('#yaktube-modal-back-btn');
|
||||||
closeYouTubeVoiceModal();
|
var submitBtn = modal.querySelector('#yaktube-modal-submit-btn');
|
||||||
});
|
var voiceBtn = modal.querySelector('#yaktube-modal-voice-btn');
|
||||||
}
|
var micPulseBtn = modal.querySelector('#yaktube-modal-mic-pulse');
|
||||||
|
|
||||||
modal.addEventListener('click', function (e) {
|
// Input typing & clear
|
||||||
if (e.target === modal) {
|
inp.addEventListener('input', function () {
|
||||||
closeYouTubeVoiceModal();
|
if (inp.value && inp.value.trim().length > 0) {
|
||||||
|
clearBtn.style.display = 'inline-flex';
|
||||||
|
} else {
|
||||||
|
clearBtn.style.display = 'none';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var pulseBtn = modal.querySelector('#yaktube-voice-mic-pulse-btn');
|
clearBtn.addEventListener('click', function () {
|
||||||
if (pulseBtn) {
|
inp.value = '';
|
||||||
pulseBtn.addEventListener('click', function () {
|
clearBtn.style.display = 'none';
|
||||||
if (isVoiceListeningActive) {
|
inp.focus();
|
||||||
stopVoiceRecognition();
|
announce('Arama metni temizlendi.');
|
||||||
} else {
|
});
|
||||||
startVoiceRecognition();
|
|
||||||
}
|
// Close on Back button or Escape
|
||||||
});
|
backBtn.addEventListener('click', function () {
|
||||||
|
closeFullSearchModal();
|
||||||
|
});
|
||||||
|
|
||||||
|
modal.addEventListener('click', function (e) {
|
||||||
|
if (e.target === modal) {
|
||||||
|
closeFullSearchModal();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Search execute
|
||||||
|
function executeSearch(query) {
|
||||||
|
var q = (query || inp.value || '').trim();
|
||||||
|
if (q) {
|
||||||
|
announce('"' + q + '" için arama yapılıyor...', true);
|
||||||
|
closeFullSearchModal();
|
||||||
|
window.location.href = '/search/videos?search=' + encodeURIComponent(q);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
submitBtn.addEventListener('click', function () {
|
||||||
|
executeSearch();
|
||||||
|
});
|
||||||
|
|
||||||
|
inp.addEventListener('keydown', function (e) {
|
||||||
|
if (e.key === 'Enter') {
|
||||||
|
e.preventDefault();
|
||||||
|
executeSearch();
|
||||||
|
} else if (e.key === 'Escape') {
|
||||||
|
e.preventDefault();
|
||||||
|
closeFullSearchModal();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Chips click
|
||||||
|
modal.querySelectorAll('.yaktube-modal-chip').forEach(function (chip) {
|
||||||
|
chip.addEventListener('click', function () {
|
||||||
|
var query = chip.getAttribute('data-query');
|
||||||
|
executeSearch(query);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// Voice button click
|
||||||
|
voiceBtn.addEventListener('click', function () {
|
||||||
|
toggleVoiceInsideModal();
|
||||||
|
});
|
||||||
|
|
||||||
|
micPulseBtn.addEventListener('click', function () {
|
||||||
|
toggleVoiceInsideModal();
|
||||||
|
});
|
||||||
|
|
||||||
return modal;
|
return modal;
|
||||||
}
|
}
|
||||||
|
|
||||||
function openYouTubeVoiceModal(targetInput) {
|
function openFullSearchModal(initialQuery, autoStartVoice) {
|
||||||
|
var modal = createFullSearchModal();
|
||||||
|
modal.style.display = 'flex';
|
||||||
|
|
||||||
|
var inp = modal.querySelector('#yaktube-modal-input');
|
||||||
|
var clearBtn = modal.querySelector('#yaktube-modal-clear-btn');
|
||||||
|
if (inp) {
|
||||||
|
inp.value = initialQuery || '';
|
||||||
|
if (inp.value) clearBtn.style.display = 'inline-flex';
|
||||||
|
setTimeout(function () {
|
||||||
|
inp.focus();
|
||||||
|
inp.select();
|
||||||
|
}, 50);
|
||||||
|
}
|
||||||
|
|
||||||
|
announce('Arama penceresi açıldı. Arayacağınız konuyu yazın veya sesle arayın.', true);
|
||||||
|
|
||||||
|
if (autoStartVoice) {
|
||||||
|
startVoiceInsideModal();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function closeFullSearchModal() {
|
||||||
|
var modal = document.getElementById('yaktube-full-search-modal');
|
||||||
|
if (modal) modal.style.display = 'none';
|
||||||
|
stopVoiceInsideModal();
|
||||||
|
announce('Arama penceresi kapatıldı.');
|
||||||
|
}
|
||||||
|
|
||||||
|
function toggleVoiceInsideModal() {
|
||||||
|
if (isVoiceListening) {
|
||||||
|
stopVoiceInsideModal();
|
||||||
|
} else {
|
||||||
|
startVoiceInsideModal();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function startVoiceInsideModal() {
|
||||||
var SpeechRec = window.SpeechRecognition || window.webkitSpeechRecognition;
|
var SpeechRec = window.SpeechRecognition || window.webkitSpeechRecognition;
|
||||||
|
var modal = document.getElementById('yaktube-full-search-modal');
|
||||||
|
if (!modal) return;
|
||||||
|
|
||||||
|
var voiceSec = modal.querySelector('#yaktube-modal-voice-section');
|
||||||
|
var statusText = modal.querySelector('#yaktube-modal-voice-status');
|
||||||
|
var transcriptEl = modal.querySelector('#yaktube-modal-voice-transcript');
|
||||||
|
var inp = modal.querySelector('#yaktube-modal-input');
|
||||||
|
|
||||||
|
if (voiceSec) voiceSec.style.display = 'block';
|
||||||
|
if (statusText) statusText.textContent = '🎙️ Dinleniyor...';
|
||||||
|
if (transcriptEl) transcriptEl.textContent = 'Lütfen aramak istediğiniz videoyu söyleyin...';
|
||||||
|
|
||||||
if (!SpeechRec) {
|
if (!SpeechRec) {
|
||||||
announce(
|
if (statusText) statusText.textContent = 'Tarayıcıda Ses Tanıma Desteklenmiyor';
|
||||||
'Tarayıcınız sesli arama özelliğini desteklemiyor. Lütfen Chrome, Edge veya güncel bir mobil tarayıcı kullanın.'
|
if (transcriptEl) transcriptEl.textContent = 'Lütfen Google Chrome veya Microsoft Edge kullanın.';
|
||||||
);
|
announce('Tarayıcınız ses tanımayı desteklemiyor. Lütfen Chrome veya Edge kullanın.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var modal = createYouTubeVoiceModal();
|
announce('Sesli arama dinleniyor, lütfen aramak istediğiniz videoyu söyleyin.', true);
|
||||||
modal.style.display = 'flex';
|
|
||||||
announce('Sesli arama penceresi açıldı. Dinleniyor, lütfen aramak istediğiniz videoyu söyleyin.', true);
|
|
||||||
|
|
||||||
modalTargetInput = targetInput;
|
|
||||||
startVoiceRecognition();
|
|
||||||
|
|
||||||
var closeBtn = modal.querySelector('#yaktube-voice-modal-close');
|
|
||||||
if (closeBtn) closeBtn.focus();
|
|
||||||
}
|
|
||||||
|
|
||||||
function closeYouTubeVoiceModal() {
|
|
||||||
var modal = document.getElementById('yaktube-voice-modal');
|
|
||||||
if (modal) modal.style.display = 'none';
|
|
||||||
stopVoiceRecognition();
|
|
||||||
announce('Sesli arama kapatıldı.');
|
|
||||||
}
|
|
||||||
|
|
||||||
function startVoiceRecognition() {
|
|
||||||
var SpeechRec = window.SpeechRecognition || window.webkitSpeechRecognition;
|
|
||||||
if (!SpeechRec) return;
|
|
||||||
|
|
||||||
if (activeVoiceRecognition) {
|
|
||||||
try {
|
|
||||||
activeVoiceRecognition.stop();
|
|
||||||
} catch (e) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
var modal = document.getElementById('yaktube-voice-modal');
|
|
||||||
var statusText = modal ? modal.querySelector('#yaktube-voice-status-text') : null;
|
|
||||||
var transcriptPreview = modal ? modal.querySelector('#yaktube-voice-transcript-preview') : null;
|
|
||||||
var micBtn = modal ? modal.querySelector('#yaktube-voice-mic-pulse-btn') : null;
|
|
||||||
var ripple = modal ? modal.querySelector('#yaktube-voice-ripple') : null;
|
|
||||||
|
|
||||||
if (statusText) statusText.textContent = 'Dinleniyor...';
|
|
||||||
if (transcriptPreview) transcriptPreview.textContent = '';
|
|
||||||
if (micBtn) micBtn.classList.remove('yaktube-idle-mic');
|
|
||||||
if (ripple) ripple.style.display = 'block';
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
activeVoiceRecognition = new SpeechRec();
|
activeVoiceRec = new SpeechRec();
|
||||||
activeVoiceRecognition.lang = navigator.language || 'tr-TR';
|
activeVoiceRec.lang = navigator.language || 'tr-TR';
|
||||||
activeVoiceRecognition.continuous = false;
|
activeVoiceRec.continuous = false;
|
||||||
activeVoiceRecognition.interimResults = true;
|
activeVoiceRec.interimResults = true;
|
||||||
activeVoiceRecognition.maxAlternatives = 1;
|
activeVoiceRec.maxAlternatives = 1;
|
||||||
|
|
||||||
isVoiceListeningActive = true;
|
isVoiceListening = true;
|
||||||
|
|
||||||
activeVoiceRecognition.onresult = function (ev) {
|
activeVoiceRec.onresult = function (ev) {
|
||||||
if (ev.results && ev.results[0]) {
|
if (ev.results && ev.results[0]) {
|
||||||
var transcript = ev.results[0][0].transcript.trim();
|
var transcript = ev.results[0][0].transcript.trim();
|
||||||
if (transcriptPreview) transcriptPreview.textContent = '"' + transcript + '"';
|
if (transcriptEl) transcriptEl.textContent = '"' + transcript + '"';
|
||||||
|
if (inp) inp.value = transcript;
|
||||||
|
|
||||||
if (ev.results[0].isFinal) {
|
if (ev.results[0].isFinal) {
|
||||||
announce('"' + transcript + '" için arama başlatılıyor...', true);
|
announce('"' + transcript + '" için arama başlatılıyor...', true);
|
||||||
if (modalTargetInput) {
|
setTimeout(function () {
|
||||||
modalTargetInput.value = transcript;
|
closeFullSearchModal();
|
||||||
modalTargetInput.dispatchEvent(new Event('input', { bubbles: true }));
|
window.location.href = '/search/videos?search=' + encodeURIComponent(transcript);
|
||||||
modalTargetInput.dispatchEvent(new Event('change', { bubbles: true }));
|
}, 500);
|
||||||
|
|
||||||
setTimeout(function () {
|
|
||||||
closeYouTubeVoiceModal();
|
|
||||||
var form = modalTargetInput.closest('form');
|
|
||||||
if (form) {
|
|
||||||
form.dispatchEvent(new Event('submit', { bubbles: true, cancelable: true }));
|
|
||||||
} else {
|
|
||||||
window.location.href = '/search/videos?search=' + encodeURIComponent(transcript);
|
|
||||||
}
|
|
||||||
}, 400);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
activeVoiceRecognition.onerror = function (ev) {
|
activeVoiceRec.onerror = function (ev) {
|
||||||
console.warn('[YakTube] Voice modal error:', ev.error);
|
if (statusText) statusText.textContent = 'Ses Algılanamadı';
|
||||||
if (statusText) {
|
if (transcriptEl) transcriptEl.textContent = 'Tekrar denemek için mikrofona dokunun.';
|
||||||
if (ev.error === 'not-allowed') {
|
stopVoiceInsideModal();
|
||||||
statusText.textContent = 'Mikrofon İzni Gerekli';
|
|
||||||
announce('Mikrofon izni verilmedi.');
|
|
||||||
} else if (ev.error === 'no-speech') {
|
|
||||||
statusText.textContent = 'Ses Algılanamadı';
|
|
||||||
announce('Ses algılanamadı, tekrar denemek için mikrofona dokunun.');
|
|
||||||
} else {
|
|
||||||
statusText.textContent = 'Bir sorun oluştu';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stopVoiceRecognition();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
activeVoiceRecognition.onend = function () {
|
activeVoiceRec.onend = function () {
|
||||||
if (isVoiceListeningActive) {
|
stopVoiceInsideModal();
|
||||||
stopVoiceRecognition();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
activeVoiceRecognition.start();
|
activeVoiceRec.start();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('[YakTube] SpeechRec start failed:', err);
|
stopVoiceInsideModal();
|
||||||
stopVoiceRecognition();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopVoiceRecognition() {
|
function stopVoiceInsideModal() {
|
||||||
isVoiceListeningActive = false;
|
isVoiceListening = false;
|
||||||
if (activeVoiceRecognition) {
|
if (activeVoiceRec) {
|
||||||
try {
|
try {
|
||||||
activeVoiceRecognition.stop();
|
activeVoiceRec.stop();
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
activeVoiceRecognition = null;
|
activeVoiceRec = null;
|
||||||
}
|
}
|
||||||
|
var modal = document.getElementById('yaktube-full-search-modal');
|
||||||
var modal = document.getElementById('yaktube-voice-modal');
|
|
||||||
if (modal) {
|
if (modal) {
|
||||||
var micBtn = modal.querySelector('#yaktube-voice-mic-pulse-btn');
|
var voiceSec = modal.querySelector('#yaktube-modal-voice-section');
|
||||||
var ripple = modal.querySelector('#yaktube-voice-ripple');
|
if (voiceSec) voiceSec.style.display = 'none';
|
||||||
var statusText = modal.querySelector('#yaktube-voice-status-text');
|
|
||||||
|
|
||||||
if (micBtn) micBtn.classList.add('yaktube-idle-mic');
|
|
||||||
if (ripple) ripple.style.display = 'none';
|
|
||||||
if (statusText && statusText.textContent === 'Dinleniyor...') {
|
|
||||||
statusText.textContent = 'Mikrofona dokunup konuşun';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function transformToYouTubeSearchBar(searchInp, searchContainer) {
|
function transformToYouTubeSearchBar(searchInp, searchContainer) {
|
||||||
if (searchInp.hasAttribute('data-yaktube-yt-styled')) return;
|
if (searchContainer.hasAttribute('data-yaktube-trigger-styled')) return;
|
||||||
searchInp.setAttribute('data-yaktube-yt-styled', 'true');
|
searchContainer.setAttribute('data-yaktube-trigger-styled', 'true');
|
||||||
searchInp.setAttribute('aria-label', getInstanceName() + ' Video Arama');
|
|
||||||
|
// Hide original native inputs
|
||||||
|
searchInp.style.display = 'none';
|
||||||
|
searchInp.setAttribute('tabindex', '-1');
|
||||||
|
searchInp.setAttribute('aria-hidden', 'true');
|
||||||
|
|
||||||
|
var nativeInputs = searchContainer.querySelectorAll('input, button');
|
||||||
|
nativeInputs.forEach(function (el) {
|
||||||
|
if (!el.classList.contains('yaktube-search-trigger-pill') && !el.classList.contains('yaktube-voice-search-btn')) {
|
||||||
|
el.style.display = 'none';
|
||||||
|
el.setAttribute('tabindex', '-1');
|
||||||
|
el.setAttribute('aria-hidden', 'true');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// 1. Create Outer Wrapper
|
// 1. Create Outer Wrapper
|
||||||
var outerWrap = searchContainer.querySelector('.yaktube-search-outer-wrap');
|
var outerWrap = searchContainer.querySelector('.yaktube-search-outer-wrap');
|
||||||
if (!outerWrap) {
|
if (!outerWrap) {
|
||||||
outerWrap = document.createElement('div');
|
outerWrap = document.createElement('div');
|
||||||
outerWrap.className = 'yaktube-search-outer-wrap';
|
outerWrap.className = 'yaktube-search-outer-wrap';
|
||||||
searchInp.parentNode.insertBefore(outerWrap, searchInp);
|
searchContainer.appendChild(outerWrap);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. Create Pill Box
|
// 2. Create Single Sleek Pill Trigger
|
||||||
var pillWrapper = outerWrap.querySelector('.yaktube-search-pill-wrapper');
|
var triggerPill = outerWrap.querySelector('.yaktube-search-trigger-pill');
|
||||||
if (!pillWrapper) {
|
if (!triggerPill) {
|
||||||
pillWrapper = document.createElement('div');
|
triggerPill = document.createElement('button');
|
||||||
pillWrapper.className = 'yaktube-search-pill-wrapper';
|
triggerPill.type = 'button';
|
||||||
outerWrap.appendChild(pillWrapper);
|
triggerPill.className = 'yaktube-search-trigger-pill';
|
||||||
|
triggerPill.setAttribute('aria-label', 'Ara');
|
||||||
|
triggerPill.setAttribute('title', 'Arama Yap (/)');
|
||||||
|
|
||||||
// Move Input Inside Pill
|
triggerPill.innerHTML =
|
||||||
pillWrapper.appendChild(searchInp);
|
'<span class="yaktube-search-trigger-icon">🔍</span>' +
|
||||||
|
'<span class="yaktube-search-trigger-text">Ara...</span>' +
|
||||||
|
'<span class="yaktube-search-trigger-shortcut">/</span>';
|
||||||
|
|
||||||
// Add Clear Button (✕)
|
outerWrap.appendChild(triggerPill);
|
||||||
var clearBtn = document.createElement('button');
|
|
||||||
clearBtn.type = 'button';
|
|
||||||
clearBtn.className = 'yaktube-clear-search-btn';
|
|
||||||
clearBtn.setAttribute('aria-label', 'Arama Metnini Temizle');
|
|
||||||
clearBtn.innerHTML = '✕';
|
|
||||||
pillWrapper.appendChild(clearBtn);
|
|
||||||
|
|
||||||
// Add Search Submit Button (🔍)
|
triggerPill.addEventListener('click', function (e) {
|
||||||
var submitBtn = document.createElement('button');
|
|
||||||
submitBtn.type = 'submit';
|
|
||||||
submitBtn.className = 'yaktube-search-submit-btn';
|
|
||||||
submitBtn.setAttribute('aria-label', 'Ara');
|
|
||||||
submitBtn.setAttribute('title', 'Ara');
|
|
||||||
submitBtn.innerHTML = '🔍';
|
|
||||||
pillWrapper.appendChild(submitBtn);
|
|
||||||
|
|
||||||
function updateClearState() {
|
|
||||||
if (searchInp.value && searchInp.value.trim().length > 0) {
|
|
||||||
clearBtn.style.display = 'inline-flex';
|
|
||||||
} else {
|
|
||||||
clearBtn.style.display = 'none';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
searchInp.addEventListener('input', updateClearState);
|
|
||||||
searchInp.addEventListener('focus', updateClearState);
|
|
||||||
|
|
||||||
clearBtn.addEventListener('click', function (e) {
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
openFullSearchModal('', false);
|
||||||
searchInp.value = '';
|
|
||||||
searchInp.dispatchEvent(new Event('input', { bubbles: true }));
|
|
||||||
searchInp.dispatchEvent(new Event('change', { bubbles: true }));
|
|
||||||
clearBtn.style.display = 'none';
|
|
||||||
searchInp.focus();
|
|
||||||
announce('Arama kutusu temizlendi.');
|
|
||||||
});
|
|
||||||
|
|
||||||
submitBtn.addEventListener('click', function (e) {
|
|
||||||
var query = (searchInp.value || '').trim();
|
|
||||||
if (query) {
|
|
||||||
var form = searchInp.closest('form');
|
|
||||||
if (form) {
|
|
||||||
form.dispatchEvent(new Event('submit', { bubbles: true, cancelable: true }));
|
|
||||||
} else {
|
|
||||||
window.location.href = '/search/videos?search=' + encodeURIComponent(query);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1693,23 +1717,9 @@
|
|||||||
voiceBtn.addEventListener('click', function (e) {
|
voiceBtn.addEventListener('click', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
openYouTubeVoiceModal(searchInp);
|
openFullSearchModal('', true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 4. Escape key handling
|
|
||||||
searchInp.addEventListener('keydown', function (e) {
|
|
||||||
if (e.key === 'Escape' || e.keyCode === 27) {
|
|
||||||
if (searchInp.value && searchInp.value.trim().length > 0) {
|
|
||||||
searchInp.value = '';
|
|
||||||
searchInp.dispatchEvent(new Event('input', { bubbles: true }));
|
|
||||||
announce('Arama metni temizlendi.');
|
|
||||||
} else {
|
|
||||||
searchInp.blur();
|
|
||||||
announce('Arama kutusundan çıkıldı.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function injectSearchEnhancements() {
|
function injectSearchEnhancements() {
|
||||||
@@ -1723,19 +1733,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var headerInputs = document.querySelectorAll('my-header input');
|
|
||||||
headerInputs.forEach(function (inp) {
|
|
||||||
var parent = inp.closest('my-search-typeahead') || inp.parentElement;
|
|
||||||
if (
|
|
||||||
parent &&
|
|
||||||
(inp.type === 'search' ||
|
|
||||||
inp.type === 'text' ||
|
|
||||||
(inp.placeholder && inp.placeholder.toLowerCase().includes('ara')))
|
|
||||||
) {
|
|
||||||
transformToYouTubeSearchBar(inp, parent);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Clean up repetitive card titles and strange relative date buttons
|
// Clean up repetitive card titles and strange relative date buttons
|
||||||
document.querySelectorAll('my-video-miniature, .video-miniature').forEach(function (card) {
|
document.querySelectorAll('my-video-miniature, .video-miniature').forEach(function (card) {
|
||||||
var thumbLink = card.querySelector('a.thumbnail-link, .video-thumbnail a, a.thumbnail');
|
var thumbLink = card.querySelector('a.thumbnail-link, .video-thumbnail a, a.thumbnail');
|
||||||
@@ -1758,33 +1755,23 @@
|
|||||||
var activeTag = document.activeElement ? document.activeElement.tagName.toLowerCase() : '';
|
var activeTag = document.activeElement ? document.activeElement.tagName.toLowerCase() : '';
|
||||||
var isInputActive = activeTag === 'input' || activeTag === 'textarea';
|
var isInputActive = activeTag === 'input' || activeTag === 'textarea';
|
||||||
|
|
||||||
// Shift + V: Open YouTube Voice Modal
|
// Shift + V: Open YouTube Voice Search Modal
|
||||||
if (e.shiftKey && (e.key === 'V' || e.key === 'v') && !isInputActive) {
|
if (e.shiftKey && (e.key === 'V' || e.key === 'v') && !isInputActive) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var searchInp = document.querySelector(
|
openFullSearchModal('', true);
|
||||||
'my-search-typeahead input, my-header input[type="search"], input[type="search"]'
|
|
||||||
);
|
|
||||||
openYouTubeVoiceModal(searchInp);
|
|
||||||
}
|
}
|
||||||
// Escape: Close Voice Modal
|
// Escape: Close Full Search Modal
|
||||||
else if (e.key === 'Escape' || e.keyCode === 27) {
|
else if (e.key === 'Escape' || e.keyCode === 27) {
|
||||||
var modal = document.getElementById('yaktube-voice-modal');
|
var modal = document.getElementById('yaktube-full-search-modal');
|
||||||
if (modal && modal.style.display === 'flex') {
|
if (modal && modal.style.display === 'flex') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
closeYouTubeVoiceModal();
|
closeFullSearchModal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// / : Focus Search Input
|
// / or S: Open Search Modal
|
||||||
else if (e.key === '/' && !isInputActive && !e.ctrlKey && !e.metaKey) {
|
else if ((e.key === '/' || e.key === 's' || e.key === 'S') && !isInputActive && !e.ctrlKey && !e.metaKey) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var searchInp = document.querySelector(
|
openFullSearchModal('', false);
|
||||||
'my-search-typeahead input, my-header input[type="search"], input[type="search"]'
|
|
||||||
);
|
|
||||||
if (searchInp) {
|
|
||||||
searchInp.focus();
|
|
||||||
searchInp.select();
|
|
||||||
announce('Arama kutusuna odaklanıldı.');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "peertube-plugin-yaktube-ondemand",
|
"name": "peertube-plugin-yaktube-ondemand",
|
||||||
"version": "1.2.3",
|
"version": "1.3.2",
|
||||||
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations and A11y Engine for PeerTube",
|
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations and A11y Engine for PeerTube",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"clientScripts": [
|
"clientScripts": [
|
||||||
|
|||||||
@@ -410,9 +410,12 @@ my-header .action-buttons {
|
|||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* YOUTUBE-STYLE SEARCH BAR & VOICE SEARCH (v1.2.3 - Universal & Visible) */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
/* YOUTUBE FULL SEARCH & VOICE MODAL (v1.3.1 - Sleek Trigger Pill) */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* Header Search Trigger Container */
|
||||||
my-search-typeahead,
|
my-search-typeahead,
|
||||||
.search-container,
|
.search-container,
|
||||||
.header-search {
|
.header-search {
|
||||||
@@ -420,102 +423,66 @@ my-search-typeahead,
|
|||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
position: relative !important;
|
position: relative !important;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
max-width: 580px !important;
|
max-width: 540px !important;
|
||||||
margin: 0 auto !important;
|
margin: 0 auto !important;
|
||||||
visibility: visible !important;
|
|
||||||
opacity: 1 !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.yaktube-search-outer-wrap {
|
.yaktube-search-outer-wrap {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
position: relative !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.yaktube-search-pill-wrapper {
|
/* Clickable Pill Button in Header */
|
||||||
|
.yaktube-search-trigger-pill {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
background: #121212 !important;
|
background: #121212 !important;
|
||||||
border: 1px solid #303030 !important;
|
border: 1px solid #303030 !important;
|
||||||
border-radius: 40px !important;
|
border-radius: 40px !important;
|
||||||
padding: 0 0 0 14px !important;
|
padding: 8px 18px !important;
|
||||||
transition: all 0.2s ease !important;
|
transition: all 0.2s ease !important;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
|
||||||
overflow: hidden !important;
|
cursor: pointer !important;
|
||||||
}
|
|
||||||
|
|
||||||
.yaktube-search-pill-wrapper:focus-within {
|
|
||||||
border-color: #ff8f37 !important;
|
|
||||||
box-shadow:
|
|
||||||
0 0 0 1px #ff8f37,
|
|
||||||
0 0 12px rgba(255, 143, 55, 0.3) !important;
|
|
||||||
background: #0f0f0f !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.yaktube-search-pill-wrapper input {
|
|
||||||
background: transparent !important;
|
|
||||||
border: none !important;
|
|
||||||
color: #f1f1f1 !important;
|
|
||||||
font-size: 15px !important;
|
|
||||||
padding: 8px 6px !important;
|
|
||||||
width: 100% !important;
|
|
||||||
outline: none !important;
|
|
||||||
box-shadow: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.yaktube-search-pill-wrapper input::placeholder {
|
|
||||||
color: #888 !important;
|
color: #888 !important;
|
||||||
font-size: 14px !important;
|
font-size: 15px !important;
|
||||||
|
user-select: none !important;
|
||||||
|
gap: 10px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Clear Button Inside Pill (✕) */
|
.yaktube-search-trigger-pill:hover,
|
||||||
.yaktube-clear-search-btn {
|
.yaktube-search-trigger-pill:focus {
|
||||||
background: rgba(255, 255, 255, 0.12) !important;
|
border-color: #ff8f37 !important;
|
||||||
color: #aaa !important;
|
background: #18181c !important;
|
||||||
border: none !important;
|
|
||||||
border-radius: 50% !important;
|
|
||||||
width: 22px !important;
|
|
||||||
height: 22px !important;
|
|
||||||
display: none;
|
|
||||||
align-items: center !important;
|
|
||||||
justify-content: center !important;
|
|
||||||
font-size: 11px !important;
|
|
||||||
font-weight: 700 !important;
|
|
||||||
cursor: pointer !important;
|
|
||||||
margin: 0 6px !important;
|
|
||||||
transition: all 0.2s ease !important;
|
|
||||||
flex-shrink: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.yaktube-clear-search-btn:hover {
|
|
||||||
background: rgba(255, 255, 255, 0.25) !important;
|
|
||||||
color: #fff !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Search Submit Button on Right of Pill (🔍) */
|
|
||||||
.yaktube-search-submit-btn {
|
|
||||||
background: #222222 !important;
|
|
||||||
color: #f1f1f1 !important;
|
color: #f1f1f1 !important;
|
||||||
border: none !important;
|
box-shadow: 0 0 12px rgba(255, 143, 55, 0.25) !important;
|
||||||
border-left: 1px solid #303030 !important;
|
outline: none !important;
|
||||||
padding: 8px 18px !important;
|
|
||||||
cursor: pointer !important;
|
|
||||||
display: inline-flex !important;
|
|
||||||
align-items: center !important;
|
|
||||||
justify-content: center !important;
|
|
||||||
font-size: 14px !important;
|
|
||||||
transition: all 0.2s ease !important;
|
|
||||||
flex-shrink: 0 !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.yaktube-search-submit-btn:hover {
|
.yaktube-search-trigger-icon {
|
||||||
background: #272727 !important;
|
font-size: 15px !important;
|
||||||
color: #ff8f37 !important;
|
color: #ff8f37 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* YouTube Circular Voice Button (🎙️) */
|
.yaktube-search-trigger-text {
|
||||||
|
flex: 1 !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
|
overflow: hidden !important;
|
||||||
|
text-overflow: ellipsis !important;
|
||||||
|
text-align: left !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-search-trigger-shortcut {
|
||||||
|
font-size: 11px !important;
|
||||||
|
background: #252530 !important;
|
||||||
|
color: #aaa !important;
|
||||||
|
padding: 2px 6px !important;
|
||||||
|
border-radius: 6px !important;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Circular Voice Button in Header */
|
||||||
.yaktube-voice-search-btn {
|
.yaktube-voice-search-btn {
|
||||||
background: #1f1f1f !important;
|
background: #1f1f1f !important;
|
||||||
color: #f1f1f1 !important;
|
color: #f1f1f1 !important;
|
||||||
@@ -534,175 +501,265 @@ my-search-typeahead,
|
|||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yaktube-voice-search-btn:hover {
|
.yaktube-voice-search-btn:hover,
|
||||||
|
.yaktube-voice-search-btn:focus {
|
||||||
background: #2a2a2a !important;
|
background: #2a2a2a !important;
|
||||||
border-color: #ff8f37 !important;
|
border-color: #ff8f37 !important;
|
||||||
color: #ff8f37 !important;
|
color: #ff8f37 !important;
|
||||||
transform: scale(1.06) !important;
|
transform: scale(1.06) !important;
|
||||||
|
outline: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* YouTube-Style Voice Search Modal Overlay */
|
/* -------------------------------------------------------------------------- */
|
||||||
.yaktube-voice-modal-overlay {
|
/* FULL YOUTUBE SEARCH & VOICE MODAL OVERLAY */
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
.yaktube-full-search-modal {
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
top: 0 !important;
|
top: 0 !important;
|
||||||
left: 0 !important;
|
left: 0 !important;
|
||||||
width: 100vw !important;
|
width: 100vw !important;
|
||||||
height: 100vh !important;
|
height: 100vh !important;
|
||||||
background: rgba(0, 0, 0, 0.75) !important;
|
background: rgba(0, 0, 0, 0.82) !important;
|
||||||
backdrop-filter: blur(8px) !important;
|
backdrop-filter: blur(12px) !important;
|
||||||
z-index: 99999 !important;
|
z-index: 999999 !important;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
align-items: flex-start !important;
|
flex-direction: column !important;
|
||||||
justify-content: center !important;
|
|
||||||
padding-top: 80px !important;
|
|
||||||
animation: yaktube-fade-in 0.2s ease !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.yaktube-voice-modal-card {
|
|
||||||
background: #212121 !important;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
||||||
border-radius: 16px !important;
|
|
||||||
width: 90% !important;
|
|
||||||
max-width: 560px !important;
|
|
||||||
padding: 24px 28px !important;
|
|
||||||
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
|
|
||||||
color: #fff !important;
|
|
||||||
position: relative !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.yaktube-voice-modal-header {
|
|
||||||
display: flex !important;
|
|
||||||
justify-content: space-between !important;
|
|
||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
margin-bottom: 24px !important;
|
justify-content: flex-start !important;
|
||||||
|
padding-top: 40px !important;
|
||||||
|
animation: yaktube-fade-in 0.2s ease-out !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yaktube-voice-modal-title {
|
.yaktube-modal-search-card {
|
||||||
font-size: 20px !important;
|
background: #1e1e24 !important;
|
||||||
font-weight: 500 !important;
|
border: 1px solid rgba(255, 143, 55, 0.3) !important;
|
||||||
margin: 0 !important;
|
border-radius: 20px !important;
|
||||||
color: #f1f1f1 !important;
|
width: 92% !important;
|
||||||
|
max-width: 680px !important;
|
||||||
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
|
||||||
|
overflow: hidden !important;
|
||||||
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yaktube-voice-modal-close-btn {
|
/* Modal Search Bar */
|
||||||
|
.yaktube-modal-search-bar {
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
padding: 10px 14px !important;
|
||||||
|
background: #141418 !important;
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-modal-back-btn {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
color: #aaa !important;
|
color: #aaa !important;
|
||||||
font-size: 20px !important;
|
font-size: 22px !important;
|
||||||
cursor: pointer !important;
|
width: 40px !important;
|
||||||
width: 36px !important;
|
height: 40px !important;
|
||||||
height: 36px !important;
|
|
||||||
border-radius: 50% !important;
|
border-radius: 50% !important;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
justify-content: center !important;
|
justify-content: center !important;
|
||||||
|
cursor: pointer !important;
|
||||||
|
margin-right: 8px !important;
|
||||||
|
flex-shrink: 0 !important;
|
||||||
transition: all 0.2s ease !important;
|
transition: all 0.2s ease !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yaktube-voice-modal-close-btn:hover {
|
.yaktube-modal-back-btn:hover {
|
||||||
background: rgba(255, 255, 255, 0.1) !important;
|
background: rgba(255, 255, 255, 0.1) !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yaktube-voice-modal-body {
|
.yaktube-modal-input-wrap {
|
||||||
text-align: center !important;
|
display: flex !important;
|
||||||
padding: 10px 0 20px 0 !important;
|
align-items: center !important;
|
||||||
|
flex: 1 !important;
|
||||||
|
background: #22222a !important;
|
||||||
|
border: 1px solid #33333f !important;
|
||||||
|
border-radius: 30px !important;
|
||||||
|
padding: 2px 8px 2px 14px !important;
|
||||||
|
margin-right: 10px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yaktube-voice-status-text {
|
.yaktube-modal-input-wrap:focus-within {
|
||||||
font-size: 22px !important;
|
border-color: #ff8f37 !important;
|
||||||
font-weight: 600 !important;
|
box-shadow: 0 0 10px rgba(255, 143, 55, 0.3) !important;
|
||||||
color: #f1f1f1 !important;
|
|
||||||
margin-bottom: 12px !important;
|
|
||||||
min-height: 30px !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.yaktube-voice-transcript-preview {
|
.yaktube-modal-input-wrap input {
|
||||||
|
flex: 1 !important;
|
||||||
|
background: transparent !important;
|
||||||
|
border: none !important;
|
||||||
|
color: #fff !important;
|
||||||
font-size: 16px !important;
|
font-size: 16px !important;
|
||||||
color: #ff8f37 !important;
|
padding: 8px 4px !important;
|
||||||
font-weight: 500 !important;
|
outline: none !important;
|
||||||
margin-bottom: 30px !important;
|
|
||||||
min-height: 24px !important;
|
|
||||||
word-break: break-word !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Pulsing Mic Circle Animation */
|
.yaktube-modal-clear-btn {
|
||||||
.yaktube-voice-mic-wrapper {
|
background: rgba(255, 255, 255, 0.12) !important;
|
||||||
position: relative !important;
|
color: #aaa !important;
|
||||||
|
border: none !important;
|
||||||
|
border-radius: 50% !important;
|
||||||
|
width: 24px !important;
|
||||||
|
height: 24px !important;
|
||||||
|
display: none;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: center !important;
|
||||||
|
font-size: 12px !important;
|
||||||
|
font-weight: 700 !important;
|
||||||
|
cursor: pointer !important;
|
||||||
|
margin-right: 4px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-modal-clear-btn:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.25) !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-modal-search-action-btn {
|
||||||
|
background: linear-gradient(135deg, #ff8f37 0%, #ff5e3a 100%) !important;
|
||||||
|
color: #fff !important;
|
||||||
|
border: none !important;
|
||||||
|
border-radius: 30px !important;
|
||||||
|
padding: 8px 18px !important;
|
||||||
|
font-size: 14px !important;
|
||||||
|
font-weight: 700 !important;
|
||||||
|
cursor: pointer !important;
|
||||||
|
display: inline-flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
gap: 6px !important;
|
||||||
|
transition: all 0.2s ease !important;
|
||||||
|
flex-shrink: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-modal-search-action-btn:hover {
|
||||||
|
transform: scale(1.03) !important;
|
||||||
|
box-shadow: 0 4px 14px rgba(255, 143, 55, 0.4) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-modal-voice-btn {
|
||||||
|
background: #2a2a34 !important;
|
||||||
|
color: #ff8f37 !important;
|
||||||
|
border: 1px solid rgba(255, 143, 55, 0.3) !important;
|
||||||
|
border-radius: 50% !important;
|
||||||
|
width: 40px !important;
|
||||||
|
height: 40px !important;
|
||||||
display: inline-flex !important;
|
display: inline-flex !important;
|
||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
justify-content: center !important;
|
justify-content: center !important;
|
||||||
margin: 10px 0 25px 0 !important;
|
font-size: 18px !important;
|
||||||
|
cursor: pointer !important;
|
||||||
|
margin-left: 8px !important;
|
||||||
|
transition: all 0.2s ease !important;
|
||||||
|
flex-shrink: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yaktube-voice-mic-pulse-btn {
|
.yaktube-modal-voice-btn:hover {
|
||||||
|
background: #ff8f37 !important;
|
||||||
|
color: #fff !important;
|
||||||
|
transform: scale(1.06) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Modal Body Content */
|
||||||
|
.yaktube-modal-body {
|
||||||
|
padding: 20px 24px 28px 24px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Voice Recognition Banner Inside Modal */
|
||||||
|
.yaktube-modal-voice-section {
|
||||||
|
display: none;
|
||||||
|
background: #141418 !important;
|
||||||
|
border: 1px solid rgba(255, 143, 55, 0.3) !important;
|
||||||
|
border-radius: 14px !important;
|
||||||
|
padding: 20px !important;
|
||||||
|
text-align: center !important;
|
||||||
|
margin-bottom: 20px !important;
|
||||||
|
animation: yaktube-fade-in 0.2s ease !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-modal-voice-status {
|
||||||
|
font-size: 18px !important;
|
||||||
|
font-weight: 700 !important;
|
||||||
|
color: #f1f1f1 !important;
|
||||||
|
margin-bottom: 12px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-modal-voice-transcript {
|
||||||
|
font-size: 16px !important;
|
||||||
|
color: #ff8f37 !important;
|
||||||
|
font-weight: 600 !important;
|
||||||
|
min-height: 24px !important;
|
||||||
|
margin-bottom: 16px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-modal-mic-pulse-btn {
|
||||||
background: #cc0000 !important;
|
background: #cc0000 !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
border-radius: 50% !important;
|
border-radius: 50% !important;
|
||||||
width: 76px !important;
|
width: 64px !important;
|
||||||
height: 76px !important;
|
height: 64px !important;
|
||||||
font-size: 34px !important;
|
font-size: 28px !important;
|
||||||
cursor: pointer !important;
|
cursor: pointer !important;
|
||||||
display: flex !important;
|
display: inline-flex !important;
|
||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
justify-content: center !important;
|
justify-content: center !important;
|
||||||
box-shadow: 0 4px 20px rgba(204, 0, 0, 0.5) !important;
|
box-shadow: 0 4px 20px rgba(204, 0, 0, 0.5) !important;
|
||||||
z-index: 2 !important;
|
animation: yaktube-pulse-recording 1.5s infinite !important;
|
||||||
transition: all 0.2s ease !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.yaktube-voice-mic-pulse-btn:hover {
|
/* Popular Topics & Chips */
|
||||||
transform: scale(1.05) !important;
|
.yaktube-modal-section-title {
|
||||||
}
|
|
||||||
|
|
||||||
.yaktube-voice-mic-pulse-btn.yaktube-idle-mic {
|
|
||||||
background: #333 !important;
|
|
||||||
box-shadow: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.yaktube-voice-ripple {
|
|
||||||
position: absolute !important;
|
|
||||||
width: 76px !important;
|
|
||||||
height: 76px !important;
|
|
||||||
border-radius: 50% !important;
|
|
||||||
background: rgba(204, 0, 0, 0.4) !important;
|
|
||||||
animation: yaktube-ripple-wave 1.6s infinite ease-out !important;
|
|
||||||
z-index: 1 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes yaktube-ripple-wave {
|
|
||||||
0% {
|
|
||||||
transform: scale(1);
|
|
||||||
opacity: 0.8;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
transform: scale(2.2);
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.yaktube-voice-hint-text {
|
|
||||||
font-size: 13px !important;
|
font-size: 13px !important;
|
||||||
|
font-weight: 700 !important;
|
||||||
|
text-transform: uppercase !important;
|
||||||
|
letter-spacing: 0.5px !important;
|
||||||
color: #888 !important;
|
color: #888 !important;
|
||||||
margin-top: 10px !important;
|
margin-bottom: 12px !important;
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
gap: 6px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mobile Responsiveness */
|
.yaktube-modal-chips-grid {
|
||||||
@media (max-width: 768px) {
|
display: flex !important;
|
||||||
my-search-typeahead,
|
flex-wrap: wrap !important;
|
||||||
.search-container,
|
gap: 8px !important;
|
||||||
.header-search {
|
margin-bottom: 18px !important;
|
||||||
max-width: 100% !important;
|
}
|
||||||
padding: 0 4px !important;
|
|
||||||
}
|
.yaktube-modal-chip {
|
||||||
.yaktube-search-submit-btn {
|
background: #252530 !important;
|
||||||
padding: 8px 12px !important;
|
color: #e2e8f0 !important;
|
||||||
}
|
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
||||||
.yaktube-voice-search-btn {
|
border-radius: 20px !important;
|
||||||
width: 36px !important;
|
padding: 8px 14px !important;
|
||||||
height: 36px !important;
|
font-size: 13px !important;
|
||||||
font-size: 16px !important;
|
font-weight: 600 !important;
|
||||||
margin-left: 4px !important;
|
cursor: pointer !important;
|
||||||
}
|
transition: all 0.2s ease !important;
|
||||||
|
display: inline-flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
gap: 6px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-modal-chip:hover {
|
||||||
|
background: rgba(255, 143, 55, 0.2) !important;
|
||||||
|
border-color: #ff8f37 !important;
|
||||||
|
color: #fff !important;
|
||||||
|
transform: translateY(-1px) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-modal-hint-footer {
|
||||||
|
display: flex !important;
|
||||||
|
justify-content: space-between !important;
|
||||||
|
align-items: center !important;
|
||||||
|
font-size: 12px !important;
|
||||||
|
color: #777 !important;
|
||||||
|
border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
|
||||||
|
padding-top: 12px !important;
|
||||||
|
margin-top: 8px !important;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user