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
ed2bc92e
Commit
ed2bc92e
authored
Dec 20, 2012
by
Motohisa Nakano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20121219-3
parent
cd8ece9d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
226 additions
and
22 deletions
+226
-22
abvw/common/js/common.js
+0
-0
abvw/common/json/lang/lang-en.json
+5
-2
abvw/common/json/lang/lang-ja.json
+4
-2
abvw/common/json/lang/lang-ko.json
+4
-2
abvw/contentsearch.html
+1
-1
abvw/contentview.html
+0
-0
abvw/css/contentview.css
+31
-2
abvw/css/delete_shiori.css
+12
-0
abvw/history.html
+1
-1
abvw/home.html
+1
-1
abvw/js/bookmark.js
+13
-4
abvw/js/contentsearch.js
+6
-0
abvw/js/contentview.js
+72
-2
abvw/js/detail.js
+0
-0
abvw/js/header.js
+48
-0
abvw/js/history.js
+8
-2
abvw/js/home.js
+6
-0
abvw/js/login.js
+1
-1
abvw/js/settings.js
+13
-2
index.html
+0
-0
No files found.
abvw/common/js/common.js
View file @
ed2bc92e
abvw/common/json/lang/lang-en.json
View file @
ed2bc92e
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"Logout"
,
"dspBkCancel"
:
"Logout"
,
"txtSearchResult"
:
"Result"
,
"txtSearchResult"
:
"Result"
,
"dspHome"
:
"Home"
,
"dspHome"
:
"Home"
,
"txtLoginUser"
:
"(Ver.2012121
8-1
)User:"
,
"txtLoginUser"
:
"(Ver.2012121
9-3
)User:"
,
"txtAll"
:
"All"
,
"txtAll"
:
"All"
,
"txtMkgSize"
:
"Size"
,
"txtMkgSize"
:
"Size"
,
"txtMkgS"
:
"S"
,
"txtMkgS"
:
"S"
,
...
@@ -120,5 +120,8 @@
...
@@ -120,5 +120,8 @@
"txtMemoPaste"
:
"Paste"
,
"txtMemoPaste"
:
"Paste"
,
"txtMemoClear"
:
"Clear"
,
"txtMemoClear"
:
"Clear"
,
"txtMemo"
:
"Memo"
,
"txtMemo"
:
"Memo"
,
"msgBGMPlayConfirm"
:
"EN:このコンテンツはBGMが流れるようになっています。BGMを再生してもよろしいですか?"
"msgBGMPlayConfirm"
:
"EN:このコンテンツはBGMが流れるようになっています。<br/>BGMを再生してもよろしいですか?"
,
"msgPWDNeedChange"
:
"EN:パスワード変更が必要ですので、設定変更画面に戻って変更してください。"
,
"msgBGMPagePlayConfirm"
:
"EN:このページはBGMが流れるようになっています。<br/>BGMを再生してもよろしいですか?"
}
}
abvw/common/json/lang/lang-ja.json
View file @
ed2bc92e
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"バックアップせずにログアウト"
,
"dspBkCancel"
:
"バックアップせずにログアウト"
,
"txtSearchResult"
:
"検索結果"
,
"txtSearchResult"
:
"検索結果"
,
"dspHome"
:
"ホーム"
,
"dspHome"
:
"ホーム"
,
"txtLoginUser"
:
"(Ver.2012121
8-1
)ログイン中:"
,
"txtLoginUser"
:
"(Ver.2012121
9-3
)ログイン中:"
,
"txtAll"
:
"すべて"
,
"txtAll"
:
"すべて"
,
"txtMkgSize"
:
"太さ"
,
"txtMkgSize"
:
"太さ"
,
"txtMkgS"
:
"小"
,
"txtMkgS"
:
"小"
,
...
@@ -120,5 +120,7 @@
...
@@ -120,5 +120,7 @@
"txtMemoPaste"
:
"貼り付け"
,
"txtMemoPaste"
:
"貼り付け"
,
"txtMemoClear"
:
"クリア"
,
"txtMemoClear"
:
"クリア"
,
"txtMemo"
:
"メモ"
,
"txtMemo"
:
"メモ"
,
"msgBGMPlayConfirm"
:
"このコンテンツはBGMが流れるようになっています。BGMを再生してもよろしいですか?"
"msgBGMPlayConfirm"
:
"このコンテンツはBGMが流れるようになっています。<br/>BGMを再生してもよろしいですか?"
,
"msgPWDNeedChange"
:
"パスワード変更が必要ですので、設定変更画面に戻って変更してください。"
,
"msgBGMPagePlayConfirm"
:
"このページはBGMが流れるようになっています。<br/>BGMを再生してもよろしいですか?"
}
}
abvw/common/json/lang/lang-ko.json
View file @
ed2bc92e
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"로그아웃"
,
"dspBkCancel"
:
"로그아웃"
,
"txtSearchResult"
:
"검색 결과"
,
"txtSearchResult"
:
"검색 결과"
,
"dspHome"
:
"홈"
,
"dspHome"
:
"홈"
,
"txtLoginUser"
:
"(Ver.2012121
8-1
)로그인 중:"
,
"txtLoginUser"
:
"(Ver.2012121
9-3
)로그인 중:"
,
"txtAll"
:
"전체"
,
"txtAll"
:
"전체"
,
"txtMkgSize"
:
"두께"
,
"txtMkgSize"
:
"두께"
,
"txtMkgS"
:
"소"
,
"txtMkgS"
:
"소"
,
...
@@ -120,5 +120,7 @@
...
@@ -120,5 +120,7 @@
"txtMemoPaste"
:
"붙여 넣기"
,
"txtMemoPaste"
:
"붙여 넣기"
,
"txtMemoClear"
:
"클리어"
,
"txtMemoClear"
:
"클리어"
,
"txtMemo"
:
"메모"
,
"txtMemo"
:
"메모"
,
"msgBGMPlayConfirm"
:
"KO:このコンテンツはBGMが流れるようになっています。BGMを再生してもよろしいですか?"
"msgBGMPlayConfirm"
:
"KO:このコンテンツはBGMが流れるようになっています。<br/>BGMを再生してもよろしいですか?"
,
"msgPWDNeedChange"
:
"KO:パスワード変更が必要ですので、設定変更画面に戻って変更してください。"
,
"msgBGMPagePlayConfirm"
:
"KO:このページはBGMが流れるようになっています。<br/>BGMを再生してもよろしいですか?"
}
}
abvw/contentsearch.html
View file @
ed2bc92e
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<script
src=
"./common/js/gotop.js"
></script>
<script
src=
"./common/js/gotop.js"
></script>
<script
src=
"common/js/tab.js"
></script>
<script
src=
"common/js/tab.js"
></script>
<script
src=
"./common/js/screenLock.js"
type=
"text/javascript"
></script>
<script
src=
"./common/js/screenLock.js"
type=
"text/javascript"
></script>
<script
src=
"js/
SCRCDL0100
.js"
type=
"text/javascript"
></script>
<script
src=
"js/
detail
.js"
type=
"text/javascript"
></script>
<!-- screen style definition area -->
<!-- screen style definition area -->
<style>
<style>
...
...
abvw/contentview.html
View file @
ed2bc92e
This diff is collapsed.
Click to expand it.
abvw/css/contentview.css
View file @
ed2bc92e
html
{
overflow
:
hidden
;
}
body
{
body
{
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
...
@@ -8,7 +12,7 @@ body {
...
@@ -8,7 +12,7 @@ body {
body
#wrapper
{
body
#wrapper
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
position
:
fixed
;
position
:
absolute
;
background-color
:
#666
;
background-color
:
#666
;
box-shadow
:
2px
2px
8px
#000
inset
;
box-shadow
:
2px
2px
8px
#000
inset
;
...
@@ -159,7 +163,7 @@ div .ui-slider-range, .ui-widget-header, .ui-slider-range-max {
...
@@ -159,7 +163,7 @@ div .ui-slider-range, .ui-widget-header, .ui-slider-range-max {
/*CSS for dialog*/
/*CSS for dialog*/
.web_dialog_overlay
.web_dialog_overlay
{
{
position
:
fixed
;
position
:
absolute
;
top
:
0
;
top
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
...
@@ -174,6 +178,25 @@ div .ui-slider-range, .ui-widget-header, .ui-slider-range-max {
...
@@ -174,6 +178,25 @@ div .ui-slider-range, .ui-widget-header, .ui-slider-range-max {
z-index
:
101
;
z-index
:
101
;
display
:
none
;
display
:
none
;
}
}
/*CSS for dialog*/
.web_dialog_overlay_loading
{
position
:
fixed
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
width
:
100%
;
margin
:
0
;
padding
:
0
;
opacity
:
.15
;
filter
:
alpha
(
opacity
=
15
);
-moz-opacity
:
.15
;
z-index
:
101
;
display
:
none
;
}
.web_dialog
.web_dialog
{
{
padding-top
:
100px
;
padding-top
:
100px
;
...
@@ -797,3 +820,9 @@ aside.MemoIndexBox .indexBoxBody_off{
...
@@ -797,3 +820,9 @@ aside.MemoIndexBox .indexBoxBody_off{
width
:
60px
;
width
:
60px
;
height
:
60px
;
height
:
60px
;
}
}
#bgmConfirm
{
position
:
absolute
;
display
:
none
;
}
abvw/css/delete_shiori.css
View file @
ed2bc92e
...
@@ -63,6 +63,18 @@
...
@@ -63,6 +63,18 @@
margin
:
-27px
0
0
135px
;
margin
:
-27px
0
0
135px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.sectionDeleteConfirm
.deletebtn
a
.ok_audio
{
position
:
relative
;
margin
:
0
168px
0
0
;
cursor
:
pointer
;
}
.sectionDeleteConfirm
.deletebtn
a
.cancel_audio
{
position
:
relative
;
margin
:
-27px
60px
0
135px
;
cursor
:
pointer
;
}
.sectionDeleteConfirm
.deletebtn
a
{
.sectionDeleteConfirm
.deletebtn
a
{
width
:
85px
;
width
:
85px
;
height
:
21px
;
height
:
21px
;
...
...
abvw/history.html
View file @
ed2bc92e
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<script
src=
"./common/js/gotop.js"
></script>
<script
src=
"./common/js/gotop.js"
></script>
<script
src=
"common/js/tab.js"
></script>
<script
src=
"common/js/tab.js"
></script>
<script
src=
"./common/js/screenLock.js"
type=
"text/javascript"
></script>
<script
src=
"./common/js/screenLock.js"
type=
"text/javascript"
></script>
<script
src=
"js/
SCRCDL0100
.js"
type=
"text/javascript"
></script>
<script
src=
"js/
detail
.js"
type=
"text/javascript"
></script>
<!-- screen style definition area -->
<!-- screen style definition area -->
<style>
<style>
...
...
abvw/home.html
View file @
ed2bc92e
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<script
src=
"./common/js/jquery.treeview.edit.js"
type=
"text/javascript"
></script>
<script
src=
"./common/js/jquery.treeview.edit.js"
type=
"text/javascript"
></script>
<script
src=
"./common/js/jquery.treeview.js"
type=
"text/javascript"
></script>
<script
src=
"./common/js/jquery.treeview.js"
type=
"text/javascript"
></script>
<script
src=
"./common/js/screenLock.js"
type=
"text/javascript"
></script>
<script
src=
"./common/js/screenLock.js"
type=
"text/javascript"
></script>
<script
src=
"js/
SCRCDL0100
.js"
type=
"text/javascript"
></script>
<script
src=
"js/
detail
.js"
type=
"text/javascript"
></script>
<!-- screen style definition area -->
<!-- screen style definition area -->
...
...
abvw/js/bookmark.js
View file @
ed2bc92e
...
@@ -27,17 +27,22 @@ $(document).ready(function () {
...
@@ -27,17 +27,22 @@ $(document).ready(function () {
LockScreen
();
LockScreen
();
// Synchronize bookmarks with server
SyncContent
();
// Collection all detail of pages
bookmark_collectAllPages
();
document
.
title
=
i18nText
(
'dspShiori'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
document
.
title
=
i18nText
(
'dspShiori'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
// Set bookmark screen
// Set bookmark screen
ClientData
.
BookmarkScreen
(
ScreenIds
.
BookmarkList
);
ClientData
.
BookmarkScreen
(
ScreenIds
.
BookmarkList
);
//Check if Force Change password
if
(
ClientData
.
requirePasswordChange
()
!=
1
){
// Synchronize bookmarks with server
SyncContent
();
// Collection all detail of pages
bookmark_collectAllPages
();
$
(
"#dspDelete"
).
click
(
dspDelete_Click
);
$
(
"#dspDelete"
).
click
(
dspDelete_Click
);
$
(
"#dspDelete1"
).
click
(
dspDelete1_Click
);
$
(
"#dspDelete1"
).
click
(
dspDelete1_Click
);
$
(
"#dspCancel"
).
click
(
dspCancel_Click
);
$
(
"#dspCancel"
).
click
(
dspCancel_Click
);
...
@@ -69,6 +74,10 @@ $(document).ready(function () {
...
@@ -69,6 +74,10 @@ $(document).ready(function () {
ClientData
.
sortOpt_searchDivision
(
1
);
ClientData
.
sortOpt_searchDivision
(
1
);
ClientData
.
sortOpt_sortType
(
2
);
ClientData
.
sortOpt_sortType
(
2
);
dspTitleNm_Click
();
dspTitleNm_Click
();
}
else
{
checkForceChangePassword
();
}
});
});
/*
/*
...
...
abvw/js/contentsearch.js
View file @
ed2bc92e
...
@@ -50,6 +50,8 @@ $(document).ready(function(){
...
@@ -50,6 +50,8 @@ $(document).ready(function(){
document
.
title
=
i18nText
(
'txtSearchResult'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
document
.
title
=
i18nText
(
'txtSearchResult'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
// Set bookmark screen ClientData.BookmarkScreen(ScreenIds.ContentSearch);
// Set bookmark screen ClientData.BookmarkScreen(ScreenIds.ContentSearch);
//Check if Force Change password
if
(
ClientData
.
requirePasswordChange
()
!=
1
){
//Format text display more record
//Format text display more record
formatDisplayMoreRecord
();
formatDisplayMoreRecord
();
...
@@ -113,6 +115,10 @@ $(document).ready(function(){
...
@@ -113,6 +115,10 @@ $(document).ready(function(){
}
}
}
}
});
});
}
else
{
//Check if Force Change password
checkForceChangePassword
();
}
});
});
...
...
abvw/js/contentview.js
View file @
ed2bc92e
...
@@ -1025,6 +1025,7 @@ function removeObject(){
...
@@ -1025,6 +1025,7 @@ function removeObject(){
ClosePopupText
();
ClosePopupText
();
}
}
$
(
"#bgmConfirm"
).
hide
();
$
(
"#boxCopyText"
).
hide
();
$
(
"#boxCopyText"
).
hide
();
$
(
"#boxSearching"
).
hide
();
$
(
"#boxSearching"
).
hide
();
$
(
"#boxIndex"
).
hide
();
$
(
"#boxIndex"
).
hide
();
...
@@ -1045,8 +1046,10 @@ function removeObject(){
...
@@ -1045,8 +1046,10 @@ function removeObject(){
$
(
'#playaudio'
).
children
().
remove
();
$
(
'#playaudio'
).
children
().
remove
();
}
}
if
(
$
(
'#playaudiopage'
).
children
().
length
>
0
){
if
(
$
(
'#playaudiopage'
).
children
().
length
>
0
){
if
(
avwUserEnvObj
.
os
!=
"ipad"
)
{
$
(
'#playaudiopage'
).
children
().
remove
();
$
(
'#playaudiopage'
).
children
().
remove
();
}
}
}
if
(
avwUserEnvObj
.
browser
==
'firefox'
){
if
(
avwUserEnvObj
.
browser
==
'firefox'
){
srcAudioType0
=
''
;
srcAudioType0
=
''
;
...
@@ -2539,10 +2542,19 @@ function playAllAudio(){
...
@@ -2539,10 +2542,19 @@ function playAllAudio(){
}
}
}
else
{
}
else
{
if
(
document
.
getElementById
(
"play_audio_0"
)
!=
undefined
){
if
(
document
.
getElementById
(
"play_audio_0"
)
!=
undefined
){
if
(
avwUserEnvObj
.
os
==
"ipad"
)
{
//document.getElementById("play_audio_0").load();
}
document
.
getElementById
(
"play_audio_0"
).
play
();
document
.
getElementById
(
"play_audio_0"
).
play
();
}
else
if
(
document
.
getElementById
(
"play_audio_2"
)
!=
undefined
){
}
else
if
(
document
.
getElementById
(
"play_audio_2"
)
!=
undefined
){
if
(
avwUserEnvObj
.
os
==
"ipad"
)
{
//document.getElementById("play_audio_2").load();
}
document
.
getElementById
(
"play_audio_2"
).
play
();
document
.
getElementById
(
"play_audio_2"
).
play
();
}
else
if
(
document
.
getElementById
(
"play_audio_1"
)
!=
undefined
){
}
else
if
(
document
.
getElementById
(
"play_audio_1"
)
!=
undefined
){
if
(
avwUserEnvObj
.
os
==
"ipad"
)
{
//document.getElementById("play_audio_1").load();
}
document
.
getElementById
(
"play_audio_1"
).
play
();
document
.
getElementById
(
"play_audio_1"
).
play
();
}
}
}
}
...
@@ -2596,10 +2608,32 @@ function createAudio(audio,type){
...
@@ -2596,10 +2608,32 @@ function createAudio(audio,type){
}
}
if
(
avwUserEnvObj
.
os
==
"ipad"
)
{
document
.
getElementById
(
"play_audio_0"
).
load
();
document
.
getElementById
(
"play_audio_0"
).
play
();
}
}
else
if
(
type
==
"1"
){
/* play all page */
}
else
if
(
type
==
"1"
){
/* play all page */
if
(
document
.
getElementById
(
"play_audio_1"
)
!=
undefined
){
if
(
ClientData
.
userOpt_musicMode
()
==
"1"
){
if
(
avwUserEnvObj
.
browser
==
'firefox'
){
$
(
'#playaudioallpage'
).
html
(
' <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
(
avwUserEnvObj
.
browser
==
'firefox'
){
$
(
'#playaudioallpage'
).
html
(
' <embed id="play_audio_1" src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" autostart="true" hidden="true"> </embed>'
);
}
else
{
document
.
getElementById
(
"play_audio_1"
).
play
();
}
}
}
else
{
TypeAudio1
=
type
;
TypeAudio1
=
type
;
srcAudioType1
=
audio
;
srcAudioType1
=
audio
;
...
@@ -2629,8 +2663,26 @@ function createAudio(audio,type){
...
@@ -2629,8 +2663,26 @@ function createAudio(audio,type){
);
);
}
}
}
}
// Check to play BGM on ipad
if
(
avwUserEnvObj
.
os
==
"ipad"
)
{
// Show confim message to play background music
$
(
"#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
();
}
}
}
}
else
if
(
type
==
"2"
){
/* play on page */
else
if
(
type
==
"2"
){
/* play on page */
if
(
document
.
getElementById
(
"play_audio_2"
)
==
undefined
){
stopAllAudio
();
stopAllAudio
();
TypeAudio2
=
type
;
TypeAudio2
=
type
;
...
@@ -2656,11 +2708,29 @@ function createAudio(audio,type){
...
@@ -2656,11 +2708,29 @@ function createAudio(audio,type){
}
else
{
}
else
{
$
(
'#playaudiopage'
).
html
(
$
(
'#playaudiopage'
).
html
(
' <audio id="play_audio_2" autoplay ="autoplay">'
+
' <audio id="play_audio_2" autoplay ="autoplay">'
+
' <source src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" type="audio/mpeg" />'
+
' <source src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" type="audio/mpeg" />'
+
' </audio>'
' </audio>'
);
);
}
}
}
}
// Check to play BGM on ipad
if
(
avwUserEnvObj
.
os
==
"ipad"
)
{
// Show confim message to play background music
$
(
"#bgmConfirm_dspCancel_page"
).
unbind
(
'click'
);
$
(
"#bgmConfirm_dspCancel_page"
).
click
(
function
()
{
$
(
"#bgmConfirm_page"
).
hide
();
});
$
(
"#bgmConfirm_dspOK_page"
).
unbind
(
'click'
);
$
(
"#bgmConfirm_dspOK_page"
).
click
(
function
()
{
document
.
getElementById
(
'play_audio_2'
).
load
();
document
.
getElementById
(
'play_audio_2'
).
play
();
$
(
"#bgmConfirm_page"
).
hide
();
});
$
(
"#bgmConfirm_page"
).
show
();
$
(
"#bgmConfirm_page"
).
center
();
}
}
}
}
}
else
{
}
else
{
stopAllAudio
();
stopAllAudio
();
...
...
abvw/js/
SCRCDL0100
.js
→
abvw/js/
detail
.js
View file @
ed2bc92e
File moved
abvw/js/header.js
View file @
ed2bc92e
...
@@ -9,9 +9,13 @@ $(document).ready(function () {
...
@@ -9,9 +9,13 @@ $(document).ready(function () {
if
(
!
avwCheckLogin
(
ScreenIds
.
Login
))
return
;
if
(
!
avwCheckLogin
(
ScreenIds
.
Login
))
return
;
// Set event to prevent leave
// Set event to prevent leave
//avwSetLogoutNortice();
//avwSetLogoutNortice();
if
(
ClientData
.
requirePasswordChange
()
!=
1
)
{
ToogleLogoutNortice
();
ToogleLogoutNortice
();
}
//Toggle Searchbox
//Toggle Searchbox
$
(
'input#searchbox-key'
).
click
(
toggleSearchPanel
);
$
(
'input#searchbox-key'
).
click
(
toggleSearchPanel
);
...
@@ -418,3 +422,47 @@ function DoBackup() {
...
@@ -418,3 +422,47 @@ function DoBackup() {
$
(
'.toast-item-close'
).
live
(
'click'
,
webLogoutEvent
);
$
(
'.toast-item-close'
).
live
(
'click'
,
webLogoutEvent
);
});
});
}
}
function
checkForceChangePassword
(){
if
(
ClientData
.
BookmarkScreen
()
!=
ScreenIds
.
Setting
){
if
(
ClientData
.
requirePasswordChange
()
==
1
){
//alert(i18nText('msgPWDNeedChange'));
showErrorScreenForceChangePassword
();
}
}
}
function
showErrorScreenForceChangePassword
(){
var
tags
=
'<div id="avw-auth-error">'
+
'<div style="display:table; width:100%; height:100%;">'
+
'<div style="display:table-cell; text-align:center; vertical-align:middle;">'
+
'<p>'
+
i18nText
(
'msgPWDNeedChange'
)
+
'</p>'
+
'<div><button id="avw-unauth-ok">OK</button></div>'
+
'</div></div></div>'
;
$
(
'body'
).
prepend
(
tags
);
$
(
'#avw-auth-error'
).
css
(
{
'color'
:
'#fff'
,
'opacity'
:
1
,
'position'
:
'fixed'
,
'top'
:
'0'
,
'left'
:
'0'
,
'width'
:
$
(
window
).
width
(),
'height'
:
$
(
window
).
height
(),
'background'
:
'#ccc'
,
'zIndex'
:
'10000'
})
// resize error page
$
(
window
).
resize
(
function
()
{
$
(
'#avw-auth-error'
).
css
(
{
'width'
:
$
(
window
).
width
(),
'height'
:
$
(
window
).
height
()
});
});
$
(
'#avw-unauth-ok'
).
click
(
function
()
{
ClientData
.
BookmarkScreen
(
ScreenIds
.
Setting
);
avwScreenMove
(
ScreenIds
.
Setting
);
});
}
abvw/js/history.js
View file @
ed2bc92e
...
@@ -50,13 +50,14 @@ $(document).ready(function(){
...
@@ -50,13 +50,14 @@ $(document).ready(function(){
document
.
title
=
i18nText
(
'dspViewHistory'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
document
.
title
=
i18nText
(
'dspViewHistory'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
ClientData
.
BookmarkScreen
(
ScreenIds
.
History
);
if
(
ClientData
.
requirePasswordChange
()
!=
1
){
if
(
ClientData
.
ReadingContentIds
()
==
null
||
ClientData
.
ReadingContentIds
()
==
'undefined'
||
ClientData
.
ReadingContentIds
().
length
==
0
){
if
(
ClientData
.
ReadingContentIds
()
==
null
||
ClientData
.
ReadingContentIds
()
==
'undefined'
||
ClientData
.
ReadingContentIds
().
length
==
0
){
}
else
{
}
else
{
syncReadingContent
();
syncReadingContent
();
}
}
ClientData
.
BookmarkScreen
(
ScreenIds
.
History
);
//remove hover effect when is touch device
//remove hover effect when is touch device
removeHoverCss
();
removeHoverCss
();
...
@@ -102,6 +103,11 @@ $(document).ready(function(){
...
@@ -102,6 +103,11 @@ $(document).ready(function(){
}
}
}
}
});
});
}
else
{
//Check if Force Change password
checkForceChangePassword
();
}
});
});
//Call API
//Call API
...
...
abvw/js/home.js
View file @
ed2bc92e
...
@@ -58,6 +58,8 @@ $(document).ready(function () {
...
@@ -58,6 +58,8 @@ $(document).ready(function () {
// Set bookmark screen
// Set bookmark screen
ClientData
.
BookmarkScreen
(
ScreenIds
.
Home
);
ClientData
.
BookmarkScreen
(
ScreenIds
.
Home
);
//Check if Force Change password
if
(
ClientData
.
requirePasswordChange
()
!=
1
){
// Register log
// Register log
RegisterLog
();
RegisterLog
();
...
@@ -142,6 +144,7 @@ $(document).ready(function () {
...
@@ -142,6 +144,7 @@ $(document).ready(function () {
$
(
'#dlgSubMenu'
).
hover
(
subMenuHoverFunction
,
subMenuHoverOffFunction
);
$
(
'#dlgSubMenu'
).
hover
(
subMenuHoverFunction
,
subMenuHoverOffFunction
);
$
(
'body'
).
click
(
bodyHomeClickFunction
);
$
(
'body'
).
click
(
bodyHomeClickFunction
);
$
(
'body'
).
bind
(
'touchstart'
,
bodyHomeClickFunction
);
$
(
window
).
resize
(
function
()
{
$
(
window
).
resize
(
function
()
{
if
(
$
(
"#contentDetail"
).
css
(
"display"
)
!=
"none"
)
{
if
(
$
(
"#contentDetail"
).
css
(
"display"
)
!=
"none"
)
{
...
@@ -152,6 +155,9 @@ $(document).ready(function () {
...
@@ -152,6 +155,9 @@ $(document).ready(function () {
}
}
}
}
});
});
}
else
{
checkForceChangePassword
();
}
});
});
function
subMenuHoverFunction
(){
function
subMenuHoverFunction
(){
...
...
abvw/js/login.js
View file @
ed2bc92e
...
@@ -78,7 +78,7 @@ function saveLoginInfo() {
...
@@ -78,7 +78,7 @@ function saveLoginInfo() {
}
}
ClientData
.
userInfo_lastLoginTime
(
date
.
jpDateTimeString
());
ClientData
.
userInfo_lastLoginTime
(
date
.
jpDateTimeString
());
ClientData
.
requirePasswordChange
(
requirePasswordChange
);
//
ClientData.requirePasswordChange(requirePasswordChange);
//ClientData.userInfo_sid(userinfo_sid);
//ClientData.userInfo_sid(userinfo_sid);
ClientData
.
userInfo_sid_local
(
userinfo_sid
);
ClientData
.
userInfo_sid_local
(
userinfo_sid
);
saveServiceUserOption
();
saveServiceUserOption
();
...
...
abvw/js/settings.js
View file @
ed2bc92e
...
@@ -19,11 +19,14 @@
...
@@ -19,11 +19,14 @@
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
if
(
!
avwCheckLogin
(
ScreenIds
.
Login
))
return
;
if
(
!
avwCheckLogin
(
ScreenIds
.
Login
))
return
;
ToogleLogoutNortice
();
LockScreen
();
LockScreen
();
document
.
title
=
i18nText
(
'dspSetting'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
document
.
title
=
i18nText
(
'dspSetting'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
// Set bookmark screen
ClientData
.
BookmarkScreen
(
ScreenIds
.
Setting
);
InitScreen
();
InitScreen
();
$
(
"#dspSave"
).
click
(
dspSave_Click
);
$
(
"#dspSave"
).
click
(
dspSave_Click
);
...
@@ -81,6 +84,7 @@ $(document).ready(function () {
...
@@ -81,6 +84,7 @@ $(document).ready(function () {
$
(
"#dspOptRes"
).
css
(
'visibility'
,
''
);
$
(
"#dspOptRes"
).
css
(
'visibility'
,
''
);
}
}
}
}
});
});
/*
/*
...
@@ -116,6 +120,8 @@ function IsExistBackupFile() {
...
@@ -116,6 +120,8 @@ function IsExistBackupFile() {
// Event success
// Event success
function
avwCmsApi_requirePasswordChange_success
(
data
)
{
function
avwCmsApi_requirePasswordChange_success
(
data
)
{
ClientData
.
requirePasswordChange
(
0
);
if
(
data
.
requirePasswordChange
==
1
)
{
if
(
data
.
requirePasswordChange
==
1
)
{
if
(
ClientData
.
serviceOpt_force_pw_change_on_login
()
==
0
)
{
// No need to change password
if
(
ClientData
.
serviceOpt_force_pw_change_on_login
()
==
0
)
{
// No need to change password
// Skip this case
// Skip this case
...
@@ -141,6 +147,7 @@ function avwCmsApi_requirePasswordChange_success(data) {
...
@@ -141,6 +147,7 @@ function avwCmsApi_requirePasswordChange_success(data) {
}
}
}
}
else
{
else
{
//alert('pwdSkipDt=null');
//alert('pwdSkipDt=null');
OpenChangePassword
();
OpenChangePassword
();
...
@@ -151,6 +158,7 @@ function avwCmsApi_requirePasswordChange_success(data) {
...
@@ -151,6 +158,7 @@ function avwCmsApi_requirePasswordChange_success(data) {
}
}
else
if
(
ClientData
.
serviceOpt_force_pw_change_on_login
()
==
2
)
{
// Force to change password
else
if
(
ClientData
.
serviceOpt_force_pw_change_on_login
()
==
2
)
{
// Force to change password
ClientData
.
requirePasswordChange
(
1
);
OpenChangePassword
();
OpenChangePassword
();
$
(
"#dspSkip"
).
hide
();
$
(
"#dspSkip"
).
hide
();
...
@@ -189,6 +197,7 @@ function avwCmsApi_requirePasswordChange_success(data) {
...
@@ -189,6 +197,7 @@ function avwCmsApi_requirePasswordChange_success(data) {
}
}
else
{
else
{
//alert('pwdSkipDt=null');
//alert('pwdSkipDt=null');
OpenChangePassword
();
OpenChangePassword
();
$
(
"#dspSkip"
).
show
();
$
(
"#dspSkip"
).
show
();
...
@@ -198,6 +207,7 @@ function avwCmsApi_requirePasswordChange_success(data) {
...
@@ -198,6 +207,7 @@ function avwCmsApi_requirePasswordChange_success(data) {
}
}
else
if
(
ClientData
.
serviceOpt_force_pw_change_periodically
()
==
2
)
{
// Force to change password
else
if
(
ClientData
.
serviceOpt_force_pw_change_periodically
()
==
2
)
{
// Force to change password
ClientData
.
requirePasswordChange
(
1
);
OpenChangePassword
();
OpenChangePassword
();
$
(
"#dspSkip"
).
hide
();
$
(
"#dspSkip"
).
hide
();
...
@@ -311,7 +321,7 @@ function avwCmsApi_getBackupFile_success(data) {
...
@@ -311,7 +321,7 @@ function avwCmsApi_getBackupFile_success(data) {
ClientData
.
isChangedBookmark
(
false
);
ClientData
.
isChangedBookmark
(
false
);
ClientData
.
isChangedMarkingData
(
false
);
ClientData
.
isChangedMarkingData
(
false
);
ClientData
.
isChangedMemo
(
false
);
ClientData
.
isChangedMemo
(
false
);
$
(
"#dspOptBk"
).
hide
();
// Show message: msgRestoreSuccess
// Show message: msgRestoreSuccess
$
().
toastmessage
({
position
:
'middle-center'
});
$
().
toastmessage
({
position
:
'middle-center'
});
$
().
toastmessage
(
'showToast'
,
{
$
().
toastmessage
(
'showToast'
,
{
...
@@ -587,6 +597,7 @@ function avwCmsApi_passwordChange_success(data) {
...
@@ -587,6 +597,7 @@ function avwCmsApi_passwordChange_success(data) {
msgError
.
show
();
msgError
.
show
();
}
}
else
{
else
{
ClientData
.
requirePasswordChange
(
0
);
msgError
.
html
(
''
);
msgError
.
html
(
''
);
closeChangePassword
();
closeChangePassword
();
/* show messages */
/* show messages */
...
...
index.html
View file @
ed2bc92e
This diff is collapsed.
Click to expand it.
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