@ -0,0 +1 @@ |
|||||||
|
../../../css/OpenSans-Bold.ttf |
@ -0,0 +1 @@ |
|||||||
|
../../../css/OpenSans-Regular.ttf |
After Width: | Height: | Size: 8.7 KiB |
@ -0,0 +1 @@ |
|||||||
|
../../css/jquery.mobile-1.3.2.min.css |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 2.8 KiB |
@ -0,0 +1,59 @@ |
|||||||
|
$(function () { |
||||||
|
$('.modal-close').html(''); |
||||||
|
$('.modal-back').html(''); |
||||||
|
$('.twister-user-remove').html(''); |
||||||
|
$('.profile-card-main').attr('style', ''); |
||||||
|
$('img[src$="img/tornado_avatar.png"]').attr("src","theme_nin_night/img/tornado_avatar.png"); |
||||||
|
$('.mini-profile-actions span').html(''); |
||||||
|
|
||||||
|
// indirect eval call in hope to execute code globally
|
||||||
|
(1, eval)(postToElem.toString().replace(/postContext.append\(twister\.tmpl\.postRtBy/, |
||||||
|
'postContext.prependTo(postContext.parent()).append(twister.tmpl.postRtBy')); |
||||||
|
|
||||||
|
$('.userMenu-home.current a').on('click', function () { |
||||||
|
$('html, body').animate({scrollTop:0},300); |
||||||
|
return false |
||||||
|
}); |
||||||
|
|
||||||
|
$('.promoted-posts-only').on('click', function () { |
||||||
|
// modify the way promoted posts are shown
|
||||||
|
//active promoted posts tab
|
||||||
|
$(this).children('.promoted-posts').addClass(promotedPostsOnly ? "active" : "disabled"); |
||||||
|
$(this).children('.normal-posts').addClass(promotedPostsOnly ? "disabled" : "active"); |
||||||
|
$('#postboard-top').removeClass(promotedPostsOnly ? "show" : "hide"); |
||||||
|
//active normal posts
|
||||||
|
$(this).children('.promoted-posts').removeClass(promotedPostsOnly ? "disabled" : "active"); |
||||||
|
$(this).children('.normal-posts').removeClass(promotedPostsOnly ? "active" : "disabled"); |
||||||
|
$('#postboard-top').addClass(promotedPostsOnly ? "hide" : "show"); |
||||||
|
}); |
||||||
|
|
||||||
|
$(window).on('scroll', (function () { |
||||||
|
if ($(document).scrollTop() >= 250) { |
||||||
|
if (this.css('display') === 'none') |
||||||
|
this.slideDown(300); |
||||||
|
} else if (this.css('display') === 'block') |
||||||
|
this.slideUp(150); |
||||||
|
}).bind($('.left .post-area-new'))); |
||||||
|
|
||||||
|
|
||||||
|
$('#search-profile-template .follow') |
||||||
|
.html('') |
||||||
|
.attr('title', polyglot.t('Follow')) |
||||||
|
.on('eventToggleFollow', function() { |
||||||
|
$(this).text('').attr('title', polyglot.t('Follow')); |
||||||
|
}) |
||||||
|
.on('eventToggleUnfollow', function() { |
||||||
|
$(this).text('').attr('title', polyglot.t('Unfollow')); |
||||||
|
}) |
||||||
|
; |
||||||
|
|
||||||
|
if (/\/options.html$/i.test(document.location)) |
||||||
|
localizeLabels(); |
||||||
|
}); |
||||||
|
|
||||||
|
function localizeLabels() { |
||||||
|
$('label.tabs').each(function (i, elem) { |
||||||
|
var elem = $(elem); |
||||||
|
elem.text(polyglot.t(elem.text())); |
||||||
|
}); |
||||||
|
} |