|
|
@ -16,8 +16,8 @@ |
|
|
|
function init(){ |
|
|
|
function init(){ |
|
|
|
|
|
|
|
|
|
|
|
var ubwidget = $("#ubwidget").ubwidget({ |
|
|
|
var ubwidget = $("#ubwidget").ubwidget({ |
|
|
|
width:360, |
|
|
|
// width:360,
|
|
|
|
height:240 |
|
|
|
// height:240
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
var checkMinimize = false; |
|
|
|
var checkMinimize = false; |
|
|
@ -108,6 +108,7 @@ function init(){ |
|
|
|
|
|
|
|
|
|
|
|
minimize.click( |
|
|
|
minimize.click( |
|
|
|
function(){ |
|
|
|
function(){ |
|
|
|
|
|
|
|
$('.ubw-container').css("min-height", "26px") |
|
|
|
$('.ubw-container').animate({ |
|
|
|
$('.ubw-container').animate({ |
|
|
|
height:"26px" |
|
|
|
height:"26px" |
|
|
|
},500); |
|
|
|
},500); |
|
|
@ -127,7 +128,7 @@ function init(){ |
|
|
|
var lastHeight = String(minimizedHeight)+'px'; |
|
|
|
var lastHeight = String(minimizedHeight)+'px'; |
|
|
|
$('.ubw-container').animate({ |
|
|
|
$('.ubw-container').animate({ |
|
|
|
height: lastHeight |
|
|
|
height: lastHeight |
|
|
|
},500); |
|
|
|
},500, function(){$('.ubw-container').css("min-height", "200px").css("height","")}); |
|
|
|
|
|
|
|
|
|
|
|
maximize.hide(); |
|
|
|
maximize.hide(); |
|
|
|
minimize.show(); |
|
|
|
minimize.show(); |
|
|
@ -190,8 +191,8 @@ function init(){ |
|
|
|
text = window.sankore.preference('noteText', text); |
|
|
|
text = window.sankore.preference('noteText', text); |
|
|
|
currentFontSize = window.sankore.preference('fontSize', defaultFontSize); |
|
|
|
currentFontSize = window.sankore.preference('fontSize', defaultFontSize); |
|
|
|
$('.ubw-container').css({ |
|
|
|
$('.ubw-container').css({ |
|
|
|
width:window.innerWidth - 2, |
|
|
|
// width:window.innerWidth - 2,
|
|
|
|
height:window.innerHeight - 20 |
|
|
|
// height:window.innerHeight - 20
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if(checkMinimize){ |
|
|
|
if(checkMinimize){ |
|
|
@ -212,25 +213,24 @@ function init(){ |
|
|
|
winwidth = window.innerWidth; |
|
|
|
winwidth = window.innerWidth; |
|
|
|
winheight = window.innerHeight; |
|
|
|
winheight = window.innerHeight; |
|
|
|
|
|
|
|
|
|
|
|
if(winwidth <= 290) |
|
|
|
// if(winwidth <= 290)
|
|
|
|
{ |
|
|
|
// {
|
|
|
|
window.resizeTo(290,winheight); |
|
|
|
// window.resizeTo(290,winheight);
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if(winheight <= 100) |
|
|
|
// if(winheight <= 100)
|
|
|
|
{ |
|
|
|
// {
|
|
|
|
window.resizeTo(winwidth,100); |
|
|
|
// window.resizeTo(winwidth,100);
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if(winheight > 600) |
|
|
|
// if(winheight > 600)
|
|
|
|
{ |
|
|
|
// {
|
|
|
|
window.resizeTo(winwidth,600); |
|
|
|
// window.resizeTo(winwidth,600);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
$('.ubw-container').width(winwidth-2); |
|
|
|
// $('.ubw-container').width(winwidth-2);
|
|
|
|
|
|
|
|
//
|
|
|
|
if(checkMinimize)
|
|
|
|
if(checkMinimize)
|
|
|
|
minimizedHeight = winheight-40;
|
|
|
|
minimizedHeight = winheight-40;
|
|
|
|
else |
|
|
|
|
|
|
|
$('.ubw-container').height(winheight-40); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
controlTextField();
|
|
|
|
controlTextField();
|
|
|
|
} |
|
|
|
} |
|
|
|