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
d30b5eb9
Commit
d30b5eb9
authored
Dec 15, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
タッチでクリックイベント対応
console.logファンクションに置き換え
parent
0fc70047
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
595 additions
and
136 deletions
+595
-136
abvw/common/js/avweb.js
+1
-1
abvw/js/contentview.js
+47
-11
abvw/js/contentview_Anket.js
+21
-0
abvw/js/contentview_CallApi.js
+2
-2
abvw/js/contentview_CreateObjects.js
+0
-0
abvw/js/contentview_Events.js
+16
-19
abvw/js/contentview_FileSystem.js
+28
-28
abvw/js/contentview_GetData.js
+47
-11
abvw/js/contentview_Gomu.js
+71
-7
abvw/js/contentview_InitObjects.js
+35
-12
abvw/js/contentview_Maker.js
+83
-7
abvw/js/contentview_Marking.js
+143
-12
abvw/js/contentview_Memo.js
+14
-2
abvw/js/contentview_Paint.js
+0
-15
abvw/js/contentview_Pen.js
+85
-7
abvw/js/home.js
+2
-2
No files found.
abvw/common/js/avweb.js
View file @
d30b5eb9
...
...
@@ -641,7 +641,7 @@ function avwGrabContentPageImage(accountPath, params, success, error) {
if
(
error
)
{
error
(
xmlHttp
,
xmlHttp
.
status
,
xmlHttp
.
statusText
);
}
else
{
console
.
l
og
(
xmlHttp
.
status
+
' '
+
xmlHttp
.
statusText
);
AVWEB
.
avwL
og
(
xmlHttp
.
status
+
' '
+
xmlHttp
.
statusText
);
}
}
}
...
...
abvw/js/contentview.js
View file @
d30b5eb9
...
...
@@ -295,7 +295,19 @@ function handleAPIWebContentPage(dataJson, pos) {
$
(
'#bookmarkBoxHdBM'
).
children
().
remove
();
$
(
'#bookmarkBoxHdBM'
).
html
(
'<a id="bookmarkClosing" class="delete" > </a>'
);
$
(
"#bookmarkClosing"
).
click
(
closeBookmarkBox
);
//$("#bookmarkClosing").click(closeBookmarkBox);
$
(
"#bookmarkClosing"
).
on
({
'click touchend'
:
function
(
ev
){
closeBookmarkBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#bookmarkBoxHdBM'
).
append
(
i18nText
(
'txtShioriCtnLs'
));
$
(
'#boxBookMark'
).
css
(
'z-index'
,
'101'
);
...
...
@@ -629,7 +641,19 @@ function handleCopyTextData(data, pos) {
//title start
$
(
'#bookmarkBoxHdCT'
).
children
().
remove
();
$
(
'#bookmarkBoxHdCT'
).
html
(
'<a id="copyTextClosing" class="delete" style="padding-top:0px;"> </a>'
);
$
(
"#copyTextClosing"
).
click
(
closeCopyTextBox
);
//$("#copyTextClosing").click(closeCopyTextBox);
$
(
"#copyTextClosing"
).
on
({
'click touchend'
:
function
(
ev
){
closeCopyTextBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#bookmarkBoxHdCT'
).
append
(
i18nText
(
'txtTextCopy'
));
//title end
...
...
@@ -667,7 +691,19 @@ function handleCopyTextData(data, pos) {
//title start
$
(
'#bookmarkBoxHdCT'
).
children
().
remove
();
$
(
'#bookmarkBoxHdCT'
).
html
(
'<a id="copyTextClosing" class="delete" style="padding-top:0px;"> </a>'
);
$
(
"#copyTextClosing"
).
click
(
closeCopyTextBox
);
//$("#copyTextClosing").click(closeCopyTextBox);
$
(
"#copyTextClosing"
).
on
({
'click touchend'
:
function
(
ev
){
closeCopyTextBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#bookmarkBoxHdCT'
).
append
(
i18nText
(
'txtTextCopy'
));
//title end
...
...
@@ -1108,7 +1144,7 @@ function changePage(page_index) {
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
console
.
l
og
(
"read FileSystem"
);
AVWEB
.
avwL
og
(
"read FileSystem"
);
pageImages
=
e
.
target
.
result
;
/* get page Objects */
...
...
@@ -1125,7 +1161,7 @@ function changePage(page_index) {
);
},
function
(
err
){
// 失敗時のコールバック関数
console
.
l
og
(
"NotRead FileSystem"
);
AVWEB
.
avwL
og
(
"NotRead FileSystem"
);
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
page_index
+
1
},
...
...
@@ -2120,7 +2156,7 @@ function changePageWithoutSlide(pageMove) {
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
console
.
l
og
(
"read FileSystem"
);
AVWEB
.
avwL
og
(
"read FileSystem"
);
pageImages
=
e
.
target
.
result
;
/* get page Objects */
...
...
@@ -2163,7 +2199,7 @@ function changePageWithoutSlide(pageMove) {
);
},
function
(
err
){
// 失敗時のコールバック関数
console
.
l
og
(
"NotRead FileSystem"
);
AVWEB
.
avwL
og
(
"NotRead FileSystem"
);
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
pageMove
+
1
},
...
...
@@ -2852,7 +2888,7 @@ CONTENTVIEW.ready = function(){
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
getType
:
1
},
function
(
data
)
{
//
console.l
og("json.txt:" + window.JSON.stringify(data) );
//
AVWEB.avwL
og("json.txt:" + window.JSON.stringify(data) );
CONTENTVIEW_FILESYSTEM
.
checkUpdate
(
contentID
,
data
,
CONTENTVIEW
.
webGetContentApi_funcOk
);
},
...
...
@@ -2879,7 +2915,7 @@ CONTENTVIEW.ready = function(){
CONTENTVIEW
.
webGetContentApi_funcOk
=
function
(
data
){
//
console.l
og("CONTENTVIEW.webGetContentApi_funcOk:" + data.contentData.contentType);
//
AVWEB.avwL
og("CONTENTVIEW.webGetContentApi_funcOk:" + data.contentData.contentType);
contentType
=
data
.
contentData
.
contentType
;
...
...
@@ -2917,7 +2953,7 @@ CONTENTVIEW.webGetContentApi_funcOk = function(data){
//END TRB00059 - EDITOR: Long - Date : 09/19/2013 - Summary : Add title for media and html type
}
else
{
//
console.l
og("CONTENTVIEW.webGetContentApi_funcOk:initPage");
//
AVWEB.avwL
og("CONTENTVIEW.webGetContentApi_funcOk:initPage");
initPage
();
}
}
...
...
@@ -4260,7 +4296,7 @@ function screenToImage(x, y) {
pt
.
x
=
Math
.
floor
(
nx
+
srcRect
.
left
);
pt
.
y
=
Math
.
floor
(
ny
+
srcRect
.
top
);
//
console.l
og('screenToImage ' + srcRect.right + ' ' + srcRect.left + ' ' + destRect.right + ' ' + destRect.left + ' ' + x + ' ' + sx + ' ' + nx + ' ' + pt.x + ' ' + srcRect.bottom + ' ' + srcRect.top + ' ' + destRect.bottom + ' ' + destRect.top + ' ' + y + ' ' + sy + ' ' + ny + ' ' + pt.y);
//
AVWEB.avwL
og('screenToImage ' + srcRect.right + ' ' + srcRect.left + ' ' + destRect.right + ' ' + destRect.left + ' ' + x + ' ' + sx + ' ' + nx + ' ' + pt.x + ' ' + srcRect.bottom + ' ' + srcRect.top + ' ' + destRect.bottom + ' ' + destRect.top + ' ' + y + ' ' + sy + ' ' + ny + ' ' + pt.y);
return
pt
;
};
...
...
abvw/js/contentview_Anket.js
View file @
d30b5eb9
...
...
@@ -27,6 +27,8 @@ function showAnket(url, fullscreen, objectId) {
+
'</iframe></div>'
+
'<div class="anket-commands" id="anket-commands"><input type="button" value="'
+
i18nText
(
'txtTransparent'
)
+
'" id="btnFullOpacity"/> <input type="button" value="'
+
i18nText
(
'txtSemiTransparent'
)
+
'" id="btnApartOpacity"/> <input type="button" value="'
+
i18nText
(
'txtNoTransparent'
)
+
'" id="btnNoOpacity"/></div><div style="clear:both;"></div>'
);
/*
$('#dialog h1 img').click(function(){
//時間記録
...
...
@@ -38,6 +40,25 @@ function showAnket(url, fullscreen, objectId) {
$container.removeAttr('style');
hideDialog();
});
*/
$
(
"#dialog h1 img"
).
on
({
'click touchend'
:
function
(
ev
){
//時間記録
var
dateEnd
=
new
Date
();
var
actionTime
=
dateEnd
.
subtractBySeconds
(
dateStart
);
//alert("actionTime:" + actionTime);
SetObjectLogActionTime
(
contentID
,
objectId
,
actionTime
);
$container
.
removeAttr
(
'style'
);
hideDialog
();
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//時間記録
var
dateStart
=
new
Date
();
...
...
abvw/js/contentview_CallApi.js
View file @
d30b5eb9
...
...
@@ -41,7 +41,7 @@ function getJsonContentInfo() {
fileEntry
.
file
(
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
console
.
l
og
(
"read FileSystem"
);
AVWEB
.
avwL
og
(
"read FileSystem"
);
pageImages
=
e
.
target
.
result
;
webGetContentData
();
getSearchDataFromJson
();
...
...
@@ -58,7 +58,7 @@ function getJsonContentInfo() {
},
function
(
err
){
// 失敗時のコールバック関数
console
.
l
og
(
"NotRead FileSystem"
);
AVWEB
.
avwL
og
(
"NotRead FileSystem"
);
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
1
},
...
...
abvw/js/contentview_CreateObjects.js
View file @
d30b5eb9
This diff is collapsed.
Click to expand it.
abvw/js/contentview_Events.js
View file @
d30b5eb9
...
...
@@ -408,7 +408,7 @@ function firstPage_click() {
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
console
.
l
og
(
"read FileSystem"
);
AVWEB
.
avwL
og
(
"read FileSystem"
);
pageImages
=
e
.
target
.
result
;
/* get page Objects */
...
...
@@ -429,7 +429,7 @@ function firstPage_click() {
);
},
function
(
err
){
// 失敗時のコールバック関数
console
.
l
og
(
"NotRead FileSystem"
);
AVWEB
.
avwL
og
(
"NotRead FileSystem"
);
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
1
},
...
...
@@ -537,7 +537,7 @@ function lastPage_click() {
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
console
.
l
og
(
"read FileSystem"
);
AVWEB
.
avwL
og
(
"read FileSystem"
);
pageImages
=
e
.
target
.
result
;
/* get page Objects */
...
...
@@ -556,7 +556,7 @@ function lastPage_click() {
);
},
function
(
err
){
// 失敗時のコールバック関数
console
.
l
og
(
"NotRead FileSystem"
);
AVWEB
.
avwL
og
(
"NotRead FileSystem"
);
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
totalPage
},
...
...
@@ -868,8 +868,7 @@ function onUnlock() {
function
onClick_CanvasMain
(
event
)
{
console
.
log
(
"onClick_CanvasMain"
);
//AVWEB.avwLog("onClick_CanvasMain");
event
.
preventDefault
();
if
(
isLoadingObject
){
...
...
@@ -957,7 +956,7 @@ function onClick_CanvasMain(event) {
for
(
var
nIndex
=
0
;
nIndex
<
memoObjects
.
length
;
nIndex
++
)
{
var
hitPageObjMemo
=
memoObjects
[
nIndex
];
if
(
hitPageObjMemo
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
))
{
//
console.l
og("PageObject Hit!! Id: " + hitPageObjMemo.id);
//
AVWEB.avwL
og("PageObject Hit!! Id: " + hitPageObjMemo.id);
//hitPageObjMemo.action();
/* save object memo */
...
...
@@ -1008,7 +1007,7 @@ function onClick_CanvasMain(event) {
for
(
var
nIndex
=
0
;
nIndex
<
webGetContentType4Objects
.
length
;
nIndex
++
)
{
var
hitPageObjLinkList
=
webGetContentType4Objects
[
nIndex
];
if
(
hitPageObjLinkList
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
))
{
//
console.l
og("PageObject Hit!! Id: " + hitPageObjLinkList.id);
//
AVWEB.avwL
og("PageObject Hit!! Id: " + hitPageObjLinkList.id);
if
(
hitPageObjLinkList
.
pageNo
==
changePageIndex
(
getPageIndex
())){
hitPageObjLinkList
.
action
();
...
...
@@ -1488,15 +1487,14 @@ function resetNaviAction(){
$
(
'#mainNext'
).
css
(
"display"
,
'none'
);
_touchFirstPos
=
null
;
_touchLastPos
=
null
;
//
console.l
og("================correctCanvasPosition===============");
//
AVWEB.avwL
og("================correctCanvasPosition===============");
correctCanvasPosition
();
};
function
onTouchstart
(
evt
){
console
.
log
(
"onTouchstart _isClick:"
+
_isClick
);
AVWEB
.
avwLog
(
"onTouchstart _isClick:"
+
_isClick
);
//evt.preventDefault();
if
(
ClientData
.
IsAddingMarking
()
==
true
){
...
...
@@ -1731,8 +1729,7 @@ var isPreventClick = false;
function
onTouchmove
(
evt
){
console
.
log
(
"onTouchmove isClick:"
+
_isClick
);
AVWEB
.
avwLog
(
"onTouchmove isClick:"
+
_isClick
);
//evt.preventDefault();
if
(
ClientData
.
IsAddingMarking
()
==
true
){
...
...
@@ -1882,7 +1879,7 @@ function onTouchmove(evt){
resetNaviAction
();
}
//
console.l
og("zoom page case");
//
AVWEB.avwL
og("zoom page case");
if
(
_bufferPoints
.
length
==
0
)
{
//first point so that wait to next point
touch1
=
{
clientX
:
evt
.
clientX
,
clientY
:
evt
.
clientY
,
pointerId
:
evt
.
pointerId
};
...
...
@@ -1903,7 +1900,7 @@ function onTouchmove(evt){
}
touch2
=
{
clientX
:
evt
.
clientX
,
clientY
:
evt
.
clientY
,
pointerId
:
evt
.
pointerId
};
//
console.l
og("_bufferPoints.length:" + _bufferPoints.length);
//
AVWEB.avwL
og("_bufferPoints.length:" + _bufferPoints.length);
_bufferPoints
=
[];
}
}
...
...
@@ -2015,7 +2012,7 @@ function onTouchmove(evt){
function
onTouchend
(
evt
){
console
.
l
og
(
"onTouchend isClick:"
+
_isClick
);
AVWEB
.
avwL
og
(
"onTouchend isClick:"
+
_isClick
);
//evt.preventDefault();
...
...
@@ -2187,7 +2184,7 @@ function onTouchend(evt){
for
(
var
nIndex
=
0
;
nIndex
<
memoObjects
.
length
;
nIndex
++
)
{
var
hitPageObjMemo
=
memoObjects
[
nIndex
];
if
(
hitPageObjMemo
.
hitTest
(
imagePt
.
x
,
imagePt
.
y
))
{
//
console.l
og("PageObject Hit!! Id: " + hitPageObjMemo.id);
//
AVWEB.avwL
og("PageObject Hit!! Id: " + hitPageObjMemo.id);
//hitPageObjMemo.action();
/* save object memo */
...
...
@@ -2407,7 +2404,7 @@ function processNaviPage(currPos){
if
(
_moveNum
==
0
&&
lMoveX
>
0
){
_moveNum
=
-
2
;
// go from left to right + back to left + go to right=> priveous page
}
//
console.l
og("_moveNum:" +_moveNum);
//
AVWEB.avwL
og("_moveNum:" +_moveNum);
if
(
animateType
==
animateTypeKeys
.
Type_Slide
){
var
left
=
$
(
'#canvasWrapper'
).
css
(
'left'
).
replace
(
"px"
,
""
);
...
...
@@ -2471,7 +2468,7 @@ TransitionObject.prototype.processNaviPage = function (currPos) {
if
(
_moveNum
==
0
&&
lMoveX
>
0
){
_moveNum
=
-
2
;
// go from left to right + back to left + go to right=> priveous page
}
//
console.l
og("_moveNum:" +_moveNum);
//
AVWEB.avwL
og("_moveNum:" +_moveNum);
if
(
animateType
==
animateTypeKeys
.
Type_Slide
){
var
left
=
$
(
'#canvasWrapper'
).
css
(
'left'
).
replace
(
"px"
,
""
);
...
...
abvw/js/contentview_FileSystem.js
View file @
d30b5eb9
...
...
@@ -15,7 +15,7 @@ CONTENTVIEW_FILESYSTEM.initFS = function( func ) {
window
.
requestFileSystem
=
window
.
requestFileSystem
||
window
.
webkitRequestFileSystem
;
// Initiate filesystem on page load.
if
(
!
window
.
requestFileSystem
)
{
//
console.l
og("window.requestFileSystem is null");
//
AVWEB.avwL
og("window.requestFileSystem is null");
if
(
func
!=
null
){
func
();
}
...
...
@@ -26,7 +26,7 @@ CONTENTVIEW_FILESYSTEM.initFS = function( func ) {
window
.
TEMPORARY
,
1024
*
1024
,
function
(
filesystem
)
{
//
console.l
og("initFS window.requestFileSystem");
//
AVWEB.avwL
og("initFS window.requestFileSystem");
CONTENTVIEW_FILESYSTEM
.
fs
=
filesystem
;
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getDirectory
(
'abook'
,
...
...
@@ -53,7 +53,7 @@ CONTENTVIEW_FILESYSTEM.initFS = function( func ) {
CONTENTVIEW_FILESYSTEM
.
savePageFile
=
function
(
contentId
,
fileName
,
data
)
{
if
(
!
CONTENTVIEW_FILESYSTEM
.
fs
)
{
//
console.l
og('CONTENTVIEW_FILESYSTEM.fs is null. id=' + contentId);
//
AVWEB.avwL
og('CONTENTVIEW_FILESYSTEM.fs is null. id=' + contentId);
return
;
}
...
...
@@ -71,10 +71,10 @@ CONTENTVIEW_FILESYSTEM.savePageFile = function(contentId, fileName, data) {
fileEntry
.
createWriter
(
function
(
fileWriter
)
{
fileWriter
.
onwriteend
=
function
(
e
)
{
console
.
l
og
(
'書き込み完了'
);
AVWEB
.
avwL
og
(
'書き込み完了'
);
};
fileWriter
.
onerror
=
function
(
e
)
{
console
.
l
og
(
'書き込みエラー: '
+
e
.
toString
());
AVWEB
.
avwL
og
(
'書き込みエラー: '
+
e
.
toString
());
};
var
blobData
=
new
Blob
([
data
],
{
type
:
"text/plain"
});
fileWriter
.
write
(
blobData
);
...
...
@@ -93,7 +93,7 @@ CONTENTVIEW_FILESYSTEM.savePageFile = function(contentId, fileName, data) {
CONTENTVIEW_FILESYSTEM
.
deleteContentDir
=
function
(
contentId
)
{
if
(
!
CONTENTVIEW_FILESYSTEM
.
fs
)
{
//
console.l
og('CONTENTVIEW_FILESYSTEM.fs is null. id=' + contentId);
//
AVWEB.avwL
og('CONTENTVIEW_FILESYSTEM.fs is null. id=' + contentId);
return
;
}
...
...
@@ -103,7 +103,7 @@ CONTENTVIEW_FILESYSTEM.deleteContentDir = function(contentId) {
function
(
dirEntry
)
{
dirEntry
.
removeRecursively
(
function
()
{
console
.
l
og
(
'Directory removed. id='
+
contentId
);
AVWEB
.
avwL
og
(
'Directory removed. id='
+
contentId
);
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
...
...
@@ -116,7 +116,7 @@ CONTENTVIEW_FILESYSTEM.deleteContentDir = function(contentId) {
CONTENTVIEW_FILESYSTEM
.
checkUpdate
=
function
(
contentId
,
data
,
func
)
{
if
(
!
CONTENTVIEW_FILESYSTEM
.
fs
)
{
//
console.l
og('CONTENTVIEW_FILESYSTEM.fs is null. id=' + contentId);
//
AVWEB.avwL
og('CONTENTVIEW_FILESYSTEM.fs is null. id=' + contentId);
//おまじない ajaxカウントをインクリする必要有り
//nAjaxLoad++;
//ファンクションがあれば実行
...
...
@@ -136,15 +136,15 @@ CONTENTVIEW_FILESYSTEM.checkUpdate = function(contentId, data, func) {
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
console
.
l
og
(
"read Json.txt"
);
AVWEB
.
avwL
og
(
"read Json.txt"
);
//JSONに戻す
var
jsonObjOld
=
JSON
.
parse
(
e
.
target
.
result
);
//配信日時比較
console
.
l
og
(
"OLD:"
+
jsonObjOld
.
contentData
.
lastDeliveryDate
);
console
.
l
og
(
"NEW:"
+
data
.
contentData
.
lastDeliveryDate
);
AVWEB
.
avwL
og
(
"OLD:"
+
jsonObjOld
.
contentData
.
lastDeliveryDate
);
AVWEB
.
avwL
og
(
"NEW:"
+
data
.
contentData
.
lastDeliveryDate
);
if
(
jsonObjOld
.
contentData
.
lastDeliveryDate
!=
data
.
contentData
.
lastDeliveryDate
){
console
.
l
og
(
"Update Content."
);
AVWEB
.
avwL
og
(
"Update Content."
);
//ディレクトリ消し
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getDirectory
(
...
...
@@ -153,7 +153,7 @@ CONTENTVIEW_FILESYSTEM.checkUpdate = function(contentId, data, func) {
function
(
dirEntry
)
{
dirEntry
.
removeRecursively
(
function
()
{
console
.
l
og
(
'Directory removed. id='
+
contentId
);
AVWEB
.
avwL
og
(
'Directory removed. id='
+
contentId
);
//再度書き込み
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getDirectory
(
...
...
@@ -168,7 +168,7 @@ CONTENTVIEW_FILESYSTEM.checkUpdate = function(contentId, data, func) {
fileEntry
.
createWriter
(
function
(
fileWriter
)
{
fileWriter
.
onwriteend
=
function
(
e
)
{
console
.
l
og
(
'JSON書き込み完了'
);
AVWEB
.
avwL
og
(
'JSON書き込み完了'
);
//おまじない ajaxカウントをインクリする必要有り
nAjaxLoad
++
;
...
...
@@ -179,7 +179,7 @@ CONTENTVIEW_FILESYSTEM.checkUpdate = function(contentId, data, func) {
};
fileWriter
.
onerror
=
function
(
e
)
{
console
.
l
og
(
'JSON書き込みエラー: '
+
e
.
toString
());
AVWEB
.
avwL
og
(
'JSON書き込みエラー: '
+
e
.
toString
());
};
var
blobData
=
new
Blob
([
window
.
JSON
.
stringify
(
data
)],
{
type
:
"text/plain"
});
fileWriter
.
write
(
blobData
);
...
...
@@ -217,7 +217,7 @@ CONTENTVIEW_FILESYSTEM.checkUpdate = function(contentId, data, func) {
);
},
function
(
err
){
// 失敗時のコールバック関数
console
.
l
og
(
"NotRead json.txt"
);
AVWEB
.
avwL
og
(
"NotRead json.txt"
);
//書き込む パス作成
//var path = "/abook/" + contentId + "/" + fileName;
...
...
@@ -233,7 +233,7 @@ CONTENTVIEW_FILESYSTEM.checkUpdate = function(contentId, data, func) {
fileEntry
.
createWriter
(
function
(
fileWriter
)
{
fileWriter
.
onwriteend
=
function
(
e
)
{
console
.
l
og
(
'JSON書き込み完了'
);
AVWEB
.
avwL
og
(
'JSON書き込み完了'
);
//おまじない ajaxカウントをインクリする必要有り
nAjaxLoad
++
;
...
...
@@ -244,7 +244,7 @@ CONTENTVIEW_FILESYSTEM.checkUpdate = function(contentId, data, func) {
};
fileWriter
.
onerror
=
function
(
e
)
{
console
.
l
og
(
'JSON書き込みエラー: '
+
e
.
toString
());
AVWEB
.
avwL
og
(
'JSON書き込みエラー: '
+
e
.
toString
());
};
var
blobData
=
new
Blob
([
window
.
JSON
.
stringify
(
data
)],
{
type
:
"text/plain"
});
fileWriter
.
write
(
blobData
);
...
...
@@ -266,10 +266,10 @@ CONTENTVIEW_FILESYSTEM.checkUpdate = function(contentId, data, func) {
CONTENTVIEW_FILESYSTEM
.
showVideoObjectCache
=
function
(
x
,
y
,
width
,
height
,
src
,
isFullscreen
,
contentId
,
resourceId
){
console
.
l
og
(
'CONTENTVIEW_FILESYSTEM.showVideoObjectCache'
);
AVWEB
.
avwL
og
(
'CONTENTVIEW_FILESYSTEM.showVideoObjectCache'
);
if
(
!
CONTENTVIEW_FILESYSTEM
.
fs
)
{
//
console.l
og('CONTENTVIEW_FILESYSTEM.fs is null. id=' + contentId);
//
AVWEB.avwL
og('CONTENTVIEW_FILESYSTEM.fs is null. id=' + contentId);
showVideoObject
(
x
,
y
,
width
,
height
,
src
,
isFullscreen
,
true
);
return
;
}
...
...
@@ -280,7 +280,7 @@ CONTENTVIEW_FILESYSTEM.showVideoObjectCache = function(x, y, width, height, src,
function
(
fileEntry
){
fileEntry
.
file
(
function
(
file
){
console
.
l
og
(
"read cache"
);
AVWEB
.
avwL
og
(
"read cache"
);
var
url
=
window
.
URL
||
window
.
webkitURL
;
var
resSrc
=
url
.
createObjectURL
(
file
);
showVideoObject
(
x
,
y
,
width
,
height
,
resSrc
,
isFullscreen
,
false
);
...
...
@@ -288,7 +288,7 @@ CONTENTVIEW_FILESYSTEM.showVideoObjectCache = function(x, y, width, height, src,
);
},
function
(
err
){
// 失敗時のコールバック関数
console
.
l
og
(
"NotRead FileSystem"
);
AVWEB
.
avwL
og
(
"NotRead FileSystem"
);
//キャッシュ化
var
xhr
=
new
XMLHttpRequest
();
...
...
@@ -299,7 +299,7 @@ CONTENTVIEW_FILESYSTEM.showVideoObjectCache = function(x, y, width, height, src,
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
//this.response is what you're looking for
console
.
l
og
(
this
.
response
,
typeof
this
.
response
);
AVWEB
.
avwL
og
(
this
.
response
,
typeof
this
.
response
);
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
...
...
@@ -308,10 +308,10 @@ CONTENTVIEW_FILESYSTEM.showVideoObjectCache = function(x, y, width, height, src,
fileEntry
.
createWriter
(
function
(
fileWriter
)
{
fileWriter
.
onwriteend
=
function
(
e
)
{
console
.
l
og
(
'RES書き込み完了'
);
AVWEB
.
avwL
og
(
'RES書き込み完了'
);
};
fileWriter
.
onerror
=
function
(
e
)
{
console
.
l
og
(
'RES書き込みエラー: '
+
e
.
toString
());
AVWEB
.
avwL
og
(
'RES書き込みエラー: '
+
e
.
toString
());
};
var
blobData
=
new
Blob
([
xhr
.
response
],
{
type
:
"application/octet-stream"
});
...
...
@@ -326,7 +326,7 @@ CONTENTVIEW_FILESYSTEM.showVideoObjectCache = function(x, y, width, height, src,
}
else
{
if
(
this
.
readyState
==
2
){
console
.
l
og
(
"onreadystatechange:"
+
this
.
readyState
+
" "
+
this
.
status
);
AVWEB
.
avwL
og
(
"onreadystatechange:"
+
this
.
readyState
+
" "
+
this
.
status
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'block'
);
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
true
;
}
...
...
@@ -338,7 +338,7 @@ CONTENTVIEW_FILESYSTEM.showVideoObjectCache = function(x, y, width, height, src,
xhr
.
responseType
=
'blob'
;
xhr
.
send
();
}
else
{
console
.
l
og
(
"xhr is busy."
);
AVWEB
.
avwL
og
(
"xhr is busy."
);
}
//タグは書き出し
...
...
@@ -373,7 +373,7 @@ CONTENTVIEW_FILESYSTEM.errorHandler = function(e) {
break
;
};
//CONTENTVIEW_FILESYSTEM.fs = null;
console
.
l
og
(
'FileSystemAPI Error: '
+
msg
);
AVWEB
.
avwL
og
(
'FileSystemAPI Error: '
+
msg
);
alert
(
'FileSystemAPI Error: '
+
msg
);
};
abvw/js/contentview_GetData.js
View file @
d30b5eb9
...
...
@@ -927,7 +927,19 @@ function getBookmarklist(pos) {
//title start
$
(
'#bookmarkBoxHdBM'
).
children
().
remove
();
$
(
'#bookmarkBoxHdBM'
).
html
(
'<a id="bookmarkClosing" class="delete" > </a>'
);
$
(
"#bookmarkClosing"
).
click
(
closeBookmarkBox
);
//$("#bookmarkClosing").click(closeBookmarkBox);
$
(
"#bookmarkClosing"
).
on
({
'click touchend'
:
function
(
ev
){
closeBookmarkBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#bookmarkBoxHdBM'
).
append
(
i18nText
(
'txtShioriCtnLs'
));
//title end
//lockLayout();
...
...
@@ -961,7 +973,19 @@ function getPageIndexJson(pos) {
//title start
$
(
'#indexBoxHdIndex'
).
children
().
remove
();
$
(
'#indexBoxHdIndex'
).
html
(
'<a id="indexClosing" class="delete" > </a>'
);
$
(
"#indexClosing"
).
click
(
closeIndexBox
);
//$("#indexClosing").click(closeIndexBox);
$
(
"#indexClosing"
).
on
({
'click touchend'
:
function
(
ev
){
closeIndexBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#indexBoxHdIndex'
).
append
(
i18nText
(
'txtIndex'
));
//title end
//lockLayout();
...
...
@@ -1017,7 +1041,19 @@ function getPageIndexJson(pos) {
//title start
$
(
'#indexBoxHdIndex'
).
children
().
remove
();
$
(
'#indexBoxHdIndex'
).
html
(
'<a id="indexClosing" class="delete" > </a>'
);
$
(
"#indexClosing"
).
click
(
closeIndexBox
);
//$("#indexClosing").click(closeIndexBox);
$
(
"#indexClosing"
).
on
({
'click touchend'
:
function
(
ev
){
closeIndexBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#indexBoxHdIndex'
).
append
(
i18nText
(
'txtIndex'
));
//title end
//lockLayout();
...
...
@@ -1264,7 +1300,7 @@ function renderNextPage(){
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
console
.
l
og
(
"read FileSystem"
);
AVWEB
.
avwL
og
(
"read FileSystem"
);
nextPageImage
=
e
.
target
.
result
;
nextContent
.
setPageImages
(
totalPage
,
nextPageImage
)
...
...
@@ -1277,7 +1313,7 @@ function renderNextPage(){
);
},
function
(
err
){
// 失敗時のコールバック関数
console
.
l
og
(
"NotRead FileSystem"
);
AVWEB
.
avwL
og
(
"NotRead FileSystem"
);
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
pageNo
},
...
...
@@ -1343,7 +1379,7 @@ function renderPrevPage(){
function
(
file
){
var
reader
=
new
FileReader
();
reader
.
onloadend
=
function
(
e
)
{
console
.
l
og
(
"read FileSystem"
);
AVWEB
.
avwL
og
(
"read FileSystem"
);
prevPageImage
=
e
.
target
.
result
;
prevContent
.
setPageImages
(
totalPage
,
prevPageImage
)
...
...
@@ -1356,7 +1392,7 @@ function renderPrevPage(){
);
},
function
(
err
){
// 失敗時のコールバック関数
console
.
l
og
(
"NotRead FileSystem"
);
AVWEB
.
avwL
og
(
"NotRead FileSystem"
);
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
pageNo
:
pageNo
},
function
(
data
)
{
...
...
@@ -1528,8 +1564,8 @@ function getPrevPageObjectsByPageIndex(contentData, nIndexPage) {
function
switchCanvas
(
nav
){
// change div id
//
console.l
og("bf widthEachPage:" + widthEachPage + " widthEachNextPage:" + widthEachNextPage + " widthEachPrevPage:" + widthEachPrevPage);
//
console.l
og("bf widthEachPageApi:" + widthEachPageApi + " widthEachNextPageApi:" + widthEachNextPageApi + " widthEachPrevPageApi:" + widthEachPrevPageApi);
//
AVWEB.avwL
og("bf widthEachPage:" + widthEachPage + " widthEachNextPage:" + widthEachNextPage + " widthEachPrevPage:" + widthEachPrevPage);
//
AVWEB.avwL
og("bf widthEachPageApi:" + widthEachPageApi + " widthEachNextPageApi:" + widthEachNextPageApi + " widthEachPrevPageApi:" + widthEachPrevPageApi);
if
(
nav
==
1
){
$
(
'#mainPre'
).
attr
(
"id"
,
"mainPreBK"
);
...
...
@@ -1604,8 +1640,8 @@ function switchCanvas(nav){
//END TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
}
//
console.l
og("af widthEachPage:" + widthEachPage + " widthEachNextPage:" + widthEachNextPage + " widthEachPrevPage:" + widthEachPrevPage);
//
console.l
og("af widthEachPageApi:" + widthEachPageApi + " widthEachNextPageApi:" + widthEachNextPageApi + " widthEachPrevPageApi:" + widthEachPrevPageApi);
//
AVWEB.avwL
og("af widthEachPage:" + widthEachPage + " widthEachNextPage:" + widthEachNextPage + " widthEachPrevPage:" + widthEachPrevPage);
//
AVWEB.avwL
og("af widthEachPageApi:" + widthEachPageApi + " widthEachNextPageApi:" + widthEachNextPageApi + " widthEachPrevPageApi:" + widthEachPrevPageApi);
};
...
...
abvw/js/contentview_Gomu.js
View file @
d30b5eb9
...
...
@@ -227,13 +227,77 @@ $(function () {
document
.
getElementById
(
'dlgGomu_dspCancel'
).
addEventListener
(
'touchstart'
,
touchStart_BtnCancel_Gomu
,
false
);
}
$
(
"#dlgGomu_dspOK"
).
click
(
dlgGomu_dspOK_click
);
$
(
"#dlgGomu_dspCancel"
).
click
(
dlgGomu_dspCancel_click
);
$
(
"#text_dlgGomu_rdo1"
).
click
(
dlgGomu_rdo1_text_click
);
$
(
"#text_dlgGomu_rdo2"
).
click
(
dlgGomu_rdo2_text_click
);
$
(
"#text_dlgGomu_rdo3"
).
click
(
dlgGomu_rdo3_text_click
);
$
(
"#text_dlgGomu_rdo4"
).
click
(
dlgGomu_rdo4_text_click
);
//$("#dlgGomu_dspOK").click(dlgGomu_dspOK_click);
$
(
"#dlgGomu_dspOK"
).
on
({
'click touchend'
:
function
(
ev
){
dlgGomu_dspOK_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgGomu_dspCancel").click(dlgGomu_dspCancel_click);
$
(
"#dlgGomu_dspCancel"
).
on
({
'click touchend'
:
function
(
ev
){
dlgGomu_dspCancel_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#text_dlgGomu_rdo1").click(dlgGomu_rdo1_text_click);
$
(
"#text_dlgGomu_rdo1"
).
on
({
'click touchend'
:
function
(
ev
){
dlgGomu_rdo1_text_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#text_dlgGomu_rdo2").click(dlgGomu_rdo2_text_click);
$
(
"#text_dlgGomu_rdo2"
).
on
({
'click touchend'
:
function
(
ev
){
dlgGomu_rdo2_text_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#text_dlgGomu_rdo3").click(dlgGomu_rdo3_text_click);
$
(
"#text_dlgGomu_rdo3"
).
on
({
'click touchend'
:
function
(
ev
){
dlgGomu_rdo3_text_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#text_dlgGomu_rdo4").click(dlgGomu_rdo4_text_click);
$
(
"#text_dlgGomu_rdo4"
).
on
({
'click touchend'
:
function
(
ev
){
dlgGomu_rdo4_text_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
});
...
...
abvw/js/contentview_InitObjects.js
View file @
d30b5eb9
...
...
@@ -126,7 +126,7 @@ function initPage() {
//abe
//alert("initPage");
//
console.l
og("initPage");
//
AVWEB.avwL
og("initPage");
//START : TRB00034 - DATE : 09/11/2013 - Editor : Long - Summary : Fix for center loading image
setLoadingSize
();
...
...
@@ -200,7 +200,18 @@ function initPage() {
/* copy text */
$
(
'#copytext'
).
click
(
showCopyText
);
/* close copy text dialog */
$
(
"#copyTextClosing"
).
click
(
closeCopyTextBox
);
//$("#copyTextClosing").click(closeCopyTextBox);
$
(
"#copyTextClosing"
).
on
({
'click touchend'
:
function
(
ev
){
closeCopyTextBox
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
}
...
...
@@ -219,7 +230,19 @@ function initPage() {
$
(
"#imgHome"
).
click
(
imgHome_click
);
$
(
"#btn_show_memo"
).
click
(
showEditMemo
);
$
(
"#btn_copy_memo"
).
click
(
copyMemo
);
$
(
'#memoClosing'
).
click
(
closePopUpCopyMemo
);
//$('#memoClosing').click(closePopUpCopyMemo);
$
(
"#memoClosing"
).
on
({
'click touchend'
:
function
(
ev
){
closePopUpCopyMemo
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#liAddMemo'
).
click
(
click_liAddMemo
);
$
(
'#liCopyMemo'
).
click
(
click_liCopyMemo
);
$
(
'#liDeleteMemo'
).
click
(
click_liDeleteMemo
);
...
...
@@ -278,7 +301,7 @@ function initPage() {
/*Init Page */
nAjaxLoad
++
;
//
console.l
og("nAjaxLoad:" + nAjaxLoad);
//
AVWEB.avwL
og("nAjaxLoad:" + nAjaxLoad);
if
(
nAjaxLoad
==
8
)
{
/* handle from bookmark page */
...
...
@@ -622,7 +645,7 @@ function initPageMediaAndHtmlType(){
function
(
file
){
var
url
=
window
.
URL
||
window
.
webkitURL
;
var
resSrc
=
url
.
createObjectURL
(
file
);
console
.
l
og
(
"read cache: createObjectURL "
+
resSrc
);
AVWEB
.
avwL
og
(
"read cache: createObjectURL "
+
resSrc
);
displayOverlayForSpecifyContentType
(
resSrc
);
...
...
@@ -630,7 +653,7 @@ function initPageMediaAndHtmlType(){
);
},
function
(
err
){
// 失敗時のコールバック関数
console
.
l
og
(
"NotRead FileSystem"
);
AVWEB
.
avwL
og
(
"NotRead FileSystem"
);
//キャッシュ化
var
xhr
=
new
XMLHttpRequest
();
...
...
@@ -641,7 +664,7 @@ function initPageMediaAndHtmlType(){
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
//this.response is what you're looking for
console
.
l
og
(
this
.
response
,
typeof
this
.
response
);
AVWEB
.
avwL
og
(
this
.
response
,
typeof
this
.
response
);
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
'/abook/'
+
fileName
,
{
create
:
true
},
...
...
@@ -649,10 +672,10 @@ function initPageMediaAndHtmlType(){
fileEntry
.
createWriter
(
function
(
fileWriter
)
{
fileWriter
.
onwriteend
=
function
(
e
)
{
console
.
l
og
(
'RES書き込み完了'
);
AVWEB
.
avwL
og
(
'RES書き込み完了'
);
};
fileWriter
.
onerror
=
function
(
e
)
{
console
.
l
og
(
'RES書き込みエラー: '
+
e
.
toString
());
AVWEB
.
avwL
og
(
'RES書き込みエラー: '
+
e
.
toString
());
};
var
blobData
=
new
Blob
([
xhr
.
response
],
{
type
:
"application/octet-stream"
});
...
...
@@ -666,12 +689,12 @@ function initPageMediaAndHtmlType(){
}
else
{
if
(
this
.
readyState
==
2
){
console
.
l
og
(
"onreadystatechange:"
+
this
.
readyState
+
" "
+
this
.
status
);
AVWEB
.
avwL
og
(
"onreadystatechange:"
+
this
.
readyState
+
" "
+
this
.
status
);
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
true
;
$
(
'#divImageLoading'
).
css
(
'z-index'
,
'99999'
);
$
(
'#divImageLoading'
).
css
(
'display'
,
'block'
);
}
//
console.l
og("onreadystatechange:" + this.readyState + " " + this.status);
//
AVWEB.avwL
og("onreadystatechange:" + this.readyState + " " + this.status);
}
};
...
...
@@ -681,7 +704,7 @@ function initPageMediaAndHtmlType(){
xhr
.
responseType
=
'blob'
;
xhr
.
send
();
}
else
{
console
.
l
og
(
"xhr is busy."
);
AVWEB
.
avwL
og
(
"xhr is busy."
);
}
//タグは書き出し
...
...
abvw/js/contentview_Maker.js
View file @
d30b5eb9
...
...
@@ -46,17 +46,93 @@ function Maker_handleColorPickerEvent(){
$
(
'#makerColorwrapper'
).
bind
(
'mouseleave'
,
Maker_colorWrapperMouseLeaveFunction
);
}
$
(
'#Maker_btnOk'
).
live
(
'click'
,
Maker_dspOK_click
);
$
(
'#Maker_btnCancel'
).
live
(
'click'
,
Maker_dspCancel_click
);
//$('#Maker_btnOk').live('click', Maker_dspOK_click);
$
(
"#Maker_btnOk"
).
on
({
'click touchend'
:
function
(
ev
){
Maker_dspOK_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#Maker_btnCancel').live('click', Maker_dspCancel_click);
$
(
"#Maker_btnCancel"
).
on
({
'click touchend'
:
function
(
ev
){
Maker_dspCancel_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
Maker_SetDefaultValue
();
$
(
'#marker-small-text'
).
live
(
'click'
,
markerSmallTextClick
);
$
(
'#marker-medium-text'
).
live
(
'click'
,
markerMediumTextClick
);
$
(
'#marker-large-text'
).
live
(
'click'
,
markerLargeTextClick
);
$
(
'#marker-oversize-text'
).
live
(
'click'
,
markerOversizeTextClick
);
//$('#marker-small-text').live('click', markerSmallTextClick);
$
(
"#marker-small-text"
).
on
({
'click touchend'
:
function
(
ev
){
markerSmallTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#marker-medium-text').live('click', markerMediumTextClick);
$
(
"#marker-medium-text"
).
on
({
'click touchend'
:
function
(
ev
){
markerMediumTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#marker-large-text').live('click', markerLargeTextClick);
$
(
"#marker-large-text"
).
on
({
'click touchend'
:
function
(
ev
){
markerLargeTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#marker-oversize-text').live('click', markerOversizeTextClick);
$
(
"#marker-oversize-text"
).
on
({
'click touchend'
:
function
(
ev
){
markerOversizeTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#dlgMaker .colorpicker').live('click', Maker_colorPickerClickFunction);
$
(
"#dlgMaker .colorpicker"
).
on
({
'click touchend'
:
function
(
ev
){
Maker_colorPickerClickFunction
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#dlgMaker .colorpicker'
).
live
(
'click'
,
Maker_colorPickerClickFunction
);
};
function
markerSmallTextClick
(){
...
...
abvw/js/contentview_Marking.js
View file @
d30b5eb9
...
...
@@ -465,20 +465,151 @@ function ShowMarking() {
// Setting dialog
$
(
function
()
{
$
(
"#dlgMarking_dspSave"
).
click
(
dlgMarking_dspSave_click
);
$
(
"#dlgMarking_dspCancel"
).
click
(
dlgMarking_dspCancel_click
);
$
(
"#dlgMarking_dspPgClear"
).
click
(
dlgMarking_dspPgClear_click
);
//$("#dlgMarking_dspSave").click(dlgMarking_dspSave_click);
$
(
"#dlgMarking_dspSave"
).
on
({
'click touchend'
:
function
(
ev
){
dlgMarking_dspSave_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_dspCancel").click(dlgMarking_dspCancel_click);
$
(
"#dlgMarking_dspCancel"
).
on
({
'click touchend'
:
function
(
ev
){
dlgMarking_dspCancel_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_dspPgClear").click(dlgMarking_dspPgClear_click);
$
(
"#dlgMarking_dspPgClear"
).
on
({
'click touchend'
:
function
(
ev
){
dlgMarking_dspPgClear_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
// Icons
$
(
"#dlgMarking_imgMin"
).
click
(
dlgMarking_imgMin_click
);
$
(
"#dlgMarking_imgMax"
).
click
(
dlgMarking_imgMax_click
);
$
(
"#dlgMarking_imgClose"
).
click
(
dlgMarking_imgClose_click
);
$
(
"#dlgMarking_imgPen"
).
click
(
dlgMarking_imgPen_click
);
$
(
"#dlgMarking_imgPenOption"
).
click
(
dlgMarking_imgPenOption_click
);
$
(
"#dlgMarking_imgMaker"
).
click
(
dlgMarking_imgMaker_click
);
$
(
"#dlgMarking_imgMakerOption"
).
click
(
dlgMarking_imgMakerOption_click
);
$
(
"#dlgMarking_imgEraser"
).
click
(
dlgMarking_imgEraser_click
);
$
(
"#dlgMarking_imgEraserOption"
).
click
(
dlgMarking_imgEraserOption_click
);
//$("#dlgMarking_imgMin").click(dlgMarking_imgMin_click);
$
(
"#dlgMarking_imgMin"
).
on
({
'click touchend'
:
function
(
ev
){
dlgMarking_imgMin_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgMax").click(dlgMarking_imgMax_click);
$
(
"#dlgMarking_imgMax"
).
on
({
'click touchend'
:
function
(
ev
){
dlgMarking_imgMax_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgClose").click(dlgMarking_imgClose_click);
$
(
"#dlgMarking_imgClose"
).
on
({
'click touchend'
:
function
(
ev
){
dlgMarking_imgClose_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgPen").click(dlgMarking_imgPen_click);
$
(
"#dlgMarking_imgPen"
).
on
({
'click touchend'
:
function
(
ev
){
dlgMarking_imgPen_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgPenOption").click(dlgMarking_imgPenOption_click);
$
(
"#dlgMarking_imgPenOption"
).
on
({
'click touchend'
:
function
(
ev
){
dlgMarking_imgPenOption_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgMaker").click(dlgMarking_imgMaker_click);
$
(
"#dlgMarking_imgMaker"
).
on
({
'click touchend'
:
function
(
ev
){
dlgMarking_imgMaker_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgMakerOption").click(dlgMarking_imgMakerOption_click);
$
(
"#dlgMarking_imgMakerOption"
).
on
({
'click touchend'
:
function
(
ev
){
dlgMarking_imgMakerOption_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgEraser").click(dlgMarking_imgEraser_click);
$
(
"#dlgMarking_imgEraser"
).
on
({
'click touchend'
:
function
(
ev
){
dlgMarking_imgEraser_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$("#dlgMarking_imgEraserOption").click(dlgMarking_imgEraserOption_click);
$
(
"#dlgMarking_imgEraserOption"
).
on
({
'click touchend'
:
function
(
ev
){
dlgMarking_imgEraserOption_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
/*
$('#dlgMarking').dialog({
autoOpen: false,
...
...
abvw/js/contentview_Memo.js
View file @
d30b5eb9
...
...
@@ -14,7 +14,7 @@ function createMemoDialog(){
targetDiv
.
append
(
'<aside id="memoWrapper" class="MemoIndexBox">'
+
' <h1 class="indexBoxHd">'
+
i18nText
(
'txtMemo'
)
+
' <a class="delete"></a>'
+
' <a
id="memoClosing2"
class="delete"></a>'
+
' </h1>'
+
' <div id="memoArea" class="indexBoxBody_on">'
+
' <textarea id="txaMemoContent" style="resize: none; height: 302px; width: 452px; margin-bottom: 10px"></textarea>'
...
...
@@ -35,7 +35,19 @@ function handleMemoEventFunction(){
$
(
'#Memo_btnSave'
).
click
(
buttonSaveFunction
);
$
(
'#Memo_btnDel'
).
click
(
MemoDelFunction
);
$
(
'#Memo_btnCancel'
).
click
(
MemoCancelFunction
);
$
(
'.delete'
).
click
(
MemoCancelFunction
);
//$('.delete').click(MemoCancelFunction);
$
(
"#memoClosing2"
).
on
({
'click touchend'
:
function
(
ev
){
MemoCancelFunction
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
};
function
memoSaveFunction
(){
...
...
abvw/js/contentview_Paint.js
View file @
d30b5eb9
/// コンテンツ閲覧画面_消しゴム書式オーバーレイ
/// <reference path="../common/js/avweb.js" />
/// <reference path="../common/js/screenLock.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="../common/js/i18n.js" />
/// <reference path="../common/js/jquery-1.8.1.min.js" />
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/jquery.toastmessage.js" />
/// <reference path="../common/js/pageViewer.js" />
// works out the X, Y position of the click inside the canvas from the X, Y position on the page
function
getPosition
(
mouseEvent
,
sigCanvas
)
{
...
...
abvw/js/contentview_Pen.js
View file @
d30b5eb9
...
...
@@ -51,17 +51,95 @@ function Pen_handleColorPickerEvent() {
$
(
'#penColorwrapper'
).
bind
(
'mouseleave'
,
Pen_colorWrapperMouseLeaveFunction
);
}
$
(
'#Pen_btnOk'
).
live
(
'click'
,
Pen_dspOK_click
);
$
(
'#Pen_btnCancel'
).
live
(
'click'
,
Pen_dspCancel_click
);
//$('#Pen_btnOk').live('click', Pen_dspOK_click);
$
(
"#Pen_btnOk"
).
on
({
'click touchend'
:
function
(
ev
){
Pen_dspOK_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#Pen_btnCancel').live('click', Pen_dspCancel_click);
$
(
"#Pen_btnCancel"
).
on
({
'click touchend'
:
function
(
ev
){
Pen_dspCancel_click
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
Pen_SetDefaultValue
();
$
(
'#pen-small-text'
).
live
(
'click'
,
penSmallTextClick
);
$
(
'#pen-medium-text'
).
live
(
'click'
,
penMediumTextClick
);
$
(
'#pen-large-text'
).
live
(
'click'
,
penLargeTextClick
);
$
(
'#pen-oversize-text'
).
live
(
'click'
,
penOversizeTextClick
);
//$('#pen-small-text').live('click', penSmallTextClick);
$
(
"#pen-small-text"
).
on
({
'click touchend'
:
function
(
ev
){
penSmallTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#pen-medium-text').live('click', penMediumTextClick);
$
(
"#pen-medium-text"
).
on
({
'click touchend'
:
function
(
ev
){
penMediumTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#pen-large-text').live('click', penLargeTextClick);
$
(
"#pen-large-text"
).
on
({
'click touchend'
:
function
(
ev
){
penLargeTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#pen-oversize-text').live('click', penOversizeTextClick);
$
(
"#pen-oversize-text"
).
on
({
'click touchend'
:
function
(
ev
){
penOversizeTextClick
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
//$('#dlgPen .colorpicker').live('click', Pen_colorPickerClickFunction);
$
(
"#dlgPen .colorpicker"
).
on
({
'click touchend'
:
function
(
ev
){
Pen_colorPickerClickFunction
(
ev
);
return
false
;
},
'touchstart touchmove'
:
function
(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return
false
;
}
});
$
(
'#dlgPen .colorpicker'
).
live
(
'click'
,
Pen_colorPickerClickFunction
);
};
function
penSmallTextClick
(){
...
...
abvw/js/home.js
View file @
d30b5eb9
...
...
@@ -56,7 +56,7 @@ $(document).ready(function () {
//$(document).ready(function () {
HOME
.
ready
=
function
(){
//
console.l
og("HOME.ready!");
//
AVWEB.avwL
og("HOME.ready!");
if
(
!
avwCheckLogin
(
ScreenIds
.
Login
))
{
return
;
...
...
@@ -1215,7 +1215,7 @@ function getDataJsonFileGroup() {
for
(
var
nIndex
=
0
;
nIndex
<
tree2
.
ExpandNodes
.
length
;
nIndex
++
)
{
if
(
$
(
"#"
+
tree2
.
ExpandNodes
[
nIndex
]).
parent
())
{
//
console.l
og("tree2.ExpandNodes");
//
AVWEB.avwL
og("tree2.ExpandNodes");
var
objParent
=
$
(
"#"
+
tree2
.
ExpandNodes
[
nIndex
]).
parent
();
var
objChild
=
objParent
.
children
()[
0
];
if
(
objChild
)
{
...
...
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