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
7a692c94
Commit
7a692c94
authored
Dec 12, 2012
by
Motohisa Nakano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20121212
parent
bcb0622d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
89 additions
and
34 deletions
+89
-34
abvw/common/js/zoomDetector.js
+36
-0
abvw/common/json/lang/lang-en.json
+1
-1
abvw/common/json/lang/lang-ja.json
+1
-1
abvw/common/json/lang/lang-ko.json
+1
-1
abvw/contentview.html
+22
-21
abvw/css/contentview.css
+2
-0
abvw/css/list_shirori_detail.css
+1
-1
abvw/css/viewer.css
+1
-1
abvw/img/viewer/marking.png
+0
-0
abvw/js/contentview.js
+21
-7
abvw/js/contentview_Memo.js
+3
-1
index.html
+0
-0
No files found.
abvw/common/js/zoomDetector.js
0 → 100644
View file @
7a692c94
var
zoom_ratioPre
=
1
;
var
zoom_ratio
=
1
;
var
zoom_timer
;
var
zoom_continue
=
false
;
var
zoom_callbackFunction
;
var
zoom_miliSeconds
=
1000
;
// Default is 1 second
function
calculateZoomLevel
()
{
if
(
zoom_timer
)
{
clearTimeout
(
zoom_timer
);
zoom_timer
=
null
;
}
zoom_ratio
=
document
.
documentElement
.
clientWidth
/
window
.
innerWidth
;
if
(
zoom_ratioPre
!=
zoom_ratio
)
{
if
(
zoom_callbackFunction
)
{
zoom_callbackFunction
(
zoom_ratioPre
,
zoom_ratio
);
}
zoom_ratioPre
=
zoom_ratio
;
}
if
(
zoom_continue
==
true
)
{
zoom_timer
=
setTimeout
(
"calculateZoomLevel();"
,
zoom_miliSeconds
);
}
}
function
stopDetectZoom
()
{
zoom_continue
=
false
;
}
function
startDetectZoom
(
miliSeconds
,
callbackFunction
)
{
zoom_continue
=
true
;
if
(
callbackFunction
)
{
zoom_callbackFunction
=
callbackFunction
;
}
if
(
miliSeconds
)
{
zoom_miliSeconds
=
miliSeconds
;
}
zoom_timer
=
setTimeout
(
"calculateZoomLevel();"
,
zoom_miliSeconds
);
}
\ No newline at end of file
abvw/common/json/lang/lang-en.json
View file @
7a692c94
...
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"Logout"
,
"txtSearchResult"
:
"Result"
,
"dspHome"
:
"Home"
,
"txtLoginUser"
:
"(Ver.2012121
1-2
)User:"
,
"txtLoginUser"
:
"(Ver.2012121
2-1
)User:"
,
"txtAll"
:
"All"
,
"txtMkgSize"
:
"Size"
,
"txtMkgS"
:
"S"
,
...
...
abvw/common/json/lang/lang-ja.json
View file @
7a692c94
...
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"バックアップせずにログアウト"
,
"txtSearchResult"
:
"検索結果"
,
"dspHome"
:
"ホーム"
,
"txtLoginUser"
:
"(Ver.2012121
1-2
)ログイン中:"
,
"txtLoginUser"
:
"(Ver.2012121
2-1
)ログイン中:"
,
"txtAll"
:
"すべて"
,
"txtMkgSize"
:
"太さ"
,
"txtMkgS"
:
"小"
,
...
...
abvw/common/json/lang/lang-ko.json
View file @
7a692c94
...
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"로그아웃"
,
"txtSearchResult"
:
"검색 결과"
,
"dspHome"
:
"홈"
,
"txtLoginUser"
:
"(Ver.2012121
1-2
)로그인 중:"
,
"txtLoginUser"
:
"(Ver.2012121
2-1
)로그인 중:"
,
"txtAll"
:
"전체"
,
"txtMkgSize"
:
"두께"
,
"txtMkgS"
:
"소"
,
...
...
abvw/contentview.html
View file @
7a692c94
...
...
@@ -368,7 +368,7 @@
/*get mediaInfo */
if
(
iValueObj
.
mediaInfo
){
/* get image from Json */
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
}
else
{
pageObject
[
'imageUrl'
]
=
null
;
}
...
...
@@ -376,7 +376,7 @@
/*get mediaInfo */
if
(
iValueObj
.
mediaInfo
){
/* get image from Json */
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
}
else
{
pageObject
[
'imageUrl'
]
=
null
;
}
...
...
@@ -384,7 +384,7 @@
/*get video file */
if
(
iValueObj
.
action
.
video
){
pageObject
[
'mediaFile'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceName="
+
removeExt
(
iValueObj
.
action
.
video
);
pageObject
[
'mediaFile'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceName="
+
removeExt
(
iValueObj
.
action
.
video
);
pageObject
[
'media'
]
=
iValueObj
.
action
.
video
;
}
else
{
pageObject
[
'mediaFile'
]
=
''
;
...
...
@@ -395,7 +395,7 @@
/*get mediaInfo */
if
(
iValueObj
.
mediaInfo
){
/* get image from Json */
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
}
else
{
pageObject
[
'imageUrl'
]
=
null
;
}
...
...
@@ -403,9 +403,9 @@
/*get video file */
if
(
iValueObj
.
action
.
music
){
if
(
avwUserEnvObj
.
browser
==
'msie'
){
pageObject
[
'audioFile'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceName="
+
removeExt
(
iValueObj
.
action
.
music
)
+
"&isIE=true"
;
pageObject
[
'audioFile'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceName="
+
removeExt
(
iValueObj
.
action
.
music
)
+
"&isIE=true"
;
}
else
{
pageObject
[
'audioFile'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceName="
+
removeExt
(
iValueObj
.
action
.
music
);
pageObject
[
'audioFile'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceName="
+
removeExt
(
iValueObj
.
action
.
music
);
}
}
else
{
pageObject
[
'audioFile'
]
=
''
;
...
...
@@ -436,7 +436,7 @@
/*get mediaInfo */
if
(
iValueObj
.
mediaInfo
){
/* get image from Json */
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
}
else
{
pageObject
[
'imageUrl'
]
=
null
;
}
...
...
@@ -444,7 +444,7 @@
/*get mediaInfo */
if
(
iValueObj
.
mediaInfo
.
resourceId
){
/* get image from Json */
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
}
else
{
pageObject
[
'imageUrl'
]
=
null
;
}
...
...
@@ -454,7 +454,7 @@
var
dataImageFromResource
=
[];
for
(
var
nIndex
=
0
;
nIndex
<
dataResourceImage
.
length
;
nIndex
++
){
dataImageFromResource
.
push
(
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceName="
+
removeExt
(
dataResourceImage
[
nIndex
]));
dataImageFromResource
.
push
(
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceName="
+
removeExt
(
dataResourceImage
[
nIndex
]));
}
pageObject
[
'imagePreview'
]
=
dataImageFromResource
;
...
...
@@ -463,7 +463,7 @@
/*get mediaInfo */
if
(
iValueObj
.
mediaInfo
.
resourceId
){
/* get image from Json */
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
}
else
{
pageObject
[
'imageUrl'
]
=
null
;
}
...
...
@@ -480,7 +480,7 @@
/*get mediaInfo */
if
(
iValueObj
.
mediaInfo
.
resourceId
){
/* get image from Json */
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
}
else
{
pageObject
[
'imageUrl'
]
=
null
;
}
...
...
@@ -504,7 +504,7 @@
/*get mediaInfo */
if
(
iValueObj
.
mediaInfo
.
resourceId
){
/* get image from Json */
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
}
else
{
pageObject
[
'imageUrl'
]
=
null
;
}
...
...
@@ -516,7 +516,7 @@
/*get mediaInfo */
if
(
iValueObj
.
mediaInfo
.
resourceId
){
/* get image from Json */
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
}
else
{
pageObject
[
'imageUrl'
]
=
null
;
}
...
...
@@ -547,7 +547,7 @@
/*get mediaInfo */
if
(
iValueObj
.
mediaInfo
.
resourceId
){
pageObject
[
'mediaFile'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'mediaFile'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'media'
]
=
iValueObj
.
mediaInfo
.
resourceId
;
}
else
{
pageObject
[
'mediaFile'
]
=
''
;
...
...
@@ -590,9 +590,9 @@
/*get mediaInfo */
if
(
iValueObj
.
mediaInfo
.
resourceId
){
if
(
avwUserEnvObj
.
browser
==
'msie'
){
pageObject
[
'audioFile'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
+
"&isIE=true"
;
pageObject
[
'audioFile'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
+
"&isIE=true"
;
}
else
{
pageObject
[
'audioFile'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'audioFile'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
}
}
else
{
pageObject
[
'audioFile'
]
=
''
;
...
...
@@ -625,7 +625,7 @@
for
(
var
nIndex
=
0
;
nIndex
<
imageObjects
.
length
;
nIndex
++
){
/* get image from Json */
imageObjects
[
nIndex
].
fileName
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
imageObjects
[
nIndex
].
resourceId
;
imageObjects
[
nIndex
].
fileName
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
imageObjects
[
nIndex
].
resourceId
;
}
pageObject
[
'dataObjects'
]
=
imageObjects
;
...
...
@@ -665,7 +665,7 @@
var
videoObjects
=
iValueObj
.
mediaInfo
.
media
;
for
(
var
nIndex
=
0
;
nIndex
<
videoObjects
.
length
;
nIndex
++
){
/* get image from Json */
videoObjects
[
nIndex
].
fileName
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
videoObjects
[
nIndex
].
resourceId
;
videoObjects
[
nIndex
].
fileName
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
videoObjects
[
nIndex
].
resourceId
;
}
pageObject
[
'dataObjects'
]
=
videoObjects
;
...
...
@@ -700,7 +700,7 @@
/*get mediaInfo */
if
(
iValueObj
.
mediaInfo
){
/* get image from Json */
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
pageObject
[
'imageUrl'
]
=
getURL
(
"webResourceDownload"
)
+
"
/
?sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
iValueObj
.
mediaInfo
.
resourceId
;
}
else
{
pageObject
[
'imageUrl'
]
=
null
;
}
...
...
@@ -1921,7 +1921,8 @@
var
tree
=
new
TreeViewIndex
();
tree
.
IsShowTotal
=
false
;
tree
.
Show
(
"divListIndex"
,
arrData
,
"listIndex_Callback"
);
$
(
"#divListIndex"
).
treeview
();
$
(
"#divListIndex"
).
treeview
();
$
(
".treeview, .treeview ul"
).
css
(
'padding'
,
'0px 8px 0'
);
}
else
{
$
(
'#divListIndex'
).
children
().
remove
();
$
(
'#divListIndex'
).
append
(
'<span style="color:#333333; font-size:12px; cursor:default; text-decoration:none;">'
+
i18nText
(
'msgNoIndex'
)
+
'</span>'
);
...
...
@@ -3630,7 +3631,7 @@ function oldContent_Back(){
</div>
<div
id=
"divCheckExistMarking"
class=
"check_marking"
style=
"display:none"
>
<img
src=
"img/
list/pic_2
.png"
/>
<img
src=
"img/
viewer/marking
.png"
/>
</div>
<header
id =
"header_toolbar"
class=
"header"
>
...
...
abvw/css/contentview.css
View file @
7a692c94
...
...
@@ -455,6 +455,8 @@ div .ui-slider-range, .ui-widget-header, .ui-slider-range-max {
left
:
20px
;
position
:
absolute
;
background-color
:
white
;
opacity
:
0.5
;
border-radius
:
5px
;
}
/*------------------Control Pen------------------------*/
...
...
abvw/css/list_shirori_detail.css
View file @
7a692c94
...
...
@@ -67,7 +67,7 @@ article .contentDetail {
.sectionContentDetail
#book_data
ul
{
list-style
:
none
;
line-height
:
1em
;
/*line-height:1em;*/
font-size
:
13px
;
margin
:
0
0
0
42px
;
padding
:
0
;
...
...
abvw/css/viewer.css
View file @
7a692c94
...
...
@@ -806,7 +806,7 @@ aside.indexBox .indexBoxHd .hidden_on{
}
aside
.indexBox
.indexBoxBody_on
{
width
:
370px
;
height
:
3
57
px
;
height
:
3
62
px
;
background
:
#FFFFFF
;
border
:
solid
1px
#cfd0d0
;
border-top
:
none
;
...
...
abvw/img/viewer/marking.png
0 → 100644
View file @
7a692c94
970 Bytes
abvw/js/contentview.js
View file @
7a692c94
...
...
@@ -1307,6 +1307,8 @@ function mouseMove_canvasMain(event){
zoomVideo
();
closeDialogPopUpText
();
// lastX = event.offsetX || (event.pageX - canvas_main.offsetLeft);
// lastY = event.offsetY || (event.pageY - canvas_main.offsetTop);
//
...
...
@@ -1990,13 +1992,13 @@ function flip() {
var
width
=
offscreen
.
width
;
var
height
=
offscreen
.
height
;
var
aspect
=
offscreen
.
width
/
offscreen
.
height
;
if
(
canvas
.
width
>
canvas
.
height
)
{
if
(
canvas
.
width
>
canvas
.
height
)
{
height
=
canvas
.
height
;
width
=
height
*
aspect
;
if
(
width
>
canvas
.
width
)
{
/*
if(width > canvas.width) {
width = canvas.width;
height = width / aspect;
}
}
*/
}
else
{
width
=
canvas
.
width
;
height
=
width
/
aspect
;
...
...
@@ -2007,6 +2009,12 @@ function flip() {
height
=
canvas
.
height
;
width
=
width
*
size
;
}
if
(
width
>
canvas
.
width
){
var
size
=
canvas
.
width
/
width
;
width
=
canvas
.
width
;
height
=
height
*
size
;
}
if
(
userScale
!=
1
&&
width
<
canvas
.
width
){
...
...
@@ -2018,8 +2026,8 @@ function flip() {
}
}
else
if
(
userScale
!=
1
&&
height
<
canvas
.
height
){
height
=
width
*
userScale
;
height
=
height
*
userScale
;
if
(
height
>
canvas
.
height
){
//var size = canvas.height / height;
...
...
@@ -2998,10 +3006,10 @@ function changeScale(scale) {
if
(
canvas
.
width
>
canvas
.
height
)
{
height
=
canvas
.
height
;
width
=
height
*
aspect
;
if
(
width
>
canvas
.
width
)
{
/*
if(width > canvas.width) {
width = canvas.width;
height = width / aspect;
}
}
*/
}
else
{
width
=
canvas
.
width
;
height
=
width
/
aspect
;
...
...
@@ -3013,6 +3021,12 @@ function changeScale(scale) {
width
=
width
*
size
;
}
if
(
width
>
canvas
.
width
){
var
size
=
canvas
.
width
/
width
;
width
=
canvas
.
width
;
height
=
height
*
size
;
}
if
(
width
<
canvas
.
width
){
//if(width >= height){
...
...
abvw/js/contentview_Memo.js
View file @
7a692c94
...
...
@@ -26,6 +26,8 @@ function createMemoDialog(){
+
' </div>'
+
'</aside>'
);
$
(
'#txaMemoContent'
).
focus
();
handleMemoEventFunction
();
}
function
handleMemoEventFunction
(){
...
...
@@ -171,7 +173,7 @@ function CopyMemo(index,contentId,pageNo,targetId, posX, posY, callback){
createMemoDialog
();
getMemoForEdit
();
saveMode
=
'Copy'
;
editJqueryUIDialog
$
(
'#Memo_btnDel'
).
css
(
'display'
,
'none'
);
//targetDiv.dialog({width: 466, height: 390, modal: true, position: [targetX, targetY], resizable: false});
//targetDiv.parent().removeClass('ui-draggable');
$
(
"#overlay"
).
show
();
...
...
index.html
View file @
7a692c94
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