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
5224d11b
Commit
5224d11b
authored
Dec 14, 2012
by
Motohisa Nakano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20121214
parent
f2a72203
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
111 additions
and
55 deletions
+111
-55
abvw/common/css/jquery.treeview.css
+5
-1
abvw/common/js/common.js
+37
-18
abvw/common/js/zoomDetector.js
+2
-1
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/contentview.html
+0
-0
abvw/css/contentview.css
+2
-2
abvw/css/viewer.css
+2
-0
abvw/js/SCRCDL0100.js
+3
-0
abvw/js/bookmark.js
+0
-1
abvw/js/contentsearch.js
+3
-0
abvw/js/contentview.js
+5
-3
abvw/js/contentview_Memo.js
+4
-1
abvw/js/contentview_PopupText.js
+2
-2
abvw/js/history.js
+14
-2
abvw/js/home.js
+0
-0
abvw/js/login.js
+10
-5
abvw/js/settings.js
+19
-16
No files found.
abvw/common/css/jquery.treeview.css
View file @
5224d11b
...
...
@@ -3,7 +3,11 @@
margin
:
0
;
list-style
:
none
;
}
.treeview
{
white-space
:
nowrap
;
overflow-x
:
auto
;
}
.treeview
ul
{
background-color
:
white
;
margin-top
:
4px
;
...
...
abvw/common/js/common.js
View file @
5224d11b
...
...
@@ -88,6 +88,8 @@ var ScreenIds = {
};
var
Keys
=
{
zoom_ratioPre
:
'zoom_ratioPre'
,
IsRefresh
:
'IsRefresh'
,
// Local
BookmarkScreen
:
'BookmarkScreen'
,
...
...
@@ -267,8 +269,6 @@ var Keys = {
sortOpt_searchDivision
:
'sortOpt_searchDivision'
,
// Local: 並び順(sortOpt)_ソート方法:Interger(1:タイトル名, 2:タイトル名(かな), 3:公開順)
sortOpt_sortType
:
'sortOpt_sortType'
,
// Local :しおりデータ(bookmark)_コンテンツID:Interger
bookmark_contentNo
:
'bookmark_contentNo'
,
// Local :しおりデータ(bookmark)_ページNo:Interger
bookmark_pageNo
:
'bookmark_pageNo'
,
// Local :メモデータ(memo)_コンテンツID:Interger
...
...
@@ -483,7 +483,20 @@ function operateData(args, strKey, returnDefaultData) {
}
}
var
ClientData
=
{
zoom_ratioPre
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
Keys
.
zoom_ratioPre
,
JSON
.
stringify
(
data
));
}
else
{
if
(
SessionStorageUtils
.
get
(
Keys
.
zoom_ratioPre
)
!=
'undefined'
&&
SessionStorageUtils
.
get
(
Keys
.
zoom_ratioPre
)
!=
undefined
&&
SessionStorageUtils
.
get
(
Keys
.
zoom_ratioPre
)
!=
''
&&
SessionStorageUtils
.
get
(
Keys
.
zoom_ratioPre
)
!=
null
&&
SessionStorageUtils
.
get
(
Keys
.
zoom_ratioPre
)
!=
'null'
)
{
return
JSON
.
parse
(
SessionStorageUtils
.
get
(
Keys
.
zoom_ratioPre
));
}
return
1
;
}
},
// Local :ユーザ情報(userInfo)_アカウントパス:String
userInfo_accountPath
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
...
...
@@ -893,17 +906,6 @@ var ClientData = {
return
operateData
(
arguments
,
Keys
.
sortOpt_sortType
,
undefined
);
}
},
// Local :しおりデータ(bookmark)_コンテンツID:Interger
bookmark_contentNo
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
operateData
(
arguments
,
Keys
.
bookmark_contentNo
,
undefined
);
}
else
{
return
operateData
(
arguments
,
Keys
.
bookmark_contentNo
,
undefined
);
}
},
// Local :しおりデータ(bookmark)_ページNo:Interger
bookmark_pageNo
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
...
...
@@ -1851,15 +1853,25 @@ function unlockFunction(inputPass) {
}
},
function
(
xhr
,
statusText
,
errorThrown
)
{
if
(
xhr
.
responseText
&&
xhr
.
status
!=
0
)
{
errorCode
=
JSON
.
parse
(
xhr
.
responseText
);
}
else
{
// System error
showSystemError
();
}
});
// Check error
if
(
avwHasError
())
{
return
;
}
if
(
result
==
true
)
{
if
(
window
.
onUnlock
)
{
if
(
window
.
onUnlock
)
{
onUnlock
();
}
}
return
{
'result'
:
result
,
'errorCode'
:
errorCode
};
return
{
'result'
:
result
,
'errorCode'
:
errorCode
};
}
...
...
@@ -1945,11 +1957,18 @@ function RegisterLog() {
}
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
"contentReadingLog"
,
'get'
,
params
,
null
,
function
(
a
,
b
,
c
)
{
function
(
xhr
,
b
,
c
)
{
if
(
xhr
.
status
!=
0
)
{
isError
=
true
;
}
else
{
showSystemError
();
}
});
};
if
(
avwHasError
())
{
return
;
}
// Clear logs in local
if
(
!
isError
)
{
ClientData
.
ContentLogData
([]);
...
...
abvw/common/js/zoomDetector.js
View file @
5224d11b
...
...
@@ -7,7 +7,7 @@ var zoom_miliSeconds = 1000; // Default is 1 second
var
zoom_oldW
=
-
1
;
var
zoom_oldH
=
-
1
;
function
calculateZoomLevel
()
{
zoom_ratioPre
=
ClientData
.
zoom_ratioPre
();
if
(
zoom_timer
)
{
clearTimeout
(
zoom_timer
);
zoom_timer
=
null
;
...
...
@@ -25,6 +25,7 @@ function calculateZoomLevel() {
zoom_callbackFunction
(
zoom_ratioPre
,
zoom_ratio
,
zoom_oldW
,
zoom_oldH
,
window
.
innerWidth
,
window
.
innerHeight
);
}
zoom_ratioPre
=
zoom_ratio
;
ClientData
.
zoom_ratioPre
(
zoom_ratioPre
);
zoom_oldW
=
window
.
innerWidth
;
zoom_oldH
=
window
.
innerHeight
;
}
...
...
abvw/common/json/lang/lang-en.json
View file @
5224d11b
...
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"Logout"
,
"txtSearchResult"
:
"Result"
,
"dspHome"
:
"Home"
,
"txtLoginUser"
:
"(Ver.2012121
3
-1)User:"
,
"txtLoginUser"
:
"(Ver.2012121
4
-1)User:"
,
"txtAll"
:
"All"
,
"txtMkgSize"
:
"Size"
,
"txtMkgS"
:
"S"
,
...
...
abvw/common/json/lang/lang-ja.json
View file @
5224d11b
...
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"バックアップせずにログアウト"
,
"txtSearchResult"
:
"検索結果"
,
"dspHome"
:
"ホーム"
,
"txtLoginUser"
:
"(Ver.2012121
3
-1)ログイン中:"
,
"txtLoginUser"
:
"(Ver.2012121
4
-1)ログイン中:"
,
"txtAll"
:
"すべて"
,
"txtMkgSize"
:
"太さ"
,
"txtMkgS"
:
"小"
,
...
...
abvw/common/json/lang/lang-ko.json
View file @
5224d11b
...
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"로그아웃"
,
"txtSearchResult"
:
"검색 결과"
,
"dspHome"
:
"홈"
,
"txtLoginUser"
:
"(Ver.2012121
3
-1)로그인 중:"
,
"txtLoginUser"
:
"(Ver.2012121
4
-1)로그인 중:"
,
"txtAll"
:
"전체"
,
"txtMkgSize"
:
"두께"
,
"txtMkgS"
:
"소"
,
...
...
abvw/contentview.html
View file @
5224d11b
This diff is collapsed.
Click to expand it.
abvw/css/contentview.css
View file @
5224d11b
...
...
@@ -418,7 +418,7 @@ div .ui-slider-range, .ui-widget-header, .ui-slider-range-max {
z-index
:
102
;
font-family
:
Verdana
;
font-size
:
10pt
;
border-radius
:
1
5
px
;
border-radius
:
1
0
px
;
}
.popuptext_arrow
{
...
...
@@ -430,7 +430,7 @@ div .ui-slider-range, .ui-widget-header, .ui-slider-range-max {
border-style
:
solid
;
width
:
0
;
height
:
0
;
border-width
:
1
8px
18px
18px
18
px
;
border-width
:
1
2px
12px
12px
12
px
;
}
/* HOVER STYLES */
.pop-up-memo
{
...
...
abvw/css/viewer.css
View file @
5224d11b
...
...
@@ -74,6 +74,8 @@ header{
max-width
:
none
;
min-width
:
1000px
;
height
:
60px
;
position
:
absolute
;
width
:
100%
;
}
/*ヘッダー左カラム*/
...
...
abvw/js/SCRCDL0100.js
View file @
5224d11b
...
...
@@ -74,6 +74,9 @@ function openContentDetail() {
$
(
"#sectionContentDetail"
).
show
();
$
(
"#contentDetail"
).
show
();
$
(
"#contentDetail"
).
center
();
if
(
$
(
"#contentDetail"
).
height
()
>
$
(
window
).
height
()){
$
(
"#contentDetail"
).
css
(
'top'
,
'0'
);
}
// Get contentid, thumbnail from list screen
displayData
.
contentID
=
ClientData
.
contentInfo_contentId
();
...
...
abvw/js/bookmark.js
View file @
5224d11b
...
...
@@ -156,7 +156,6 @@ function dspRead_Click() {
var
jsondata
=
$
(
this
).
attr
(
"value"
);
var
data
=
JSON
.
parse
(
jsondata
);
ClientData
.
contentInfo_contentId
(
data
.
contentid
);
ClientData
.
bookmark_contentNo
(
data
.
contentid
);
ClientData
.
bookmark_pageNo
(
data
.
pageNo
);
ClientData
.
IsRefresh
(
false
);
...
...
abvw/js/contentsearch.js
View file @
5224d11b
...
...
@@ -105,6 +105,9 @@ $(document).ready(function(){
if
(
$
(
"#contentDetail"
).
css
(
"display"
)
!=
"none"
)
{
// Refresh panel of detail to center.
$
(
"#contentDetail"
).
center
();
if
(
$
(
"#contentDetail"
).
height
()
>
$
(
window
).
height
()){
$
(
"#contentDetail"
).
css
(
'top'
,
'0'
);
}
}
});
});
...
...
abvw/js/contentview.js
View file @
5224d11b
...
...
@@ -1257,7 +1257,7 @@ function onClick_CanvasMain(event){
/* click pageObject */
if
(
isClickMemo
==
false
){
isClickLinkList
=
false
;
var
isClickLinkList
=
false
;
/* check exist object in mouse position */
var
hitPageObj
=
getContent
().
currentPage
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
);
...
...
@@ -2326,6 +2326,8 @@ var openPopUp = function(mediaType, actionType, id, imageUrl, x, y, w, h, visibl
if
(
userScale
>
1
){
OpenPopupText
(
posXPopupMemo
,
posYPopupMemo
,
content
,
$
(
'#dialogPopUp'
),
$
(
'#arrow'
));
}
else
if
(
$
(
"#header_toolbar"
).
is
(
":hidden"
)){
OpenPopupText
(
pt1
.
x
,
pt1
.
y
-
65
,
content
,
$
(
'#dialogPopUp'
),
$
(
'#arrow'
));
}
else
{
OpenPopupText
(
pt1
.
x
,
pt1
.
y
,
content
,
$
(
'#dialogPopUp'
),
$
(
'#arrow'
));
}
...
...
@@ -3070,7 +3072,7 @@ function zoomOut() {
checkDisableButtonZoom
();
/* close dialog popuptext */
closeDialog
PopUpText
();
closeDialog
Resize
();
};
/* restore screen size */
...
...
@@ -3092,7 +3094,7 @@ function screenFit() {
checkDisableButtonZoom
();
/* close dialog popuptext */
closeDialog
PopUpText
();
closeDialog
Resize
();
};
...
...
abvw/js/contentview_Memo.js
View file @
5224d11b
...
...
@@ -9,7 +9,7 @@ var conid;
var
pageid
;
function
createMemoDialog
(){
targetDiv
.
show
();
targetDiv
.
html
(
''
);
targetDiv
.
append
(
'<aside id="memoWrapper" class="MemoIndexBox">'
...
...
@@ -80,6 +80,7 @@ function MemoDelFunction(){
}
$
(
"#overlay"
).
hide
();
targetDiv
.
children
().
remove
();
targetDiv
.
hide
();
$
(
"#pop_up_memo"
).
hide
();
...
...
@@ -94,6 +95,7 @@ function MemoCancelFunction(){
//targetDiv.dialog('close');
$
(
"#overlay"
).
hide
();
targetDiv
.
children
().
remove
();
targetDiv
.
hide
();
isCopyMemo
=
false
;
$
(
"#pop_up_memo"
).
hide
();
...
...
@@ -225,6 +227,7 @@ function buttonSaveFunction(){
//targetDiv.dialog('close');
$
(
"#overlay"
).
hide
();
targetDiv
.
children
().
remove
();
targetDiv
.
hide
();
isCopyMemo
=
false
;
$
(
"#pop_up_memo"
).
hide
();
...
...
abvw/js/contentview_PopupText.js
View file @
5224d11b
...
...
@@ -20,8 +20,8 @@ function OpenPopupText(posX, posY, content, dialogDiv, arrowDiv) {
dialogDiv
.
fadeIn
(
300
);
arrowDiv
.
fadeIn
(
300
);
arrowDiv
.
css
(
"left"
,
(
posX
-
20
)
+
"px"
);
arrowDiv
.
css
(
"top"
,
(
posY
-
20
)
+
"px"
);
arrowDiv
.
css
(
"left"
,
(
posX
-
14
)
+
"px"
);
arrowDiv
.
css
(
"top"
,
(
posY
-
14
)
+
"px"
);
dialogDiv
.
html
(
content
)
...
...
abvw/js/history.js
View file @
5224d11b
...
...
@@ -94,6 +94,9 @@ $(document).ready(function(){
if
(
$
(
"#contentDetail"
).
css
(
"display"
)
!=
"none"
)
{
// Refresh panel of detail to center.
$
(
"#contentDetail"
).
center
();
if
(
$
(
"#contentDetail"
).
height
()
>
$
(
window
).
height
()){
$
(
"#contentDetail"
).
css
(
'top'
,
'0'
);
}
}
});
});
...
...
@@ -1114,14 +1117,18 @@ function syncReadingContent(){
var
metaArr
=
ClientData
.
MetaVersion
();
var
resourceArr
=
ClientData
.
ResourceVersion
();
for
(
var
i
=
readArr
.
length
-
1
;
i
>=
0
;
i
--
)
{
for
(
var
i
=
readArr
.
length
-
1
;
i
>=
0
;
i
--
)
{
var
readContent
=
readArr
[
i
];
if
(
!
IsExistContent
(
readContent
.
contentid
)){
if
(
!
IsExistContent
(
readContent
.
contentid
))
{
readArr
.
splice
(
i
,
1
);
metaArr
.
splice
(
i
,
1
);
resourceArr
.
splice
(
i
,
1
);
}
// Do not process next
if
(
avwHasError
())
{
return
;
}
}
ClientData
.
ReadingContentIds
(
readArr
);
...
...
@@ -1162,6 +1169,11 @@ function IsExistContent(strContentId) {
if
(
xmlHttpRequest
.
status
==
404
)
{
isExisted
=
false
;
}
else
{
// Show system error
isExisted
=
true
;
// Mark this flag to prevent bookmarks from deleting
showSystemError
();
}
});
return
isExisted
;
}
...
...
abvw/js/home.js
View file @
5224d11b
This diff is collapsed.
Click to expand it.
abvw/js/login.js
View file @
5224d11b
...
...
@@ -329,9 +329,9 @@ function processLogin() {
}
},
function
(
xhr
,
statusText
,
errorThrown
)
{
if
(
xhr
.
responseText
&&
xhr
.
status
!=
0
)
{
login_errorMessage
=
JSON
.
parse
(
xhr
.
responseText
).
errorMessage
;
//$('#main-error-message').html(format(i18nText('msgLoginErrWrong'), formatErrorCode(a.status)).toString());
if
(
xhr
.
responseText
&&
xhr
.
status
!=
0
)
{
$
(
'#main-error-message'
).
html
(
format
(
i18nText
(
'msgLoginErrWrong'
),
JSON
.
parse
(
xhr
.
responseText
).
errorMessage
).
toString
());
}
else
{
$
(
'#main-error-message'
).
html
(
format
(
i18nText
(
'msgLoginErrWrong'
),
'E001'
));
...
...
@@ -370,10 +370,15 @@ function changePasswordProcess(){
$
(
'#dialog-error-message'
).
show
();
}
},
function
(
a
,
b
,
c
)
{
//$('#dialog-error-message').html(i18nText('msgPwdOldWrong'));
$
(
'#dialog-error-message'
).
html
(
JSON
.
parse
(
a
.
responseText
).
errorMessage
);
function
(
xhr
,
b
,
c
)
{
if
(
xhr
.
responseText
&&
xhr
.
status
!=
0
)
{
$
(
'#dialog-error-message'
).
html
(
JSON
.
parse
(
xhr
.
responseText
).
errorMessage
);
$
(
'#dialog-error-message'
).
show
();
}
else
{
// Show systemerror
showSystemError
();
}
});
}
...
...
abvw/js/settings.js
View file @
5224d11b
...
...
@@ -103,8 +103,13 @@ function IsExistBackupFile() {
isExisted
=
true
;
}
},
function
(
a
,
b
,
c
)
{
function
(
xhr
,
b
,
c
)
{
if
(
xhr
.
status
!=
0
)
{
isExisted
=
false
;
}
else
{
showSystemError
();
}
});
return
isExisted
;
}
...
...
@@ -235,12 +240,6 @@ function dspOptBk_OK_Click(e) {
text
:
i18nText
(
'msgBackupFailed'
)
});
});
// avwCmsApi(ClientData.userInfo_accountPath(), "uploadBackupFile", "post",
// { sid: ClientData.userInfo_sid(), "webBackupData.json": JSON.stringify(buildBackupData()), deviceType: "4" },
// avwCmsApi_uploadBackupFile_success,
// null
// );
closeBackup
();
}
...
...
@@ -288,7 +287,8 @@ function dspOptRes_OK_Click(e) {
avwCmsApi
(
ClientData
.
userInfo_accountPath
(),
"getBackupFile"
,
"post"
,
{
sid
:
ClientData
.
userInfo_sid
(),
deviceType
:
'4'
,
filename
:
"webBackupData.json"
},
avwCmsApi_getBackupFile_success
,
function
(
a
,
b
,
c
)
{
function
(
xhr
,
b
,
c
)
{
if
(
xhr
.
status
!=
0
)
{
// Show error message
$
().
toastmessage
({
position
:
'middle-center'
});
$
().
toastmessage
(
'showToast'
,
{
...
...
@@ -297,6 +297,10 @@ function dspOptRes_OK_Click(e) {
text
:
i18nText
(
'msgRestoreFailed'
)
});
}
else
{
showSystemError
();
}
}
);
closeRestore
();
...
...
@@ -595,19 +599,18 @@ function avwCmsApi_passwordChange_success(data) {
}
}
}
function
avwCmsApi_passwordChange_fail
(
a
,
b
,
c
)
{
function
avwCmsApi_passwordChange_fail
(
xhr
,
b
,
c
)
{
if
(
xhr
.
responseText
&&
xhr
.
status
!=
0
)
{
/* show error messages */
var
msgError
=
$
(
'#dialog-error-message'
);
//$().toastmessage({ position: 'middle-center' });
//$().toastmessage('showToast', {
// type: 'error',
// sticky: true,
// text: i18nText('msgPwdChangeNG')
//});
//msgError.html(i18nText('msgPwdChangeNG'));
msgError
.
html
(
JSON
.
parse
(
a
.
responseText
).
errorMessage
);
msgError
.
html
(
JSON
.
parse
(
xhr
.
responseText
).
errorMessage
);
msgError
.
show
();
}
else
{
showSystemError
();
}
}
...
...
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