Commit 7a692c94 by Motohisa Nakano

20121212

parent bcb0622d
var zoom_ratioPre = 1;
var zoom_ratio = 1;
var zoom_timer;
var zoom_continue = false;
var zoom_callbackFunction;
var zoom_miliSeconds = 1000; // Default is 1 second
function calculateZoomLevel() {
if (zoom_timer) {
clearTimeout(zoom_timer);
zoom_timer = null;
}
zoom_ratio = document.documentElement.clientWidth / window.innerWidth;
if (zoom_ratioPre != zoom_ratio) {
if (zoom_callbackFunction) {
zoom_callbackFunction(zoom_ratioPre, zoom_ratio);
}
zoom_ratioPre = zoom_ratio;
}
if (zoom_continue == true) {
zoom_timer = setTimeout("calculateZoomLevel();", zoom_miliSeconds);
}
}
function stopDetectZoom() {
zoom_continue = false;
}
function startDetectZoom(miliSeconds, callbackFunction) {
zoom_continue = true;
if (callbackFunction) {
zoom_callbackFunction = callbackFunction;
}
if (miliSeconds) {
zoom_miliSeconds = miliSeconds;
}
zoom_timer = setTimeout("calculateZoomLevel();", zoom_miliSeconds);
}
\ No newline at end of file
......@@ -64,7 +64,7 @@
"dspBkCancel":"Logout",
"txtSearchResult":"Result",
"dspHome":"Home",
"txtLoginUser":"(Ver.20121211-2)User:",
"txtLoginUser":"(Ver.20121212-1)User:",
"txtAll":"All",
"txtMkgSize":"Size",
"txtMkgS":"S",
......
......@@ -64,7 +64,7 @@
"dspBkCancel":"バックアップせずにログアウト",
"txtSearchResult":"検索結果",
"dspHome":"ホーム",
"txtLoginUser":"(Ver.20121211-2)ログイン中:",
"txtLoginUser":"(Ver.20121212-1)ログイン中:",
"txtAll":"すべて",
"txtMkgSize":"太さ",
"txtMkgS":"小",
......
......@@ -64,7 +64,7 @@
"dspBkCancel":"로그아웃",
"txtSearchResult":"검색 결과",
"dspHome":"홈",
"txtLoginUser":"(Ver.20121211-2)로그인 중:",
"txtLoginUser":"(Ver.20121212-1)로그인 중:",
"txtAll":"전체",
"txtMkgSize":"두께",
"txtMkgS":"소",
......
......@@ -368,7 +368,7 @@
/*get mediaInfo */
if(iValueObj.mediaInfo){
/* get image from Json */
pageObject['imageUrl'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
pageObject['imageUrl'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
}else{
pageObject['imageUrl'] = null;
}
......@@ -376,7 +376,7 @@
/*get mediaInfo */
if(iValueObj.mediaInfo){
/* get image from Json */
pageObject['imageUrl'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
pageObject['imageUrl'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
}else{
pageObject['imageUrl'] = null;
}
......@@ -384,7 +384,7 @@
/*get video file */
if(iValueObj.action.video){
pageObject['mediaFile'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceName=" + removeExt(iValueObj.action.video);
pageObject['mediaFile'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceName=" + removeExt(iValueObj.action.video);
pageObject['media'] = iValueObj.action.video;
}else{
pageObject['mediaFile'] = '';
......@@ -395,7 +395,7 @@
/*get mediaInfo */
if(iValueObj.mediaInfo){
/* get image from Json */
pageObject['imageUrl'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
pageObject['imageUrl'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
}else{
pageObject['imageUrl'] = null;
}
......@@ -403,9 +403,9 @@
/*get video file */
if(iValueObj.action.music){
if(avwUserEnvObj.browser == 'msie'){
pageObject['audioFile'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceName=" + removeExt(iValueObj.action.music) +"&isIE=true";
pageObject['audioFile'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceName=" + removeExt(iValueObj.action.music) +"&isIE=true";
}else{
pageObject['audioFile'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceName=" + removeExt(iValueObj.action.music);
pageObject['audioFile'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceName=" + removeExt(iValueObj.action.music);
}
}else{
pageObject['audioFile'] = '';
......@@ -436,7 +436,7 @@
/*get mediaInfo */
if(iValueObj.mediaInfo){
/* get image from Json */
pageObject['imageUrl'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
pageObject['imageUrl'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
}else{
pageObject['imageUrl'] = null;
}
......@@ -444,7 +444,7 @@
/*get mediaInfo */
if(iValueObj.mediaInfo.resourceId){
/* get image from Json */
pageObject['imageUrl'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
pageObject['imageUrl'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
}else{
pageObject['imageUrl'] = null;
}
......@@ -454,7 +454,7 @@
var dataImageFromResource = [];
for(var nIndex = 0; nIndex < dataResourceImage.length; nIndex++){
dataImageFromResource.push(getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceName=" + removeExt(dataResourceImage[nIndex]));
dataImageFromResource.push(getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceName=" + removeExt(dataResourceImage[nIndex]));
}
pageObject['imagePreview'] = dataImageFromResource;
......@@ -463,7 +463,7 @@
/*get mediaInfo */
if(iValueObj.mediaInfo.resourceId){
/* get image from Json */
pageObject['imageUrl'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
pageObject['imageUrl'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
}else{
pageObject['imageUrl'] = null;
}
......@@ -480,7 +480,7 @@
/*get mediaInfo */
if(iValueObj.mediaInfo.resourceId){
/* get image from Json */
pageObject['imageUrl'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
pageObject['imageUrl'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
}else{
pageObject['imageUrl'] = null;
}
......@@ -504,7 +504,7 @@
/*get mediaInfo */
if(iValueObj.mediaInfo.resourceId){
/* get image from Json */
pageObject['imageUrl'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
pageObject['imageUrl'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
}else{
pageObject['imageUrl'] = null;
}
......@@ -516,7 +516,7 @@
/*get mediaInfo */
if(iValueObj.mediaInfo.resourceId){
/* get image from Json */
pageObject['imageUrl'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
pageObject['imageUrl'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
}else{
pageObject['imageUrl'] = null;
}
......@@ -547,7 +547,7 @@
/*get mediaInfo */
if(iValueObj.mediaInfo.resourceId){
pageObject['mediaFile'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
pageObject['mediaFile'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
pageObject['media'] = iValueObj.mediaInfo.resourceId;
}else{
pageObject['mediaFile'] = '';
......@@ -590,9 +590,9 @@
/*get mediaInfo */
if(iValueObj.mediaInfo.resourceId){
if(avwUserEnvObj.browser == 'msie'){
pageObject['audioFile'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId + "&isIE=true";
pageObject['audioFile'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId + "&isIE=true";
}else{
pageObject['audioFile'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId;
pageObject['audioFile'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId;
}
}else{
pageObject['audioFile'] = '';
......@@ -625,7 +625,7 @@
for(var nIndex = 0; nIndex < imageObjects.length; nIndex++){
/* get image from Json */
imageObjects[nIndex].fileName = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + imageObjects[nIndex].resourceId;
imageObjects[nIndex].fileName = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + imageObjects[nIndex].resourceId;
}
pageObject['dataObjects'] = imageObjects;
......@@ -665,7 +665,7 @@
var videoObjects = iValueObj.mediaInfo.media;
for(var nIndex = 0; nIndex < videoObjects.length; nIndex++){
/* get image from Json */
videoObjects[nIndex].fileName = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + videoObjects[nIndex].resourceId;
videoObjects[nIndex].fileName = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + videoObjects[nIndex].resourceId;
}
pageObject['dataObjects'] = videoObjects;
......@@ -700,7 +700,7 @@
/*get mediaInfo */
if(iValueObj.mediaInfo){
/* get image from Json */
pageObject['imageUrl'] = getURL("webResourceDownload") + "?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
pageObject['imageUrl'] = getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + iValueObj.mediaInfo.resourceId ;
}else{
pageObject['imageUrl'] = null;
}
......@@ -1921,7 +1921,8 @@
var tree = new TreeViewIndex();
tree.IsShowTotal = false;
tree.Show("divListIndex", arrData, "listIndex_Callback");
$("#divListIndex").treeview();
$("#divListIndex").treeview();
$(".treeview, .treeview ul").css('padding', '0px 8px 0');
}else{
$('#divListIndex').children().remove();
$('#divListIndex').append('<span style="color:#333333; font-size:12px; cursor:default; text-decoration:none;">' + i18nText('msgNoIndex') + '</span>');
......@@ -3630,7 +3631,7 @@ function oldContent_Back(){
</div>
<div id="divCheckExistMarking" class="check_marking" style="display:none">
<img src="img/list/pic_2.png" />
<img src="img/viewer/marking.png" />
</div>
<header id ="header_toolbar" class="header">
......
......@@ -455,6 +455,8 @@ div .ui-slider-range, .ui-widget-header, .ui-slider-range-max {
left:20px;
position:absolute;
background-color: white;
opacity: 0.5;
border-radius: 5px;
}
/*------------------Control Pen------------------------*/
......
......@@ -67,7 +67,7 @@ article .contentDetail {
.sectionContentDetail #book_data ul {
list-style:none;
line-height:1em;
/*line-height:1em;*/
font-size:13px;
margin:0 0 0 42px;
padding:0;
......
......@@ -806,7 +806,7 @@ aside.indexBox .indexBoxHd .hidden_on{
}
aside.indexBox .indexBoxBody_on{
width:370px;
height:357px;
height:362px;
background:#FFFFFF;
border:solid 1px #cfd0d0;
border-top:none;
......
......@@ -1307,6 +1307,8 @@ function mouseMove_canvasMain(event){
zoomVideo();
closeDialogPopUpText();
// lastX = event.offsetX || (event.pageX - canvas_main.offsetLeft);
// lastY = event.offsetY || (event.pageY - canvas_main.offsetTop);
//
......@@ -1990,13 +1992,13 @@ function flip() {
var width = offscreen.width;
var height = offscreen.height;
var aspect = offscreen.width / offscreen.height;
if(canvas.width > canvas.height) {
if(canvas.width > canvas.height) {
height = canvas.height;
width = height * aspect;
if(width > canvas.width) {
/*if(width > canvas.width) {
width = canvas.width;
height = width / aspect;
}
}*/
} else {
width = canvas.width;
height = width / aspect;
......@@ -2007,6 +2009,12 @@ function flip() {
height = canvas.height;
width = width * size;
}
if(width > canvas.width){
var size = canvas.width / width;
width = canvas.width;
height = height * size;
}
if(userScale != 1 && width < canvas.width){
......@@ -2018,8 +2026,8 @@ function flip() {
}
}else if(userScale != 1 && height < canvas.height){
height = width * userScale;
height = height * userScale;
if(height > canvas.height){
//var size = canvas.height / height;
......@@ -2998,10 +3006,10 @@ function changeScale(scale) {
if(canvas.width > canvas.height) {
height = canvas.height;
width = height * aspect;
if(width > canvas.width) {
/*if(width > canvas.width) {
width = canvas.width;
height = width / aspect;
}
}*/
} else {
width = canvas.width;
height = width / aspect;
......@@ -3013,6 +3021,12 @@ function changeScale(scale) {
width = width * size;
}
if(width > canvas.width){
var size = canvas.width / width;
width = canvas.width;
height = height * size;
}
if(width < canvas.width){
//if(width >= height){
......
......@@ -26,6 +26,8 @@ function createMemoDialog(){
+' </div>'
+'</aside>');
$('#txaMemoContent').focus();
handleMemoEventFunction();
}
function handleMemoEventFunction(){
......@@ -171,7 +173,7 @@ function CopyMemo(index,contentId,pageNo,targetId, posX, posY, callback){
createMemoDialog();
getMemoForEdit();
saveMode = 'Copy';
editJqueryUIDialog
$('#Memo_btnDel').css('display','none');
//targetDiv.dialog({width: 466, height: 390, modal: true, position: [targetX, targetY], resizable: false});
//targetDiv.parent().removeClass('ui-draggable');
$("#overlay").show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment