2016-12-18 23:20:39 +09:00
|
|
|
import emojify from './components/emoji'
|
|
|
|
|
|
|
|
$(() => {
|
2016-12-21 08:13:13 +09:00
|
|
|
$.each($('.entry .content, .entry .status__content, .status__display-name, .display-name, .name, .account__header__content'), (_, content) => {
|
2016-12-18 23:20:39 +09:00
|
|
|
const $content = $(content);
|
|
|
|
$content.html(emojify($content.html()));
|
|
|
|
});
|
2016-12-19 03:47:11 +09:00
|
|
|
|
|
|
|
$('.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();
|
|
|
|
});
|
2016-12-21 08:13:13 +09:00
|
|
|
|
|
|
|
$('.webapp-btn').on('click', e => {
|
|
|
|
console.log(e);
|
|
|
|
|
|
|
|
if (e.button === 0) {
|
|
|
|
e.preventDefault();
|
|
|
|
window.location.href = $(e.target).attr('href');
|
|
|
|
}
|
|
|
|
});
|
2016-12-18 23:20:39 +09:00
|
|
|
});
|