-
Notifications
You must be signed in to change notification settings - Fork 2
/
script.js
66 lines (64 loc) · 2.36 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
$(document).ready(function() {
var offset =
($(window).width() - $('#right-menu').width() -
$('.thread:first').width() - 30) / 2;
$('.thread, .reply').each(function () {
$(this).animate({marginLeft: '+=' + offset}, 0);
});
$('#hide-watcher').toggle(
function() {
$('#hide-watcher > a').blur();
$('#watchlist, #searchlist').hide(250);
if (!$('#right-menu').attr('old-height')) {
var h = $('#right-menu').height();
$('#right-menu').attr('old-height', h);
}
$('#hide-watcher > a').text('Show');
$('#right-menu').animate({
width: '42px',
height: '22px'
}, 250);
}, function() {
$('#hide-watcher > a').blur();
$('#watchlist, #searchlist').show(250);
var h = $('#right-menu').attr('old-height');
$('#hide-watcher > a').text('Hide');
});
$('#hide-watcher').toggle(
function() {
$('#watchlist, #searchlist').hide(250);
var h = $('#right-menu').height();
$('#right-menu').attr('old-height', h);
$('#right-menu').animate({
width: '35px',
height: '20px'
}, 250);
}, function() {
$('#watchlist, #searchlist').show(250);
var h = $('#right-menu').attr('old-height');
$('#right-menu').animate({
width: "25%",
height: h
}, 250);
});
$('#postform').hide();
$('#action').click(
function(){
$('#postform').toggle(250);
});
$('#reply_input').hide();
$('#reply_hide').toggle(
function(){
$('#reply_input').show(250);
$('#reply_hide > a').text('Hide');
$('#reply_hide').css('background-color','#334F47');
},
function(){
$('#reply_input').hide(250);
$('#reply_hide > a').text('Reply');
$('#reply_hide').css('background-color','#363636');
});
var anchor = window.location.hash;
anchor=anchor.concat("p");
$(anchor).css({"background-color":"#263632","border":"outset","border-color":"#263632"});
});