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
4cd95f13
Commit
4cd95f13
authored
Sep 24, 2013
by
Vo Duc Thang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
9/24 リリース
https://redmine.agentec.jp/redmine/issues/9345#note-7
parent
b80957f4
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
322 additions
and
121 deletions
+322
-121
abvw/bookmark.html
+2
-2
abvw/common/js/common.js
+1
-1
abvw/common/js/scrolltopcontrol.js
+1
-1
abvw/common/json/lang/lang-en.json
+3
-2
abvw/common/json/lang/lang-ja.json
+3
-2
abvw/common/json/lang/lang-ko.json
+3
-2
abvw/common/json/sys/conf.json
+1
-1
abvw/contentsearch.html
+2
-2
abvw/contentview.html
+12
-0
abvw/css/layout/setting.css
+4
-2
abvw/css/theme/viewer.css
+3
-2
abvw/history.html
+1
-1
abvw/home.html
+1
-2
abvw/js/Limit_Access_Content.js
+3
-0
abvw/js/contentview.js
+92
-15
abvw/js/contentview_CreateObjects.js
+108
-43
abvw/js/contentview_Events.js
+26
-19
abvw/js/contentview_GetData.js
+4
-0
abvw/js/contentview_InitObjects.js
+25
-12
abvw/js/header.js
+25
-10
abvw/settings.html
+1
-1
login.html
+1
-1
No files found.
abvw/bookmark.html
View file @
4cd95f13
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
<!--<a class="delete lang" id="dspDelete" lang="dspDelete">削除</a>-->
<!--<a class="delete lang" id="dspDelete" lang="dspDelete">削除</a>-->
</section>
</section>
<div
class=
"shioriNotExist lang"
id=
"msgShioriNotExists"
lang=
"msgShioriNotExists"
></div>
<div
style=
"display:none;"
class=
"shioriNotExist lang"
id=
"msgShioriNotExists"
lang=
"msgShioriNotExists"
></div>
<section
id=
"bottom"
>
<section
id=
"bottom"
>
<a
class=
"delete lang"
id=
"dspDelete1"
lang=
"dspDelete"
>
削除
</a>
<a
class=
"delete lang"
id=
"dspDelete1"
lang=
"dspDelete"
>
削除
</a>
</section>
</section>
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
<footer>
<footer>
<div
class=
"border"
>
<div
class=
"border"
>
<div
class=
"cnt_footer"
>
<div
class=
"cnt_footer"
>
COPYRIGHT © 2012
株式会社Agentec
ALL RIGHTS RESERVED.
COPYRIGHT © 2012
AGENTEC Co., Ltd.
ALL RIGHTS RESERVED.
</div>
</div>
</div>
</div>
</footer>
</footer>
...
...
abvw/common/js/common.js
View file @
4cd95f13
...
@@ -2519,7 +2519,7 @@ function convertToDate(input) {
...
@@ -2519,7 +2519,7 @@ function convertToDate(input) {
dateResult
=
new
Date
();
dateResult
=
new
Date
();
dateResult
.
setYear
(
nYear
);
dateResult
.
setYear
(
nYear
);
dateResult
.
setMonth
(
nMonth
);
dateResult
.
setMonth
(
nMonth
-
1
);
dateResult
.
setDate
(
nDay
);
dateResult
.
setDate
(
nDay
);
dateResult
.
setHours
(
nHour
);
dateResult
.
setHours
(
nHour
);
dateResult
.
setMinutes
(
nMinute
);
dateResult
.
setMinutes
(
nMinute
);
...
...
abvw/common/js/scrolltopcontrol.js
View file @
4cd95f13
...
@@ -56,7 +56,7 @@ var scrolltotop={
...
@@ -56,7 +56,7 @@ var scrolltotop={
mainobj
.
$body
=
(
window
.
opera
)?
(
document
.
compatMode
==
"CSS1Compat"
?
$
(
'html'
)
:
$
(
'body'
))
:
$
(
'html,body'
)
mainobj
.
$body
=
(
window
.
opera
)?
(
document
.
compatMode
==
"CSS1Compat"
?
$
(
'html'
)
:
$
(
'body'
))
:
$
(
'html,body'
)
mainobj
.
$control
=
$
(
'<div id="topcontrol">'
+
mainobj
.
controlHTML
+
'</div>'
)
mainobj
.
$control
=
$
(
'<div id="topcontrol">'
+
mainobj
.
controlHTML
+
'</div>'
)
.
css
({
position
:
mainobj
.
cssfixedsupport
?
'fixed'
:
'absolute'
,
bottom
:
mainobj
.
controlattrs
.
offsety
,
right
:
mainobj
.
controlattrs
.
offsetx
,
opacity
:
0
,
cursor
:
'pointer'
})
.
css
({
position
:
mainobj
.
cssfixedsupport
?
'fixed'
:
'absolute'
,
bottom
:
mainobj
.
controlattrs
.
offsety
,
right
:
mainobj
.
controlattrs
.
offsetx
,
opacity
:
0
,
cursor
:
'pointer'
})
.
attr
({
title
:
'Scroll Back to Top'
})
//
.attr({title:'Scroll Back to Top'})
.
click
(
function
(){
mainobj
.
scrollup
();
return
false
})
.
click
(
function
(){
mainobj
.
scrollup
();
return
false
})
.
appendTo
(
'body'
)
.
appendTo
(
'body'
)
if
(
document
.
all
&&
!
window
.
XMLHttpRequest
&&
mainobj
.
$control
.
text
()
!=
''
)
//loose check for IE6 and below, plus whether control contains any text
if
(
document
.
all
&&
!
window
.
XMLHttpRequest
&&
mainobj
.
$control
.
text
()
!=
''
)
//loose check for IE6 and below, plus whether control contains any text
...
...
abvw/common/json/lang/lang-en.json
View file @
4cd95f13
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"Logout"
,
"dspBkCancel"
:
"Logout"
,
"txtSearchResult"
:
"Result"
,
"txtSearchResult"
:
"Result"
,
"dspHome"
:
"Home"
,
"dspHome"
:
"Home"
,
"txtLoginUser"
:
"(Ver.2013092
0
)User:"
,
"txtLoginUser"
:
"(Ver.2013092
4
)User:"
,
"txtAll"
:
"All"
,
"txtAll"
:
"All"
,
"txtMkgSize"
:
"Size"
,
"txtMkgSize"
:
"Size"
,
"txtMkgS"
:
"S"
,
"txtMkgS"
:
"S"
,
...
@@ -146,5 +146,6 @@
...
@@ -146,5 +146,6 @@
"txtNoTransparent"
:
"Opacity"
,
"txtNoTransparent"
:
"Opacity"
,
"txtContentPWTitle"
:
"Password Confirm"
,
"txtContentPWTitle"
:
"Password Confirm"
,
"txtContentPWMsg"
:
"Please input password to view this content."
,
"txtContentPWMsg"
:
"Please input password to view this content."
,
"txtContentWarning"
:
"Waring"
"txtContentWarning"
:
"Warning"
,
"txtMediaAutoPlayWarning"
:
"Media will be played automatically."
}
}
abvw/common/json/lang/lang-ja.json
View file @
4cd95f13
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"バックアップせずにログアウト"
,
"dspBkCancel"
:
"バックアップせずにログアウト"
,
"txtSearchResult"
:
"検索結果"
,
"txtSearchResult"
:
"検索結果"
,
"dspHome"
:
"ホーム"
,
"dspHome"
:
"ホーム"
,
"txtLoginUser"
:
"(Ver.2013092
0
)ログイン中:"
,
"txtLoginUser"
:
"(Ver.2013092
4
)ログイン中:"
,
"txtAll"
:
"すべて"
,
"txtAll"
:
"すべて"
,
"txtMkgSize"
:
"太さ"
,
"txtMkgSize"
:
"太さ"
,
"txtMkgS"
:
"小"
,
"txtMkgS"
:
"小"
,
...
@@ -146,5 +146,6 @@
...
@@ -146,5 +146,6 @@
"txtNoTransparent"
:
"不透明"
,
"txtNoTransparent"
:
"不透明"
,
"txtContentPWTitle"
:
"パスワードの確認"
,
"txtContentPWTitle"
:
"パスワードの確認"
,
"txtContentPWMsg"
:
"閲覧するにはパスワードの入力が必要です。"
,
"txtContentPWMsg"
:
"閲覧するにはパスワードの入力が必要です。"
,
"txtContentWarning"
:
"警告"
"txtContentWarning"
:
"警告"
,
"txtMediaAutoPlayWarning"
:
"メディアは自動再生されます。"
}
}
abvw/common/json/lang/lang-ko.json
View file @
4cd95f13
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"로그아웃"
,
"dspBkCancel"
:
"로그아웃"
,
"txtSearchResult"
:
"검색 결과"
,
"txtSearchResult"
:
"검색 결과"
,
"dspHome"
:
"홈"
,
"dspHome"
:
"홈"
,
"txtLoginUser"
:
"(Ver.2013092
0
)로그인 중:"
,
"txtLoginUser"
:
"(Ver.2013092
4
)로그인 중:"
,
"txtAll"
:
"전체"
,
"txtAll"
:
"전체"
,
"txtMkgSize"
:
"두께"
,
"txtMkgSize"
:
"두께"
,
"txtMkgS"
:
"소"
,
"txtMkgS"
:
"소"
,
...
@@ -146,5 +146,6 @@
...
@@ -146,5 +146,6 @@
"txtNoTransparent"
:
"KO_不透明"
,
"txtNoTransparent"
:
"KO_不透明"
,
"txtContentPWTitle"
:
"KO_パスワードの確認"
,
"txtContentPWTitle"
:
"KO_パスワードの確認"
,
"txtContentPWMsg"
:
"KO_閲覧するにはパスワードの入力が必要です。"
,
"txtContentPWMsg"
:
"KO_閲覧するにはパスワードの入力が必要です。"
,
"txtContentWarning"
:
"KO_警告"
"txtContentWarning"
:
"KO_警告"
,
"txtMediaAutoPlayWarning"
:
"KO_メディアは自動再生されます。"
}
}
abvw/common/json/sys/conf.json
View file @
4cd95f13
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"bookListCount"
:
15
,
"bookListCount"
:
15
,
"screenlockTimeDefault"
:
30
,
"screenlockTimeDefault"
:
30
,
"pushPageCount"
:
5
,
"pushPageCount"
:
5
,
"pushTimePeriod"
:
6
,
"pushTimePeriod"
:
6
0
,
"debug"
:
true
,
"debug"
:
true
,
"loginPage"
:
"index.html"
,
"loginPage"
:
"index.html"
,
"anonymousLoginFlg"
:
false
,
"anonymousLoginFlg"
:
false
,
...
...
abvw/contentsearch.html
View file @
4cd95f13
...
@@ -189,7 +189,7 @@
...
@@ -189,7 +189,7 @@
<div
id=
"content-grid"
>
<div
id=
"content-grid"
>
</div>
</div>
<div
id=
"msgSearchNotExist"
class=
"lang"
lang=
"msgSearchNotExist"
>
</div>
<div
style=
"display:none;"
id=
"msgSearchNotExist"
class=
"lang"
lang=
"msgSearchNotExist"
>
</div>
<br/>
<br/>
<section
style=
"height:110px; width:100%;"
>
<section
style=
"height:110px; width:100%;"
>
<a
class=
"btn_bott"
id=
"control-nextrecord"
style=
"visibility:hidden"
>
次の15件を表示する >>
</a>
<a
class=
"btn_bott"
id=
"control-nextrecord"
style=
"visibility:hidden"
>
次の15件を表示する >>
</a>
...
@@ -218,7 +218,7 @@
...
@@ -218,7 +218,7 @@
<footer>
<footer>
<div
class=
"border"
>
<div
class=
"border"
>
<div
class=
"cnt_footer"
>
<div
class=
"cnt_footer"
>
COPYRIGHT © 2012
株式会社Agentec
ALL RIGHTS RESERVED.
COPYRIGHT © 2012
AGENTEC Co., Ltd.
ALL RIGHTS RESERVED.
</div>
</div>
</div>
</div>
</footer>
</footer>
...
...
abvw/contentview.html
View file @
4cd95f13
...
@@ -435,6 +435,18 @@
...
@@ -435,6 +435,18 @@
<p
class=
"message lang"
lang=
"msgBGMPlayConfirm"
id=
"txtAudio_page"
>
このコンテンツはBGMが流れるようになっています。BGMを再生してもよろしいですか?
</p>
<p
class=
"message lang"
lang=
"msgBGMPlayConfirm"
id=
"txtAudio_page"
>
このコンテンツはBGMが流れるようになっています。BGMを再生してもよろしいですか?
</p>
<p
class=
"deletebtn"
><a
id=
"bgmConfirm_dspOK_page"
lang=
"dspOK"
class=
"ok_audio lang"
>
OK
</a></p>
<p
class=
"deletebtn"
><a
id=
"bgmConfirm_dspOK_page"
lang=
"dspOK"
class=
"ok_audio lang"
>
OK
</a></p>
</section>
</section>
<section
id=
"contentVideoConfirm"
class=
"sectionDeleteConfirm"
>
<h1
class=
"lang"
lang=
""
>
</h1>
<p
class=
"message lang"
lang=
"txtMediaAutoPlayWarning"
id=
"txtContentVideo"
>
Confirm Play Video
</p>
<p
class=
"deletebtn"
><a
id=
"contentVideoConfirm_OK"
lang=
"dspOK"
class=
"ok_audio lang"
>
OK
</a></p>
</section>
<section
id=
"contentAudioConfirm"
class=
"sectionDeleteConfirm"
>
<h1
class=
"lang"
lang=
""
>
</h1>
<p
class=
"message lang"
lang=
"txtMediaAutoPlayWarning"
id=
"txtContentAudio"
>
Confirm Play Audio
</p>
<p
class=
"deletebtn"
><a
id=
"contentAudioConfirm_OK"
lang=
"dspOK"
class=
"ok_audio lang"
>
OK
</a></p>
</section>
</div>
</div>
<iframe
style=
"height:0px;width:0px;visibility:hidden"
src=
"about:blank"
>
<iframe
style=
"height:0px;width:0px;visibility:hidden"
src=
"about:blank"
>
this frame prevents back forward cache
this frame prevents back forward cache
...
...
abvw/css/layout/setting.css
View file @
4cd95f13
...
@@ -98,12 +98,14 @@ article{
...
@@ -98,12 +98,14 @@ article{
text-align
:
left
;
text-align
:
left
;
}
}
.sectionSetting
div
#user_info
dl
dt
,
.sectionSetting
div
#user_info
dl
dd
{
.sectionSetting
div
#user_info
dl
dt
,
.sectionSetting
div
#user_info
dl
dd
{
padding
:
13px
20px
;
padding
:
0
20px
;
margin
:
0
;
margin
:
0
;
height
:
50px
;
line-height
:
50px
;
}
}
.sectionSetting
div
#user_info
dl
dt
{
.sectionSetting
div
#user_info
dl
dt
{
width
:
160px
;
width
:
160px
;
float
:
left
;
float
:
left
;
}
}
.sectionSetting
div
#user_info
dl
dd
{
.sectionSetting
div
#user_info
dl
dd
{
width
:
720px
;
width
:
720px
;
...
...
abvw/css/theme/viewer.css
View file @
4cd95f13
...
@@ -1397,4 +1397,5 @@ div .ui-slider-range, .ui-widget-header, .ui-slider-range-max {
...
@@ -1397,4 +1397,5 @@ div .ui-slider-range, .ui-widget-header, .ui-slider-range-max {
background-position
:
-414px
-92px
;
background-position
:
-414px
-92px
;
}
}
ul
#divSearchResult
li
:hover
{
background
:
#f4f4f4
;
cursor
:
pointer
;}
ul
#divSearchResult
li
:hover
{
background
:
#f4f4f4
;
cursor
:
pointer
;}
ul
#divListBookmark
li
:hover
{
background
:
#f4f4f4
;
cursor
:
pointer
;}
ul
#divListBookmark
li
:hover
{
background
:
#f4f4f4
;
cursor
:
pointer
;}
\ No newline at end of file
#divListIndex
span
:hover
{
color
:
red
;
cursor
:
pointer
}
\ No newline at end of file
abvw/history.html
View file @
4cd95f13
...
@@ -187,7 +187,7 @@
...
@@ -187,7 +187,7 @@
<footer>
<footer>
<div
class=
"border"
>
<div
class=
"border"
>
<div
class=
"cnt_footer"
>
<div
class=
"cnt_footer"
>
COPYRIGHT © 2012
株式会社Agentec
ALL RIGHTS RESERVED.
COPYRIGHT © 2012
AGENTEC Co., Ltd.
ALL RIGHTS RESERVED.
</div>
</div>
</div>
</div>
</footer>
</footer>
...
...
abvw/home.html
View file @
4cd95f13
...
@@ -229,11 +229,10 @@
...
@@ -229,11 +229,10 @@
<div
id=
"book_list"
></div>
<div
id=
"book_list"
></div>
</section>
</section>
</article>
</article>
<footer>
<footer>
<div
class=
"border"
>
<div
class=
"border"
>
<div
class=
"cnt_footer"
>
<div
class=
"cnt_footer"
>
COPYRIGHT © 2012
株式会社Agentec ALL RIGHTS RESERVED.
COPYRIGHT © 2012
AGENTEC Co., Ltd. ALL RIGHTS RESERVED.
</div>
</div>
</div>
</div>
</footer>
</footer>
...
...
abvw/js/Limit_Access_Content.js
View file @
4cd95f13
...
@@ -84,6 +84,9 @@ function checkLimitContent(contentId, func,isNotUnlockScreen) {
...
@@ -84,6 +84,9 @@ function checkLimitContent(contentId, func,isNotUnlockScreen) {
//reset input password
//reset input password
$
(
'#limit_level2 .message input'
).
val
(
''
);
$
(
'#limit_level2 .message input'
).
val
(
''
);
// hide error message
$
(
'#lblMessageLimitError'
).
hide
();
// show dialog
// show dialog
$
(
'#limit_level2'
).
show
().
center
();
$
(
'#limit_level2'
).
show
().
center
();
...
...
abvw/js/contentview.js
View file @
4cd95f13
...
@@ -1056,7 +1056,7 @@ function changePage(page_index) {
...
@@ -1056,7 +1056,7 @@ function changePage(page_index) {
.
setPageObjects
(
pageObjects
);
.
setPageObjects
(
pageObjects
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
//
$('#divImageLoading').css('display', 'none');
var
tran
=
new
Transition
();
var
tran
=
new
Transition
();
tran
.
flipToPage
(
page_index
);
tran
.
flipToPage
(
page_index
);
...
@@ -1914,6 +1914,8 @@ function resizeScreen() {
...
@@ -1914,6 +1914,8 @@ function resizeScreen() {
resizeAnket
();
resizeAnket
();
};
};
var
isPendingContentBGM
=
false
;
function
changePageWithoutSlide
(
pageMove
)
{
function
changePageWithoutSlide
(
pageMove
)
{
disableAllControl
();
disableAllControl
();
var
isExistBGMPageContent
=
false
;
var
isExistBGMPageContent
=
false
;
...
@@ -1932,6 +1934,19 @@ function changePageWithoutSlide(pageMove) {
...
@@ -1932,6 +1934,19 @@ function changePageWithoutSlide(pageMove) {
}
}
}
}
}
}
//START TRB00069
else
{
getPageObjectsByPageIndex
(
pageObjectsData
,
0
);
for
(
var
nIndex
=
0
;
nIndex
<
pageObjects
.
length
;
nIndex
++
)
{
if
(
pageObjects
[
nIndex
].
mediaType
==
'3'
&&
pageObjects
[
nIndex
].
playType
==
'1'
)
{
isPendingContentBGM
=
true
;
if
(
pageMove
>
0
){
createAudio
(
pageObjects
[
nIndex
].
audioFile
,
pageObjects
[
nIndex
].
playType
);
}
}
}
}
//END TRB00069
$
(
'#divImageLoading'
).
css
(
'display'
,
'block'
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'block'
);
...
@@ -2107,7 +2122,7 @@ function handleForContentTypeVideo(resourceUrl){
...
@@ -2107,7 +2122,7 @@ function handleForContentTypeVideo(resourceUrl){
$container
.
html
(
$container
.
html
(
'<h1>'
'<h1>'
+
'</h1>'
+
'</h1>'
+
'<video loop="true" controls style="position: absolute; width: 100%; height: 90%; bottom: 1% ">'
+
'<video
autoplay="true"
loop="true" controls style="position: absolute; width: 100%; height: 90%; bottom: 1% ">'
+
' <source src="'
+
resourceUrl
+
'" type="video/mp4"> '
+
' <source src="'
+
resourceUrl
+
'" type="video/mp4"> '
+
'</video>'
+
'</video>'
);
);
...
@@ -2116,15 +2131,35 @@ function handleForContentTypeVideo(resourceUrl){
...
@@ -2116,15 +2131,35 @@ function handleForContentTypeVideo(resourceUrl){
$container
.
html
(
$container
.
html
(
'<h1>'
'<h1>'
+
'</h1>'
+
'</h1>'
+
'<video controls style="position: absolute; width: 100%; height: 90%; bottom: 1% ">'
+
'<video
autoplay="true"
controls style="position: absolute; width: 100%; height: 90%; bottom: 1% ">'
+
' <source src="'
+
resourceUrl
+
'" type="video/mp4"> '
+
' <source src="'
+
resourceUrl
+
'" type="video/mp4"> '
+
'</video>'
+
'</video>'
);
);
}
}
//START TRB00068
$container
.
show
();
// Check to play Video on ipad
if
(
avwUserEnvObj
.
os
==
"ipad"
)
{
// Show confim message to play background music
$
(
"#contentVideoConfirm"
).
css
(
'z-index'
,
999
);
$
(
"#contentVideoConfirm_OK"
).
unbind
(
'click'
);
$
(
"#contentVideoConfirm_OK"
).
click
(
function
()
{
$
(
"#contentVideoConfirm"
).
hide
();
isShowVideoContent
=
true
;
$container
.
show
();
$
(
"#dialog"
).
find
(
'video'
).
load
();
$
(
"#dialog"
).
find
(
'video'
).
play
();
});
$
(
"#contentVideoConfirm"
).
show
();
$
(
"#contentVideoConfirm"
).
center
();
}
else
{
$container
.
show
();
}
//END TRB00068
};
};
var
isShowVideoContent
=
false
;
//handle for content type = music
//handle for content type = music
function
handleForContentTypeMusic
(
resourceUrl
){
function
handleForContentTypeMusic
(
resourceUrl
){
...
@@ -2136,13 +2171,12 @@ function handleForContentTypeMusic(resourceUrl){
...
@@ -2136,13 +2171,12 @@ function handleForContentTypeMusic(resourceUrl){
$container
.
css
(
'background'
,
'url(./img/iPad_music.png) center center no-repeat'
);
$container
.
css
(
'background'
,
'url(./img/iPad_music.png) center center no-repeat'
);
$container
.
css
(
'background-color'
,
'white'
);
$container
.
css
(
'background-color'
,
'white'
);
//$container.css('background-attachment', 'fixed');
//$container.css('background-attachment', 'fixed');
if
(
ClientData
.
userOpt_musicMode
()
==
"1"
)
{
if
(
ClientData
.
userOpt_musicMode
()
==
"1"
)
{
$container
.
html
(
$container
.
html
(
'<h1>'
'<h1>'
+
'</h1>'
+
'</h1>'
+
'<audio loop="true" controls style="position: absolute; width: 100%; bottom: 1%;">'
+
'<audio
autoplay="true"
loop="true" controls style="position: absolute; width: 100%; bottom: 1%;">'
+
' <source src="'
+
resourceUrl
+
'" type="audio/mpeg"> '
+
' <source src="'
+
resourceUrl
+
'" type="audio/mpeg"> '
+
'</audio>'
+
'</audio>'
);
);
...
@@ -2151,17 +2185,34 @@ function handleForContentTypeMusic(resourceUrl){
...
@@ -2151,17 +2185,34 @@ function handleForContentTypeMusic(resourceUrl){
$container
.
html
(
$container
.
html
(
'<h1>'
'<h1>'
+
'</h1>'
+
'</h1>'
+
'<audio controls style="position: absolute; width: 100%; bottom: 1%;">'
+
'<audio
autoplay="true"
controls style="position: absolute; width: 100%; bottom: 1%;">'
+
' <source src="'
+
resourceUrl
+
'" type="audio/mpeg"> '
+
' <source src="'
+
resourceUrl
+
'" type="audio/mpeg"> '
+
'</audio>'
+
'</audio>'
);
);
}
}
if
(
avwUserEnvObj
.
browser
==
'firefox'
){
if
(
avwUserEnvObj
.
browser
==
'firefox'
){
$container
.
find
(
'audio'
).
css
(
'height'
,
'30px'
);
$container
.
find
(
'audio'
).
css
(
'height'
,
'30px'
);
}
}
$container
.
show
();
$container
.
show
();
//START TRB00068
// Check to play BGM on ipad
if
(
avwUserEnvObj
.
os
==
"ipad"
)
{
// Show confim message to play background music
$
(
"#contentAudioConfirm"
).
css
(
'z-index'
,
999
);
$
(
"#contentAudioConfirm_OK"
).
unbind
(
'click'
);
$
(
"#contentAudioConfirm_OK"
).
click
(
function
()
{
$
(
"#contentAudioConfirm"
).
hide
();
$
(
"#dialog"
).
find
(
'audio'
).
load
();
$
(
"#dialog"
).
find
(
'audio'
).
play
();
});
$
(
"#contentAudioConfirm"
).
show
();
$
(
"#contentAudioConfirm"
).
center
();
}
//END TRB00068
};
};
//handle for content type = html
//handle for content type = html
...
@@ -2320,7 +2371,25 @@ function originalScreenForNotPdfType(){
...
@@ -2320,7 +2371,25 @@ function originalScreenForNotPdfType(){
$container
.
css
(
'background-color'
,
'white'
);
$container
.
css
(
'background-color'
,
'white'
);
}
}
$container
.
show
();
//START TRB00068
if
(
avwUserEnvObj
.
os
==
"ipad"
)
{
if
(
contentType
==
ContentTypeKeys
.
Type_Video
){
if
(
isShowVideoContent
){
$container
.
show
();
}
else
{
}
}
else
{
$container
.
show
();
}
}
else
{
$container
.
show
();
}
//END TRB00068
isZoomingContent
=
false
;
isZoomingContent
=
false
;
};
};
...
@@ -2905,7 +2974,7 @@ ContentPage.prototype.drawPage = function (context, opt) {
...
@@ -2905,7 +2974,7 @@ ContentPage.prototype.drawPage = function (context, opt) {
else
{
else
{
nCountObjectLoad
++
;
nCountObjectLoad
++
;
if
(
nCountObjectLoad
==
pageObjects
.
length
)
{
if
(
nCountObjectLoad
==
objPageTemp
.
length
)
{
/* draw marking */
/* draw marking */
drawMarkingOnScreen
(
opt
);
drawMarkingOnScreen
(
opt
);
...
@@ -4139,15 +4208,23 @@ function stopAllAudio() {
...
@@ -4139,15 +4208,23 @@ function stopAllAudio() {
$
(
'#playaudio'
).
children
().
remove
();
$
(
'#playaudio'
).
children
().
remove
();
}
else
{
}
else
{
if
(
document
.
getElementById
(
"play_audio_0"
)
!=
undefined
)
{
if
(
document
.
getElementById
(
"play_audio_0"
)
!=
undefined
)
{
document
.
getElementById
(
"play_audio_0"
).
pause
();
if
(
document
.
getElementById
(
"play_audio_0"
).
played
){
document
.
getElementById
(
"play_audio_0"
).
pause
();
}
}
}
if
(
document
.
getElementById
(
"play_audio_1"
)
!=
undefined
)
{
if
(
document
.
getElementById
(
"play_audio_1"
)
!=
undefined
)
{
document
.
getElementById
(
"play_audio_1"
).
pause
();
if
(
document
.
getElementById
(
"play_audio_1"
).
played
){
document
.
getElementById
(
"play_audio_1"
).
pause
();
}
}
}
if
(
document
.
getElementById
(
"play_audio_2"
)
!=
undefined
)
{
if
(
document
.
getElementById
(
"play_audio_2"
)
!=
undefined
)
{
document
.
getElementById
(
"play_audio_2"
).
pause
();
document
.
getElementById
(
"play_audio_2"
).
pause
();
if
(
document
.
getElementById
(
"play_audio_2"
).
played
){
document
.
getElementById
(
"play_audio_2"
).
pause
();
}
}
}
}
}
};
};
...
...
abvw/js/contentview_CreateObjects.js
View file @
4cd95f13
...
@@ -145,8 +145,17 @@ var webContentType4 = function (id, x, y, w, h, imageUrl, linkKind, destURI, des
...
@@ -145,8 +145,17 @@ var webContentType4 = function (id, x, y, w, h, imageUrl, linkKind, destURI, des
this
.
setup
(
id
,
x
,
y
,
w
,
h
,
imageUrl
);
this
.
setup
(
id
,
x
,
y
,
w
,
h
,
imageUrl
);
this
.
action
=
function
()
{
this
.
action
=
function
()
{
if
(
linkKind
==
"1"
)
{
if
(
linkKind
==
"1"
)
{
window
.
open
(
destURI
,
"_blank"
,
"new window"
);
//START TRB00070
}
else
if
(
linkKind
==
"0"
)
{
window
.
onbeforeunload
=
null
;
//window.open(destURI, "_blank", "new window");
window
.
open
(
destURI
,
"_self"
);
setTimeout
(
function
(){
ToogleLogoutNortice
();},
200
);
//END TRB00070
}
else
if
(
linkKind
==
"0"
)
{
changePage
(
changePageNo
(
destPageNumber
));
changePage
(
changePageNo
(
destPageNumber
));
}
}
};
};
...
@@ -628,8 +637,9 @@ audioType3.prototype = new PageObject();
...
@@ -628,8 +637,9 @@ audioType3.prototype = new PageObject();
var
jumpPage
=
function
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
jumpPage
)
{
var
jumpPage
=
function
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
jumpPage
)
{
this
.
setup
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
null
,
null
);
this
.
setup
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
null
,
null
);
this
.
action
=
function
()
{
this
.
action
=
function
()
{
if
((
Number
(
jumpPage
)
-
1
)
!=
getPageIndex
())
{
if
((
Number
(
jumpPage
)
-
1
)
!=
getPageIndex
())
{
changePage
(
Number
(
jumpPage
)
-
1
);
createLockLayout
(
true
);
changePage
(
Number
(
jumpPage
)
-
1
);
}
}
};
};
};
};
...
@@ -1384,8 +1394,9 @@ Transition.prototype.flipPreviousPage = function () {
...
@@ -1384,8 +1394,9 @@ Transition.prototype.flipPreviousPage = function () {
//Start Functon : No.4 - Editor : Long - Date : 08/09/2013 - Summary :
//Start Functon : No.4 - Editor : Long - Date : 08/09/2013 - Summary :
/* Flip Page Transition */
/* Flip Page Transition */
Transition
.
prototype
.
flipToPage
=
function
(
index
)
{
Transition
.
prototype
.
flipToPage
=
function
(
index
)
{
var
w
=
$
(
'#main'
).
attr
(
'width'
);
var
w
=
$
(
'#main'
).
attr
(
'width'
);
if
(
index
==
getContent
().
pageIndex
)
{
if
(
index
==
getContent
().
pageIndex
)
{
/* init image had draw */
/* init image had draw */
initDisplayMarking
();
initDisplayMarking
();
...
@@ -1443,6 +1454,8 @@ Transition.prototype.flipToPage = function (index) {
...
@@ -1443,6 +1454,8 @@ Transition.prototype.flipToPage = function (index) {
/* set end log */
/* set end log */
SetEndLog
(
contentID
);
SetEndLog
(
contentID
);
initImageCheckMarking
();
initImageCheckMarking
();
createLockLayout
(
false
);
}
}
}
}
);
);
...
@@ -1501,6 +1514,8 @@ Transition.prototype.flipToPage = function (index) {
...
@@ -1501,6 +1514,8 @@ Transition.prototype.flipToPage = function (index) {
/* set end log */
/* set end log */
SetEndLog
(
contentID
);
SetEndLog
(
contentID
);
initImageCheckMarking
();
initImageCheckMarking
();
createLockLayout
(
false
);
}
}
});
});
}
}
...
@@ -1638,50 +1653,77 @@ function createAudio(audio, type) {
...
@@ -1638,50 +1653,77 @@ function createAudio(audio, type) {
}
}
}
}
else
if
(
type
==
"1"
)
{
/* play all page */
else
if
(
type
==
"1"
)
{
/* play all page */
if
(
document
.
getElementById
(
"play_audio_1"
)
!=
undefined
)
{
if
(
document
.
getElementById
(
"play_audio_1"
)
!=
undefined
)
{
if
(
ClientData
.
userOpt_musicMode
()
==
"1"
)
{
if
(
ClientData
.
userOpt_musicMode
()
==
"1"
)
{
if
(
avwUserEnvObj
.
browser
==
'firefox'
)
{
if
(
avwUserEnvObj
.
browser
==
'firefox'
)
{
/*
$('#playaudioallpage').html(
$('#playaudioallpage').html(
' <embed id="play_audio_1" src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" autostart="true" loop="true" hidden="true"> </embed>'
' <embed id="play_audio_1" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" loop="true" hidden="true"> </embed>'
);
);*/
}
else
{
document
.
getElementById
(
"play_audio_1"
).
play
();
}
else
{
if
(
!
isPendingContentBGM
){
document
.
getElementById
(
"play_audio_1"
).
play
();
}
}
}
}
else
{
}
else
{
if
(
avwUserEnvObj
.
browser
==
'firefox'
)
{
if
(
avwUserEnvObj
.
browser
==
'firefox'
)
{
/*
$('#playaudioallpage').html(
$('#playaudioallpage').html(
' <embed id="play_audio_1" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" hidden="true"> </embed>'
' <embed id="play_audio_1" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" hidden="true"> </embed>'
);
);*/
}
else
{
}
else
{
document
.
getElementById
(
"play_audio_1"
).
play
();
if
(
!
isPendingContentBGM
){
document
.
getElementById
(
"play_audio_1"
).
play
();
}
}
}
}
}
}
else
{
}
else
{
TypeAudio1
=
type
;
TypeAudio1
=
type
;
srcAudioType1
=
audio
;
srcAudioType1
=
audio
;
if
(
ClientData
.
userOpt_musicMode
()
==
"1"
)
{
if
(
ClientData
.
userOpt_musicMode
()
==
"1"
)
{
if
(
avwUserEnvObj
.
browser
==
'firefox'
)
{
if
(
avwUserEnvObj
.
browser
==
'firefox'
)
{
$
(
'#playaudioallpage'
).
html
(
$
(
'#playaudioallpage'
).
html
(
' <embed id="play_audio_1" src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" autostart="true" loop="true" hidden="true"> </embed>'
' <embed id="play_audio_1" src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" autostart="true" loop="true" hidden="true"> </embed>'
);
);
}
else
if
(
avwUserEnvObj
.
os
==
"ipad"
)
{
}
else
if
(
avwUserEnvObj
.
os
==
"ipad"
)
{
$
(
'#playaudioallpage'
).
html
(
$
(
'#playaudioallpage'
).
html
(
' <audio id="play_audio_1" loop="loop" >'
+
' <audio id="play_audio_1" loop="loop" >'
+
' <source src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" type="audio/mpeg" />'
+
' <source src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" type="audio/mpeg" />'
+
' </audio>'
' </audio>'
);
);
}
else
{
$
(
'#playaudioallpage'
).
html
(
' <audio id="play_audio_1" loop="loop" autoplay="autoplay" >'
+
' <source src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" type="audio/mpeg" />'
+
' </audio>'
);
}
}
}
else
{
else
{
if
(
isPendingContentBGM
){
$
(
'#playaudioallpage'
).
html
(
' <audio id="play_audio_1" loop="loop" >'
+
' <source src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" type="audio/mpeg" />'
+
' </audio>'
);
document
.
getElementById
(
'play_audio_1'
).
load
();
isPendingContentBGM
=
false
;
}
else
{
$
(
'#playaudioallpage'
).
html
(
' <audio id="play_audio_1" loop="loop" autoplay="autoplay" >'
+
' <source src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" type="audio/mpeg" />'
+
' </audio>'
);
}
}
}
else
{
if
(
avwUserEnvObj
.
browser
==
'firefox'
)
{
if
(
avwUserEnvObj
.
browser
==
'firefox'
)
{
$
(
'#playaudioallpage'
).
html
(
$
(
'#playaudioallpage'
).
html
(
' <embed id="play_audio_1" src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" autostart="true" hidden="true"> </embed>'
' <embed id="play_audio_1" src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" autostart="true" hidden="true"> </embed>'
...
@@ -1693,32 +1735,53 @@ function createAudio(audio, type) {
...
@@ -1693,32 +1735,53 @@ function createAudio(audio, type) {
' </audio>'
' </audio>'
);
);
}
else
{
}
else
{
$
(
'#playaudioallpage'
).
html
(
if
(
isPendingContentBGM
){
' <audio id="play_audio_1" autoplay = "autoplay" >'
+
$
(
'#playaudioallpage'
).
html
(
' <source src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" type="audio/mpeg" />'
+
' <audio id="play_audio_1" >'
+
' </audio>'
' <source src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" type="audio/mpeg" />'
+
);
' </audio>'
);
document
.
getElementById
(
'play_audio_1'
).
load
();
isPendingContentBGM
=
false
;
}
else
{
$
(
'#playaudioallpage'
).
html
(
' <audio id="play_audio_1" autoplay="autoplay" >'
+
' <source src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" type="audio/mpeg" />'
+
' </audio>'
);
}
}
}
}
}
// Check to play BGM on ipad
// Check to play BGM on ipad
if
(
avwUserEnvObj
.
os
==
"ipad"
)
{
if
(
avwUserEnvObj
.
os
==
"ipad"
)
{
// Show confim message to play background music
//START TRB00069
$
(
"#bgmConfirm_dspCancel"
).
unbind
(
'click'
);
if
(
isPendingContentBGM
){
$
(
"#bgmConfirm_dspCancel"
).
click
(
function
()
{
$
(
"#bgmConfirm"
).
hide
();
});
$
(
"#bgmConfirm_dspOK"
).
unbind
(
'click'
);
$
(
"#bgmConfirm_dspOK"
).
click
(
function
()
{
document
.
getElementById
(
'play_audio_1'
).
load
();
document
.
getElementById
(
'play_audio_1'
).
load
();
document
.
getElementById
(
'play_audio_1'
).
play
();
isPendingContentBGM
=
false
;
$
(
"#bgmConfirm"
).
hide
();
}
});
else
{
$
(
"#bgmConfirm"
).
show
();
// Show confim message to play background music
$
(
"#bgmConfirm"
).
center
();
$
(
"#bgmConfirm_dspCancel"
).
unbind
(
'click'
);
$
(
"#bgmConfirm_dspCancel"
).
click
(
function
()
{
$
(
"#bgmConfirm"
).
hide
();
});
$
(
"#bgmConfirm_dspOK"
).
unbind
(
'click'
);
$
(
"#bgmConfirm_dspOK"
).
click
(
function
()
{
document
.
getElementById
(
'play_audio_1'
).
load
();
document
.
getElementById
(
'play_audio_1'
).
play
();
$
(
"#bgmConfirm"
).
hide
();
});
$
(
"#bgmConfirm"
).
show
();
$
(
"#bgmConfirm"
).
center
();
}
//END TRB00069
}
}
}
}
}
}
else
if
(
type
==
"2"
)
{
/* play on page */
else
if
(
type
==
"2"
)
{
/* play on page */
if
(
document
.
getElementById
(
"play_audio_2"
)
==
undefined
)
{
if
(
document
.
getElementById
(
"play_audio_2"
)
==
undefined
)
{
stopAllAudio
();
stopAllAudio
();
...
@@ -1781,7 +1844,8 @@ function createAudio(audio, type) {
...
@@ -1781,7 +1844,8 @@ function createAudio(audio, type) {
}
}
}
}
}
}
}
else
{
}
else
{
stopAllAudio
();
stopAllAudio
();
}
}
...
@@ -1797,7 +1861,8 @@ function createPageBGM(){
...
@@ -1797,7 +1861,8 @@ function createPageBGM(){
for
(
var
i
=
0
;
i
<
currentPageObject
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
currentPageObject
.
length
;
i
++
){
var
BGMObject
=
currentPageObject
[
i
];
var
BGMObject
=
currentPageObject
[
i
];
if
(
BGMObject
.
mediaType
==
'3'
&&
BGMObject
.
actionType
==
'2'
&&
BGMObject
.
playType
==
'2'
){
if
(
BGMObject
.
mediaType
==
'3'
&&
BGMObject
.
actionType
==
'2'
&&
BGMObject
.
playType
==
'2'
){
audioFile
=
BGMObject
.
audioFile
;
audioFile
=
BGMObject
.
audioFile
;
playType
=
BGMObject
.
playType
;
playType
=
BGMObject
.
playType
;
...
...
abvw/js/contentview_Events.js
View file @
4cd95f13
...
@@ -459,23 +459,26 @@ function lastPage_click() {
...
@@ -459,23 +459,26 @@ function lastPage_click() {
function
createLockLayout
(
opt
){
function
createLockLayout
(
opt
){
if
(
opt
==
true
){
if
(
opt
==
true
){
if
(
!
$
(
'#locking'
).
size
()){
var
$html
=
$
(
'<div id="locking" style="z-index: 100; position: absolute; height: 100%; width: 100%;
display: none;
"></div>'
);
var
$html
=
$
(
'<div id="locking" style="z-index: 100; position: absolute; height: 100%; width: 100%; "></div>'
);
$
(
'#wrapper'
).
append
(
$html
);
$
(
'#wrapper'
).
append
(
$html
);
$html
.
show
();
$html
.
show
();
$
(
'#locking'
).
live
(
'click'
,
function
(
event
){
event
.
preventDefault
();
});
$
(
'#locking'
).
live
(
'click'
,
function
(
event
){
event
.
preventDefault
();
});
}
else
{
$
(
'#locking'
).
show
();
}
}
}
else
{
else
{
//$('body').append($html);
//$('body').append($html);
$
(
'#locking'
).
hide
();
if
(
$
(
'#locking'
).
size
()){
$
(
'#locking'
).
remove
();
$
(
'#locking'
).
hide
();
}
$
(
'#locking'
).
remove
();
}
}
};
};
/* handle keydown */
/* handle keydown */
...
@@ -921,14 +924,15 @@ function mouseMove_canvasMain(event) {
...
@@ -921,14 +924,15 @@ function mouseMove_canvasMain(event) {
}
}
}
}
if
(
moveFlag
==
false
&&
_3dAnimate
==
true
){
if
(
moveFlag
==
false
&&
_3dAnimate
==
true
){
var
imagePt
=
screenToImage
(
event
.
pageX
,
event
.
pageY
);
var
imagePt
=
screenToImage
(
event
.
pageX
,
event
.
pageY
);
var
hitObj
=
getContent
().
currentPage
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
);
var
hitObj
=
getContent
().
currentPage
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
);
if
(
hitObj
){
if
(
hitObj
){
_3dAction
=
_3dActionType
.
TouchMove_MouseMove
;
if
(
is3DObject
(
hitObj
)){
hitObj
.
action
(
imagePt
);
_3dAction
=
_3dActionType
.
TouchMove_MouseMove
;
hitObj
.
action
(
imagePt
);
}
}
}
else
{
else
{
_3dAnimate
=
false
;
_3dAnimate
=
false
;
...
@@ -1027,7 +1031,8 @@ function mouseDown_CanvasMain(event) {
...
@@ -1027,7 +1031,8 @@ function mouseDown_CanvasMain(event) {
var
hitPageObj
=
getContent
().
currentPage
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
);
var
hitPageObj
=
getContent
().
currentPage
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
);
moveFlag
=
true
;
moveFlag
=
true
;
_3dAnimate
=
false
;
if
(
is3DObject
(
hitPageObj
)){
if
(
is3DObject
(
hitPageObj
)){
clearTimeout
(
this
.
downTimer
);
clearTimeout
(
this
.
downTimer
);
this
.
downTimer
=
setTimeout
(
function
()
{
this
.
downTimer
=
setTimeout
(
function
()
{
...
@@ -1270,7 +1275,8 @@ function onTouchstart(evt){
...
@@ -1270,7 +1275,8 @@ function onTouchstart(evt){
//Start Function : No.9 - Editor : Long - Date : 08/16/2013 - Summary :
//Start Function : No.9 - Editor : Long - Date : 08/16/2013 - Summary :
var
imagePt
=
screenToImage
(
evt
.
pageX
,
evt
.
pageY
);
var
imagePt
=
screenToImage
(
evt
.
pageX
,
evt
.
pageY
);
var
hitPageObj
=
getContent
().
currentPage
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
);
var
hitPageObj
=
getContent
().
currentPage
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
);
_3dAnimate
=
false
;
if
(
hitPageObj
)
{
if
(
hitPageObj
)
{
if
(
is3DObject
(
hitPageObj
)){
if
(
is3DObject
(
hitPageObj
)){
...
@@ -1656,9 +1662,10 @@ function onTouchmove(evt){
...
@@ -1656,9 +1662,10 @@ function onTouchmove(evt){
var
hitObj
=
getContent
().
currentPage
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
);
var
hitObj
=
getContent
().
currentPage
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
);
if
(
hitObj
){
if
(
hitObj
){
if
(
is3DObject
(
hitObj
)){
_3dAction
=
_3dActionType
.
TouchMove_MouseMove
;
_3dAction
=
_3dActionType
.
TouchMove_MouseMove
;
hitObj
.
action
(
imagePt
);
hitObj
.
action
(
imagePt
);
}
}
}
else
{
else
{
...
...
abvw/js/contentview_GetData.js
View file @
4cd95f13
...
@@ -1408,6 +1408,10 @@ function assignCurrentContentPage(nav){
...
@@ -1408,6 +1408,10 @@ function assignCurrentContentPage(nav){
function
correctCanvasPosition
(){
function
correctCanvasPosition
(){
//correct canvas position
//correct canvas position
// Set default value for moving3D object to prevent other object fired when
//hold on 3d object and move next or prev page.
_3dAnimate
=
false
;
if
(
animateType
==
animateTypeKeys
.
Type_Slide
){
if
(
animateType
==
animateTypeKeys
.
Type_Slide
){
$
(
'#canvasWrapper'
).
css
(
"left"
,
'0px'
);
$
(
'#canvasWrapper'
).
css
(
"left"
,
'0px'
);
$
(
'#main'
).
css
(
"left"
,
'13px'
);
$
(
'#main'
).
css
(
"left"
,
'13px'
);
...
...
abvw/js/contentview_InitObjects.js
View file @
4cd95f13
...
@@ -52,13 +52,17 @@ function initDisplayMarking() {
...
@@ -52,13 +52,17 @@ function initDisplayMarking() {
}
}
disableAllControl
();
disableAllControl
();
}
else
{
}
//change image
else
{
$
(
'#imgmarkingtoolbar'
).
removeClass
();
$
(
'#imgmarkingtoolbar'
).
addClass
(
'markingToolbar'
);
//change image
if
(
ClientData
.
serviceOpt_marking
()
==
'Y'
){
$
(
'#imgmarkingtoolbar'
).
removeClass
();
$
(
'#imgmarkingtoolbar'
).
addClass
(
'markingToolbar'
);
}
}
}
}
else
{
}
else
{
$
(
"#dlgMarking"
).
hide
();
$
(
"#dlgMarking"
).
hide
();
// change class
// change class
...
@@ -67,9 +71,11 @@ function initDisplayMarking() {
...
@@ -67,9 +71,11 @@ function initDisplayMarking() {
$
(
'#draw_canvas'
).
css
(
'display'
,
'none'
);
$
(
'#draw_canvas'
).
css
(
'display'
,
'none'
);
//change image
//change image
$
(
'#imgmarkingtoolbar'
).
removeClass
();
if
(
ClientData
.
serviceOpt_marking
()
==
'Y'
){
$
(
'#imgmarkingtoolbar'
).
addClass
(
'markingToolbar'
);
$
(
'#imgmarkingtoolbar'
).
removeClass
();
$
(
'#imgmarkingtoolbar'
).
addClass
(
'markingToolbar'
);
}
}
}
};
};
...
@@ -281,9 +287,7 @@ function initPage() {
...
@@ -281,9 +287,7 @@ function initPage() {
//handleFromBookMarkPage();
//handleFromBookMarkPage();
/* check move content */
/* check move content */
if
(
ClientData
.
bookmark_pageNo
())
{
if
(
ClientData
.
bookmark_pageNo
())
{
handleFromBookMarkPage
();
handleFromBookMarkPage
();
}
else
if
(
ClientData
.
common_prePageNo
())
{
}
else
if
(
ClientData
.
common_prePageNo
())
{
/* handle from jump content */
/* handle from jump content */
handleFromJumpContent
();
handleFromJumpContent
();
...
@@ -292,9 +296,13 @@ function initPage() {
...
@@ -292,9 +296,13 @@ function initPage() {
oldContent_Back
();
oldContent_Back
();
}
else
{
}
else
{
if
(
getPageIndex
()
==
0
)
{
if
(
getPageIndex
()
==
0
)
{
//START TRB00069
isPendingContentBGM
=
true
;
//END TRB00069
getContent
().
setPageImages
(
totalPage
,
pageImages
)
getContent
().
setPageImages
(
totalPage
,
pageImages
)
.
setPageObjects
(
pageObjects
)
.
setPageObjects
(
pageObjects
)
.
setUpPage
(
0
);
.
setUpPage
(
0
);
//START : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
//START : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
createPageBGM
();
createPageBGM
();
//END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
//END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
...
@@ -422,10 +430,15 @@ function initPage() {
...
@@ -422,10 +430,15 @@ function initPage() {
oldContent_Back
();
oldContent_Back
();
}
else
{
}
else
{
if
(
getPageIndex
()
==
0
)
{
if
(
getPageIndex
()
==
0
)
{
//START TRB00069
isPendingContentBGM
=
true
;
//END TRB00069
getContent
().
setPageImages
(
totalPage
,
pageImages
)
getContent
().
setPageImages
(
totalPage
,
pageImages
)
.
setPageObjects
(
pageObjects
)
.
setPageObjects
(
pageObjects
)
.
setUpPage
(
0
);
.
setUpPage
(
0
);
//START : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
//START : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
createPageBGM
();
createPageBGM
();
//END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
//END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
...
...
abvw/js/header.js
View file @
4cd95f13
...
@@ -104,6 +104,7 @@ $(document).ready(function () {
...
@@ -104,6 +104,7 @@ $(document).ready(function () {
else
{
else
{
$
(
'body'
).
click
(
bodyClickFunction
);
$
(
'body'
).
click
(
bodyClickFunction
);
}
}
});
});
function
searchBoxHoverFunction
(){
function
searchBoxHoverFunction
(){
...
@@ -138,7 +139,8 @@ function bodyClickFunction(event) {
...
@@ -138,7 +139,8 @@ function bodyClickFunction(event) {
if
(
isTouchDevice
())
{
if
(
isTouchDevice
())
{
// Check mouse is in rectangle of searching panel
// Check mouse is in rectangle of searching panel
if
(
$
(
'#header-searchbox'
).
css
(
'display'
)
!=
"none"
)
{
if
(
$
(
'#header-searchbox'
).
is
(
":visible"
))
//if ($('#header-searchbox').css('display') != "none")
{
var
currPosX
,
currPosY
;
var
currPosX
,
currPosY
;
var
avwUserEnvObj
=
new
UserEnvironment
();
var
avwUserEnvObj
=
new
UserEnvironment
();
...
@@ -152,20 +154,33 @@ function bodyClickFunction(event) {
...
@@ -152,20 +154,33 @@ function bodyClickFunction(event) {
currPosX
=
event
.
targetTouches
[
0
].
clientX
;
currPosX
=
event
.
targetTouches
[
0
].
clientX
;
currPosY
=
event
.
targetTouches
[
0
].
clientY
;
currPosY
=
event
.
targetTouches
[
0
].
clientY
;
}
}
if
(
currPosX
>=
$
(
'#header-searchbox'
).
position
().
left
&&
currPosX
<=
(
$
(
'#header-searchbox'
).
position
().
left
+
$
(
'#header-searchbox'
).
width
())
&&
currPosY
>=
$
(
'#header-searchbox'
).
position
().
top
&&
currPosY
<=
(
$
(
'#header-searchbox'
).
position
().
top
+
$
(
'#header-searchbox'
).
height
()))
{
isHoverOn
=
true
;
var
leftsearch
=
$
(
'#header-searchbox'
).
offset
().
left
;
var
topsearch
=
$
(
'#header-searchbox'
).
offset
().
top
;
var
rightsearch
=
$
(
'#header-searchbox'
).
width
()
+
leftsearch
;
var
bottomsearch
=
$
(
'#header-searchbox'
).
height
()
+
topsearch
;
// check mouse position in search region
if
(
currPosX
>=
leftsearch
&&
currPosX
<=
rightsearch
&&
currPosY
>=
topsearch
&&
currPosY
<=
bottomsearch
)
{
isHoverOn
=
true
;
}
}
else
{
else
{
isHoverOn
=
false
;
isHoverOn
=
false
;
//
$('#header-searchbox').hide();
$
(
'#header-searchbox'
).
hide
();
}
}
// if (currPosX >= $('#header-searchbox').position().left
// && currPosX <= ($('#header-searchbox').position().left + $('#header-searchbox').width())
// && currPosY >= $('#header-searchbox').position().top
// && currPosY <= ($('#header-searchbox').position().top + $('#header-searchbox').height())) {
// isHoverOn = true;
// }
// else {
// isHoverOn = false;
// }
}
}
}
}
else
{
else
{
if
(
!
isHoverOn
)
{
if
(
!
isHoverOn
)
{
...
@@ -893,7 +908,7 @@ function showListPushMessage(data)
...
@@ -893,7 +908,7 @@ function showListPushMessage(data)
for
(
var
i
=
0
;
i
<
data
.
messageList
.
length
&&
i
<=
(
data
.
recordTo
-
data
.
recordFrom
);
i
++
)
for
(
var
i
=
0
;
i
<
data
.
messageList
.
length
&&
i
<=
(
data
.
recordTo
-
data
.
recordFrom
);
i
++
)
{
{
var
titleMessage
=
truncate
(
data
.
messageList
[
i
].
messageDetail
,
30
).
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
);
var
titleMessage
=
truncate
(
data
.
messageList
[
i
].
messageDetail
,
30
).
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
);
var
detailMessage
=
data
.
messageList
[
i
].
messageDetail
.
replace
(
/
\n
/g
,
'<br/>'
).
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>
'
);
var
detailMessage
=
data
.
messageList
[
i
].
messageDetail
.
replace
(
/
</g
,
'<'
).
replace
(
/>/g
,
'>'
).
replace
(
/
\n
/g
,
'<br/>
'
);
var
message
=
'<div class="newmsg">'
;
var
message
=
'<div class="newmsg">'
;
message
+=
'<h5 class="postItem"><a href="#">'
+
titleMessage
+
'</a></h5>'
;
message
+=
'<h5 class="postItem"><a href="#">'
+
titleMessage
+
'</a></h5>'
;
message
+=
'<p>'
+
detailMessage
+
'<span class="date">'
+
getDateCreatePushMessage
(
data
.
messageList
[
i
].
messageSendDate
)
+
'</span></p></div>'
;
message
+=
'<p>'
+
detailMessage
+
'<span class="date">'
+
getDateCreatePushMessage
(
data
.
messageList
[
i
].
messageSendDate
)
+
'</span></p></div>'
;
...
...
abvw/settings.html
View file @
4cd95f13
...
@@ -273,7 +273,7 @@
...
@@ -273,7 +273,7 @@
<footer>
<footer>
<div
class=
"border"
>
<div
class=
"border"
>
<div
class=
"cnt_footer"
>
<div
class=
"cnt_footer"
>
COPYRIGHT © 2012
株式会社Agentec
ALL RIGHTS RESERVED.
COPYRIGHT © 2012
AGENTEC Co., Ltd.
ALL RIGHTS RESERVED.
</div>
</div>
</div>
</div>
</footer>
</footer>
...
...
login.html
View file @
4cd95f13
...
@@ -107,7 +107,7 @@ jQuery.event.add(window,"load",function() { // 全ての読み込み完了後に
...
@@ -107,7 +107,7 @@ jQuery.event.add(window,"load",function() { // 全ての読み込み完了後に
<footer>
<footer>
<div
class=
"border"
>
<div
class=
"border"
>
<div
class=
"cnt_footer"
>
<div
class=
"cnt_footer"
>
COPYRIGHT © 2012
株式会社Agentec ALL RIGHTS RESERVED.
COPYRIGHT © 2012
AGENTEC Co., Ltd. ALL RIGHTS RESERVED.
</div>
</div>
</div>
</div>
</footer>
</footer>
...
...
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