Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
610779d3
Commit
610779d3
authored
Sep 30, 2013
by
Vo Duc Thang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
9/30 リリース
parent
7766f8c6
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
181 additions
and
61 deletions
+181
-61
abvw/common/js/common.js
+31
-2
abvw/common/json/lang/lang-en.json
+1
-1
abvw/common/json/lang/lang-ja.json
+1
-1
abvw/common/json/lang/lang-ko.json
+1
-1
abvw/css/layout/Anket.css
+20
-2
abvw/home.html
+1
-1
abvw/js/contentview.js
+25
-6
abvw/js/contentview_3d.js
+13
-2
abvw/js/contentview_Anket.js
+12
-11
abvw/js/contentview_CallApi.js
+36
-3
abvw/js/contentview_Events.js
+14
-17
abvw/js/contentview_General.js
+5
-0
abvw/js/contentview_GetData.js
+13
-9
abvw/js/home.js
+8
-5
No files found.
abvw/common/js/common.js
View file @
610779d3
...
...
@@ -2635,4 +2635,33 @@ Check is anonymous user login
*/
function
isAnonymousLogin
()
{
return
avwSysSetting
().
anonymousLoginFlg
;
}
\ No newline at end of file
}
/* Check if current browser is IE9 */
function
isIE9
()
{
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/msie 9.0/
.
test
(
ua
))
{
return
true
;
}
return
false
;
};
/* Check if current browser is IE10 */
function
isIE10
()
{
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/msie 10.0/
.
test
(
ua
))
{
return
true
;
}
/*
if (window.navigator.msPointerEnabled) {
return true;
} else {
var ua = window.navigator.userAgent.toLowerCase();
if (/msie 10.0/.test(ua)) {
return true;
}
}
*/
return
false
;
};
\ No newline at end of file
abvw/common/json/lang/lang-en.json
View file @
610779d3
...
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"Logout"
,
"txtSearchResult"
:
"Result"
,
"dspHome"
:
"Home"
,
"txtLoginUser"
:
"(Ver.201309
27_2
)User:"
,
"txtLoginUser"
:
"(Ver.201309
30
)User:"
,
"txtAll"
:
"All"
,
"txtMkgSize"
:
"Size"
,
"txtMkgS"
:
"S"
,
...
...
abvw/common/json/lang/lang-ja.json
View file @
610779d3
...
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"バックアップせずにログアウト"
,
"txtSearchResult"
:
"検索結果"
,
"dspHome"
:
"ホーム"
,
"txtLoginUser"
:
"(Ver.201309
27_2
)ログイン中:"
,
"txtLoginUser"
:
"(Ver.201309
30
)ログイン中:"
,
"txtAll"
:
"すべて"
,
"txtMkgSize"
:
"太さ"
,
"txtMkgS"
:
"小"
,
...
...
abvw/common/json/lang/lang-ko.json
View file @
610779d3
...
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"로그아웃"
,
"txtSearchResult"
:
"검색 결과"
,
"dspHome"
:
"홈"
,
"txtLoginUser"
:
"(Ver.201309
27_2
)로그인 중:"
,
"txtLoginUser"
:
"(Ver.201309
30
)로그인 중:"
,
"txtAll"
:
"전체"
,
"txtMkgSize"
:
"두께"
,
"txtMkgS"
:
"소"
,
...
...
abvw/css/layout/Anket.css
View file @
610779d3
...
...
@@ -13,6 +13,7 @@
}
.anket-dialog
.anket-container
{
-webkit-overflow-scrolling
:
touch
;
}
.anket-dialog
.anket-container
iframe
{
...
...
@@ -38,4 +39,22 @@
}
.anket-dialog
.anket-commands
input
[
type
=
'button'
]
:hover
{
}
\ No newline at end of file
}
.anket-transparent-content
{
opacity
:
0
;
}
.anket-transparent
{
opacity
:
0.5
;
}
.anket-translucent
{
opacity
:
0.8
;
}
.anket-opacity
{
opacity
:
1.0
;
}
abvw/home.html
View file @
610779d3
...
...
@@ -2,7 +2,7 @@
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=9,chrome=1"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=9,
10,
chrome=1"
/>
<meta
http-equiv=
"Pragma"
content=
"no-cache"
>
<meta
http-equiv=
"Cache-Control"
content=
"no-store"
>
<meta
http-equiv=
"Cache-Control"
content=
"no-cache"
>
...
...
abvw/js/contentview.js
View file @
610779d3
...
...
@@ -3045,10 +3045,26 @@ ContentPage.prototype.drawPage = function (context, opt) {
nCountObjectLoad
=
0
;
$
(
'#divImageLoading'
).
css
(
'display'
,
'block'
);
var
width
=
this
.
image
.
width
;
var
height
=
this
.
image
.
height
;
//var width = this.image.width;
//var height = this.image.height;
//START TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
if
(
opt
==
null
||
opt
==
0
){
getPageSizeByPageNo
(
changePageIndex
(
getPageIndex
()));
}
else
if
(
opt
==
1
){
getPageSizeByPageNo
(
changePageIndex
(
getPageIndex
()
+
1
));
}
else
if
(
opt
==
2
){
getPageSizeByPageNo
(
changePageIndex
(
getPageIndex
()
-
1
));
}
widthEachPage
=
widthContentImage
;
heightEachPage
=
heightContentImage
;
/* set width canvas */
/*
if (width > height) {
if (widthContentImage > heightContentImage) {
widthEachPage = widthContentImage;
...
...
@@ -3065,7 +3081,8 @@ ContentPage.prototype.drawPage = function (context, opt) {
widthEachPage = heightContentImage;
heightEachPage = widthContentImage;
}
}
}*/
//END TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
if
(
opt
==
null
||
opt
==
0
){
$
(
"#offscreen"
).
attr
(
'height'
,
heightEachPage
);
...
...
@@ -4152,10 +4169,12 @@ function flip(opt) {
var
context
=
canvas
.
getContext
(
'2d'
);
// init rect
if
(
srcRect
.
width
==
0
)
{
//START TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
//if (srcRect.width == 0) {
srcRect
=
new
Rect
(
0
,
0
,
offscreen
.
width
,
offscreen
.
height
);
}
//}
//END TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
// display rect
srcRect
.
add
(
moveX
,
moveY
);
...
...
abvw/js/contentview_3d.js
View file @
610779d3
...
...
@@ -275,10 +275,21 @@ function OnMouseEnd3D(id, _h, _v) {
var
_currFrameY
=
currFramePos
.
_currFrameY
;
var
_arrFrame
=
getArrFrame
(
id
);
setImageIndexToMatrix
(
_currFrameX
,
_currFrameY
,
_arrFrame
,
_h
,
_v
);
//setImageIndexToMatrix(_currFrameX, _currFrameY, _arrFrame, _h, _v);
setArrFrame
(
id
,
_h
,
_v
,
_currFrameX
,
_currFrameY
,
_arrFrame
);
}
};
function
setArrFrame
(
id
,
_h
,
_v
,
_currX
,
_currY
,
_arrFrame
){
for
(
var
i
=
0
;
i
<
_object3DImageArr
.
length
;
i
++
){
var
obj
=
_object3DImageArr
[
i
];
if
(
obj
.
id
==
id
){
obj
.
arrFrame
=
setImageIndexToMatrix
(
_currX
,
_currY
,
_arrFrame
,
_h
,
_v
);
}
}
};
//compare 2 frame to get action
function
get3DAction
(
lastFrame
,
currFrame
){
var
nRet
=
0
;
...
...
abvw/js/contentview_Anket.js
View file @
610779d3
...
...
@@ -23,9 +23,9 @@ function showAnket(url, fullscreen) {
'<h1>'
+
i18nText
(
'txtEnqueteTitle'
)
+
'<img src="img/viewer/x.png" style="margin:3px 3px 0px 21px" id="btnClose" class="align_right" ></img>'
+
'</h1>'
+
'<div class="anket-container"
><iframe width="'
+
width
+
'" height="100%" frameborder="0" scrolling="auto" src="'
+
url
+
'">'
+
'<div class="anket-container"
id="anket-container"><iframe width="'
+
width
+
'" height="100%" frameborder="0" scrolling="auto" src="'
+
url
+
'">'
+
'</iframe></div>'
+
'<div class="anket-commands"><input type="button" value="'
+
i18nText
(
'txtTransparent'
)
+
'" id="btnFullOpacity"/> <input type="button" value="'
+
i18nText
(
'txtSemiTransparent'
)
+
'" id="btnApartOpacity"/> <input type="button" value="'
+
i18nText
(
'txtNoTransparent'
)
+
'" id="btnNoOpacity"/></div><div style="clear:both;"></div>'
+
'<div class="anket-commands"
id="anket-commands"
><input type="button" value="'
+
i18nText
(
'txtTransparent'
)
+
'" id="btnFullOpacity"/> <input type="button" value="'
+
i18nText
(
'txtSemiTransparent'
)
+
'" id="btnApartOpacity"/> <input type="button" value="'
+
i18nText
(
'txtNoTransparent'
)
+
'" id="btnNoOpacity"/></div><div style="clear:both;"></div>'
);
$
(
'#dialog h1 img'
).
click
(
function
(){
$container
.
removeAttr
(
'style'
);
...
...
@@ -36,7 +36,7 @@ function showAnket(url, fullscreen) {
// set overflow for container iframe
if
(
avwUserEnvObj
.
isIpad
())
{
$
(
'#dialog .anket-container'
).
css
(
'overflow'
,
'
auto
'
);
$
(
'#dialog .anket-container'
).
css
(
'overflow'
,
'
scroll
'
);
if
(
fullscreen
==
true
)
{
$container
.
attr
(
'style'
,
'width:'
+
width
+
'px; left:10px;right:auto;'
);
// !important on ipad can't move dialog
}
...
...
@@ -48,21 +48,22 @@ function showAnket(url, fullscreen) {
// click on button change transparent
$
(
'#dialog .anket-commands input'
).
click
(
function
()
{
var
opacity
=
1
;
//START TRB00092 - EDITOR: Long - Date: 09/26/2013 - Summary : Fix opacity
//START TRB00092 - EDITOR: Long - Date: 09/26/2013 - Summary : Fix opacity
if
(
$
(
this
).
index
()
==
0
)
{
opacity
=
0.3
;
$
(
'#dialog,#dialog iframe,#
dialog .anket-commands,#dialog .anket-commands input'
).
css
(
'opacity'
,
opacity
);
$
(
'
.anket-container'
).
css
(
'opacity'
,
0
);
//set transparent
$
(
'#dialog,#dialog iframe,#
anket-commands,#anket-commands input'
).
removeClass
(
'anket-opacity anket-transparent anket-translucent anket-transparent-content'
).
addClass
(
'anket-transparent'
);
$
(
'
#anket-container'
).
removeClass
(
'anket-opacity anket-transparent anket-translucent anket-transparent-content'
).
addClass
(
'anket-transparent-content'
);
}
else
if
(
$
(
this
).
index
()
==
1
)
{
opacity
=
0.8
;
// set translucent
//END TRB00092 - EDITOR: Long - Date: 09/26/2013 - Summary : Fix opacity
$
(
'#dialog,#dialog iframe,#
dialog .anket-commands,#dialog .anket-commands input,.anket-container'
).
css
(
'opacity'
,
opacity
);
$
(
'#dialog,#dialog iframe,#
anket-commands,#anket-commands input,#anket-container'
).
removeClass
(
'anket-opacity anket-transparent anket-translucent anket-transparent-content'
).
addClass
(
'anket-translucent'
);
}
else
{
$
(
'#dialog,#dialog iframe,#dialog .anket-commands,#dialog .anket-commands input,.anket-container'
).
css
(
'opacity'
,
opacity
);
//set opacity
$
(
'#dialog,#dialog iframe,#anket-commands,#anket-commands input,#anket-container'
).
removeClass
(
'anket-opacity anket-transparent anket-translucent anket-transparent-content'
).
addClass
(
'anket-opacity'
);
}
}
);
...
...
abvw/js/contentview_CallApi.js
View file @
610779d3
...
...
@@ -9,25 +9,28 @@
function
abapi
(
name
,
param
,
method
,
callback
)
{
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
name
,
method
,
param
,
callback
,
null
);
};
//START TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
/* get Json stored content info */
function
getJsonContentInfo
()
{
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
1
},
function
(
data
)
{
pageImages
=
data
;
pageImages
=
data
;
webGetContentData
();
getSearchDataFromJson
();
getJsonDataPageTitle
();
getJsonDataType4
();
getJsonDataType5
();
getDataJsonFile
();
webGetPageImageContentSize
();
//webGetPageImageContentSize();
webGetContentPageSize
();
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
showErrorScreen
();
});
};
//END TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
function
webGetPageImageContentSize
()
{
avwCmsApi
(
ClientData
.
userInfo_accountPath
(),
...
...
@@ -41,6 +44,36 @@ function webGetPageImageContentSize() {
null
);
};
//START TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
function
webGetContentPageSize
(){
avwCmsApi
(
ClientData
.
userInfo_accountPath
(),
"webGetContent"
,
"GET"
,
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
getType
:
6
},
function
(
data
)
{
$
.
each
(
data
.
contentData
.
pageInfoData
.
pagesInfo
,
function
(
i
,
n
){
contentPageSizeArr
.
push
(
n
);
});
//Get Page size of firstPage
getPageSizeByPageNo
(
1
);
},
null
);
};
//Get Pagesize by pageNo
function
getPageSizeByPageNo
(
pageNo
){
for
(
var
i
=
0
;
i
<
contentPageSizeArr
.
length
;
i
++
){
var
page
=
contentPageSizeArr
[
i
];
if
(
page
.
pageNo
==
pageNo
){
widthContentImage
=
page
.
pageWidth
;
heightContentImage
=
page
.
pageHeight
;
}
}
};
//END TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
function
webGetContentData
()
{
avwCmsApi
(
ClientData
.
userInfo_accountPath
(),
"webGetContent"
,
...
...
abvw/js/contentview_Events.js
View file @
610779d3
...
...
@@ -1333,7 +1333,7 @@ function onTouchstart(evt){
_3dAction
=
_3dActionType
.
TouchStart_MouseDown
;
_curr3dObject
=
hitPageObj
;
hitPageObj
.
action
(
imagePt
);
_3dAnimate
=
true
;
_3dAnimate
=
true
;
}
}
else
{
...
...
@@ -1411,15 +1411,14 @@ function onTouchstart(evt){
var
imagePt
=
screenToImage
(
touch1
.
pageX
,
touch1
.
pageY
);
var
hitPageObj
=
getContent
().
currentPage
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
);
if
(
hitPageObj
)
{
if
(
is3DObject
(
hitPageObj
)){
if
(
hitPageObj
)
{
if
(
is3DObject
(
hitPageObj
)){
//START TRB00090 - Editor: Long - Date : 09/26/2013 - Summary : remove time to detect 3d animate
if
(
isPageTransition
){
_3dAnimate
=
false
;
_isClick
=
true
;
}
else
{
else
{
_3dAction
=
_3dActionType
.
TouchStart_MouseDown
;
_curr3dObject
=
hitPageObj
;
hitPageObj
.
action
(
imagePt
);
...
...
@@ -1487,6 +1486,7 @@ var _3dAnimate = false;
//is prevent click event
var
isPreventClick
=
false
;
//End : TRB00005, TRB00006 - Editor : Long - Date: 08/28/2013
function
onTouchmove
(
evt
){
if
(
ClientData
.
IsAddingMarking
()
==
true
){
...
...
@@ -1521,7 +1521,7 @@ function onTouchmove(evt){
var
touch1
=
null
;
var
touch2
=
null
;
if
(
_bWin8TouchEnabled
){
if
(
_bWin8TouchEnabled
){
if
(
_startPoints
.
length
==
1
){
//move page case
...
...
@@ -1571,14 +1571,11 @@ function onTouchmove(evt){
_isPageNaviTouch
=
false
;
var
imagePt
=
screenToImage
(
evt
.
pageX
,
evt
.
pageY
);
var
hitObj
=
getContent
().
currentPage
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
);
if
(
hitObj
){
_3dAction
=
_3dActionType
.
TouchMove_MouseMove
;
hitObj
.
action
(
imagePt
);
}
else
{
_3dAnimate
=
false
;
}
}
else
{
_isPageNaviTouch
=
true
;
...
...
@@ -1684,8 +1681,6 @@ function onTouchmove(evt){
if
(
_isPageZoomTouch
)
{
processZoomPage
(
touch1
,
touch2
);
}
}
else
{
_isClick
=
false
;
...
...
@@ -1697,17 +1692,19 @@ function onTouchmove(evt){
var
imagePt
=
screenToImage
(
touch1
.
pageX
,
touch1
.
pageY
);
var
hitObj
=
getContent
().
currentPage
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
);
//START TRB00090 - Editor: Long - Date 09/30/2013 - Summary: Fix animate 3d object in ipad
if
(
hitObj
){
if
(
is3DObject
(
hitObj
)){
_isPageNaviTouch
=
false
;
_3dAction
=
_3dActionType
.
TouchMove_MouseMove
;
hitObj
.
action
(
imagePt
);
}
}
}
else
{
_isClick
=
false
;
}
_3dAnimate
=
false
;
//_isPageNaviTouch = true;
}
//END TRB00090 - Editor: Long - Date 09/30/2013 - Summary: Fix animate 3d object in ipad
}
else
{
//update last touch position
...
...
abvw/js/contentview_General.js
View file @
610779d3
...
...
@@ -92,6 +92,11 @@ var standardRatio = 1;
var
currentRatio
=
1
;
var
resourceImage
=
new
Image
();
//START TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
//Array of pages size
var
contentPageSizeArr
=
[];
//END TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
/* zoom video */
var
pxVideo
;
var
pyVideo
;
...
...
abvw/js/contentview_GetData.js
View file @
610779d3
...
...
@@ -7,24 +7,28 @@
/// <reference path="contentview_CallApi.js" />
//START TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
/* get Json stored content info */
function
getJsonContentInfo
()
{
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
1
},
function
(
data
)
{
pageImages
=
data
;
webGetContentData
();
getSearchDataFromJson
();
getJsonDataPageTitle
();
getJsonDataType4
();
getJsonDataType5
();
getDataJsonFile
();
webGetPageImageContentSize
();
pageImages
=
data
;
webGetContentData
();
getSearchDataFromJson
();
getJsonDataPageTitle
();
getJsonDataType4
();
getJsonDataType5
();
getDataJsonFile
();
//webGetPageImageContentSize();
webGetContentPageSize
();
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
showErrorScreen
();
});
};
//END TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
/* get url */
function
getURL
(
apiName
)
{
...
...
@@ -1147,7 +1151,7 @@ function renderNextPage(){
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
pageNo
},
function
(
data
)
{
nextPageImage
=
data
;
nextPageImage
=
data
;
nextContent
.
setPageImages
(
totalPage
,
nextPageImage
)
.
setPageObjects
(
nextPageObjects
)
...
...
abvw/js/home.js
View file @
610779d3
...
...
@@ -201,11 +201,14 @@ $(document).ready(function () {
}
else
$
(
'.switchingTab .colright'
).
show
();
// set scroll for tree view on IE 9
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/msie 9.0/
.
test
(
ua
)
&&!
/tablet/
.
test
(
ua
))
{
$
(
'.tab_bg_color'
).
css
({
"overflow-x"
:
"scroll"
});
}
// set scroll for tree view with IE9 on win7
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/msie 9.0/
.
test
(
ua
)
&&
/windows nt 6.1/
.
test
(
ua
)
&&
!
/tablet/
.
test
(
ua
))
{
$
(
'.tab_bg_color'
).
css
({
"overflow-x"
:
"scroll"
});
}
// if (isIE9()) {
// $('.tab_bg_color').css({ "overflow-x": "scroll" });
// }
});
var
allowTimerCloseSubMenu
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment