Commit ed2bc92e by Motohisa Nakano

20121219-3

parent cd8ece9d
...@@ -2222,4 +2222,4 @@ function ToogleLogoutNortice() { ...@@ -2222,4 +2222,4 @@ function ToogleLogoutNortice() {
else { else {
avwSetLogoutNortice(); avwSetLogoutNortice();
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
"dspBkCancel":"Logout", "dspBkCancel":"Logout",
"txtSearchResult":"Result", "txtSearchResult":"Result",
"dspHome":"Home", "dspHome":"Home",
"txtLoginUser":"(Ver.20121218-1)User:", "txtLoginUser":"(Ver.20121219-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を再生してもよろしいですか?"
} }
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
"dspBkCancel":"バックアップせずにログアウト", "dspBkCancel":"バックアップせずにログアウト",
"txtSearchResult":"検索結果", "txtSearchResult":"検索結果",
"dspHome":"ホーム", "dspHome":"ホーム",
"txtLoginUser":"(Ver.20121218-1)ログイン中:", "txtLoginUser":"(Ver.20121219-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を再生してもよろしいですか?"
} }
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
"dspBkCancel":"로그아웃", "dspBkCancel":"로그아웃",
"txtSearchResult":"검색 결과", "txtSearchResult":"검색 결과",
"dspHome":"홈", "dspHome":"홈",
"txtLoginUser":"(Ver.20121218-1)로그인 중:", "txtLoginUser":"(Ver.20121219-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を再生してもよろしいですか?"
} }
...@@ -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>
......
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;
}
...@@ -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;
......
...@@ -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>
......
...@@ -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 -->
......
...@@ -27,48 +27,57 @@ $(document).ready(function () { ...@@ -27,48 +27,57 @@ $(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);
$("#dspDelete").click(dspDelete_Click); //Check if Force Change password
$("#dspDelete1").click(dspDelete1_Click); if(ClientData.requirePasswordChange() != 1){
$("#dspCancel").click(dspCancel_Click);
$("#dspConfirmOK").click(dspConfirmOK_Click); // Synchronize bookmarks with server
SyncContent();
ClearGrid();
// Collection all detail of pages
if (ClientData.BookMarkData().length == 0) { bookmark_collectAllPages();
// Show error
$("#msgShioriNotExists").show(); $("#dspDelete").click(dspDelete_Click);
$("#dspDelete").hide(); $("#dspDelete1").click(dspDelete1_Click);
$("#dspDelete1").hide(); $("#dspCancel").click(dspCancel_Click);
} $("#dspConfirmOK").click(dspConfirmOK_Click);
else {
$("#msgShioriNotExists").hide(); ClearGrid();
$("#dspDelete").show();
$("#dspDelete1").show(); if (ClientData.BookMarkData().length == 0) {
} // Show error
$("#msgShioriNotExists").show();
// Show book in local storage $("#dspDelete").hide();
//ShowBookmark(); $("#dspDelete1").hide();
}
$("a[name='dspRead']").unbind('click'); else {
$("a[name='dspRead']").click(dspRead_Click); $("#msgShioriNotExists").hide();
$("#dspDelete").show();
HideSorting(); $("#dspDelete1").show();
}
// Default sort is タイトル名, default is asc
ClientData.sortOpt_searchDivision(1); // Show book in local storage
ClientData.sortOpt_sortType(2); //ShowBookmark();
dspTitleNm_Click();
$("a[name='dspRead']").unbind('click');
$("a[name='dspRead']").click(dspRead_Click);
HideSorting();
// Default sort is タイトル名, default is asc
ClientData.sortOpt_searchDivision(1);
ClientData.sortOpt_sortType(2);
dspTitleNm_Click();
}
else{
checkForceChangePassword();
}
}); });
/* /*
......
...@@ -50,69 +50,75 @@ $(document).ready(function(){ ...@@ -50,69 +50,75 @@ $(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);
//Format text display more record //Check if Force Change password
formatDisplayMoreRecord(); if(ClientData.requirePasswordChange() != 1){
//Format text display more record
//remove hover effect when is touch device formatDisplayMoreRecord();
removeHoverCss();
//remove hover effect when is touch device
//InitScreen removeHoverCss();
initialScreen();
//InitScreen
//Render Grid initialScreen();
renderGridView();
//Render Grid
//Go To Details Page renderGridView();
$('canvas').live('click', canvasClickFunction);
//$('canvas').live('touchstart', canvasClickFunction); //Go To Details Page
$('canvas').live('touchend', canvasClickFunction); $('canvas').live('click', canvasClickFunction);
$('canvas').live('touchmove', function () { home_isMove = true; }); //$('canvas').live('touchstart', canvasClickFunction);
$('canvas').live('touchend', canvasClickFunction);
//Open dialog $('canvas').live('touchmove', function () { home_isMove = true; });
$('.dialog').live('click', titleClickFunction);
//$('.dialog').live('touchstart', titleClickFunction);
$('.dialog').live('touchend', titleClickFunction);
$('.dialog').live('touchmove', function () { home_isMove = true; });
//Show Next Record
$('a#control-nextrecord').click(showNextRecordFunction);
//Sort Title
$('#control-sort-title').click(sortByTitleFunction);
//Sort by title kana
$('#control-sort-titlekana').click(sortByTitleKanaFunction);
//sort by release date //Open dialog
$('#control-sort-releasedate').click(sortByReleaseDateFunction); $('.dialog').live('click', titleClickFunction);
//$('.dialog').live('touchstart', titleClickFunction);
$('.dialog').live('touchend', titleClickFunction);
$('.dialog').live('touchmove', function () { home_isMove = true; });
//Go To Details Page //Show Next Record
$('.button-details').live('click', readSubmenuFunction); $('a#control-nextrecord').click(showNextRecordFunction);
//$('.button-details').live('touchstart', readSubmenuFunction);
$('.button-details').live('touchend', readSubmenuFunction); //Sort Title
$('.button-details').live('touchmove', function () { home_isMove = true; }); $('#control-sort-title').click(sortByTitleFunction);
$('#main-search').click(searchEventButtonFunction); //Sort by title kana
$('#control-sort-titlekana').click(sortByTitleKanaFunction);
$('#txtSearch').keydown(mainSearchKeyDownFunction);
//sort by release date
$('#main-search-content').click(mainSearchContentClickFunction); $('#control-sort-releasedate').click(sortByReleaseDateFunction);
//Go To Details Page
$('.button-details').live('click', readSubmenuFunction);
//$('.button-details').live('touchstart', readSubmenuFunction);
$('.button-details').live('touchend', readSubmenuFunction);
$('.button-details').live('touchmove', function () { home_isMove = true; });
$('#main-search').click(searchEventButtonFunction);
$('#txtSearch').keydown(mainSearchKeyDownFunction);
$('#main-search-content').click(mainSearchContentClickFunction);
$('#main-search-tag').click(mainSearchTagClickFunction);
$('#main-search-body').click(mainSearchBodyClickFunction);
$('#main-search-tag').click(mainSearchTagClickFunction); $('#control-nextrecord').css('visibility', 'hidden');
$('#main-search-body').click(mainSearchBodyClickFunction); $(window).resize(function () {
if ($("#contentDetail").css("display") != "none") {
$('#control-nextrecord').css('visibility', 'hidden'); // Refresh panel of detail to center.
$("#contentDetail").center();
$(window).resize(function () { if ($("#contentDetail").height() > $(window).height()){
if ($("#contentDetail").css("display") != "none") { $("#contentDetail").css('top', '0');
// Refresh panel of detail to center. }
$("#contentDetail").center(); }
if ($("#contentDetail").height() > $(window).height()){ });
$("#contentDetail").css('top', '0'); }else{
} //Check if Force Change password
} checkForceChangePassword();
}); }
}); });
......
...@@ -852,7 +852,7 @@ Transition.prototype.flipNextPage = function() { ...@@ -852,7 +852,7 @@ Transition.prototype.flipNextPage = function() {
{duration : 'slow', {duration : 'slow',
complete: function(){ complete: function(){
isFirstLoad = true; isFirstLoad = true;
screenFit(); screenFit();
} }
}); });
...@@ -949,7 +949,7 @@ Transition.prototype.flipToPage = function(index) { ...@@ -949,7 +949,7 @@ Transition.prototype.flipToPage = function(index) {
{duration : 'slow', {duration : 'slow',
complete: function(){ complete: function(){
isFirstLoad = true; isFirstLoad = true;
screenFit(); screenFit();
} }
}); });
//change pageIndex and image bookmark //change pageIndex and image bookmark
...@@ -970,7 +970,7 @@ Transition.prototype.flipToPage = function(index) { ...@@ -970,7 +970,7 @@ Transition.prototype.flipToPage = function(index) {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + i18nText('sysAppTitle');
} }
/* set end log */ /* set end log */
SetEndLog(contentID); SetEndLog(contentID);
} }
} }
); );
...@@ -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,7 +1046,9 @@ function removeObject(){ ...@@ -1045,7 +1046,9 @@ function removeObject(){
$('#playaudio').children().remove(); $('#playaudio').children().remove();
} }
if($('#playaudiopage').children().length > 0){ if($('#playaudiopage').children().length > 0){
$('#playaudiopage').children().remove(); if (avwUserEnvObj.os != "ipad") {
$('#playaudiopage').children().remove();
}
} }
if(avwUserEnvObj.browser == 'firefox'){ if(avwUserEnvObj.browser == 'firefox'){
...@@ -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,71 +2608,129 @@ function createAudio(audio,type){ ...@@ -2596,71 +2608,129 @@ 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){
TypeAudio1 = type;
srcAudioType1 = audio; if(ClientData.userOpt_musicMode() == "1"){
if(avwUserEnvObj.browser == 'firefox'){
if(ClientData.userOpt_musicMode() == "1"){ $('#playaudioallpage').html(
if(avwUserEnvObj.browser == 'firefox'){ ' <embed id="play_audio_1" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" loop="true" hidden="true"> </embed>'
$('#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{ }else{
$('#playaudioallpage').html( if(avwUserEnvObj.browser == 'firefox'){
' <audio id="play_audio_1" loop="loop" autoplay="autoplay" >' + $('#playaudioallpage').html(
' <source src="' + audio + '&key=' + (new Date()).toIdString() + '" type="audio/mpeg" />' + ' <embed id="play_audio_1" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" hidden="true"> </embed>'
' </audio>' );
); }else{
} document.getElementById("play_audio_1").play();
}
}
}else{ }else{
if(avwUserEnvObj.browser == 'firefox'){ TypeAudio1 = type;
$('#playaudioallpage').html( srcAudioType1 = audio;
' <embed id="play_audio_1" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" hidden="true"> </embed>'
); 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{
$('#playaudioallpage').html(
' <audio id="play_audio_1" loop="loop" autoplay="autoplay" >' +
' <source src="' + audio + '&key=' + (new Date()).toIdString() + '" type="audio/mpeg" />' +
' </audio>'
);
}
}else{ }else{
$('#playaudioallpage').html( if(avwUserEnvObj.browser == 'firefox'){
' <audio id="play_audio_1" autoplay = "autoplay" >' + $('#playaudioallpage').html(
' <source src="' + audio + '&key=' + (new Date()).toIdString() + '" type="audio/mpeg" />' + ' <embed id="play_audio_1" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" hidden="true"> </embed>'
' </audio>' );
); }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
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 */
stopAllAudio(); if(document.getElementById("play_audio_2") == undefined){
stopAllAudio();
TypeAudio2 = type;
srcAudioType2 = audio; TypeAudio2 = type;
srcAudioType2 = audio;
if(ClientData.userOpt_musicMode() == "1"){
if(avwUserEnvObj.browser == 'firefox'){ if(ClientData.userOpt_musicMode() == "1"){
$('#playaudiopage').html( if(avwUserEnvObj.browser == 'firefox'){
' <embed id="play_audio_2" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" loop="true" hidden="true"> </embed>' $('#playaudiopage').html(
); ' <embed id="play_audio_2" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" loop="true" hidden="true"> </embed>'
}else{ );
$('#playaudiopage').html( }else{
' <audio id="play_audio_2" loop="loop" autoplay ="autoplay">' +
' <source src="' + audio + '&key=' + (new Date()).toIdString() + '" type="audio/mpeg" />' +
' </audio>'
);
}
}else{
if(avwUserEnvObj.browser == 'firefox'){
$('#playaudiopage').html( $('#playaudiopage').html(
' <embed id="play_audio_2" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" hidden="true"> </embed>' ' <audio id="play_audio_2" loop="loop" autoplay ="autoplay">' +
); ' <source src="' + audio + '&key=' + (new Date()).toIdString() + '" type="audio/mpeg" />' +
' </audio>'
);
}
}else{ }else{
$('#playaudiopage').html( if(avwUserEnvObj.browser == 'firefox'){
' <audio id="play_audio_2" autoplay ="autoplay">' + $('#playaudiopage').html(
' <source src="' + audio + '&key=' + (new Date()).toIdString() + '" type="audio/mpeg" />' + ' <embed id="play_audio_2" src="' + audio + '&key=' + (new Date()).toIdString() + '" autostart="true" hidden="true"> </embed>'
' </audio>' );
); }else{
$('#playaudiopage').html(
' <audio id="play_audio_2" autoplay ="autoplay">' +
' <source src="' + audio + '&key=' + (new Date()).toIdString() +'" type="audio/mpeg" />' +
' </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();
......
...@@ -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();
ToogleLogoutNortice(); if(ClientData.requirePasswordChange() != 1 ) {
ToogleLogoutNortice();
}
//Toggle Searchbox //Toggle Searchbox
$('input#searchbox-key').click(toggleSearchPanel); $('input#searchbox-key').click(toggleSearchPanel);
...@@ -417,4 +421,48 @@ function DoBackup() { ...@@ -417,4 +421,48 @@ function DoBackup() {
$('.toast-position-middle-center').css('margin-left', '-250px'); $('.toast-position-middle-center').css('margin-left', '-250px');
$('.toast-item-close').live('click', webLogoutEvent); $('.toast-item-close').live('click', webLogoutEvent);
}); });
} }
\ No newline at end of file
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);
});
}
...@@ -49,59 +49,65 @@ $(document).ready(function(){ ...@@ -49,59 +49,65 @@ $(document).ready(function(){
LockScreen(); LockScreen();
document.title = i18nText('dspViewHistory') + ' | ' + i18nText('sysAppTitle'); document.title = i18nText('dspViewHistory') + ' | ' + i18nText('sysAppTitle');
if(ClientData.ReadingContentIds() == null || ClientData.ReadingContentIds() == 'undefined' || ClientData.ReadingContentIds().length == 0){
}else{
syncReadingContent();
}
ClientData.BookmarkScreen(ScreenIds.History); ClientData.BookmarkScreen(ScreenIds.History);
//remove hover effect when is touch device if(ClientData.requirePasswordChange() != 1){
removeHoverCss(); if(ClientData.ReadingContentIds() == null || ClientData.ReadingContentIds() == 'undefined' || ClientData.ReadingContentIds().length == 0){
}else{
//Render Grid syncReadingContent();
renderGridView(); }
//remove hover effect when is touch device
removeHoverCss();
//Render Grid
renderGridView();
//Go To Details Page
$('canvas').live('click', canvasClickFunction);
//$('canvas').live('touchstart', canvasClickFunction);
$('canvas').live('touchend', canvasClickFunction);
$('canvas').live('touchmove', function () { home_isMove = true; });
//Go To Details Page
$('canvas').live('click', canvasClickFunction);
//$('canvas').live('touchstart', canvasClickFunction);
$('canvas').live('touchend', canvasClickFunction);
$('canvas').live('touchmove', function () { home_isMove = true; });
//Open dialog
$('.dialog').live('click', titleClickFunction);
//$('.dialog').live('touchstart', titleClickFunction);
$('.dialog').live('touchend', titleClickFunction);
$('.dialog').live('touchmove', function () { home_isMove = true; });
//Sort Title //Open dialog
$('#control-sort-title').click(sortByTitleFunction); $('.dialog').live('click', titleClickFunction);
//$('.dialog').live('touchstart', titleClickFunction);
//Sort by title kana $('.dialog').live('touchend', titleClickFunction);
$('#control-sort-titlekana').click(sortByTitleKanaFunction); $('.dialog').live('touchmove', function () { home_isMove = true; });
//Sort Title
$('#control-sort-title').click(sortByTitleFunction);
//sort by release date //Sort by title kana
$('#control-sort-releasedate').click(sortByReleaseDateFunction); $('#control-sort-titlekana').click(sortByTitleKanaFunction);
$('#control-sort-viewdate').click(sortByViewDateFunction); //sort by release date
$('#control-sort-releasedate').click(sortByReleaseDateFunction);
//Go To Details Page $('#control-sort-viewdate').click(sortByViewDateFunction);
$('.button-details').live('click', readSubmenuFunction);
//$('.button-details').live('touchstart', readSubmenuFunction); //Go To Details Page
$('.button-details').live('touchend', readSubmenuFunction); $('.button-details').live('click', readSubmenuFunction);
$('.button-details').live('touchmove', function () { home_isMove = true; }); //$('.button-details').live('touchstart', readSubmenuFunction);
$('.button-details').live('touchend', readSubmenuFunction);
$(window).resize(function () { $('.button-details').live('touchmove', function () { home_isMove = true; });
if ($("#contentDetail").css("display") != "none") {
// Refresh panel of detail to center. $(window).resize(function () {
$("#contentDetail").center(); if ($("#contentDetail").css("display") != "none") {
if ($("#contentDetail").height() > $(window).height()){ // Refresh panel of detail to center.
$("#contentDetail").css('top', '0'); $("#contentDetail").center();
} if ($("#contentDetail").height() > $(window).height()){
} $("#contentDetail").css('top', '0');
}); }
}
});
}
else{
//Check if Force Change password
checkForceChangePassword();
}
}); });
//Call API //Call API
......
...@@ -58,100 +58,106 @@ $(document).ready(function () { ...@@ -58,100 +58,106 @@ $(document).ready(function () {
// Set bookmark screen // Set bookmark screen
ClientData.BookmarkScreen(ScreenIds.Home); ClientData.BookmarkScreen(ScreenIds.Home);
// Register log //Check if Force Change password
RegisterLog(); if(ClientData.requirePasswordChange() != 1){
// Register log
//Sync Data RegisterLog();
if (ClientData.ReadingContentIds() == null || ClientData.ReadingContentIds() == 'undefined' || ClientData.ReadingContentIds().length == 0) {
ClientData.common_contentDataChkFlg(false); //Sync Data
} else { if (ClientData.ReadingContentIds() == null || ClientData.ReadingContentIds() == 'undefined' || ClientData.ReadingContentIds().length == 0) {
syncContentData(); ClientData.common_contentDataChkFlg(false);
} } else {
syncContentData();
//remove hover css if is touch device }
removeHoverCss();
//remove hover css if is touch device
//Get default view mode for rendergrid view removeHoverCss();
setDefaultViewMode();
//Get default view mode for rendergrid view
setDefaultViewMode();
//Toggle TreeView Disp
handleTreeViewDisp();
//Toggle TreeView Disp //Format text display more record
handleTreeViewDisp(); formatDisplayMoreRecord();
//Format text display more record //Render Grid
formatDisplayMoreRecord(); renderGridView();
//Render Genre
getDataJsonFileGenre();
getDataJsonFileGroup();
//Render Grid // Lock screen is here, because of in getDataJsonFileGroup() called click to expand speified nodes of treeview
renderGridView(); LockScreen();
//Render Genre //Change display type to bookshelf type
getDataJsonFileGenre(); $('#control-bookshelf-type').click(changeDispBookShelfFunction);
getDataJsonFileGroup();
//Change display type to list type
// Lock screen is here, because of in getDataJsonFileGroup() called click to expand speified nodes of treeview $('#control-list-type').click(changeDispListFunction);
LockScreen();
//Go To Details Page
//Change display type to bookshelf type $('canvas').live('click', canvasClickFunction);
$('#control-bookshelf-type').click(changeDispBookShelfFunction); //$('canvas').live('touchstart', canvasClickFunction);
$('canvas').live('touchend', canvasClickFunction);
//Change display type to list type $('canvas').live('touchmove', function () { home_isMove = true; });
$('#control-list-type').click(changeDispListFunction);
//Open dialog
//Go To Details Page $('.dialog').live('click', openSubMenuDialogFunction);
$('canvas').live('click', canvasClickFunction); //$('.dialog').live('touchstart', openSubMenuDialogFunction);
//$('canvas').live('touchstart', canvasClickFunction); $('.dialog').live('touchend', openSubMenuDialogFunction);
$('canvas').live('touchend', canvasClickFunction); $('.dialog').live('touchmove', function () { home_isMove = true; });
$('canvas').live('touchmove', function () { home_isMove = true; });
//Open dialog //Render Genre TreeView
$('.dialog').live('click', openSubMenuDialogFunction); $('#lnkbtnGenre').click(genreSelectFunction);
//$('.dialog').live('touchstart', openSubMenuDialogFunction);
$('.dialog').live('touchend', openSubMenuDialogFunction); //Render Group TreeView
$('.dialog').live('touchmove', function () { home_isMove = true; }); $('#lnkbtnGroup').click(groupSelectFunction);
//Button details on dialog click event
//Render Genre TreeView $('#dialog-detail').click(detailsSubmenuFunction);
$('#lnkbtnGenre').click(genreSelectFunction);
//Button Read on dialog click event
//Render Group TreeView $('#dialog-read').click(readSubmenuFunction);
$('#lnkbtnGroup').click(groupSelectFunction);
//Show Next Record
//Button details on dialog click event $('a#control-nextrecord').click(showNextRecordFunction);
$('#dialog-detail').click(detailsSubmenuFunction);
//Sort Title
//Button Read on dialog click event $('#control-sort-title').click(sortByTitleFunction);
$('#dialog-read').click(readSubmenuFunction);
//Sort by title kana
//Show Next Record $('#control-sort-titlekana').click(sortByTitleKanaFunction);
$('a#control-nextrecord').click(showNextRecordFunction);
//sort by release date
//Sort Title $('#control-sort-releasedate').click(sortByReleaseDateFunction);
$('#control-sort-title').click(sortByTitleFunction);
//Go To Details Page
//Sort by title kana $('.button-details').live('click', readSubmenuFunction);
$('#control-sort-titlekana').click(sortByTitleKanaFunction); //$('.button-details').live('touchstart', readSubmenuFunction);
$('.button-details').live('touchend', readSubmenuFunction);
//sort by release date $('.button-details').live('touchmove', function () { home_isMove = true; });
$('#control-sort-releasedate').click(sortByReleaseDateFunction);
$('#dlgSubMenu').hover(subMenuHoverFunction, subMenuHoverOffFunction);
//Go To Details Page
$('.button-details').live('click', readSubmenuFunction);
//$('.button-details').live('touchstart', readSubmenuFunction);
$('.button-details').live('touchend', readSubmenuFunction);
$('.button-details').live('touchmove', function () { home_isMove = true; });
$('#dlgSubMenu').hover(subMenuHoverFunction, subMenuHoverOffFunction);
$('body').click(bodyHomeClickFunction);
$(window).resize(function () { $('body').click(bodyHomeClickFunction);
if ($("#contentDetail").css("display") != "none") { $('body').bind('touchstart', bodyHomeClickFunction);
// Refresh panel of detail to center.
$("#contentDetail").center(); $(window).resize(function () {
if ($("#contentDetail").height() > $(window).height()){ if ($("#contentDetail").css("display") != "none") {
$("#contentDetail").css('top', '0'); // Refresh panel of detail to center.
} $("#contentDetail").center();
} if ($("#contentDetail").height() > $(window).height()){
}); $("#contentDetail").css('top', '0');
}
}
});
}else{
checkForceChangePassword();
}
}); });
function subMenuHoverFunction(){ function subMenuHoverFunction(){
......
...@@ -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();
......
...@@ -19,10 +19,13 @@ ...@@ -19,10 +19,13 @@
$(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();
...@@ -81,6 +84,7 @@ $(document).ready(function () { ...@@ -81,6 +84,7 @@ $(document).ready(function () {
$("#dspOptRes").css('visibility', ''); $("#dspOptRes").css('visibility', '');
} }
} }
}); });
/* /*
...@@ -116,13 +120,15 @@ function IsExistBackupFile() { ...@@ -116,13 +120,15 @@ 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
} }
else if (ClientData.serviceOpt_force_pw_change_on_login() == 1) { // Recommend to change password else if (ClientData.serviceOpt_force_pw_change_on_login() == 1) { // Recommend to change password
var pwdSkipDt = ClientData.userInfo_pwdSkipDt(); var pwdSkipDt = ClientData.userInfo_pwdSkipDt();
if (pwdSkipDt) { if (pwdSkipDt) {
// Check 30 days // Check 30 days
var currDate = new Date(); var currDate = new Date();
...@@ -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,8 +158,9 @@ function avwCmsApi_requirePasswordChange_success(data) { ...@@ -151,8 +158,9 @@ 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();
$("#dspCancel").hide(); $("#dspCancel").hide();
//$("#dspPwdUpd1").css('margin', $("#dspCancel").css('margin')); //$("#dspPwdUpd1").css('margin', $("#dspCancel").css('margin'));
...@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment