MediaWiki:Common.js: Difference between revisions
Content deleted Content added
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 318:
var $footer = $('.ext-aiassistant-footer');
if ($footer.length) {
clearInterval(checkFooter);
if ($('#ai-assistant-close-mobile').length === 0) {
var $closeBtn = $('<button>', {
id: 'ai-assistant-close-mobile',
class: 'cdx-button
title: 'Close Assistant',
click: function() {
//
$('.ext-aiassistant-panel').hide();
// 2. SHOW THE CHAT ICON AGAIN
$('.ext-aiassistant-trigger').show();
}
});
//
var iconSvg = '<span class="cdx-icon cdx-icon--medium"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M4.34 2.93l12.73 12.73-1.41 1.41L2.93 4.35z"/><path d="M17.07 4.34L4.34 17.07l-1.41-1.41L15.66 2.93z" fill="
$closeBtn.html(iconSvg);
$footer.prepend($closeBtn);
}
}
}, 200);
});
| |||