$('.around-block.highlight').click();
refresh_arrows();
+ $('#recent-news > div, #recent-sounds > div').on('swipe', function(e, dx, dy) {
+ var x = $(this).data('x') || 0;
+ if (dx == -1) {
+ x += $(this).find('> div').outerWidth() + 10;
+ } else if (dx == 1) {
+ x -= $(this).find('> div').outerWidth() + 10;
+ } else {
+ return;
+ }
+ if (x < 0) x = 0;
+ if (x > $(this).find('> div').width() * $(this).find('> div').length) {
+ x -= $(this).find('> div').outerWidth() + 10;
+ }
+ $(this).data('x', x);
+ $(this).css('transform', 'translateX(-' + x + 'px)');
+ });
+
$('#ticker li:not(:first)');
if (ticker_interval) clearInterval(ticker_interval);
function tick(){