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
d48d9121
Commit
d48d9121
authored
Aug 01, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#13000
parent
b6e71f20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
26 deletions
+43
-26
abvw/common/js/gotop.js
+5
-6
abvw/js/login.js
+38
-20
No files found.
abvw/common/js/gotop.js
View file @
d48d9121
$
(
function
(){
$
(
'#gotop'
).
hide
();
// �f�t�H���g�Ŕ�\���Ƃ���
$
(
'#gotop'
).
hide
();
$
(
window
).
scroll
(
function
(){
if
(
$
(
this
).
scrollTop
()
>
100
)
{
// scrollTop() �Ō��݂̃X�N���[����̏�ʒu��擾
$
(
'#gotop'
).
fadeIn
();
// 100��߂��Ă�����A#backToTop�i�߂�{�^���j��t�F�[�h�C��������
if
(
$
(
this
).
scrollTop
()
>
100
)
{
$
(
'#gotop'
).
fadeIn
();
}
else
{
$
(
'#gotop'
).
fadeOut
();
// ����ȊO�́A�t�F�[�h�A�E�g
$
(
'#gotop'
).
fadeOut
();
}
});
// �N���b�N���ɃX���[�Y�Ƀy�[�W�㕔�փX�N���[��������
$
(
'#gotop'
).
click
(
function
(){
$
(
'body,html'
).
animate
({
scrollTop
:
0
},
350
);
return
false
;
// ���y1�z
return
false
;
});
});
abvw/js/login.js
View file @
d48d9121
/// <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" />
//グローバルの名前空間用のオブジェクトを用意する
var
LOGIN
=
{};
...
...
@@ -581,8 +573,6 @@ $(document).ready(function (e) {
}
else
if
(
COMMON
.
isAnonymousLogin
())
{
console
.
log
(
"COMMON.isAnonymousLogin"
);
$
(
'#anonymous'
).
show
();
setTimeout
(
function
()
{
...
...
@@ -631,15 +621,29 @@ LOGIN.initLoginNormalUser = function() {
// init login for anonymous user
LOGIN
.
initLoginAnonymousUser
=
function
()
{
document
.
title
=
i18nText
(
'dspLogin'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
var
sysSettings
=
avwSysSetting
();
// get info in conf.json
document
.
title
=
i18nText
(
'dspLogin'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
var
sysSettings
=
avwSysSetting
();
// get info in conf.json
var
loginId
=
sysSettings
.
anonymousLoginId
;
var
urlPath
=
sysSettings
.
anonymousLoginPath
;
if
(
loginId
==
""
){
loginId
=
"nologin"
;
}
if
(
urlPath
==
""
){
//URLからパース
urlPath
=
LOGIN
.
getUrlPath
();
if
(
urlPath
==
null
){
urlPath
=
"dmy"
;
}
}
var
params
=
{
previousSid
:
null
,
loginId
:
sysSettings
.
anonymousL
oginId
,
urlpath
:
sysSettings
.
anonymousLogin
Path
loginId
:
l
oginId
,
urlpath
:
url
Path
};
avwCmsApiWithUrl
(
ClientData
.
conf_apiLoginUrl
(),
null
,
'webClientAnonymousLogin'
,
'post'
,
params
,
function
(
data
)
{
...
...
@@ -656,11 +660,11 @@ LOGIN.initLoginAnonymousUser = function() {
//avwCreateUserSession();
// set info user anonymous login
ClientData
.
userInfo_accountPath
(
sysSettings
.
anonymousLogin
Path
);
ClientData
.
userInfo_accountPath_session
(
sysSettings
.
anonymousLogin
Path
);
ClientData
.
userInfo_accountPath
(
url
Path
);
ClientData
.
userInfo_accountPath_session
(
url
Path
);
ClientData
.
userInfo_loginId
(
sysSettings
.
anonymousL
oginId
);
ClientData
.
userInfo_loginId_session
(
sysSettings
.
anonymousL
oginId
);
ClientData
.
userInfo_loginId
(
l
oginId
);
ClientData
.
userInfo_loginId_session
(
l
oginId
);
ClientData
.
userInfo_userName
(
data
.
userName
);
...
...
@@ -895,3 +899,17 @@ LOGIN.getUrlParams = function(name){
}
};
//Get urlPath String
LOGIN
.
getUrlPath
=
function
(){
//URL文字列から事業者ID部分を抽出
var
regex
=
new
RegExp
(
"/webad/([^&#]*)/"
);
var
results
=
regex
.
exec
(
window
.
location
.
href
);
if
(
results
==
null
){
return
""
;
}
else
{
return
results
[
1
];
}
};
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