Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
website
提交
6b06c278
W
website
项目概览
openeuler
/
website
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
website
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6b06c278
编写于
7月 14, 2020
作者:
O
openeuler-ci-bot
提交者:
Gitee
7月 14, 2020
浏览文件
操作
浏览文件
下载
差异文件
!227 fix the issue "MaxCDN网站不稳定,概率出现长时间资源无法加载的情况"
Merge pull request !227 from ZhengyuhangHans/master0711
上级
0e42da0e
4d9131d5
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
118 addition
and
20 deletion
+118
-20
themes/project/layouts/partials/scripts.html
themes/project/layouts/partials/scripts.html
+15
-20
themes/project/static/js/bootstrap.min.js
themes/project/static/js/bootstrap.min.js
+7
-0
themes/project/static/js/jquery-3.1.1.min.js
themes/project/static/js/jquery-3.1.1.min.js
+4
-0
themes/project/static/js/jquery-parallax.js
themes/project/static/js/jquery-parallax.js
+69
-0
themes/project/static/js/jquery.cookie.min.js
themes/project/static/js/jquery.cookie.min.js
+2
-0
themes/project/static/js/jquery.counterup.min.js
themes/project/static/js/jquery.counterup.min.js
+8
-0
themes/project/static/js/jquery.waypoints.min.js
themes/project/static/js/jquery.waypoints.min.js
+7
-0
themes/project/static/js/jstree.min.js
themes/project/static/js/jstree.min.js
+6
-0
未找到文件。
themes/project/layouts/partials/scripts.html
浏览文件 @
6b06c278
{{ template "_internal/google_analytics.html" . }}
<script
src=
"//code.jquery.com/jquery-3.1.1.min.js"
integrity=
"sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin=
"anonymous"
></script>
<script
src=
"//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity=
"sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin=
"anonymous"
></script>
<script
src=
"//cdnjs.cloudflare.com/ajax/libs/jstree/3.3.4/jstree.min.js"
></script>
<script
src=
"//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"
></script>
<script
src=
"//cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js"
></script>
<script
src=
"//cdnjs.cloudflare.com/ajax/libs/Counter-Up/1.0/jquery.counterup.min.js"
></script>
<script
src=
"//cdnjs.cloudflare.com/ajax/libs/jquery-parallax/1.1.3/jquery-parallax.js"
></script>
<script
src=
"{{ .Site.BaseURL }}js/front.js"
></script>
<script
src=
"{{ .Site.BaseURL }}js/jquery-3.1.1.min.js?v=20200710"
></script>
<script
src=
"{{ .Site.BaseURL }}js/bootstrap.min.js?v=20200710"
></script>
<script
src=
"{{ .Site.BaseURL }}js/jstree.min.js?v=20200710"
></script>
<script
src=
"{{ .Site.BaseURL }}js/jquery.cookie.min.js?v=20200710"
></script>
<script
src=
"{{ .Site.BaseURL }}js/jquery.waypoints.min.js?v=20200710"
></script>
<script
src=
"{{ .Site.BaseURL }}js/jquery.counterup.min.js?v=20200710"
></script>
<script
src=
"{{ .Site.BaseURL }}js/jquery-parallax.js?v=20200710"
></script>
<script
src=
"{{ .Site.BaseURL }}js/front.js?v=20200710"
></script>
<!-- owl carousel -->
<script
src=
"{{ .Site.BaseURL }}js/owl.carousel.min.js"
></script>
<!-- used to for mobile -->
...
...
@@ -34,7 +31,7 @@
}
else
{
if
(
wholeData
[
j
].
children
.
length
>
0
)
{
var
v
=
getCurrentID
(
wholeData
[
j
].
children
,
relativeURL
);
if
(
v
!=
""
)
{
if
(
v
!=
=
''
)
{
return
v
;
}
}
...
...
@@ -46,20 +43,18 @@
$
(
'
#docstreeview
'
).
jstree
();
$
(
'
#docstreeview
'
).
jstree
().
hide_dots
();
$
(
'
#docstreeview
'
).
jstree
().
hide_icons
();
$
(
'
#docstreeview
'
).
on
(
"
changed.jstree
"
,
function
(
e
,
data
)
{
$
(
'
#docstreeview
'
).
on
(
'
changed.jstree
'
,
function
(
e
,
data
)
{
if
(
data
.
node
)
{
var
link
=
data
.
node
.
a_attr
.
href
;
if
(
link
==
""
||
link
==
"
#
"
)
{
var
aElementID
=
"
#
"
+
data
.
node
.
id
+
"
_anchor
"
;
var
aElement
=
$
(
aElementID
).
find
(
"
a
"
);
if
(
link
==
=
''
||
link
===
'
#
'
)
{
var
aElementID
=
'
#
'
+
data
.
node
.
id
+
'
_anchor
'
;
var
aElement
=
$
(
aElementID
).
find
(
'
a
'
);
if
(
aElement
.
length
)
{
link
=
aElement
.
attr
(
"
href
"
);
link
=
aElement
.
attr
(
'
href
'
);
}
}
console
.
log
(
link
);
var
relativeURL
=
getRelativePath
();
console
.
log
(
relativeURL
);
if
(
link
!=
relativeURL
)
{
if
(
link
!==
relativeURL
)
{
location
.
href
=
link
;
}
}
...
...
themes/project/static/js/bootstrap.min.js
0 → 100644
浏览文件 @
6b06c278
此差异已折叠。
点击以展开。
themes/project/static/js/jquery-3.1.1.min.js
0 → 100644
浏览文件 @
6b06c278
此差异已折叠。
点击以展开。
themes/project/static/js/jquery-parallax.js
0 → 100644
浏览文件 @
6b06c278
/*
Plugin: jQuery Parallax
Version 1.1.3
Author: Ian Lunn
Twitter: @IanLunn
Author URL: http://www.ianlunn.co.uk/
Plugin URL: http://www.ianlunn.co.uk/plugins/jquery-parallax/
Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html
*/
(
function
(
$
){
var
$window
=
$
(
window
);
var
windowHeight
=
$window
.
height
();
$window
.
resize
(
function
()
{
windowHeight
=
$window
.
height
();
});
$
.
fn
.
parallax
=
function
(
xpos
,
speedFactor
,
outerHeight
)
{
var
$this
=
$
(
this
);
var
getHeight
;
var
firstTop
;
var
paddingTop
=
0
;
//get the starting position of each element to have parallax applied to it
$this
.
each
(
function
(){
firstTop
=
$this
.
offset
().
top
;
});
if
(
outerHeight
)
{
getHeight
=
function
(
jqo
)
{
return
jqo
.
outerHeight
(
true
);
};
}
else
{
getHeight
=
function
(
jqo
)
{
return
jqo
.
height
();
};
}
// setup defaults if arguments aren't specified
if
(
arguments
.
length
<
1
||
xpos
===
null
)
xpos
=
"
50%
"
;
if
(
arguments
.
length
<
2
||
speedFactor
===
null
)
speedFactor
=
0.1
;
if
(
arguments
.
length
<
3
||
outerHeight
===
null
)
outerHeight
=
true
;
// function to be called whenever the window is scrolled or resized
function
update
(){
var
pos
=
$window
.
scrollTop
();
$this
.
each
(
function
(){
var
$element
=
$
(
this
);
var
top
=
$element
.
offset
().
top
;
var
height
=
getHeight
(
$element
);
// Check if totally above or totally below viewport
if
(
top
+
height
<
pos
||
top
>
pos
+
windowHeight
)
{
return
;
}
$this
.
css
(
'
backgroundPosition
'
,
xpos
+
"
"
+
Math
.
round
((
firstTop
-
pos
)
*
speedFactor
)
+
"
px
"
);
});
}
$window
.
bind
(
'
scroll
'
,
update
).
resize
(
update
);
update
();
};
})(
jQuery
);
\ No newline at end of file
themes/project/static/js/jquery.cookie.min.js
0 → 100644
浏览文件 @
6b06c278
/*! jquery.cookie v1.4.1 | MIT */
!
function
(
a
){
"
function
"
==
typeof
define
&&
define
.
amd
?
define
([
"
jquery
"
],
a
):
"
object
"
==
typeof
exports
?
a
(
require
(
"
jquery
"
)):
a
(
jQuery
)}(
function
(
a
){
function
b
(
a
){
return
h
.
raw
?
a
:
encodeURIComponent
(
a
)}
function
c
(
a
){
return
h
.
raw
?
a
:
decodeURIComponent
(
a
)}
function
d
(
a
){
return
b
(
h
.
json
?
JSON
.
stringify
(
a
):
String
(
a
))}
function
e
(
a
){
0
===
a
.
indexOf
(
'
"
'
)
&&
(
a
=
a
.
slice
(
1
,
-
1
).
replace
(
/
\\
"/g
,
'
"
'
).
replace
(
/
\\\\
/g
,
"
\\
"
));
try
{
return
a
=
decodeURIComponent
(
a
.
replace
(
g
,
"
"
)),
h
.
json
?
JSON
.
parse
(
a
):
a
}
catch
(
b
){}}
function
f
(
b
,
c
){
var
d
=
h
.
raw
?
b
:
e
(
b
);
return
a
.
isFunction
(
c
)?
c
(
d
):
d
}
var
g
=
/
\+
/g
,
h
=
a
.
cookie
=
function
(
e
,
g
,
i
){
if
(
void
0
!==
g
&&!
a
.
isFunction
(
g
)){
if
(
i
=
a
.
extend
({},
h
.
defaults
,
i
),
"
number
"
==
typeof
i
.
expires
){
var
j
=
i
.
expires
,
k
=
i
.
expires
=
new
Date
;
k
.
setTime
(
+
k
+
864
e5
*
j
)}
return
document
.
cookie
=
[
b
(
e
),
"
=
"
,
d
(
g
),
i
.
expires
?
"
; expires=
"
+
i
.
expires
.
toUTCString
():
""
,
i
.
path
?
"
; path=
"
+
i
.
path
:
""
,
i
.
domain
?
"
; domain=
"
+
i
.
domain
:
""
,
i
.
secure
?
"
; secure
"
:
""
].
join
(
""
)}
for
(
var
l
=
e
?
void
0
:{},
m
=
document
.
cookie
?
document
.
cookie
.
split
(
"
;
"
):[],
n
=
0
,
o
=
m
.
length
;
o
>
n
;
n
++
){
var
p
=
m
[
n
].
split
(
"
=
"
),
q
=
c
(
p
.
shift
()),
r
=
p
.
join
(
"
=
"
);
if
(
e
&&
e
===
q
){
l
=
f
(
r
,
g
);
break
}
e
||
void
0
===
(
r
=
f
(
r
))
||
(
l
[
q
]
=
r
)}
return
l
};
h
.
defaults
=
{},
a
.
removeCookie
=
function
(
b
,
c
){
return
void
0
===
a
.
cookie
(
b
)?
!
1
:(
a
.
cookie
(
b
,
""
,
a
.
extend
({},
c
,{
expires
:
-
1
})),
!
a
.
cookie
(
b
))}});
\ No newline at end of file
themes/project/static/js/jquery.counterup.min.js
0 → 100644
浏览文件 @
6b06c278
/*!
* jquery.counterup.js 1.0
*
* Copyright 2013, Benjamin Intal http://gambit.ph @bfintal
* Released under the GPL v2 License
*
* Date: Nov 26, 2013
*/
(
function
(
e
){
"
use strict
"
;
e
.
fn
.
counterUp
=
function
(
t
){
var
n
=
e
.
extend
({
time
:
400
,
delay
:
10
},
t
);
return
this
.
each
(
function
(){
var
t
=
e
(
this
),
r
=
n
,
i
=
function
(){
var
e
=
[],
n
=
r
.
time
/
r
.
delay
,
i
=
t
.
text
(),
s
=
/
[
0-9
]
+,
[
0-9
]
+/
.
test
(
i
);
i
=
i
.
replace
(
/,/g
,
""
);
var
o
=
/^
[
0-9
]
+$/
.
test
(
i
),
u
=
/^
[
0-9
]
+
\.[
0-9
]
+$/
.
test
(
i
),
a
=
u
?(
i
.
split
(
"
.
"
)[
1
]
||
[]).
length
:
0
;
for
(
var
f
=
n
;
f
>=
1
;
f
--
){
var
l
=
parseInt
(
i
/
n
*
f
);
u
&&
(
l
=
parseFloat
(
i
/
n
*
f
).
toFixed
(
a
));
if
(
s
)
while
(
/
(\d
+
)(\d{3})
/
.
test
(
l
.
toString
()))
l
=
l
.
toString
().
replace
(
/
(\d
+
)(\d{3})
/
,
"
$1,$2
"
);
e
.
unshift
(
l
)}
t
.
data
(
"
counterup-nums
"
,
e
);
t
.
text
(
"
0
"
);
var
c
=
function
(){
t
.
text
(
t
.
data
(
"
counterup-nums
"
).
shift
());
if
(
t
.
data
(
"
counterup-nums
"
).
length
)
setTimeout
(
t
.
data
(
"
counterup-func
"
),
r
.
delay
);
else
{
delete
t
.
data
(
"
counterup-nums
"
);
t
.
data
(
"
counterup-nums
"
,
null
);
t
.
data
(
"
counterup-func
"
,
null
)}};
t
.
data
(
"
counterup-func
"
,
c
);
setTimeout
(
t
.
data
(
"
counterup-func
"
),
r
.
delay
)};
t
.
waypoint
(
i
,{
offset
:
"
100%
"
,
triggerOnce
:
!
0
})})}})(
jQuery
);
\ No newline at end of file
themes/project/static/js/jquery.waypoints.min.js
0 → 100644
浏览文件 @
6b06c278
/*!
Waypoints - 4.0.0
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
*/
!
function
(){
"
use strict
"
;
function
t
(
o
){
if
(
!
o
)
throw
new
Error
(
"
No options passed to Waypoint constructor
"
);
if
(
!
o
.
element
)
throw
new
Error
(
"
No element option passed to Waypoint constructor
"
);
if
(
!
o
.
handler
)
throw
new
Error
(
"
No handler option passed to Waypoint constructor
"
);
this
.
key
=
"
waypoint-
"
+
e
,
this
.
options
=
t
.
Adapter
.
extend
({},
t
.
defaults
,
o
),
this
.
element
=
this
.
options
.
element
,
this
.
adapter
=
new
t
.
Adapter
(
this
.
element
),
this
.
callback
=
o
.
handler
,
this
.
axis
=
this
.
options
.
horizontal
?
"
horizontal
"
:
"
vertical
"
,
this
.
enabled
=
this
.
options
.
enabled
,
this
.
triggerPoint
=
null
,
this
.
group
=
t
.
Group
.
findOrCreate
({
name
:
this
.
options
.
group
,
axis
:
this
.
axis
}),
this
.
context
=
t
.
Context
.
findOrCreateByElement
(
this
.
options
.
context
),
t
.
offsetAliases
[
this
.
options
.
offset
]
&&
(
this
.
options
.
offset
=
t
.
offsetAliases
[
this
.
options
.
offset
]),
this
.
group
.
add
(
this
),
this
.
context
.
add
(
this
),
i
[
this
.
key
]
=
this
,
e
+=
1
}
var
e
=
0
,
i
=
{};
t
.
prototype
.
queueTrigger
=
function
(
t
){
this
.
group
.
queueTrigger
(
this
,
t
)},
t
.
prototype
.
trigger
=
function
(
t
){
this
.
enabled
&&
this
.
callback
&&
this
.
callback
.
apply
(
this
,
t
)},
t
.
prototype
.
destroy
=
function
(){
this
.
context
.
remove
(
this
),
this
.
group
.
remove
(
this
),
delete
i
[
this
.
key
]},
t
.
prototype
.
disable
=
function
(){
return
this
.
enabled
=!
1
,
this
},
t
.
prototype
.
enable
=
function
(){
return
this
.
context
.
refresh
(),
this
.
enabled
=!
0
,
this
},
t
.
prototype
.
next
=
function
(){
return
this
.
group
.
next
(
this
)},
t
.
prototype
.
previous
=
function
(){
return
this
.
group
.
previous
(
this
)},
t
.
invokeAll
=
function
(
t
){
var
e
=
[];
for
(
var
o
in
i
)
e
.
push
(
i
[
o
]);
for
(
var
n
=
0
,
r
=
e
.
length
;
r
>
n
;
n
++
)
e
[
n
][
t
]()},
t
.
destroyAll
=
function
(){
t
.
invokeAll
(
"
destroy
"
)},
t
.
disableAll
=
function
(){
t
.
invokeAll
(
"
disable
"
)},
t
.
enableAll
=
function
(){
t
.
invokeAll
(
"
enable
"
)},
t
.
refreshAll
=
function
(){
t
.
Context
.
refreshAll
()},
t
.
viewportHeight
=
function
(){
return
window
.
innerHeight
||
document
.
documentElement
.
clientHeight
},
t
.
viewportWidth
=
function
(){
return
document
.
documentElement
.
clientWidth
},
t
.
adapters
=
[],
t
.
defaults
=
{
context
:
window
,
continuous
:
!
0
,
enabled
:
!
0
,
group
:
"
default
"
,
horizontal
:
!
1
,
offset
:
0
},
t
.
offsetAliases
=
{
"
bottom-in-view
"
:
function
(){
return
this
.
context
.
innerHeight
()
-
this
.
adapter
.
outerHeight
()},
"
right-in-view
"
:
function
(){
return
this
.
context
.
innerWidth
()
-
this
.
adapter
.
outerWidth
()}},
window
.
Waypoint
=
t
}(),
function
(){
"
use strict
"
;
function
t
(
t
){
window
.
setTimeout
(
t
,
1
e3
/
60
)}
function
e
(
t
){
this
.
element
=
t
,
this
.
Adapter
=
n
.
Adapter
,
this
.
adapter
=
new
this
.
Adapter
(
t
),
this
.
key
=
"
waypoint-context-
"
+
i
,
this
.
didScroll
=!
1
,
this
.
didResize
=!
1
,
this
.
oldScroll
=
{
x
:
this
.
adapter
.
scrollLeft
(),
y
:
this
.
adapter
.
scrollTop
()},
this
.
waypoints
=
{
vertical
:{},
horizontal
:{}},
t
.
waypointContextKey
=
this
.
key
,
o
[
t
.
waypointContextKey
]
=
this
,
i
+=
1
,
this
.
createThrottledScrollHandler
(),
this
.
createThrottledResizeHandler
()}
var
i
=
0
,
o
=
{},
n
=
window
.
Waypoint
,
r
=
window
.
onload
;
e
.
prototype
.
add
=
function
(
t
){
var
e
=
t
.
options
.
horizontal
?
"
horizontal
"
:
"
vertical
"
;
this
.
waypoints
[
e
][
t
.
key
]
=
t
,
this
.
refresh
()},
e
.
prototype
.
checkEmpty
=
function
(){
var
t
=
this
.
Adapter
.
isEmptyObject
(
this
.
waypoints
.
horizontal
),
e
=
this
.
Adapter
.
isEmptyObject
(
this
.
waypoints
.
vertical
);
t
&&
e
&&
(
this
.
adapter
.
off
(
"
.waypoints
"
),
delete
o
[
this
.
key
])},
e
.
prototype
.
createThrottledResizeHandler
=
function
(){
function
t
(){
e
.
handleResize
(),
e
.
didResize
=!
1
}
var
e
=
this
;
this
.
adapter
.
on
(
"
resize.waypoints
"
,
function
(){
e
.
didResize
||
(
e
.
didResize
=!
0
,
n
.
requestAnimationFrame
(
t
))})},
e
.
prototype
.
createThrottledScrollHandler
=
function
(){
function
t
(){
e
.
handleScroll
(),
e
.
didScroll
=!
1
}
var
e
=
this
;
this
.
adapter
.
on
(
"
scroll.waypoints
"
,
function
(){(
!
e
.
didScroll
||
n
.
isTouch
)
&&
(
e
.
didScroll
=!
0
,
n
.
requestAnimationFrame
(
t
))})},
e
.
prototype
.
handleResize
=
function
(){
n
.
Context
.
refreshAll
()},
e
.
prototype
.
handleScroll
=
function
(){
var
t
=
{},
e
=
{
horizontal
:{
newScroll
:
this
.
adapter
.
scrollLeft
(),
oldScroll
:
this
.
oldScroll
.
x
,
forward
:
"
right
"
,
backward
:
"
left
"
},
vertical
:{
newScroll
:
this
.
adapter
.
scrollTop
(),
oldScroll
:
this
.
oldScroll
.
y
,
forward
:
"
down
"
,
backward
:
"
up
"
}};
for
(
var
i
in
e
){
var
o
=
e
[
i
],
n
=
o
.
newScroll
>
o
.
oldScroll
,
r
=
n
?
o
.
forward
:
o
.
backward
;
for
(
var
s
in
this
.
waypoints
[
i
]){
var
a
=
this
.
waypoints
[
i
][
s
],
l
=
o
.
oldScroll
<
a
.
triggerPoint
,
h
=
o
.
newScroll
>=
a
.
triggerPoint
,
p
=
l
&&
h
,
u
=!
l
&&!
h
;(
p
||
u
)
&&
(
a
.
queueTrigger
(
r
),
t
[
a
.
group
.
id
]
=
a
.
group
)}}
for
(
var
c
in
t
)
t
[
c
].
flushTriggers
();
this
.
oldScroll
=
{
x
:
e
.
horizontal
.
newScroll
,
y
:
e
.
vertical
.
newScroll
}},
e
.
prototype
.
innerHeight
=
function
(){
return
this
.
element
==
this
.
element
.
window
?
n
.
viewportHeight
():
this
.
adapter
.
innerHeight
()},
e
.
prototype
.
remove
=
function
(
t
){
delete
this
.
waypoints
[
t
.
axis
][
t
.
key
],
this
.
checkEmpty
()},
e
.
prototype
.
innerWidth
=
function
(){
return
this
.
element
==
this
.
element
.
window
?
n
.
viewportWidth
():
this
.
adapter
.
innerWidth
()},
e
.
prototype
.
destroy
=
function
(){
var
t
=
[];
for
(
var
e
in
this
.
waypoints
)
for
(
var
i
in
this
.
waypoints
[
e
])
t
.
push
(
this
.
waypoints
[
e
][
i
]);
for
(
var
o
=
0
,
n
=
t
.
length
;
n
>
o
;
o
++
)
t
[
o
].
destroy
()},
e
.
prototype
.
refresh
=
function
(){
var
t
,
e
=
this
.
element
==
this
.
element
.
window
,
i
=
e
?
void
0
:
this
.
adapter
.
offset
(),
o
=
{};
this
.
handleScroll
(),
t
=
{
horizontal
:{
contextOffset
:
e
?
0
:
i
.
left
,
contextScroll
:
e
?
0
:
this
.
oldScroll
.
x
,
contextDimension
:
this
.
innerWidth
(),
oldScroll
:
this
.
oldScroll
.
x
,
forward
:
"
right
"
,
backward
:
"
left
"
,
offsetProp
:
"
left
"
},
vertical
:{
contextOffset
:
e
?
0
:
i
.
top
,
contextScroll
:
e
?
0
:
this
.
oldScroll
.
y
,
contextDimension
:
this
.
innerHeight
(),
oldScroll
:
this
.
oldScroll
.
y
,
forward
:
"
down
"
,
backward
:
"
up
"
,
offsetProp
:
"
top
"
}};
for
(
var
r
in
t
){
var
s
=
t
[
r
];
for
(
var
a
in
this
.
waypoints
[
r
]){
var
l
,
h
,
p
,
u
,
c
,
d
=
this
.
waypoints
[
r
][
a
],
f
=
d
.
options
.
offset
,
w
=
d
.
triggerPoint
,
y
=
0
,
g
=
null
==
w
;
d
.
element
!==
d
.
element
.
window
&&
(
y
=
d
.
adapter
.
offset
()[
s
.
offsetProp
]),
"
function
"
==
typeof
f
?
f
=
f
.
apply
(
d
):
"
string
"
==
typeof
f
&&
(
f
=
parseFloat
(
f
),
d
.
options
.
offset
.
indexOf
(
"
%
"
)
>-
1
&&
(
f
=
Math
.
ceil
(
s
.
contextDimension
*
f
/
100
))),
l
=
s
.
contextScroll
-
s
.
contextOffset
,
d
.
triggerPoint
=
y
+
l
-
f
,
h
=
w
<
s
.
oldScroll
,
p
=
d
.
triggerPoint
>=
s
.
oldScroll
,
u
=
h
&&
p
,
c
=!
h
&&!
p
,
!
g
&&
u
?(
d
.
queueTrigger
(
s
.
backward
),
o
[
d
.
group
.
id
]
=
d
.
group
):
!
g
&&
c
?(
d
.
queueTrigger
(
s
.
forward
),
o
[
d
.
group
.
id
]
=
d
.
group
):
g
&&
s
.
oldScroll
>=
d
.
triggerPoint
&&
(
d
.
queueTrigger
(
s
.
forward
),
o
[
d
.
group
.
id
]
=
d
.
group
)}}
return
n
.
requestAnimationFrame
(
function
(){
for
(
var
t
in
o
)
o
[
t
].
flushTriggers
()}),
this
},
e
.
findOrCreateByElement
=
function
(
t
){
return
e
.
findByElement
(
t
)
||
new
e
(
t
)},
e
.
refreshAll
=
function
(){
for
(
var
t
in
o
)
o
[
t
].
refresh
()},
e
.
findByElement
=
function
(
t
){
return
o
[
t
.
waypointContextKey
]},
window
.
onload
=
function
(){
r
&&
r
(),
e
.
refreshAll
()},
n
.
requestAnimationFrame
=
function
(
e
){
var
i
=
window
.
requestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
t
;
i
.
call
(
window
,
e
)},
n
.
Context
=
e
}(),
function
(){
"
use strict
"
;
function
t
(
t
,
e
){
return
t
.
triggerPoint
-
e
.
triggerPoint
}
function
e
(
t
,
e
){
return
e
.
triggerPoint
-
t
.
triggerPoint
}
function
i
(
t
){
this
.
name
=
t
.
name
,
this
.
axis
=
t
.
axis
,
this
.
id
=
this
.
name
+
"
-
"
+
this
.
axis
,
this
.
waypoints
=
[],
this
.
clearTriggerQueues
(),
o
[
this
.
axis
][
this
.
name
]
=
this
}
var
o
=
{
vertical
:{},
horizontal
:{}},
n
=
window
.
Waypoint
;
i
.
prototype
.
add
=
function
(
t
){
this
.
waypoints
.
push
(
t
)},
i
.
prototype
.
clearTriggerQueues
=
function
(){
this
.
triggerQueues
=
{
up
:[],
down
:[],
left
:[],
right
:[]}},
i
.
prototype
.
flushTriggers
=
function
(){
for
(
var
i
in
this
.
triggerQueues
){
var
o
=
this
.
triggerQueues
[
i
],
n
=
"
up
"
===
i
||
"
left
"
===
i
;
o
.
sort
(
n
?
e
:
t
);
for
(
var
r
=
0
,
s
=
o
.
length
;
s
>
r
;
r
+=
1
){
var
a
=
o
[
r
];(
a
.
options
.
continuous
||
r
===
o
.
length
-
1
)
&&
a
.
trigger
([
i
])}}
this
.
clearTriggerQueues
()},
i
.
prototype
.
next
=
function
(
e
){
this
.
waypoints
.
sort
(
t
);
var
i
=
n
.
Adapter
.
inArray
(
e
,
this
.
waypoints
),
o
=
i
===
this
.
waypoints
.
length
-
1
;
return
o
?
null
:
this
.
waypoints
[
i
+
1
]},
i
.
prototype
.
previous
=
function
(
e
){
this
.
waypoints
.
sort
(
t
);
var
i
=
n
.
Adapter
.
inArray
(
e
,
this
.
waypoints
);
return
i
?
this
.
waypoints
[
i
-
1
]:
null
},
i
.
prototype
.
queueTrigger
=
function
(
t
,
e
){
this
.
triggerQueues
[
e
].
push
(
t
)},
i
.
prototype
.
remove
=
function
(
t
){
var
e
=
n
.
Adapter
.
inArray
(
t
,
this
.
waypoints
);
e
>-
1
&&
this
.
waypoints
.
splice
(
e
,
1
)},
i
.
prototype
.
first
=
function
(){
return
this
.
waypoints
[
0
]},
i
.
prototype
.
last
=
function
(){
return
this
.
waypoints
[
this
.
waypoints
.
length
-
1
]},
i
.
findOrCreate
=
function
(
t
){
return
o
[
t
.
axis
][
t
.
name
]
||
new
i
(
t
)},
n
.
Group
=
i
}(),
function
(){
"
use strict
"
;
function
t
(
t
){
this
.
$element
=
e
(
t
)}
var
e
=
window
.
jQuery
,
i
=
window
.
Waypoint
;
e
.
each
([
"
innerHeight
"
,
"
innerWidth
"
,
"
off
"
,
"
offset
"
,
"
on
"
,
"
outerHeight
"
,
"
outerWidth
"
,
"
scrollLeft
"
,
"
scrollTop
"
],
function
(
e
,
i
){
t
.
prototype
[
i
]
=
function
(){
var
t
=
Array
.
prototype
.
slice
.
call
(
arguments
);
return
this
.
$element
[
i
].
apply
(
this
.
$element
,
t
)}}),
e
.
each
([
"
extend
"
,
"
inArray
"
,
"
isEmptyObject
"
],
function
(
i
,
o
){
t
[
o
]
=
e
[
o
]}),
i
.
adapters
.
push
({
name
:
"
jquery
"
,
Adapter
:
t
}),
i
.
Adapter
=
t
}(),
function
(){
"
use strict
"
;
function
t
(
t
){
return
function
(){
var
i
=
[],
o
=
arguments
[
0
];
return
t
.
isFunction
(
arguments
[
0
])
&&
(
o
=
t
.
extend
({},
arguments
[
1
]),
o
.
handler
=
arguments
[
0
]),
this
.
each
(
function
(){
var
n
=
t
.
extend
({},
o
,{
element
:
this
});
"
string
"
==
typeof
n
.
context
&&
(
n
.
context
=
t
(
this
).
closest
(
n
.
context
)[
0
]),
i
.
push
(
new
e
(
n
))}),
i
}}
var
e
=
window
.
Waypoint
;
window
.
jQuery
&&
(
window
.
jQuery
.
fn
.
waypoint
=
t
(
window
.
jQuery
)),
window
.
Zepto
&&
(
window
.
Zepto
.
fn
.
waypoint
=
t
(
window
.
Zepto
))}();
\ No newline at end of file
themes/project/static/js/jstree.min.js
0 → 100644
浏览文件 @
6b06c278
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录