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
16256f34
Commit
16256f34
authored
Jan 15, 2015
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.2.3ソース 手動マージ
parent
5eeca1bb
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
1692 additions
and
159 deletions
+1692
-159
abvw/common/js/avweb.js
+31
-3
abvw/common/js/common.js
+0
-2
abvw/common/js/screenLock.js
+20
-0
abvw/contentsearch.html
+0
-4
abvw/contentview.html
+2
-2
abvw/history.html
+0
-4
abvw/home.html
+0
-4
abvw/js/contentview.js
+200
-21
abvw/js/contentview_CallApi.js
+49
-0
abvw/js/contentview_CreateObjects.js
+253
-37
abvw/js/contentview_Events.js
+124
-30
abvw/js/contentview_FileSystem.js
+379
-0
abvw/js/contentview_GetData.js
+123
-13
abvw/js/contentview_Gomu.js
+72
-7
abvw/js/contentview_InitObjects.js
+116
-3
abvw/js/contentview_Maker.js
+82
-7
abvw/js/contentview_Marking.js
+143
-12
abvw/js/contentview_Memo.js
+12
-1
abvw/js/contentview_Pen.js
+84
-7
abvw/js/home.js
+1
-1
abvw/js/login.js
+1
-1
No files found.
abvw/common/js/avweb.js
View file @
16256f34
...
@@ -480,8 +480,14 @@ AVWEB._callCmsApi = function(url, accountPath, apiName, type, params, async, suc
...
@@ -480,8 +480,14 @@ AVWEB._callCmsApi = function(url, accountPath, apiName, type, params, async, suc
if
(
error
)
{
if
(
error
)
{
error
(
xmlHttpRequest
,
txtStatus
,
errorThrown
);
error
(
xmlHttpRequest
,
txtStatus
,
errorThrown
);
}
else
{
}
else
{
if
(
xmlHttpRequest
.
status
==
403
)
{
AVWEB
.
showSystemError
(
'sysErrorCallApi02'
);
}
else
{
AVWEB
.
showSystemError
();
AVWEB
.
showSystemError
();
}
}
}
}
}
});
});
};
};
...
@@ -644,6 +650,12 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) {
...
@@ -644,6 +650,12 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) {
*/
*/
src
=
'data:image/png;base64,'
+
xmlHttp
.
responseText
;
src
=
'data:image/png;base64,'
+
xmlHttp
.
responseText
;
//フィアルシステムが有効であればキャッシュ
if
(
CONTENTVIEW_FILESYSTEM
.
fs
!=
null
){
var
fileName
=
"page_"
+
params
.
pageNo
+
".dat"
;
CONTENTVIEW_FILESYSTEM
.
savePageFile
(
params
.
contentId
,
fileName
,
src
);
}
if
(
success
)
{
if
(
success
)
{
success
(
src
);
success
(
src
);
}
}
...
@@ -651,7 +663,7 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) {
...
@@ -651,7 +663,7 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) {
if
(
error
)
{
if
(
error
)
{
error
(
xmlHttp
,
xmlHttp
.
status
,
xmlHttp
.
statusText
);
error
(
xmlHttp
,
xmlHttp
.
status
,
xmlHttp
.
statusText
);
}
else
{
}
else
{
console
.
l
og
(
xmlHttp
.
status
+
' '
+
xmlHttp
.
statusText
);
AVWEB
.
avwL
og
(
xmlHttp
.
status
+
' '
+
xmlHttp
.
statusText
);
}
}
}
}
}
}
...
@@ -751,7 +763,7 @@ AVWEB.avwUploadBackupFile = function(accountPath, params, async, success, error)
...
@@ -751,7 +763,7 @@ AVWEB.avwUploadBackupFile = function(accountPath, params, async, success, error)
});
});
};
};
/* show system error message */
/* show system error message */
AVWEB
.
showSystemError
=
function
()
{
AVWEB
.
showSystemError
=
function
(
textId
)
{
if
(
AVWEB
.
avwHasError
())
{
if
(
AVWEB
.
avwHasError
())
{
// すでにエラー状態であればエラーを表示しない
// すでにエラー状態であればエラーを表示しない
...
@@ -761,8 +773,12 @@ AVWEB.showSystemError = function() {
...
@@ -761,8 +773,12 @@ AVWEB.showSystemError = function() {
AVWEB
.
avwSetErrorState
();
AVWEB
.
avwSetErrorState
();
}
}
if
(
!
textId
){
textId
=
'sysErrorCallApi01'
;
}
// create DOM element for showing error message
// create DOM element for showing error message
var
errMes
=
I18N
.
i18nText
(
'sysErrorCallApi01'
);
var
errMes
=
I18N
.
i18nText
(
textId
);
var
tags
=
'<div id="avw-sys-error"></div>'
;
var
tags
=
'<div id="avw-sys-error"></div>'
;
//$('body').prepend(tags);
//$('body').prepend(tags);
$
(
'body'
).
append
(
tags
);
$
(
'body'
).
append
(
tags
);
...
@@ -836,6 +852,17 @@ AVWEB.avwClearError = function() {
...
@@ -836,6 +852,17 @@ AVWEB.avwClearError = function() {
/* ブラウザunload時に警告メッセージの出力設定を行う関数 */
/* ブラウザunload時に警告メッセージの出力設定を行う関数 */
AVWEB
.
avwSetLogoutNortice
=
function
()
{
AVWEB
.
avwSetLogoutNortice
=
function
()
{
window
.
onbeforeunload
=
function
(
event
)
{
window
.
onbeforeunload
=
function
(
event
)
{
//DHカスタム
if
(
ClientData
.
serviceOpt_daihatsu
()
==
'Y'
){
if
(
"CONTENTVIEW_GENERAL.contentID"
in
window
){
if
(
CONTENTVIEW_GENERAL
.
contentID
!=
null
){
COMMON
.
SetEndLog
(
CONTENTVIEW_GENERAL
.
contentID
);
COMMON
.
RegisterLog
();
}
}
}
else
{
if
(
ClientData
.
isGetitsMode
()
||
ClientData
.
isStreamingMode
()){
if
(
ClientData
.
isGetitsMode
()
||
ClientData
.
isStreamingMode
()){
if
(
ClientData
.
isGetitsMode
()){
if
(
ClientData
.
isGetitsMode
()){
COMMON
.
SetEndLog
(
CONTENTVIEW_GENERAL
.
contentID
);
COMMON
.
SetEndLog
(
CONTENTVIEW_GENERAL
.
contentID
);
...
@@ -851,6 +878,7 @@ AVWEB.avwSetLogoutNortice = function() {
...
@@ -851,6 +878,7 @@ AVWEB.avwSetLogoutNortice = function() {
}
}
return
message
;
return
message
;
}
}
}
};
};
};
};
/* 警告メッセージを出力しないでページ遷移を行う関数 */
/* 警告メッセージを出力しないでページ遷移を行う関数 */
...
...
abvw/common/js/common.js
View file @
16256f34
...
@@ -3112,5 +3112,3 @@ COMMON.getUrlParam = function(name, url){
...
@@ -3112,5 +3112,3 @@ COMMON.getUrlParam = function(name, url){
}
}
};
};
abvw/common/js/screenLock.js
View file @
16256f34
...
@@ -168,6 +168,26 @@ SCREENLOCK.screenLock = function(options) {
...
@@ -168,6 +168,26 @@ SCREENLOCK.screenLock = function(options) {
/* show lock screen */
/* show lock screen */
function
showLockScreen
()
{
function
showLockScreen
()
{
//DHカスタム
if
(
ClientData
.
serviceOpt_daihatsu
()
==
'Y'
){
if
(
"CONTENTVIEW_GENERAL.contentID"
in
window
){
if
(
CONTENTVIEW_GENERAL
.
contentID
!=
null
){
COMMON
.
SetEndLog
(
contentID
);
COMMON
.
RegisterLog
();
}
}
//ログアウトさせる
//ログアウト時と同じ後始末処理をしてログイン画面に戻す
if
(
!
HEADER
.
webLogoutEvent
()
){
//ログアウト出来なかった
SessionStorageUtils
.
clear
();
AVWEB
.
avwUserSetting
().
remove
(
Keys
.
userInfo_sid
);
AVWEB
.
avwScreenMove
(
ScreenIds
.
Login
);
}
}
// show message overlay
// show message overlay
var
tags
=
'<div id="'
+
elmId
+
'" class="screenLock">'
+
var
tags
=
'<div id="'
+
elmId
+
'" class="screenLock">'
+
'<div style="display:table; width:100%; height:100%;">'
+
'<div style="display:table; width:100%; height:100%;">'
+
...
...
abvw/contentsearch.html
View file @
16256f34
...
@@ -33,10 +33,6 @@
...
@@ -33,10 +33,6 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/limit_access.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/limit_access.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/layout/share.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/layout/share.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/share.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/share.css?__UPDATEID__"
/>
<!--
<link rel="stylesheet" type="text/css" href="common/js/pickadate/themes/default.css?__UPDATEID__" id="theme_base" />
<link rel="stylesheet" type="text/css" href="common/js/pickadate/themes/default.date.css?__UPDATEID__" id="theme_date" />
-->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"common/js/pickadate/themes/classic.css?__UPDATEID__"
id=
"theme_base"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"common/js/pickadate/themes/classic.css?__UPDATEID__"
id=
"theme_base"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"common/js/pickadate/themes/classic.date.css?__UPDATEID__"
id=
"theme_date"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"common/js/pickadate/themes/classic.date.css?__UPDATEID__"
id=
"theme_date"
/>
...
...
abvw/contentview.html
View file @
16256f34
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
<script
type=
"text/javascript"
src=
"./js/contentview_3d.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_3d.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_ContentTypeNone.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_ContentTypeNone.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_ImagePreview.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_ImagePreview.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_FileSystem.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./common/js/zoomDetector.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./common/js/zoomDetector.js?__UPDATEID__"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/reset.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/reset.css?__UPDATEID__"
/>
...
@@ -77,8 +78,7 @@
...
@@ -77,8 +78,7 @@
</script>
</script>
</head>
</head>
<!-- oncontextmenu="return false;" -->
<body
id=
"viewer"
oncontextmenu=
"return false;"
>
<body
id=
"viewer"
>
<div
id=
"wrapper"
>
<div
id=
"wrapper"
>
<!--Viewer component is added here -->
<!--Viewer component is added here -->
...
...
abvw/history.html
View file @
16256f34
...
@@ -36,10 +36,6 @@
...
@@ -36,10 +36,6 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/limit_access.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/limit_access.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/layout/share.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/layout/share.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/share.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/share.css?__UPDATEID__"
/>
<!--
<link rel="stylesheet" type="text/css" href="common/js/pickadate/themes/default.css?__UPDATEID__" id="theme_base" />
<link rel="stylesheet" type="text/css" href="common/js/pickadate/themes/default.date.css?__UPDATEID__" id="theme_date" />
-->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"common/js/pickadate/themes/classic.css?__UPDATEID__"
id=
"theme_base"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"common/js/pickadate/themes/classic.css?__UPDATEID__"
id=
"theme_base"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"common/js/pickadate/themes/classic.date.css?__UPDATEID__"
id=
"theme_date"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"common/js/pickadate/themes/classic.date.css?__UPDATEID__"
id=
"theme_date"
/>
</head>
</head>
...
...
abvw/home.html
View file @
16256f34
...
@@ -39,10 +39,6 @@
...
@@ -39,10 +39,6 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/limit_access.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/limit_access.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/layout/share.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/layout/share.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/share.css?__UPDATEID__"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/theme/share.css?__UPDATEID__"
/>
<!--
<link rel="stylesheet" type="text/css" href="common/js/pickadate/themes/default.css?__UPDATEID__" id="theme_base" />
<link rel="stylesheet" type="text/css" href="common/js/pickadate/themes/default.date.css?__UPDATEID__" id="theme_date" />
-->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"common/js/pickadate/themes/classic.css?__UPDATEID__"
id=
"theme_base"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"common/js/pickadate/themes/classic.css?__UPDATEID__"
id=
"theme_base"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"common/js/pickadate/themes/classic.date.css?__UPDATEID__"
id=
"theme_date"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"common/js/pickadate/themes/classic.date.css?__UPDATEID__"
id=
"theme_date"
/>
</head>
</head>
...
...
abvw/js/contentview.js
View file @
16256f34
...
@@ -300,7 +300,18 @@ CONTENTVIEW.handleAPIWebContentPage = function(dataJson, pos) {
...
@@ -300,7 +300,18 @@ CONTENTVIEW.handleAPIWebContentPage = function(dataJson, pos) {
$
(
'#bookmarkBoxHdBM'
).
children
().
remove
();
$
(
'#bookmarkBoxHdBM'
).
children
().
remove
();
$
(
'#bookmarkBoxHdBM'
).
html
(
'<a id="bookmarkClosing" class="delete" > </a>'
);
$
(
'#bookmarkBoxHdBM'
).
html
(
'<a id="bookmarkClosing" class="delete" > </a>'
);
$
(
"#bookmarkClosing"
).
click
(
CONTENTVIEW_EVENTS
.
closeBookmarkBox
);
//$("#bookmarkClosing").click(CONTENTVIEW_EVENTS.closeBookmarkBox);
$
(
"#bookmarkClosing"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_EVENTS
.
closeBookmarkBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#bookmarkBoxHdBM'
).
append
(
I18N
.
i18nText
(
'txtShioriCtnLs'
));
$
(
'#bookmarkBoxHdBM'
).
append
(
I18N
.
i18nText
(
'txtShioriCtnLs'
));
$
(
'#boxBookMark'
).
css
(
'z-index'
,
'101'
);
$
(
'#boxBookMark'
).
css
(
'z-index'
,
'101'
);
...
@@ -625,7 +636,18 @@ CONTENTVIEW.handleCopyTextData = function(data, pos) {
...
@@ -625,7 +636,18 @@ CONTENTVIEW.handleCopyTextData = function(data, pos) {
//title start
//title start
$
(
'#bookmarkBoxHdCT'
).
children
().
remove
();
$
(
'#bookmarkBoxHdCT'
).
children
().
remove
();
$
(
'#bookmarkBoxHdCT'
).
html
(
'<a id="copyTextClosing" class="delete" style="padding-top:0px;"> </a>'
);
$
(
'#bookmarkBoxHdCT'
).
html
(
'<a id="copyTextClosing" class="delete" style="padding-top:0px;"> </a>'
);
$
(
"#copyTextClosing"
).
click
(
CONTENTVIEW_EVENTS
.
closeCopyTextBox
);
//$("#copyTextClosing").click(CONTENTVIEW_EVENTS.closeCopyTextBox);
$
(
"#copyTextClosing"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_EVENTS
.
closeCopyTextBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#bookmarkBoxHdCT'
).
append
(
I18N
.
i18nText
(
'txtTextCopy'
));
$
(
'#bookmarkBoxHdCT'
).
append
(
I18N
.
i18nText
(
'txtTextCopy'
));
//title end
//title end
...
@@ -650,7 +672,18 @@ CONTENTVIEW.handleCopyTextData = function(data, pos) {
...
@@ -650,7 +672,18 @@ CONTENTVIEW.handleCopyTextData = function(data, pos) {
//title start
//title start
$
(
'#bookmarkBoxHdCT'
).
children
().
remove
();
$
(
'#bookmarkBoxHdCT'
).
children
().
remove
();
$
(
'#bookmarkBoxHdCT'
).
html
(
'<a id="copyTextClosing" class="delete" style="padding-top:0px;"> </a>'
);
$
(
'#bookmarkBoxHdCT'
).
html
(
'<a id="copyTextClosing" class="delete" style="padding-top:0px;"> </a>'
);
$
(
"#copyTextClosing"
).
click
(
CONTENTVIEW_EVENTS
.
closeCopyTextBox
);
//$("#copyTextClosing").click(CONTENTVIEW_EVENTS.closeCopyTextBox);
$
(
"#copyTextClosing"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_EVENTS
.
closeCopyTextBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#bookmarkBoxHdCT'
).
append
(
I18N
.
i18nText
(
'txtTextCopy'
));
$
(
'#bookmarkBoxHdCT'
).
append
(
I18N
.
i18nText
(
'txtTextCopy'
));
//title end
//title end
...
@@ -961,27 +994,75 @@ CONTENTVIEW.changePage = function(page_index) {
...
@@ -961,27 +994,75 @@ CONTENTVIEW.changePage = function(page_index) {
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
//ファイルシステムが有効であればキャッシュ確認
if
(
CONTENTVIEW_FILESYSTEM
.
fs
==
null
){
//console.log("CONTENTVIEW.changePage");
//console.log("CONTENTVIEW.changePage");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
page_index
+
1
},
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
page_index
+
1
},
function
(
data
)
{
function
(
data
)
{
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
/* get page Objects */
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
page_index
);
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
)
.
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
//$('#divImageLoading').css('display', 'none');
var
tran
=
new
CONTENTVIEW_CREATEOBJECT
.
Transition
();
tran
.
flipToPage
(
page_index
);
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
}
);
}
else
{
// ファイル取得
var
pageNoTmp
=
page_index
+
1
;
var
fileName
=
CONTENTVIEW_GENERAL
.
contentID
+
"/page_"
+
pageNoTmp
+
".dat"
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
false
},
function
(
fileEntry
){
fileEntry
.
file
(
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
//AVWEB.avwLog("read FileSystem");
CONTENTVIEW_GENERAL
.
pageImages
=
e
.
target
.
result
;
/* get page Objects */
/* get page Objects */
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
page_index
);
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
page_index
);
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
)
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
)
.
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
.
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
var
tran
=
new
CONTENTVIEW_CREATEOBJECT
.
Transition
();
tran
.
flipToPage
(
page_index
);
//$('#divImageLoading').css('display', 'none');
};
reader
.
readAsText
(
file
);
}
);
},
function
(
err
){
// 失敗時のコールバック関数
//AVWEB.avwLog("NotRead FileSystem");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
page_index
+
1
},
function
(
data
)
{
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
/* get page Objects */
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
page_index
);
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
)
.
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
//$('#divImageLoading').css('display', 'none');
var
tran
=
new
CONTENTVIEW_CREATEOBJECT
.
Transition
();
var
tran
=
new
CONTENTVIEW_CREATEOBJECT
.
Transition
();
tran
.
flipToPage
(
page_index
);
tran
.
flipToPage
(
page_index
);
},
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
CONTENTVIEW
.
showErrorScreen
();
});
}
);
}
);
}
}
}
//START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process
//START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_NoFile
){
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_NoFile
){
...
@@ -1878,45 +1959,135 @@ CONTENTVIEW.changePageWithoutSlide = function(pageMove) {
...
@@ -1878,45 +1959,135 @@ CONTENTVIEW.changePageWithoutSlide = function(pageMove) {
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
//ファイルシステムが有効であればキャッシュ確認
if
(
CONTENTVIEW_FILESYSTEM
.
fs
==
null
){
//console.log("CONTENTVIEW.changePageWithoutSlide");
//console.log("CONTENTVIEW.changePageWithoutSlide");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
pageMove
+
1
},
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
pageMove
+
1
},
function
(
data
)
{
function
(
data
)
{
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
/* get page Objects */
/* get page Objects */
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
pageMove
);
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
pageMove
);
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
).
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
).
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
CONTENTVIEW_GENERAL
.
isFirstLoad
=
true
;
CONTENTVIEW_GENERAL
.
isFirstLoad
=
true
;
// CONTENTVIEW.screenFit();
CONTENTVIEW_GETDATA
.
getContent
().
toPage
(
pageMove
);
CONTENTVIEW_GETDATA
.
getContent
().
toPage
(
pageMove
);
CONTENTVIEW_CREATEOBJECT
.
createPageBGM
();
//START : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
//Start FUnciton: No.4 - Editor : Long - Date : 08/12/2013 - Summary : Handle jump from bookmark page
if
(
pageMove
>
0
){
CONTENTVIEW_GENERAL
.
prevContent
.
pageIndex
=
CONTENTVIEW_GETDATA
.
getPageIndex
();
CONTENTVIEW_GETDATA
.
getPrevPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
pageMove
-
1
);
CONTENTVIEW_GETDATA
.
renderPrevPage
();
}
if
(
pageMove
<
CONTENTVIEW_GENERAL
.
totalPage
-
1
){
CONTENTVIEW_GENERAL
.
nextContent
.
pageIndex
=
CONTENTVIEW_GETDATA
.
getPageIndex
();
CONTENTVIEW_GETDATA
.
getNextPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
pageMove
+
1
);
CONTENTVIEW_GETDATA
.
renderNextPage
();
}
/* handle slider bar */
CONTENTVIEW
.
handleSliderBar
();
if
(
CONTENTVIEW_GENERAL
.
dataPageTitle
[
pageMove
])
{
if
(
CONTENTVIEW_GENERAL
.
dataPageTitle
[
pageMove
]
!=
''
)
{
document
.
title
=
CONTENTVIEW_GENERAL
.
contentName
+
'_'
+
CONTENTVIEW_GENERAL
.
dataPageTitle
[
pageMove
]
+
' | '
+
I18N
.
i18nText
(
'sysAppTitle'
);
}
else
{
document
.
title
=
CONTENTVIEW_GENERAL
.
contentName
+
' | '
+
I18N
.
i18nText
(
'sysAppTitle'
);
}
}
else
{
document
.
title
=
CONTENTVIEW_GENERAL
.
contentName
+
' | '
+
I18N
.
i18nText
(
'sysAppTitle'
);
}
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
}
);
}
else
{
// ファイル取得
var
pageNoTmp
=
pageMove
+
1
;
var
fileName
=
CONTENTVIEW_GENERAL
.
contentID
+
"/page_"
+
pageNoTmp
+
".dat"
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
false
},
function
(
fileEntry
){
fileEntry
.
file
(
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
//AVWEB.avwLog("read FileSystem");
CONTENTVIEW_GENERAL
.
pageImages
=
e
.
target
.
result
;
/* get page Objects */
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
pageMove
);
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
).
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
CONTENTVIEW_GENERAL
.
isFirstLoad
=
true
;
CONTENTVIEW_GETDATA
.
getContent
().
toPage
(
pageMove
);
CONTENTVIEW_CREATEOBJECT
.
createPageBGM
();
CONTENTVIEW_CREATEOBJECT
.
createPageBGM
();
//END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
//Start FUnciton: No.4 - Editor : Long - Date : 08/12/2013 - Summary : Handle jump from bookmark page
//Start FUnciton: No.4 - Editor : Long - Date : 08/12/2013 - Summary : Handle jump from bookmark page
if
(
pageMove
>
0
){
if
(
pageMove
>
0
){
//START TRB00056 - Editor: Long - Date: 09/19/2013 - Summary :
CONTENTVIEW_GENERAL
.
prevContent
.
pageIndex
=
CONTENTVIEW_GETDATA
.
getPageIndex
();
CONTENTVIEW_GENERAL
.
prevContent
.
pageIndex
=
CONTENTVIEW_GETDATA
.
getPageIndex
();
//END TRB00056 - Editor: Long - Date: 09/19/2013 - Summary :
CONTENTVIEW_GETDATA
.
getPrevPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
pageMove
-
1
);
CONTENTVIEW_GETDATA
.
getPrevPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
pageMove
-
1
);
CONTENTVIEW_GETDATA
.
renderPrevPage
();
CONTENTVIEW_GETDATA
.
renderPrevPage
();
}
}
if
(
pageMove
<
CONTENTVIEW_GENERAL
.
totalPage
-
1
){
if
(
pageMove
<
CONTENTVIEW_GENERAL
.
totalPage
-
1
){
//START TRB00056
CONTENTVIEW_GENERAL
.
nextContent
.
pageIndex
=
CONTENTVIEW_GETDATA
.
getPageIndex
();
CONTENTVIEW_GENERAL
.
nextContent
.
pageIndex
=
CONTENTVIEW_GETDATA
.
getPageIndex
();
//END TRB00056
CONTENTVIEW_GETDATA
.
getNextPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
pageMove
+
1
);
CONTENTVIEW_GETDATA
.
getNextPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
pageMove
+
1
);
CONTENTVIEW_GETDATA
.
renderNextPage
();
CONTENTVIEW_GETDATA
.
renderNextPage
();
}
}
//End Function : No.4 - Editor : Long - Date: 08/12/2013 - Summary : Handle jump form bookmark page
/* handle slider bar */
CONTENTVIEW
.
handleSliderBar
();
if
(
CONTENTVIEW_GENERAL
.
dataPageTitle
[
pageMove
])
{
if
(
CONTENTVIEW_GENERAL
.
dataPageTitle
[
pageMove
]
!=
''
)
{
document
.
title
=
CONTENTVIEW_GENERAL
.
contentName
+
'_'
+
CONTENTVIEW_GENERAL
.
dataPageTitle
[
pageMove
]
+
' | '
+
I18N
.
i18nText
(
'sysAppTitle'
);
}
else
{
document
.
title
=
CONTENTVIEW_GENERAL
.
contentName
+
' | '
+
I18N
.
i18nText
(
'sysAppTitle'
);
}
}
else
{
document
.
title
=
CONTENTVIEW_GENERAL
.
contentName
+
' | '
+
I18N
.
i18nText
(
'sysAppTitle'
);
}
};
reader
.
readAsText
(
file
);
}
);
},
function
(
err
){
// 失敗時のコールバック関数
//AVWEB.avwLog("NotRead FileSystem");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
pageMove
+
1
},
function
(
data
)
{
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
/* get page Objects */
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
pageMove
);
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
).
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
CONTENTVIEW_GENERAL
.
isFirstLoad
=
true
;
CONTENTVIEW_GETDATA
.
getContent
().
toPage
(
pageMove
);
CONTENTVIEW_CREATEOBJECT
.
createPageBGM
();
//Start FUnciton: No.4 - Editor : Long - Date : 08/12/2013 - Summary : Handle jump from bookmark page
if
(
pageMove
>
0
){
CONTENTVIEW_GENERAL
.
prevContent
.
pageIndex
=
CONTENTVIEW_GETDATA
.
getPageIndex
();
CONTENTVIEW_GETDATA
.
getPrevPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
pageMove
-
1
);
CONTENTVIEW_GETDATA
.
renderPrevPage
();
}
if
(
pageMove
<
CONTENTVIEW_GENERAL
.
totalPage
-
1
){
CONTENTVIEW_GENERAL
.
nextContent
.
pageIndex
=
CONTENTVIEW_GETDATA
.
getPageIndex
();
CONTENTVIEW_GETDATA
.
getNextPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
pageMove
+
1
);
CONTENTVIEW_GETDATA
.
renderNextPage
();
}
/* handle slider bar */
/* handle slider bar */
CONTENTVIEW
.
handleSliderBar
();
CONTENTVIEW
.
handleSliderBar
();
...
@@ -1934,7 +2105,13 @@ CONTENTVIEW.changePageWithoutSlide = function(pageMove) {
...
@@ -1934,7 +2105,13 @@ CONTENTVIEW.changePageWithoutSlide = function(pageMove) {
},
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
CONTENTVIEW
.
showErrorScreen
();
});
}
);
}
);
}
}
}
//START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process
//START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_NoFile
){
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_NoFile
){
...
@@ -2037,10 +2214,12 @@ CONTENTVIEW.displayOverlayForHtmlAndMediaType = function(){
...
@@ -2037,10 +2214,12 @@ CONTENTVIEW.displayOverlayForHtmlAndMediaType = function(){
//END TRB00075 - Editor: Long - Date - 24/09/2013 - Summary : Fix for prevent moving page when display dialog
//END TRB00075 - Editor: Long - Date - 24/09/2013 - Summary : Fix for prevent moving page when display dialog
//Display overlay dialog for specify content type
//Display overlay dialog for specify content type
CONTENTVIEW
.
displayOverlayForSpecifyContentType
=
function
(){
CONTENTVIEW
.
displayOverlayForSpecifyContentType
=
function
(
resourceUrl
){
var
contentId
=
ClientData
.
contentInfo_contentId
();
var
contentId
=
ClientData
.
contentInfo_contentId
();
var
resourceUrl
=
CONTENTVIEW
.
downloadResourceById
(
contentId
);
if
(
resourceUrl
==
null
){
resourceUrl
=
CONTENTVIEW
.
downloadResourceById
(
contentId
);
}
//CONTENTVIEW_GENERAL.contentType = COMMON.ContentTypeKeys.Type_Html;
//CONTENTVIEW_GENERAL.contentType = COMMON.ContentTypeKeys.Type_Html;
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_Music
){
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_Music
){
...
...
abvw/js/contentview_CallApi.js
View file @
16256f34
...
@@ -11,6 +11,8 @@ CONTENTVIEW_CALLAPI.abapi = function(name, param, method, callback) {
...
@@ -11,6 +11,8 @@ CONTENTVIEW_CALLAPI.abapi = function(name, param, method, callback) {
/* get Json stored content info */
/* get Json stored content info */
CONTENTVIEW_CALLAPI
.
getJsonContentInfo
=
function
()
{
CONTENTVIEW_CALLAPI
.
getJsonContentInfo
=
function
()
{
//ファイルシステムが有効であればキャッシュ確認
if
(
CONTENTVIEW_FILESYSTEM
.
fs
==
null
){
//console.log("CONTENTVIEW_CALLAPI.getJsonContentInfo");
//console.log("CONTENTVIEW_CALLAPI.getJsonContentInfo");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
1
},
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
1
},
...
@@ -28,7 +30,54 @@ CONTENTVIEW_CALLAPI.getJsonContentInfo = function() {
...
@@ -28,7 +30,54 @@ CONTENTVIEW_CALLAPI.getJsonContentInfo = function() {
},
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
CONTENTVIEW
.
showErrorScreen
();
}
);
}
else
{
// 1ページ目のファイル取得
var
fileName
=
contentID
+
"/page_1.dat"
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
false
},
function
(
fileEntry
){
fileEntry
.
file
(
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
AVWEB
.
avwLog
(
"read FileSystem"
);
CONTENTVIEW_GENERAL
.
pageImages
=
e
.
target
.
result
;
CONTENTVIEW_CALLAPI
.
webGetContentData
();
CONTENTVIEW_CALLAPI
.
getSearchDataFromJson
();
CONTENTVIEW_CALLAPI
.
getJsonDataPageTitle
();
CONTENTVIEW_CALLAPI
.
getJsonDataType4
();
CONTENTVIEW_CALLAPI
.
getJsonDataType5
();
CONTENTVIEW_CALLAPI
.
getDataJsonFile
();
CONTENTVIEW_CALLAPI
.
webGetContentPageSize
();
};
//reader.readAsBinaryString(fileEntry);
reader
.
readAsText
(
file
);
//reader.readAsArrayBuffer(fileEntry);
});
});
},
function
(
err
){
// 失敗時のコールバック関数
AVWEB
.
avwLog
(
"NotRead FileSystem"
);
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
1
},
function
(
data
)
{
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
CONTENTVIEW_CALLAPI
.
webGetContentData
();
CONTENTVIEW_CALLAPI
.
getSearchDataFromJson
();
CONTENTVIEW_CALLAPI
.
getJsonDataPageTitle
();
CONTENTVIEW_CALLAPI
.
getJsonDataType4
();
CONTENTVIEW_CALLAPI
.
getJsonDataType5
();
CONTENTVIEW_CALLAPI
.
getDataJsonFile
();
CONTENTVIEW_CALLAPI
.
webGetContentPageSize
();
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
}
);
}
);
}
};
};
//END TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
//END TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
...
...
abvw/js/contentview_CreateObjects.js
View file @
16256f34
...
@@ -796,7 +796,8 @@ CONTENTVIEW_CREATEOBJECT.trigger = function (mediaType, actionType, id, imageUrl
...
@@ -796,7 +796,8 @@ CONTENTVIEW_CREATEOBJECT.trigger = function (mediaType, actionType, id, imageUrl
objectLog
.
resourceId
=
CONTENTVIEW
.
objType4_5
[
nIndex
].
dataObjects
[
nIndex1
].
resourceId
;
objectLog
.
resourceId
=
CONTENTVIEW
.
objType4_5
[
nIndex
].
dataObjects
[
nIndex1
].
resourceId
;
}
else
{
/* video */
}
else
{
/* video */
CONTENTVIEW
.
stopAllAudio
();
CONTENTVIEW
.
stopAllAudio
();
CONTENTVIEW
.
showVideoObject
(
CONTENTVIEW
.
objType4_5
[
nIndex
].
x
,
CONTENTVIEW
.
objType4_5
[
nIndex
].
y
,
CONTENTVIEW
.
objType4_5
[
nIndex
].
width
,
CONTENTVIEW
.
objType4_5
[
nIndex
].
height
,
CONTENTVIEW
.
objType4_5
[
nIndex
].
dataObjects
[
nIndex1
].
fileName
,
false
);
CONTENTVIEW_FILESYSTEM
.
showVideoObjectCache
(
objType4_5
[
nIndex
].
x
,
objType4_5
[
nIndex
].
y
,
objType4_5
[
nIndex
].
width
,
objType4_5
[
nIndex
].
height
,
objType4_5
[
nIndex
].
dataObjects
[
nIndex1
].
fileName
,
false
,
contentID
,
objType4_5
[
nIndex
].
dataObjects
[
nIndex1
].
resourceId
);
//CONTENTVIEW.showVideoObject(CONTENTVIEW.objType4_5[nIndex].x, CONTENTVIEW.objType4_5[nIndex].y, CONTENTVIEW.objType4_5[nIndex].width, CONTENTVIEW.objType4_5[nIndex].height, CONTENTVIEW.objType4_5[nIndex].dataObjects[nIndex1].fileName, false);
if
(
ClientData
.
isStreamingMode
()){
if
(
ClientData
.
isStreamingMode
()){
if
(
CONTENTVIEW_GENERAL
.
avwUserEnvObj
.
isAndroid
())
{
if
(
CONTENTVIEW_GENERAL
.
avwUserEnvObj
.
isAndroid
())
{
...
@@ -902,6 +903,7 @@ CONTENTVIEW_CREATEOBJECT.showHtml = function(url, objectId ){
...
@@ -902,6 +903,7 @@ CONTENTVIEW_CREATEOBJECT.showHtml = function(url, objectId ){
}
}
//END TRB00076 - EDITOR : Long - Date : 09/24/2013 - Summary : Fix for scrolling on ipad
//END TRB00076 - EDITOR : Long - Date : 09/24/2013 - Summary : Fix for scrolling on ipad
/*
$('#dialog h1 img').click(function(){
$('#dialog h1 img').click(function(){
var dateEnd = new Date();
var dateEnd = new Date();
...
@@ -913,6 +915,22 @@ CONTENTVIEW_CREATEOBJECT.showHtml = function(url, objectId ){
...
@@ -913,6 +915,22 @@ CONTENTVIEW_CREATEOBJECT.showHtml = function(url, objectId ){
CONTENTVIEW_GENERAL.hideDialog();
CONTENTVIEW_GENERAL.hideDialog();
});
});
*/
$
(
"#dialog h1 img"
).
on
({
'click touchend'
:
function
(
ev
){
var
dateEnd
=
new
Date
();
var
actionTime
=
dateEnd
.
subtractBySeconds
(
dateStart
);
//alert("actionTime:" + actionTime);
COMMON
.
SetObjectLogActionTime
(
CONTENTVIEW_GENERAL
.
contentID
,
objectId
,
actionTime
);
$container
.
removeAttr
(
'style'
);
CONTENTVIEW_GENERAL
.
hideDialog
();
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
var
dateStart
=
new
Date
();
var
dateStart
=
new
Date
();
...
@@ -1435,7 +1453,9 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
...
@@ -1435,7 +1453,9 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
/*stop audio on page */
/*stop audio on page */
CONTENTVIEW
.
stopAllAudio
();
CONTENTVIEW
.
stopAllAudio
();
if
(
embed
==
"1"
)
{
if
(
embed
==
"1"
)
{
CONTENTVIEW
.
showVideoObject
(
x
,
y
,
w
,
h
,
mediaFile
,
false
);
CONTENTVIEW_FILESYSTEM
.
showVideoObjectCache
(
x
,
y
,
w
,
h
,
mediaFile
,
false
,
contentID
,
media
);
//CONTENTVIEW.showVideoObject(x, y, w, h, mediaFile, false);
if
(
ClientData
.
isStreamingMode
()){
if
(
ClientData
.
isStreamingMode
()){
if
(
CONTENTVIEW_GENERAL
.
avwUserEnvObj
.
isAndroid
())
{
if
(
CONTENTVIEW_GENERAL
.
avwUserEnvObj
.
isAndroid
())
{
...
@@ -1452,26 +1472,26 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
...
@@ -1452,26 +1472,26 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
if
(
media
!=
''
)
{
if
(
media
!=
''
)
{
$
(
'#playvideo'
).
children
().
remove
();
$
(
'#playvideo'
).
children
().
remove
();
CONTENTVIEW_CREATEOBJECT
.
createVideoFulScreen
(
mediaFile
,
id
);
//ファイルシステムが有効であればキャッシュ確認
if
(
CONTENTVIEW_FILESYSTEM
.
fs
==
null
){
$
(
"#btnCloseVideo"
).
click
(
function
(
e
)
{
//タグは書き出し
CONTENTVIEW_CREATEOBJECT
.
createVideoFulScreen
(
mediaFile
,
id
);
$
(
"#btnCloseVideo"
).
on
({
'click touchend'
:
function
(
ev
){
//時間記録
//時間記録
CONTENTVIEW_GENERAL
.
hideDialog
();
CONTENTVIEW_GENERAL
.
hideDialog
();
/*play audio if exist */
/*play audio if exist */
CONTENTVIEW
.
playAllAudio
();
CONTENTVIEW
.
playAllAudio
();
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
});
//$("#main").unbind('click');
//必要か ここから
//document.getElementById('main').removeEventListener('touchstart',function(){},false);
//document.getElementById('main').removeEventListener('touchmove',function(){},false);
//document.getElementById('main').removeEventListener('touchend',function(){},false);
//$("#main").unbind('touchstart');
//$("#main").unbind('touchmove');
//$("#main").unbind('touchend');
CONTENTVIEW_GENERAL
.
canvas_draw
.
removeEventListener
(
'touchstart'
,
function
(){},
false
);
CONTENTVIEW_GENERAL
.
canvas_draw
.
removeEventListener
(
'touchstart'
,
function
(){},
false
);
CONTENTVIEW_GENERAL
.
canvas_draw
.
removeEventListener
(
'touchmove'
,
function
(){},
false
);
CONTENTVIEW_GENERAL
.
canvas_draw
.
removeEventListener
(
'touchmove'
,
function
(){},
false
);
CONTENTVIEW_GENERAL
.
canvas_draw
.
removeEventListener
(
'touchend'
,
function
(){},
false
);
CONTENTVIEW_GENERAL
.
canvas_draw
.
removeEventListener
(
'touchend'
,
function
(){},
false
);
...
@@ -1484,7 +1504,6 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
...
@@ -1484,7 +1504,6 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
$
(
"#canvasWrapper"
).
unbind
(
'touchmove'
);
$
(
"#canvasWrapper"
).
unbind
(
'touchmove'
);
$
(
"#canvasWrapper"
).
unbind
(
'touchend'
);
$
(
"#canvasWrapper"
).
unbind
(
'touchend'
);
document
.
getElementById
(
'main'
).
addEventListener
(
'click'
,
function
(){
return
false
;},
false
);
document
.
getElementById
(
'main'
).
addEventListener
(
'click'
,
function
(){
return
false
;},
false
);
document
.
getElementById
(
'main'
).
addEventListener
(
'touchstart'
,
function
(){
return
false
;},
false
);
document
.
getElementById
(
'main'
).
addEventListener
(
'touchstart'
,
function
(){
return
false
;},
false
);
document
.
getElementById
(
'main'
).
addEventListener
(
'touchmove'
,
function
(){
return
false
;},
false
);
document
.
getElementById
(
'main'
).
addEventListener
(
'touchmove'
,
function
(){
return
false
;},
false
);
...
@@ -1493,6 +1512,7 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
...
@@ -1493,6 +1512,7 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
document
.
getElementById
(
'canvasWrapper'
).
addEventListener
(
'touchstart'
,
function
(){
return
false
;},
false
);
document
.
getElementById
(
'canvasWrapper'
).
addEventListener
(
'touchstart'
,
function
(){
return
false
;},
false
);
document
.
getElementById
(
'canvasWrapper'
).
addEventListener
(
'touchmove'
,
function
(){
return
false
;},
false
);
document
.
getElementById
(
'canvasWrapper'
).
addEventListener
(
'touchmove'
,
function
(){
return
false
;},
false
);
document
.
getElementById
(
'canvasWrapper'
).
addEventListener
(
'touchend'
,
function
(){
return
false
;},
false
);
document
.
getElementById
(
'canvasWrapper'
).
addEventListener
(
'touchend'
,
function
(){
return
false
;},
false
);
//必要か ここまで
CONTENTVIEW_GENERAL
.
showDialog
(
true
);
CONTENTVIEW_GENERAL
.
showDialog
(
true
);
...
@@ -1505,33 +1525,110 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
...
@@ -1505,33 +1525,110 @@ CONTENTVIEW_CREATEOBJECT.videoType2 = function (mediaType, actionType, id, image
}
}
}
}
}
}
}
else
{
/*
//キャッシュが存在するか確認
if(ClientData.isStreamingMode()){
var
fileName
=
CONTENTVIEW_GENERAL
.
contentID
+
"/res_"
+
media
+
".dat"
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
false
},
function
(
fileEntry
){
fileEntry
.
file
(
function
(
file
){
var
url
=
window
.
URL
||
window
.
webkitURL
;
var
resSrc
=
url
.
createObjectURL
(
file
);
AVWEB
.
avwLog
(
"read cache: createObjectURL "
+
resSrc
);
createVideoFulScreen
(
resSrc
,
id
);
$
(
"#btnCloseVideo"
).
on
({
'click touchend'
:
function
(
ev
){
//時間記録
CONTENTVIEW_GENERAL
.
hideDialog
();
/*play audio if exist */
CONTENTVIEW
.
playAllAudio
();
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) {
CONTENTVIEW_GENERAL
.
showDialog
(
true
);
// Show confim message to play background music
$("#contentVideoConfirm").css('z-index', 9998);
$("#contentVideoConfirm_OK").unbind('touchstart');
document.getElementById('contentVideoConfirm_OK').addEventListener('touchstart', function(event){
event.preventDefault();
//alert("hoge");
var myVideo=document.getElementById("videoOnPopUp");
if (myVideo.paused)
{
myVideo.play();
}
}
$("#contentVideoConfirm").hide();
);
return false;
},
}, false);
function
(
err
){
// 失敗時のコールバック関数
AVWEB
.
avwLog
(
"NotRead FileSystem"
);
//キャッシュ化
var
xhr
=
new
XMLHttpRequest
();
xhr
.
onreadystatechange
=
function
(){
if
(
this
.
readyState
==
4
&&
this
.
status
==
200
){
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
false
;
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
//this.response is what you're looking for
AVWEB
.
avwLog
(
this
.
response
,
typeof
this
.
response
);
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
true
},
function
(
fileEntry
){
fileEntry
.
createWriter
(
function
(
fileWriter
)
{
fileWriter
.
onwriteend
=
function
(
e
)
{
AVWEB
.
avwLog
(
'RES書き込み完了'
);
};
fileWriter
.
onerror
=
function
(
e
)
{
AVWEB
.
avwLog
(
'RES書き込みエラー: '
+
e
.
toString
());
};
var
blobData
=
new
Blob
([
xhr
.
response
],
{
type
:
"application/octet-stream"
});
fileWriter
.
write
(
blobData
);
$("#contentVideoConfirm").show();
}
$("#contentVideoConfirm").center();
);
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
}
else
{
if
(
this
.
readyState
==
2
){
AVWEB
.
avwLog
(
"onreadystatechange:"
+
this
.
readyState
+
" "
+
this
.
status
);
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
true
;
$
(
'#divImageLoading'
).
css
(
'z-index'
,
'99999'
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'block'
);
}
}
}
}
*/
};
if
(
!
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
){
xhr
.
open
(
'GET'
,
mediaFile
);
xhr
.
responseType
=
'blob'
;
xhr
.
send
();
}
else
{
AVWEB
.
avwLog
(
"xhr is busy."
);
}
//タグは書き出し
CONTENTVIEW_CREATEOBJECT
.
createVideoFulScreen
(
mediaFile
,
id
);
$
(
"#btnCloseVideo"
).
on
({
'click touchend'
:
function
(
ev
){
//時間記録
CONTENTVIEW_GENERAL
.
hideDialog
();
/*play audio if exist */
CONTENTVIEW
.
playAllAudio
();
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
CONTENTVIEW_GENERAL
.
showDialog
(
true
);
}
);
}
}
}
}
}
};
};
...
@@ -1576,23 +1673,142 @@ CONTENTVIEW_CREATEOBJECT.videoType1 = function (mediaType, actionType, id, image
...
@@ -1576,23 +1673,142 @@ CONTENTVIEW_CREATEOBJECT.videoType1 = function (mediaType, actionType, id, image
/* stop all audio on page */
/* stop all audio on page */
CONTENTVIEW
.
stopAllAudio
();
CONTENTVIEW
.
stopAllAudio
();
CONTENTVIEW_CREATEOBJECT
.
createVideoFulScreen
(
mediaFile
,
id
);
//ファイルシステムが有効であればキャッシュ確認
if
(
CONTENTVIEW_FILESYSTEM
.
fs
==
null
){
$
(
"#btnCloseVideo"
).
click
(
function
(
e
)
{
CONTENTVIEW_CREATEOBJECT
.
createVideoFulScreen
(
mediaFile
,
id
);
$
(
"#btnCloseVideo"
).
on
({
'click touchend'
:
function
(
ev
){
//時間記録
//時間記録
var
dateEnd
=
new
Date
();
var
dateEnd
=
new
Date
();
var
actionTime
=
dateEnd
.
subtractBySeconds
(
dateStart
);
var
actionTime
=
dateEnd
.
subtractBySeconds
(
dateStart
);
//alert("actionTime:" + actionTime);
//alert("actionTime:" + actionTime);
COMMON
.
SetObjectLogActionTime
(
CONTENTVIEW_GENERAL
.
contentID
,
objectId
,
actionTime
);
COMMON
.
SetObjectLogActionTime
(
CONTENTVIEW_GENERAL
.
contentID
,
objectId
,
actionTime
);
CONTENTVIEW_GENERAL
.
hideDialog
();
/* play audio */
CONTENTVIEW
.
playAllAudio
();
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
CONTENTVIEW_GENERAL
.
showDialog
(
true
);
}
else
{
//キャッシュが存在するか確認
var
fileName
=
CONTENTVIEW_GENERAL
.
contentID
+
"/res_"
+
mediaResourceId
+
".dat"
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
false
},
function
(
fileEntry
){
fileEntry
.
file
(
function
(
file
){
var
url
=
window
.
URL
||
window
.
webkitURL
;
var
resSrc
=
url
.
createObjectURL
(
file
);
AVWEB
.
avwLog
(
"read cache: createObjectURL "
+
resSrc
);
//タグは書き出し
CONTENTVIEW_CREATEOBJECT
.
createVideoFulScreen
(
resSrc
,
id
);
$
(
"#btnCloseVideo"
).
on
({
'click touchend'
:
function
(
ev
){
//時間記録
var
dateEnd
=
new
Date
();
var
actionTime
=
dateEnd
.
subtractBySeconds
(
dateStart
);
//alert("actionTime:" + actionTime);
COMMON
.
SetObjectLogActionTime
(
CONTENTVIEW_GENERAL
.
contentID
,
objectId
,
actionTime
);
CONTENTVIEW_GENERAL
.
hideDialog
();
CONTENTVIEW_GENERAL
.
hideDialog
();
/* play audio */
/* play audio */
CONTENTVIEW
.
playAllAudio
();
CONTENTVIEW
.
playAllAudio
();
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
});
CONTENTVIEW_GENERAL
.
showDialog
(
true
);
}
);
},
function
(
err
){
// 失敗時のコールバック関数
AVWEB
.
avwLog
(
"NotRead FileSystem"
);
//キャッシュ化
var
xhr
=
new
XMLHttpRequest
();
xhr
.
onreadystatechange
=
function
(){
if
(
this
.
readyState
==
4
&&
this
.
status
==
200
){
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
false
;
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
//this.response is what you're looking for
AVWEB
.
avwLog
(
this
.
response
,
typeof
this
.
response
);
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
true
},
function
(
fileEntry
){
fileEntry
.
createWriter
(
function
(
fileWriter
)
{
fileWriter
.
onwriteend
=
function
(
e
)
{
AVWEB
.
avwLog
(
'RES書き込み完了'
);
};
fileWriter
.
onerror
=
function
(
e
)
{
AVWEB
.
avwLog
(
'RES書き込みエラー: '
+
e
.
toString
());
};
var
blobData
=
new
Blob
([
xhr
.
response
],
{
type
:
"application/octet-stream"
});
//var blobData = new Blob([this.response], {type:"video/mp4"});
fileWriter
.
write
(
blobData
);
}
);
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
}
else
{
if
(
this
.
readyState
==
2
){
AVWEB
.
avwLog
(
"onreadystatechange:"
+
this
.
readyState
+
" "
+
this
.
status
);
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
true
;
$
(
'#divImageLoading'
).
css
(
'z-index'
,
'99999'
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'block'
);
}
}
};
if
(
!
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
){
xhr
.
open
(
'GET'
,
mediaFile
);
xhr
.
responseType
=
'blob'
;
xhr
.
send
();
}
else
{
AVWEB
.
avwLog
(
"xhr is busy."
);
}
//タグは書き出し
CONTENTVIEW_CREATEOBJECT
.
createVideoFulScreen
(
mediaFile
,
id
);
$
(
"#btnCloseVideo"
).
on
({
'click touchend'
:
function
(
ev
){
//時間記録
var
dateEnd
=
new
Date
();
var
actionTime
=
dateEnd
.
subtractBySeconds
(
dateStart
);
//alert("actionTime:" + actionTime);
COMMON
.
SetObjectLogActionTime
(
CONTENTVIEW_GENERAL
.
contentID
,
objectId
,
actionTime
);
CONTENTVIEW_GENERAL
.
hideDialog
();
/* play audio */
CONTENTVIEW
.
playAllAudio
();
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
CONTENTVIEW_GENERAL
.
showDialog
(
true
);
CONTENTVIEW_GENERAL
.
showDialog
(
true
);
}
}
);
}
}
//時間記録
//時間記録
var
dateStart
=
new
Date
();
var
dateStart
=
new
Date
();
...
...
abvw/js/contentview_Events.js
View file @
16256f34
...
@@ -387,7 +387,8 @@ CONTENTVIEW_EVENTS.firstPage_click = function() {
...
@@ -387,7 +387,8 @@ CONTENTVIEW_EVENTS.firstPage_click = function() {
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
//console.log("CONTENTVIEW_EVENTS.firstPage_click");
//ファイルシステムが有効であればキャッシュ確認
if
(
CONTENTVIEW_FILESYSTEM
.
fs
==
null
){
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
1
},
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
1
},
function
(
data
)
{
function
(
data
)
{
...
@@ -399,11 +400,59 @@ CONTENTVIEW_EVENTS.firstPage_click = function() {
...
@@ -399,11 +400,59 @@ CONTENTVIEW_EVENTS.firstPage_click = function() {
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
//START TRB00097
CONTENTVIEW
.
checkDisableButtonZoom
();
//CONTENTVIEW.userScale = 1;
var
tran
=
new
CONTENTVIEW_CREATEOBJECT
.
Transition
();
tran
.
flipToPage
(
0
);
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
}
);
}
else
{
// ファイル取得
var
fileName
=
CONTENTVIEW_GENERAL
.
contentID
+
"/page_1.dat"
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
false
},
function
(
fileEntry
){
fileEntry
.
file
(
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
//AVWEB.avwLog("read FileSystem");
CONTENTVIEW_GENERAL
.
pageImages
=
e
.
target
.
result
;
/* get page Objects */
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
0
);
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
).
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
//userScale = 1;
//changeScale(userScale);
CONTENTVIEW
.
checkDisableButtonZoom
();
var
tran
=
new
CONTENTVIEW_CREATEOBJECT
.
Transition
();
tran
.
flipToPage
(
0
);
};
reader
.
readAsText
(
file
);
}
);
},
function
(
err
){
// 失敗時のコールバック関数
//AVWEB.avwLog("NotRead FileSystem");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
1
},
function
(
data
)
{
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
/* get page Objects */
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
0
);
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
).
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
//CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
//END TRB00097
CONTENTVIEW
.
checkDisableButtonZoom
();
CONTENTVIEW
.
checkDisableButtonZoom
();
var
tran
=
new
CONTENTVIEW_CREATEOBJECT
.
Transition
();
var
tran
=
new
CONTENTVIEW_CREATEOBJECT
.
Transition
();
tran
.
flipToPage
(
0
);
tran
.
flipToPage
(
0
);
...
@@ -411,7 +460,12 @@ CONTENTVIEW_EVENTS.firstPage_click = function() {
...
@@ -411,7 +460,12 @@ CONTENTVIEW_EVENTS.firstPage_click = function() {
},
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
CONTENTVIEW
.
showErrorScreen
();
});
}
);
}
);
}
}
}
//START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process
//START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_NoFile
){
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_NoFile
){
...
@@ -460,12 +514,41 @@ CONTENTVIEW_EVENTS.lastPage_click = function() {
...
@@ -460,12 +514,41 @@ CONTENTVIEW_EVENTS.lastPage_click = function() {
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
//console.log("CONTENTVIEW_EVENTS.lastPage_click");
//ファイルシステムが有効であればキャッシュ確認
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
if
(
CONTENTVIEW_FILESYSTEM
.
fs
==
null
){
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
CONTENTVIEW_GENERAL
.
totalPage
},
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
CONTENTVIEW_GENERAL
.
totalPage
},
function
(
data
)
{
function
(
data
)
{
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
/* get page Objects */
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
CONTENTVIEW_GENERAL
.
totalPage
-
1
);
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
).
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
CONTENTVIEW
.
checkDisableButtonZoom
();
var
tran
=
new
CONTENTVIEW_CREATEOBJECT
.
Transition
();
tran
.
flipToPage
(
CONTENTVIEW_GENERAL
.
totalPage
-
1
);
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
}
);
}
else
{
// ファイル取得
var
fileName
=
contentID
+
"/page_"
+
totalPage
+
".dat"
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
false
},
function
(
fileEntry
){
fileEntry
.
file
(
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
//AVWEB.avwLog("read FileSystem");
CONTENTVIEW_GENERAL
.
pageImages
=
e
.
target
.
result
;
/* get page Objects */
/* get page Objects */
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
CONTENTVIEW_GENERAL
.
totalPage
-
1
);
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
CONTENTVIEW_GENERAL
.
totalPage
-
1
);
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
).
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
).
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
...
@@ -476,10 +559,37 @@ CONTENTVIEW_EVENTS.lastPage_click = function() {
...
@@ -476,10 +559,37 @@ CONTENTVIEW_EVENTS.lastPage_click = function() {
var
tran
=
new
CONTENTVIEW_CREATEOBJECT
.
Transition
();
var
tran
=
new
CONTENTVIEW_CREATEOBJECT
.
Transition
();
tran
.
flipToPage
(
CONTENTVIEW_GENERAL
.
totalPage
-
1
);
tran
.
flipToPage
(
CONTENTVIEW_GENERAL
.
totalPage
-
1
);
};
reader
.
readAsText
(
file
);
}
);
},
function
(
err
){
// 失敗時のコールバック関数
//AVWEB.avwLog("NotRead FileSystem");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
CONTENTVIEW_GENERAL
.
totalPage
},
function
(
data
)
{
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
/* get page Objects */
CONTENTVIEW_GETDATA
.
getPageObjectsByPageIndex
(
CONTENTVIEW_GENERAL
.
pageObjectsData
,
CONTENTVIEW_GENERAL
.
totalPage
-
1
);
CONTENTVIEW_GETDATA
.
getContent
().
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
pageImages
).
setPageObjects
(
CONTENTVIEW_GENERAL
.
pageObjects
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
CONTENTVIEW
.
checkDisableButtonZoom
();
var
tran
=
new
CONTENTVIEW_CREATEOBJECT
.
Transition
();
tran
.
flipToPage
(
CONTENTVIEW_GENERAL
.
totalPage
-
1
);
},
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
CONTENTVIEW
.
showErrorScreen
();
});
}
);
}
);
}
}
}
//START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process
//START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_NoFile
){
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_NoFile
){
...
@@ -1843,11 +1953,15 @@ CONTENTVIEW_EVENTS.onTouchmove = function(evt){
...
@@ -1843,11 +1953,15 @@ CONTENTVIEW_EVENTS.onTouchmove = function(evt){
}
}
}
}
else
{
else
{
CONTENTVIEW_EVENTS
.
_isClick
=
false
;
//
CONTENTVIEW_EVENTS._isClick = false;
// for android or ipad
// for android or ipad
touch1
=
evt
.
touches
[
0
];
touch1
=
evt
.
touches
[
0
];
touch2
=
evt
.
touches
[
1
];
touch2
=
evt
.
touches
[
1
];
if
(
touch2
!=
null
){
CONTENTVIEW_EVENTS
.
_isClick
=
false
;
}
if
(
CONTENTVIEW_EVENTS
.
_3dAnimate
){
if
(
CONTENTVIEW_EVENTS
.
_3dAnimate
){
var
imagePt
=
CONTENTVIEW
.
screenToImage
(
touch1
.
pageX
,
touch1
.
pageY
);
var
imagePt
=
CONTENTVIEW
.
screenToImage
(
touch1
.
pageX
,
touch1
.
pageY
);
...
@@ -2156,14 +2270,6 @@ CONTENTVIEW_EVENTS.onTouchend = function(evt){
...
@@ -2156,14 +2270,6 @@ CONTENTVIEW_EVENTS.onTouchend = function(evt){
if
(
isClickLinkList
==
false
&&
ClientData
.
IsAddingMarking
()
==
false
)
{
if
(
isClickLinkList
==
false
&&
ClientData
.
IsAddingMarking
()
==
false
)
{
//Androidは遅いのでタッチエンドで描画
//if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) {
// // redraw
// CONTENTVIEW.flip();
// CONTENTVIEW.zoomVideo();
// CONTENTVIEW.closeDialogPopUpText();
//}
if
(
CONTENTVIEW_GENERAL
.
avwUserEnvObj
.
isIos
()
==
false
&&
CONTENTVIEW_GENERAL
.
avwUserEnvObj
.
isAndroid
()
==
false
)
{
if
(
CONTENTVIEW_GENERAL
.
avwUserEnvObj
.
isIos
()
==
false
&&
CONTENTVIEW_GENERAL
.
avwUserEnvObj
.
isAndroid
()
==
false
)
{
/* area next and prev page */
/* area next and prev page */
var
cwMain
=
$
(
'#main'
).
width
();
var
cwMain
=
$
(
'#main'
).
width
();
...
@@ -2184,24 +2290,12 @@ CONTENTVIEW_EVENTS.onTouchend = function(evt){
...
@@ -2184,24 +2290,12 @@ CONTENTVIEW_EVENTS.onTouchend = function(evt){
}
}
else
{
else
{
if
(
ClientData
.
IsAddingMarking
()
==
false
&&
CONTENTVIEW_GENERAL
.
isCopyMemo
==
false
)
{
if
(
ClientData
.
IsAddingMarking
()
==
false
&&
CONTENTVIEW_GENERAL
.
isCopyMemo
==
false
)
{
//Androidは遅いのでタッチエンドで描画
//if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) {
// // redraw
// CONTENTVIEW.flip();
// CONTENTVIEW.zoomVideo();
// CONTENTVIEW.closeDialogPopUpText();
//}
//if (CONTENTVIEW_GENERAL.avwUserEnvObj.isIos() == false && CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid() == false) {
var
cwMain
=
$
(
'#main'
).
width
();
var
cwMain
=
$
(
'#main'
).
width
();
if
(
CONTENTVIEW_EVENTS
.
_touchPageX
>
0
&&
CONTENTVIEW_EVENTS
.
_touchPageX
<
300
)
{
if
(
CONTENTVIEW_EVENTS
.
_touchPageX
>
0
&&
CONTENTVIEW_EVENTS
.
_touchPageX
<
300
)
{
CONTENTVIEW_EVENTS
.
prevPage_click
();
CONTENTVIEW_EVENTS
.
prevPage_click
();
}
else
if
(
CONTENTVIEW_EVENTS
.
_touchPageX
>
(
cwMain
-
300
)
&&
CONTENTVIEW_EVENTS
.
_touchPageX
<
cwMain
)
{
}
else
if
(
CONTENTVIEW_EVENTS
.
_touchPageX
>
(
cwMain
-
300
)
&&
CONTENTVIEW_EVENTS
.
_touchPageX
<
cwMain
)
{
CONTENTVIEW_EVENTS
.
nextPage_click
();
CONTENTVIEW_EVENTS
.
nextPage_click
();
}
}
//}
}
}
}
}
}
}
...
...
abvw/js/contentview_FileSystem.js
0 → 100644
View file @
16256f34
//名前空間用のオブジェクトを用意する
var
CONTENTVIEW_FILESYSTEM
=
{};
CONTENTVIEW_FILESYSTEM
.
fs
=
null
;
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
false
;
//$(function () {
//});
CONTENTVIEW_FILESYSTEM
.
initFS
=
function
(
func
)
{
CONTENTVIEW_FILESYSTEM
.
fs
=
null
;
window
.
requestFileSystem
=
window
.
requestFileSystem
||
window
.
webkitRequestFileSystem
;
// Initiate filesystem on page load.
if
(
!
window
.
requestFileSystem
)
{
//AVWEB.avwLog("window.requestFileSystem is null");
if
(
func
!=
null
){
func
();
}
return
;
}
window
.
requestFileSystem
(
window
.
TEMPORARY
,
1024
*
1024
,
function
(
filesystem
)
{
//AVWEB.avwLog("initFS window.requestFileSystem");
CONTENTVIEW_FILESYSTEM
.
fs
=
filesystem
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getDirectory
(
'abook'
,
{
create
:
true
},
function
(
dirEntry
)
{
// /abookディレクトリ作成成功
if
(
func
!=
null
){
func
();
}
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
},
function
(
err
){
// 失敗時のコールバック関数
CONTENTVIEW_FILESYSTEM
.
errorHandler
(
err
);
if
(
func
!=
null
){
func
();
}
}
);
};
CONTENTVIEW_FILESYSTEM
.
savePageFile
=
function
(
contentId
,
fileName
,
data
)
{
if
(
!
CONTENTVIEW_FILESYSTEM
.
fs
)
{
//AVWEB.avwLog('CONTENTVIEW_FILESYSTEM.fs is null. id=' + contentId);
return
;
}
//パス作成
//var path = "/abook/" + contentId + "/" + fileName;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getDirectory
(
'/abook/'
+
contentId
,
{
create
:
true
},
function
(
dirEntry
)
{
// /abook/contentId ディレクトリ作成成功
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
contentId
+
"/"
+
fileName
,
{
create
:
true
},
function
(
fileEntry
){
fileEntry
.
createWriter
(
function
(
fileWriter
)
{
fileWriter
.
onwriteend
=
function
(
e
)
{
//AVWEB.avwLog('書き込み完了');
};
fileWriter
.
onerror
=
function
(
e
)
{
//AVWEB.avwLog('書き込みエラー: ' + e.toString());
};
var
blobData
=
new
Blob
([
data
],
{
type
:
"text/plain"
});
fileWriter
.
write
(
blobData
);
}
);
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
};
CONTENTVIEW_FILESYSTEM
.
deleteContentDir
=
function
(
contentId
)
{
if
(
!
CONTENTVIEW_FILESYSTEM
.
fs
)
{
//AVWEB.avwLog('CONTENTVIEW_FILESYSTEM.fs is null. id=' + contentId);
return
;
}
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getDirectory
(
'/abook/'
+
contentId
,
{},
function
(
dirEntry
)
{
dirEntry
.
removeRecursively
(
function
()
{
//AVWEB.avwLog('Directory removed. id=' + contentId);
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
},
null
);
};
CONTENTVIEW_FILESYSTEM
.
checkUpdate
=
function
(
contentId
,
data
,
func
)
{
if
(
!
CONTENTVIEW_FILESYSTEM
.
fs
)
{
//AVWEB.avwLog('CONTENTVIEW_FILESYSTEM.fs is null. id=' + contentId);
//おまじない ajaxカウントをインクリする必要有り
//nAjaxLoad++;
//ファンクションがあれば実行
if
(
func
!=
null
){
func
(
data
);
}
return
;
}
//既にjson.txtが存在するか
var
fileName
=
contentID
+
"/json.txt"
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
false
},
function
(
fileEntry
){
fileEntry
.
file
(
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
//AVWEB.avwLog("read Json.txt");
//JSONに戻す
var
jsonObjOld
=
JSON
.
parse
(
e
.
target
.
result
);
//配信日時比較
//AVWEB.avwLog("OLD:" + jsonObjOld.contentData.lastDeliveryDate);
//AVWEB.avwLog("NEW:" + data.contentData.lastDeliveryDate);
if
(
jsonObjOld
.
contentData
.
lastDeliveryDate
!=
data
.
contentData
.
lastDeliveryDate
){
//AVWEB.avwLog("Update Content.");
//ディレクトリ消し
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getDirectory
(
'/abook/'
+
contentId
,
{},
function
(
dirEntry
)
{
dirEntry
.
removeRecursively
(
function
()
{
//AVWEB.avwLog('Directory removed. id=' + contentId);
//再度書き込み
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getDirectory
(
'/abook/'
+
contentId
,
{
create
:
true
},
function
(
dirEntry
)
{
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
contentId
+
"/json.txt"
,
{
create
:
true
},
function
(
fileEntry
){
fileEntry
.
createWriter
(
function
(
fileWriter
)
{
fileWriter
.
onwriteend
=
function
(
e
)
{
//AVWEB.avwLog('JSON書き込み完了');
//おまじない ajaxカウントをインクリする必要有り
nAjaxLoad
++
;
//ファンクション実行
if
(
func
!=
null
){
func
(
data
);
}
};
fileWriter
.
onerror
=
function
(
e
)
{
//AVWEB.avwLog('JSON書き込みエラー: ' + e.toString());
};
var
blobData
=
new
Blob
([
window
.
JSON
.
stringify
(
data
)],
{
type
:
"text/plain"
});
fileWriter
.
write
(
blobData
);
}
);
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
},
null
);
}
else
{
//おまじない ajaxカウントをインクリする必要有り
nAjaxLoad
++
;
//ファンクション実行
if
(
func
!=
null
){
func
(
data
);
}
}
};
reader
.
readAsText
(
file
);
}
);
},
function
(
err
){
// 失敗時のコールバック関数
//AVWEB.avwLog("NotRead json.txt");
//書き込む パス作成
//var path = "/abook/" + contentId + "/" + fileName;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getDirectory
(
'/abook/'
+
contentId
,
{
create
:
true
},
function
(
dirEntry
)
{
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
contentId
+
"/json.txt"
,
{
create
:
true
},
function
(
fileEntry
){
fileEntry
.
createWriter
(
function
(
fileWriter
)
{
fileWriter
.
onwriteend
=
function
(
e
)
{
//AVWEB.avwLog('JSON書き込み完了');
//おまじない ajaxカウントをインクリする必要有り
nAjaxLoad
++
;
//ファンクション実行
if
(
func
!=
null
){
func
(
data
);
}
};
fileWriter
.
onerror
=
function
(
e
)
{
//AVWEB.avwLog('JSON書き込みエラー: ' + e.toString());
};
var
blobData
=
new
Blob
([
window
.
JSON
.
stringify
(
data
)],
{
type
:
"text/plain"
});
fileWriter
.
write
(
blobData
);
}
);
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
}
);
};
CONTENTVIEW_FILESYSTEM
.
showVideoObjectCache
=
function
(
x
,
y
,
width
,
height
,
src
,
isFullscreen
,
contentId
,
resourceId
){
//AVWEB.avwLog('CONTENTVIEW_FILESYSTEM.showVideoObjectCache');
if
(
!
CONTENTVIEW_FILESYSTEM
.
fs
)
{
//AVWEB.avwLog('CONTENTVIEW_FILESYSTEM.fs is null. id=' + contentId);
showVideoObject
(
x
,
y
,
width
,
height
,
src
,
isFullscreen
,
true
);
return
;
}
//キャッシュが存在するか確認
var
fileName
=
contentID
+
"/res_"
+
resourceId
+
".dat"
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
false
},
function
(
fileEntry
){
fileEntry
.
file
(
function
(
file
){
//AVWEB.avwLog("read cache");
var
url
=
window
.
URL
||
window
.
webkitURL
;
var
resSrc
=
url
.
createObjectURL
(
file
);
showVideoObject
(
x
,
y
,
width
,
height
,
resSrc
,
isFullscreen
,
false
);
}
);
},
function
(
err
){
// 失敗時のコールバック関数
//AVWEB.avwLog("NotRead FileSystem");
//キャッシュ化
var
xhr
=
new
XMLHttpRequest
();
xhr
.
onreadystatechange
=
function
(){
if
(
this
.
readyState
==
4
&&
this
.
status
==
200
){
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
false
;
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
//this.response is what you're looking for
//AVWEB.avwLog(this.response, typeof this.response);
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
true
},
function
(
fileEntry
){
fileEntry
.
createWriter
(
function
(
fileWriter
)
{
fileWriter
.
onwriteend
=
function
(
e
)
{
//AVWEB.avwLog('RES書き込み完了');
};
fileWriter
.
onerror
=
function
(
e
)
{
//AVWEB.avwLog('RES書き込みエラー: ' + e.toString());
};
var
blobData
=
new
Blob
([
xhr
.
response
],
{
type
:
"application/octet-stream"
});
//var blobData = new Blob([this.response], {type:"video/mp4"});
fileWriter
.
write
(
blobData
);
}
);
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
}
else
{
if
(
this
.
readyState
==
2
){
//AVWEB.avwLog("onreadystatechange:" + this.readyState + " " + this.status);
$
(
'#divImageLoading'
).
css
(
'display'
,
'block'
);
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
true
;
}
}
};
if
(
!
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
){
xhr
.
open
(
'GET'
,
src
);
xhr
.
responseType
=
'blob'
;
xhr
.
send
();
}
else
{
//AVWEB.avwLog("xhr is busy.");
}
//タグは書き出し
showVideoObject
(
x
,
y
,
width
,
height
,
src
,
isFullscreen
,
true
);
}
);
};
CONTENTVIEW_FILESYSTEM
.
errorHandler
=
function
(
e
)
{
var
msg
=
''
;
switch
(
e
.
code
)
{
case
FileError
.
QUOTA_EXCEEDED_ERR
:
msg
=
'QUOTA_EXCEEDED_ERR'
;
break
;
case
FileError
.
NOT_FOUND_ERR
:
msg
=
'NOT_FOUND_ERR'
;
break
;
case
FileError
.
SECURITY_ERR
:
msg
=
'SECURITY_ERR'
;
break
;
case
FileError
.
INVALID_MODIFICATION_ERR
:
msg
=
'INVALID_MODIFICATION_ERR'
;
break
;
case
FileError
.
INVALID_STATE_ERR
:
msg
=
'INVALID_STATE_ERR'
;
break
;
default
:
msg
=
'Unknown Error'
;
break
;
};
//CONTENTVIEW_FILESYSTEM.fs = null;
//AVWEB.avwLog('FileSystemAPI Error: ' + msg);
alert
(
'FileSystemAPI Error: '
+
msg
);
};
abvw/js/contentview_GetData.js
View file @
16256f34
...
@@ -95,13 +95,6 @@ CONTENTVIEW_GETDATA.getMediaType1 = function(iValueObj) {
...
@@ -95,13 +95,6 @@ CONTENTVIEW_GETDATA.getMediaType1 = function(iValueObj) {
* Action Type = 11 : html
* Action Type = 11 : html
*/
*/
//ストリーミングならemailは表示しない
//if(ClientData.isStreamingMode()){
// if (iValueObj.action.actionType == 6) {
// return null;
// }
//}
var
pageObject
=
[];
var
pageObject
=
[];
pageObject
[
'mediaType'
]
=
iValueObj
.
mediaType
;
pageObject
[
'mediaType'
]
=
iValueObj
.
mediaType
;
...
@@ -900,7 +893,18 @@ CONTENTVIEW_GETDATA.getBookmarklist = function(pos) {
...
@@ -900,7 +893,18 @@ CONTENTVIEW_GETDATA.getBookmarklist = function(pos) {
//title start
//title start
$
(
'#bookmarkBoxHdBM'
).
children
().
remove
();
$
(
'#bookmarkBoxHdBM'
).
children
().
remove
();
$
(
'#bookmarkBoxHdBM'
).
html
(
'<a id="bookmarkClosing" class="delete" > </a>'
);
$
(
'#bookmarkBoxHdBM'
).
html
(
'<a id="bookmarkClosing" class="delete" > </a>'
);
$
(
"#bookmarkClosing"
).
click
(
CONTENTVIEW_EVENTS
.
closeBookmarkBox
);
//$("#bookmarkClosing").click(CONTENTVIEW_EVENTS.closeBookmarkBox);
$
(
"#bookmarkClosing"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_EVENTS
.
closeBookmarkBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#bookmarkBoxHdBM'
).
append
(
I18N
.
i18nText
(
'txtShioriCtnLs'
));
$
(
'#bookmarkBoxHdBM'
).
append
(
I18N
.
i18nText
(
'txtShioriCtnLs'
));
//title end
//title end
//COMMON.lockLayout();
//COMMON.lockLayout();
...
@@ -934,7 +938,19 @@ CONTENTVIEW_GETDATA.getPageIndexJson = function(pos) {
...
@@ -934,7 +938,19 @@ CONTENTVIEW_GETDATA.getPageIndexJson = function(pos) {
//title start
//title start
$
(
'#indexBoxHdIndex'
).
children
().
remove
();
$
(
'#indexBoxHdIndex'
).
children
().
remove
();
$
(
'#indexBoxHdIndex'
).
html
(
'<a id="indexClosing" class="delete" > </a>'
);
$
(
'#indexBoxHdIndex'
).
html
(
'<a id="indexClosing" class="delete" > </a>'
);
$
(
"#indexClosing"
).
click
(
CONTENTVIEW_EVENTS
.
closeIndexBox
);
//$("#indexClosing").click(CONTENTVIEW_EVENTS.closeIndexBox);
$
(
"#indexClosing"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_EVENTS
.
closeIndexBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#indexBoxHdIndex'
).
append
(
I18N
.
i18nText
(
'txtIndex'
));
$
(
'#indexBoxHdIndex'
).
append
(
I18N
.
i18nText
(
'txtIndex'
));
//title end
//title end
//COMMON.lockLayout();
//COMMON.lockLayout();
...
@@ -990,7 +1006,19 @@ CONTENTVIEW_GETDATA.getPageIndexJson = function(pos) {
...
@@ -990,7 +1006,19 @@ CONTENTVIEW_GETDATA.getPageIndexJson = function(pos) {
//title start
//title start
$
(
'#indexBoxHdIndex'
).
children
().
remove
();
$
(
'#indexBoxHdIndex'
).
children
().
remove
();
$
(
'#indexBoxHdIndex'
).
html
(
'<a id="indexClosing" class="delete" > </a>'
);
$
(
'#indexBoxHdIndex'
).
html
(
'<a id="indexClosing" class="delete" > </a>'
);
$
(
"#indexClosing"
).
click
(
CONTENTVIEW_EVENTS
.
closeIndexBox
);
//$("#indexClosing").click(CONTENTVIEW_EVENTS.closeIndexBox);
$
(
"#indexClosing"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_EVENTS
.
closeIndexBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#indexBoxHdIndex'
).
append
(
I18N
.
i18nText
(
'txtIndex'
));
$
(
'#indexBoxHdIndex'
).
append
(
I18N
.
i18nText
(
'txtIndex'
));
//title end
//title end
//COMMON.lockLayout();
//COMMON.lockLayout();
...
@@ -1220,6 +1248,8 @@ CONTENTVIEW_GETDATA.renderNextPage = function(){
...
@@ -1220,6 +1248,8 @@ CONTENTVIEW_GETDATA.renderNextPage = function(){
//Get next page background image
//Get next page background image
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
//ファイルシステムが有効であればキャッシュ確認
if
(
CONTENTVIEW_FILESYSTEM
.
fs
==
null
){
//console.log("CONTENTVIEW_GETDATA.renderNextPage");
//console.log("CONTENTVIEW_GETDATA.renderNextPage");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
pageNo
},
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
pageNo
},
...
@@ -1233,7 +1263,46 @@ CONTENTVIEW_GETDATA.renderNextPage = function(){
...
@@ -1233,7 +1263,46 @@ CONTENTVIEW_GETDATA.renderNextPage = function(){
},
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
CONTENTVIEW
.
showErrorScreen
();
});
}
);
}
else
{
// ファイル取得
var
fileName
=
contentID
+
"/page_"
+
pageNo
+
".dat"
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
false
},
function
(
fileEntry
){
fileEntry
.
file
(
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
//AVWEB.avwLog("read FileSystem");
CONTENTVIEW_GENERAL
.
nextPageImage
=
e
.
target
.
result
;
CONTENTVIEW_GENERAL
.
nextContent
.
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
nextPageImage
)
.
setPageObjects
(
CONTENTVIEW_GENERAL
.
nextPageObjects
)
.
nextPage
();
};
reader
.
readAsText
(
file
);
}
);
},
function
(
err
){
// 失敗時のコールバック関数
//AVWEB.avwLog("NotRead FileSystem");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
pageNo
},
function
(
data
)
{
CONTENTVIEW_GENERAL
.
nextPageImage
=
data
;
CONTENTVIEW_GENERAL
.
nextContent
.
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
nextPageImage
)
.
setPageObjects
(
CONTENTVIEW_GENERAL
.
nextPageObjects
)
.
nextPage
();
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
}
);
}
);
}
}
}
//Start Function : No.12 - Editor : Long - Date : 08/28/2013 - Summary : Render next page content image the same with the current one
//Start Function : No.12 - Editor : Long - Date : 08/28/2013 - Summary : Render next page content image the same with the current one
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_NoFile
){
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_NoFile
){
...
@@ -1255,20 +1324,61 @@ CONTENTVIEW_GETDATA.renderPrevPage = function(){
...
@@ -1255,20 +1324,61 @@ CONTENTVIEW_GETDATA.renderPrevPage = function(){
//Get prev page background image
//Get prev page background image
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
//ファイルシステムが有効であればキャッシュ確認
if
(
CONTENTVIEW_FILESYSTEM
.
fs
==
null
){
//console.log("CONTENTVIEW_GETDATA.renderPrevPage");
//console.log("CONTENTVIEW_GETDATA.renderPrevPage");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
pageNo
},
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
pageNo
},
function
(
data
)
{
function
(
data
)
{
CONTENTVIEW_GENERAL
.
prevPageImage
=
data
;
CONTENTVIEW_GENERAL
.
prevPageImage
=
data
;
CONTENTVIEW_GENERAL
.
prevContent
.
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
prevPageImage
)
CONTENTVIEW_GENERAL
.
prevContent
.
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
prevPageImage
)
.
setPageObjects
(
CONTENTVIEW_GENERAL
.
prevPageObjects
)
.
setPageObjects
(
CONTENTVIEW_GENERAL
.
prevPageObjects
)
.
previousPage
();
.
previousPage
();
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
}
);
}
else
{
// ファイル取得
var
fileName
=
contentID
+
"/page_"
+
pageNo
+
".dat"
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
false
},
function
(
fileEntry
){
fileEntry
.
file
(
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
//AVWEB.avwLog("read FileSystem");
CONTENTVIEW_GENERAL
.
prevPageImage
=
e
.
target
.
result
;
CONTENTVIEW_GENERAL
.
prevContent
.
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
prevPageImage
)
.
setPageObjects
(
CONTENTVIEW_GENERAL
.
prevPageObjects
)
.
previousPage
();
};
reader
.
readAsText
(
file
);
}
);
},
function
(
err
){
// 失敗時のコールバック関数
//AVWEB.avwLog("NotRead FileSystem");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
pageNo
},
function
(
data
)
{
CONTENTVIEW_GENERAL
.
prevPageImage
=
data
;
CONTENTVIEW_GENERAL
.
prevContent
.
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
prevPageImage
)
.
setPageObjects
(
CONTENTVIEW_GENERAL
.
prevPageObjects
)
.
previousPage
();
},
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
CONTENTVIEW
.
showErrorScreen
();
CONTENTVIEW
.
showErrorScreen
();
});
}
);
}
);
}
}
}
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_NoFile
){
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_NoFile
){
CONTENTVIEW_GENERAL
.
prevPageImage
=
CONTENTVIEW_GENERAL
.
pageImages
;
CONTENTVIEW_GENERAL
.
prevPageImage
=
CONTENTVIEW_GENERAL
.
pageImages
;
...
...
abvw/js/contentview_Gomu.js
View file @
16256f34
...
@@ -218,13 +218,78 @@ $(function () {
...
@@ -218,13 +218,78 @@ $(function () {
}
}
}
}
$
(
"#dlgGomu_dspOK"
).
click
(
CONTENTVIEW_GOMU
.
dlgGomu_dspOK_click
);
//$("#dlgGomu_dspOK").click(CONTENTVIEW_GOMU.dlgGomu_dspOK_click);
$
(
"#dlgGomu_dspCancel"
).
click
(
CONTENTVIEW_GOMU
.
dlgGomu_dspCancel_click
);
$
(
"#dlgGomu_dspOK"
).
on
({
'click touchend'
:
function
(
ev
){
$
(
"#text_dlgGomu_rdo1"
).
click
(
CONTENTVIEW_GOMU
.
dlgGomu_rdo1_text_click
);
CONTENTVIEW_GOMU
.
dlgGomu_dspOK_click
(
ev
);
$
(
"#text_dlgGomu_rdo2"
).
click
(
CONTENTVIEW_GOMU
.
dlgGomu_rdo2_text_click
);
return
false
;
$
(
"#text_dlgGomu_rdo3"
).
click
(
CONTENTVIEW_GOMU
.
dlgGomu_rdo3_text_click
);
},
$
(
"#text_dlgGomu_rdo4"
).
click
(
CONTENTVIEW_GOMU
.
dlgGomu_rdo4_text_click
);
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgGomu_dspCancel").click(CONTENTVIEW_GOMU.dlgGomu_dspCancel_click);
$
(
"#dlgGomu_dspCancel"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_GOMU
.
dlgGomu_dspCancel_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#text_dlgGomu_rdo1").click(CONTENTVIEW_GOMU.dlgGomu_rdo1_text_click);
$
(
"#text_dlgGomu_rdo1"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_GOMU
.
dlgGomu_rdo1_text_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#text_dlgGomu_rdo2").click(CONTENTVIEW_GOMU.dlgGomu_rdo2_text_click);
$
(
"#text_dlgGomu_rdo2"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_GOMU
.
dlgGomu_rdo2_text_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#text_dlgGomu_rdo3").click(CONTENTVIEW_GOMU.dlgGomu_rdo3_text_click);
$
(
"#text_dlgGomu_rdo3"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_GOMU
.
dlgGomu_rdo3_text_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#text_dlgGomu_rdo4").click(CONTENTVIEW_GOMU.dlgGomu_rdo4_text_click);
$
(
"#text_dlgGomu_rdo4"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_GOMU
.
dlgGomu_rdo4_text_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
});
});
...
...
abvw/js/contentview_InitObjects.js
View file @
16256f34
...
@@ -176,7 +176,18 @@ CONTENTVIEW_INITOBJECT.initPage = function() {
...
@@ -176,7 +176,18 @@ CONTENTVIEW_INITOBJECT.initPage = function() {
/* copy text */
/* copy text */
$
(
'#copytext'
).
click
(
CONTENTVIEW_EVENTS
.
showCopyText
);
$
(
'#copytext'
).
click
(
CONTENTVIEW_EVENTS
.
showCopyText
);
/* close copy text dialog */
/* close copy text dialog */
$
(
"#copyTextClosing"
).
click
(
CONTENTVIEW_EVENTS
.
closeCopyTextBox
);
//$("#copyTextClosing").click(CONTENTVIEW_EVENTS.closeCopyTextBox);
$
(
"#copyTextClosing"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_EVENTS
.
closeCopyTextBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
}
}
/*event click next page button */
/*event click next page button */
...
@@ -194,7 +205,18 @@ CONTENTVIEW_INITOBJECT.initPage = function() {
...
@@ -194,7 +205,18 @@ CONTENTVIEW_INITOBJECT.initPage = function() {
$
(
"#imgHome"
).
click
(
CONTENTVIEW_EVENTS
.
imgHome_click
);
$
(
"#imgHome"
).
click
(
CONTENTVIEW_EVENTS
.
imgHome_click
);
$
(
"#btn_show_memo"
).
click
(
CONTENTVIEW_CREATEOBJECT
.
showEditMemo
);
$
(
"#btn_show_memo"
).
click
(
CONTENTVIEW_CREATEOBJECT
.
showEditMemo
);
$
(
"#btn_copy_memo"
).
click
(
CONTENTVIEW_CREATEOBJECT
.
copyMemo
);
$
(
"#btn_copy_memo"
).
click
(
CONTENTVIEW_CREATEOBJECT
.
copyMemo
);
$
(
'#memoClosing'
).
click
(
CONTENTVIEW_EVENTS
.
closePopUpCopyMemo
);
//$('#memoClosing').click(CONTENTVIEW_EVENTS.closePopUpCopyMemo);
$
(
"#memoClosing"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_EVENTS
.
closePopUpCopyMemo
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#liAddMemo'
).
click
(
CONTENTVIEW_EVENTS
.
click_liAddMemo
);
$
(
'#liAddMemo'
).
click
(
CONTENTVIEW_EVENTS
.
click_liAddMemo
);
$
(
'#liCopyMemo'
).
click
(
CONTENTVIEW_EVENTS
.
click_liCopyMemo
);
$
(
'#liCopyMemo'
).
click
(
CONTENTVIEW_EVENTS
.
click_liCopyMemo
);
$
(
'#liDeleteMemo'
).
click
(
CONTENTVIEW_EVENTS
.
click_liDeleteMemo
);
$
(
'#liDeleteMemo'
).
click
(
CONTENTVIEW_EVENTS
.
click_liDeleteMemo
);
...
@@ -547,8 +569,99 @@ CONTENTVIEW_INITOBJECT.initPageMediaAndHtmlType = function(){
...
@@ -547,8 +569,99 @@ CONTENTVIEW_INITOBJECT.initPageMediaAndHtmlType = function(){
//enable SpecifyControl
//enable SpecifyControl
CONTENTVIEW
.
enableSpecifyControl
();
CONTENTVIEW
.
enableSpecifyControl
();
//ビデオコンテンツの場合はキャッシュ確認
if
(
contentType
==
ContentTypeKeys
.
Type_Video
){
//ファイルシステムが有効であればキャッシュ確認
if
(
CONTENTVIEW_FILESYSTEM
.
fs
==
null
){
//Display overlay dialog for specify content type
CONTENTVIEW
.
displayOverlayForSpecifyContentType
(
null
);
}
else
{
var
resourceId
=
CONTENTVIEW
.
getVideoContentResourceId
(
CONTENTVIEW_GENERAL
.
contentID
);
//キャッシュが存在するか確認
var
fileName
=
CONTENTVIEW_GENERAL
.
contentID
+
"/res_"
+
resourceId
+
".dat"
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
false
},
function
(
fileEntry
){
fileEntry
.
file
(
function
(
file
){
var
url
=
window
.
URL
||
window
.
webkitURL
;
var
resSrc
=
url
.
createObjectURL
(
file
);
//AVWEB.avwLog("read cache: createObjectURL " + resSrc);
CONTENTVIEW
.
displayOverlayForSpecifyContentType
(
resSrc
);
}
);
},
function
(
err
){
// 失敗時のコールバック関数
//AVWEB.avwLog("NotRead FileSystem");
//キャッシュ化
var
xhr
=
new
XMLHttpRequest
();
xhr
.
onreadystatechange
=
function
(){
if
(
this
.
readyState
==
4
&&
this
.
status
==
200
){
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
false
;
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
//this.response is what you're looking for
//AVWEB.avwLog(this.response, typeof this.response);
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
true
},
function
(
fileEntry
){
fileEntry
.
createWriter
(
function
(
fileWriter
)
{
fileWriter
.
onwriteend
=
function
(
e
)
{
//AVWEB.avwLog('RES書き込み完了');
};
fileWriter
.
onerror
=
function
(
e
)
{
//AVWEB.avwLog('RES書き込みエラー: ' + e.toString());
};
var
blobData
=
new
Blob
([
xhr
.
response
],
{
type
:
"application/octet-stream"
});
fileWriter
.
write
(
blobData
);
}
);
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
}
else
{
if
(
this
.
readyState
==
2
){
//AVWEB.avwLog("onreadystatechange:" + this.readyState + " " + this.status);
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
true
;
$
(
'#divImageLoading'
).
css
(
'z-index'
,
'99999'
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'block'
);
}
//AVWEB.avwLog("onreadystatechange:" + this.readyState + " " + this.status);
}
};
var
resourceUrl
=
CONTENTVIEW
.
downloadResourceById
(
CONTENTVIEW_GENERAL
.
contentID
);
if
(
!
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
){
xhr
.
open
(
'GET'
,
resourceUrl
);
xhr
.
responseType
=
'blob'
;
xhr
.
send
();
}
else
{
//AVWEB.avwLog("xhr is busy.");
}
//タグは書き出し
CONTENTVIEW
.
displayOverlayForSpecifyContentType
(
resourceUrl
);
}
);
}
}
else
{
//Display overlay dialog for specify content type
//Display overlay dialog for specify content type
CONTENTVIEW
.
displayOverlayForSpecifyContentType
();
CONTENTVIEW
.
displayOverlayForSpecifyContentType
(
null
);
}
//Resize window
//Resize window
$
(
window
).
resize
(
function
()
{
$
(
window
).
resize
(
function
()
{
...
...
abvw/js/contentview_Maker.js
View file @
16256f34
...
@@ -50,17 +50,92 @@ CONTENTVIEW_MAKER.Maker_handleColorPickerEvent = function (){
...
@@ -50,17 +50,92 @@ CONTENTVIEW_MAKER.Maker_handleColorPickerEvent = function (){
$
(
'#makerColorwrapper'
).
bind
(
'mouseleave'
,
CONTENTVIEW_MAKER
.
Maker_colorWrapperMouseLeaveFunction
);
$
(
'#makerColorwrapper'
).
bind
(
'mouseleave'
,
CONTENTVIEW_MAKER
.
Maker_colorWrapperMouseLeaveFunction
);
}
}
$
(
'#Maker_btnOk'
).
live
(
'click'
,
CONTENTVIEW_MAKER
.
Maker_dspOK_click
);
//$('#Maker_btnOk').live('click', CONTENTVIEW_MAKER.Maker_dspOK_click);
$
(
'#Maker_btnCancel'
).
live
(
'click'
,
CONTENTVIEW_MAKER
.
Maker_dspCancel_click
);
$
(
"#Maker_btnOk"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MAKER
.
Maker_dspOK_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#Maker_btnCancel').live('click', CONTENTVIEW_MAKER.Maker_dspCancel_click);
$
(
"#Maker_btnCancel"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MAKER
.
Maker_dspCancel_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
CONTENTVIEW_MAKER
.
Maker_SetDefaultValue
();
CONTENTVIEW_MAKER
.
Maker_SetDefaultValue
();
$
(
'#marker-small-text'
).
live
(
'click'
,
CONTENTVIEW_MAKER
.
markerSmallTextClick
);
//$('#marker-small-text').live('click', CONTENTVIEW_MAKER.markerSmallTextClick);
$
(
'#marker-medium-text'
).
live
(
'click'
,
CONTENTVIEW_MAKER
.
markerMediumTextClick
);
$
(
"#marker-small-text"
).
on
({
$
(
'#marker-large-text'
).
live
(
'click'
,
CONTENTVIEW_MAKER
.
markerLargeTextClick
);
'click touchend'
:
function
(
ev
){
$
(
'#marker-oversize-text'
).
live
(
'click'
,
CONTENTVIEW_MAKER
.
markerOversizeTextClick
);
CONTENTVIEW_MAKER
.
markerSmallTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#marker-medium-text').live('click', CONTENTVIEW_MAKER.markerMediumTextClick);
$
(
"#marker-medium-text"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MAKER
.
markerMediumTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#marker-large-text').live('click', CONTENTVIEW_MAKER.markerLargeTextClick);
$
(
"#marker-large-text"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MAKER
.
markerLargeTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#marker-oversize-text').live('click', CONTENTVIEW_MAKER.markerOversizeTextClick);
$
(
"#marker-oversize-text"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MAKER
.
markerOversizeTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#dlgMaker .colorpicker').live('click', CONTENTVIEW_MAKER.Maker_colorPickerClickFunction);
$
(
"#dlgMaker .colorpicker"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MAKER
.
Maker_colorPickerClickFunction
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#dlgMaker .colorpicker'
).
live
(
'click'
,
CONTENTVIEW_MAKER
.
Maker_colorPickerClickFunction
);
};
};
CONTENTVIEW_MAKER
.
markerSmallTextClick
=
function
(){
CONTENTVIEW_MAKER
.
markerSmallTextClick
=
function
(){
...
...
abvw/js/contentview_Marking.js
View file @
16256f34
...
@@ -459,20 +459,151 @@ CONTENTVIEW_MARKING.ShowMarking = function() {
...
@@ -459,20 +459,151 @@ CONTENTVIEW_MARKING.ShowMarking = function() {
// Setting dialog
// Setting dialog
$
(
function
()
{
$
(
function
()
{
$
(
"#dlgMarking_dspSave"
).
click
(
CONTENTVIEW_MARKING
.
dlgMarking_dspSave_click
);
//$("#dlgMarking_dspSave").click(CONTENTVIEW_MARKING.dlgMarking_dspSave_click);
$
(
"#dlgMarking_dspCancel"
).
click
(
CONTENTVIEW_MARKING
.
dlgMarking_dspCancel_click
);
$
(
"#dlgMarking_dspSave"
).
on
({
$
(
"#dlgMarking_dspPgClear"
).
click
(
CONTENTVIEW_MARKING
.
dlgMarking_dspPgClear_click
);
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MARKING
.
dlgMarking_dspSave_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_dspCancel").click(CONTENTVIEW_MARKING.dlgMarking_dspCancel_click);
$
(
"#dlgMarking_dspCancel"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MARKING
.
dlgMarking_dspCancel_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_dspPgClear").click(CONTENTVIEW_MARKING.dlgMarking_dspPgClear_click);
$
(
"#dlgMarking_dspPgClear"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MARKING
.
dlgMarking_dspPgClear_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
// Icons
// Icons
$
(
"#dlgMarking_imgMin"
).
click
(
CONTENTVIEW_MARKING
.
dlgMarking_imgMin_click
);
//$("#dlgMarking_imgMin").click(CONTENTVIEW_MARKING.dlgMarking_imgMin_click);
$
(
"#dlgMarking_imgMax"
).
click
(
CONTENTVIEW_MARKING
.
dlgMarking_imgMax_click
);
$
(
"#dlgMarking_imgMin"
).
on
({
$
(
"#dlgMarking_imgClose"
).
click
(
CONTENTVIEW_MARKING
.
dlgMarking_imgClose_click
);
'click touchend'
:
function
(
ev
){
$
(
"#dlgMarking_imgPen"
).
click
(
CONTENTVIEW_MARKING
.
dlgMarking_imgPen_click
);
CONTENTVIEW_MARKING
.
dlgMarking_imgMin_click
(
ev
);
$
(
"#dlgMarking_imgPenOption"
).
click
(
CONTENTVIEW_MARKING
.
dlgMarking_imgPenOption_click
);
return
false
;
$
(
"#dlgMarking_imgMaker"
).
click
(
CONTENTVIEW_MARKING
.
dlgMarking_imgMaker_click
);
},
$
(
"#dlgMarking_imgMakerOption"
).
click
(
CONTENTVIEW_MARKING
.
dlgMarking_imgMakerOption_click
);
'touchstart touchmove'
:
function
(){
$
(
"#dlgMarking_imgEraser"
).
click
(
CONTENTVIEW_MARKING
.
dlgMarking_imgEraser_click
);
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
$
(
"#dlgMarking_imgEraserOption"
).
click
(
CONTENTVIEW_MARKING
.
dlgMarking_imgEraserOption_click
);
return
false
;
}
});
//$("#dlgMarking_imgMax").click(CONTENTVIEW_MARKING.dlgMarking_imgMax_click);
$
(
"#dlgMarking_imgMax"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MARKING
.
dlgMarking_imgMax_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgClose").click(CONTENTVIEW_MARKING.dlgMarking_imgClose_click);
$
(
"#dlgMarking_imgClose"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MARKING
.
dlgMarking_imgClose_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgPen").click(CONTENTVIEW_MARKING.dlgMarking_imgPen_click);
$
(
"#dlgMarking_imgPen"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MARKING
.
dlgMarking_imgPen_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgPenOption").click(CONTENTVIEW_MARKING.dlgMarking_imgPenOption_click);
$
(
"#dlgMarking_imgPenOption"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MARKING
.
dlgMarking_imgPenOption_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgMaker").click(CONTENTVIEW_MARKING.dlgMarking_imgMaker_click);
$
(
"#dlgMarking_imgMaker"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MARKING
.
dlgMarking_imgMaker_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgMakerOption").click(CONTENTVIEW_MARKING.dlgMarking_imgMakerOption_click);
$
(
"#dlgMarking_imgMakerOption"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MARKING
.
dlgMarking_imgMakerOption_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgEraser").click(CONTENTVIEW_MARKING.dlgMarking_imgEraser_click);
$
(
"#dlgMarking_imgEraser"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MARKING
.
dlgMarking_imgEraser_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgEraserOption").click(CONTENTVIEW_MARKING.dlgMarking_imgEraserOption_click);
$
(
"#dlgMarking_imgEraserOption"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MARKING
.
dlgMarking_imgEraserOption_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
/*
/*
$('#dlgMarking').dialog({
$('#dlgMarking').dialog({
autoOpen: false,
autoOpen: false,
...
...
abvw/js/contentview_Memo.js
View file @
16256f34
...
@@ -39,7 +39,18 @@ CONTENTVIEW_MEMO.handleMemoEventFunction = function(){
...
@@ -39,7 +39,18 @@ CONTENTVIEW_MEMO.handleMemoEventFunction = function(){
$
(
'#Memo_btnSave'
).
click
(
CONTENTVIEW_MEMO
.
buttonSaveFunction
);
$
(
'#Memo_btnSave'
).
click
(
CONTENTVIEW_MEMO
.
buttonSaveFunction
);
$
(
'#Memo_btnDel'
).
click
(
CONTENTVIEW_MEMO
.
MemoDelFunction
);
$
(
'#Memo_btnDel'
).
click
(
CONTENTVIEW_MEMO
.
MemoDelFunction
);
$
(
'#Memo_btnCancel'
).
click
(
CONTENTVIEW_MEMO
.
MemoCancelFunction
);
$
(
'#Memo_btnCancel'
).
click
(
CONTENTVIEW_MEMO
.
MemoCancelFunction
);
$
(
'.delete'
).
click
(
CONTENTVIEW_MEMO
.
MemoCancelFunction
);
//$('.delete').click(CONTENTVIEW_MEMO.MemoCancelFunction);
$
(
"#memoClosing2"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_MEMO
.
MemoCancelFunction
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
};
};
CONTENTVIEW_MEMO
.
memoSaveFunction
=
function
(){
CONTENTVIEW_MEMO
.
memoSaveFunction
=
function
(){
...
...
abvw/js/contentview_Pen.js
View file @
16256f34
...
@@ -54,17 +54,94 @@ CONTENTVIEW_PEN.Pen_handleColorPickerEvent = function() {
...
@@ -54,17 +54,94 @@ CONTENTVIEW_PEN.Pen_handleColorPickerEvent = function() {
$
(
'#penColorwrapper'
).
bind
(
'mouseleave'
,
CONTENTVIEW_PEN
.
Pen_colorWrapperMouseLeaveFunction
);
$
(
'#penColorwrapper'
).
bind
(
'mouseleave'
,
CONTENTVIEW_PEN
.
Pen_colorWrapperMouseLeaveFunction
);
}
}
$
(
'#Pen_btnOk'
).
live
(
'click'
,
CONTENTVIEW_PEN
.
Pen_dspOK_click
);
//$('#Pen_btnOk').live('click', CONTENTVIEW_PEN.Pen_dspOK_click);
$
(
'#Pen_btnCancel'
).
live
(
'click'
,
CONTENTVIEW_PEN
.
Pen_dspCancel_click
);
$
(
"#Pen_btnOk"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_PEN
.
Pen_dspOK_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#Pen_btnCancel').live('click', CONTENTVIEW_PEN.Pen_dspCancel_click);
$
(
"#Pen_btnCancel"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_PEN
.
Pen_dspCancel_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
CONTENTVIEW_PEN
.
Pen_SetDefaultValue
();
CONTENTVIEW_PEN
.
Pen_SetDefaultValue
();
$
(
'#pen-small-text'
).
live
(
'click'
,
CONTENTVIEW_PEN
.
penSmallTextClick
);
//$('#pen-small-text').live('click', CONTENTVIEW_PEN.penSmallTextClick);
$
(
'#pen-medium-text'
).
live
(
'click'
,
CONTENTVIEW_PEN
.
penMediumTextClick
);
$
(
"#pen-small-text"
).
on
({
$
(
'#pen-large-text'
).
live
(
'click'
,
CONTENTVIEW_PEN
.
penLargeTextClick
);
'click touchend'
:
function
(
ev
){
$
(
'#pen-oversize-text'
).
live
(
'click'
,
CONTENTVIEW_PEN
.
penOversizeTextClick
);
CONTENTVIEW_PEN
.
penSmallTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#pen-medium-text').live('click', CONTENTVIEW_PEN.penMediumTextClick);
$
(
"#pen-medium-text"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_PEN
.
penMediumTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#pen-large-text').live('click', CONTENTVIEW_PEN.penLargeTextClick);
$
(
"#pen-large-text"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_PEN
.
penLargeTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#pen-oversize-text').live('click', CONTENTVIEW_PEN.penOversizeTextClick);
$
(
"#pen-oversize-text"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_PEN
.
penOversizeTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#dlgPen .colorpicker').live('click', CONTENTVIEW_PEN.Pen_colorPickerClickFunction);
$
(
"#dlgPen .colorpicker"
).
on
({
'click touchend'
:
function
(
ev
){
CONTENTVIEW_PEN
.
Pen_colorPickerClickFunction
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#dlgPen .colorpicker'
).
live
(
'click'
,
CONTENTVIEW_PEN
.
Pen_colorPickerClickFunction
);
};
};
CONTENTVIEW_PEN
.
penSmallTextClick
=
function
(){
CONTENTVIEW_PEN
.
penSmallTextClick
=
function
(){
...
...
abvw/js/home.js
View file @
16256f34
...
@@ -2313,7 +2313,7 @@ HOME.syncMarkingContent = function() {
...
@@ -2313,7 +2313,7 @@ HOME.syncMarkingContent = function() {
HOME
.
syncContentData
=
function
()
{
HOME
.
syncContentData
=
function
()
{
if
(
ClientData
.
common_contentDataChkFlg
()
==
'true'
)
{
if
(
ClientData
.
common_contentDataChkFlg
()
==
'true'
)
{
HOME
.
syncReadingContent
();
//HOME.syncReadingContent(); //#14290 履歴画面でも取得するので省略
HOME
.
syncBookmarkContent
();
HOME
.
syncBookmarkContent
();
HOME
.
syncMemoContent
();
HOME
.
syncMemoContent
();
HOME
.
syncMarkingContent
();
HOME
.
syncMarkingContent
();
...
...
abvw/js/login.js
View file @
16256f34
...
@@ -180,7 +180,7 @@ LOGIN.processLogin = function() {
...
@@ -180,7 +180,7 @@ LOGIN.processLogin = function() {
var
paramContentID
=
COMMON
.
getUrlParam
(
'cid'
,
''
);
var
paramContentID
=
COMMON
.
getUrlParam
(
'cid'
,
''
);
AVWEB
.
avwCmsApiWithUrl
(
apiLoginUrl
,
null
,
'webClientLogin'
,
'GET'
,
params
,
function
(
data
)
{
AVWEB
.
avwCmsApiWithUrl
(
apiLoginUrl
,
null
,
'webClientLogin'
,
'GET'
,
params
,
function
(
data
)
{
//
requirePasswordChange = data.requirePasswordChange;
requirePasswordChange
=
data
.
requirePasswordChange
;
LOGIN
.
userinfo_sid
=
data
.
sid
;
LOGIN
.
userinfo_sid
=
data
.
sid
;
LOGIN
.
userInfo_userName
=
data
.
userName
;
LOGIN
.
userInfo_userName
=
data
.
userName
;
LOGIN
.
optionList
=
data
.
serviceOptionList
;
LOGIN
.
optionList
=
data
.
serviceOptionList
;
...
...
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