test
This commit is contained in:
parent
06b806532e
commit
3c0ea8f40d
|
@ -58,10 +58,10 @@ function show() {
|
||||||
mdCheck()
|
mdCheck()
|
||||||
}
|
}
|
||||||
|
|
||||||
$(function() {
|
$(function () {
|
||||||
$('#post-box').draggable({
|
$('#post-box').draggable({
|
||||||
handle: '#post-bar',
|
handle: '#post-bar',
|
||||||
stop: function() {
|
stop: function () {
|
||||||
var left = $('#post-box').offset().left
|
var left = $('#post-box').offset().left
|
||||||
if (left > $('body').width() - $('#post-box').width()) {
|
if (left > $('body').width() - $('#post-box').width()) {
|
||||||
left = $('body').width() - $('#post-box').width()
|
left = $('body').width() - $('#post-box').width()
|
||||||
|
@ -76,15 +76,15 @@ $(function() {
|
||||||
}
|
}
|
||||||
localStorage.setItem('postbox-left', left)
|
localStorage.setItem('postbox-left', left)
|
||||||
localStorage.setItem('postbox-top', top)
|
localStorage.setItem('postbox-top', top)
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
$('#post-box').resizable({
|
$('#post-box').resizable({
|
||||||
minHeight: 150,
|
minHeight: 150,
|
||||||
minWidth: 100,
|
minWidth: 100,
|
||||||
stop: function(event, ui) {
|
stop: function (event, ui) {
|
||||||
$('#textarea').blur()
|
$('#textarea').blur()
|
||||||
localStorage.setItem('postbox-width', ui.size.width)
|
localStorage.setItem('postbox-width', ui.size.width)
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -101,41 +101,44 @@ if (location.search) {
|
||||||
$('.mini-btn').text('expand_less')
|
$('.mini-btn').text('expand_less')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$('#posttgl').click(function(e) {
|
window.onload = initPostbox
|
||||||
if (!$('#post-box').hasClass('appear')) {
|
function initPostbox() {
|
||||||
show()
|
$('#posttgl').click(function (e) {
|
||||||
} else {
|
if (!$('#post-box').hasClass('appear')) {
|
||||||
hide()
|
show()
|
||||||
}
|
} else {
|
||||||
$('.cvo').removeClass('selectedToot')
|
|
||||||
selectedColumn = 0
|
|
||||||
selectedToot = 0
|
|
||||||
})
|
|
||||||
|
|
||||||
$('#timeline-container,#group').click(function(e) {
|
|
||||||
if (localStorage.getItem('box') != 'absolute') {
|
|
||||||
if ($('#post-box').hasClass('appear') && !localStorage.getItem('nohide')) {
|
|
||||||
hide()
|
hide()
|
||||||
}
|
}
|
||||||
}
|
$('.cvo').removeClass('selectedToot')
|
||||||
$('.cvo').removeClass('selectedToot')
|
selectedColumn = 0
|
||||||
selectedColumn = 0
|
selectedToot = 0
|
||||||
selectedToot = 0
|
})
|
||||||
localStorage.removeItem('nohide')
|
|
||||||
srcBox('close')
|
$('#timeline-container,#group').click(function (e) {
|
||||||
})
|
if (localStorage.getItem('box') != 'absolute') {
|
||||||
$('#contextWrap').click(function(e) {
|
if ($('#post-box').hasClass('appear') && !localStorage.getItem('nohide')) {
|
||||||
$('#contextWrap').addClass('hide')
|
hide()
|
||||||
$('.contextMenu').addClass('hide')
|
}
|
||||||
$('.act-icon').text('expand_more')
|
}
|
||||||
})
|
$('.cvo').removeClass('selectedToot')
|
||||||
$('#textarea,#cw-text').focusout(function(e) {
|
selectedColumn = 0
|
||||||
localStorage.setItem('nohide', true)
|
selectedToot = 0
|
||||||
var countup = function() {
|
|
||||||
localStorage.removeItem('nohide')
|
localStorage.removeItem('nohide')
|
||||||
}
|
srcBox('close')
|
||||||
//setTimeout(remove, 100);
|
})
|
||||||
$('.cvo').removeClass('selectedToot')
|
$('#contextWrap').click(function (e) {
|
||||||
selectedColumn = 0
|
$('#contextWrap').addClass('hide')
|
||||||
selectedToot = 0
|
$('.contextMenu').addClass('hide')
|
||||||
})
|
$('.act-icon').text('expand_more')
|
||||||
|
})
|
||||||
|
$('#textarea,#cw-text').focusout(function (e) {
|
||||||
|
localStorage.setItem('nohide', true)
|
||||||
|
var countup = function () {
|
||||||
|
localStorage.removeItem('nohide')
|
||||||
|
}
|
||||||
|
//setTimeout(remove, 100);
|
||||||
|
$('.cvo').removeClass('selectedToot')
|
||||||
|
selectedColumn = 0
|
||||||
|
selectedToot = 0
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user