mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-23 15:24:53 +00:00
999cde94a6
Federate spoiler_text using warning attribute on <content /> instead of a <category term="spoiler" /> Clean up schema file from accidental development migrations
28 lines
558 B
JavaScript
28 lines
558 B
JavaScript
import emojify from './components/emoji'
|
|
|
|
$(() => {
|
|
$.each($('.emojify'), (_, content) => {
|
|
const $content = $(content);
|
|
$content.html(emojify($content.html()));
|
|
});
|
|
|
|
$('.video-player video').on('click', e => {
|
|
if (e.target.paused) {
|
|
e.target.play();
|
|
} else {
|
|
e.target.pause();
|
|
}
|
|
});
|
|
|
|
$('.media-spoiler').on('click', e => {
|
|
$(e.target).hide();
|
|
});
|
|
|
|
$('.webapp-btn').on('click', e => {
|
|
if (e.button === 0) {
|
|
e.preventDefault();
|
|
window.location.href = $(e.target).attr('href');
|
|
}
|
|
});
|
|
});
|