Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mui
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mui
Commits
29485d4b
Commit
29485d4b
authored
Aug 29, 2014
by
fxy060608
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mui docs
parent
04a0010d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
180 additions
and
16 deletions
+180
-16
about/index.html
about/index.html
+1
-2
assets/js/docs.min.js
assets/js/docs.min.js
+170
-1
components/index.html
components/index.html
+1
-2
getting-started/index.html
getting-started/index.html
+1
-2
index.html
index.html
+1
-2
javascript/index.html
javascript/index.html
+1
-2
sitemap.xml
sitemap.xml
+5
-5
No files found.
about/index.html
View file @
29485d4b
...
...
@@ -145,8 +145,7 @@
</div>
<script
src=
"http://dcloudio.github.io/mui/dist/js/jquery-2.1.1.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/dist/js/mui.min.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/fingerblast.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.min.js"
></script>
</div>
</div>
...
...
assets/js/docs.min.js
View file @
29485d4b
...
...
@@ -7,4 +7,173 @@
* v2.0.2 designed by @connors.
* =====================================================
*/
$
(
function
(){
"
use strict
"
;
var
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
,
k
,
l
,
m
,
n
,
o
,
p
,
q
,
r
=
function
(){
l
=
0
,
m
=
[],
n
=
$
(
window
),
a
=
$
(
document
),
o
=
$
(
document
.
body
),
b
=
b
||
$
(
"
.js-device
"
),
h
=
$
(
"
.js-jump-menu
"
),
i
=
$
(
"
.js-component-group
"
),
j
=
$
(
"
.component-example a
"
),
k
=
$
(
"
.component
"
),
m
=
k
.
map
(
function
(){
return
$
(
this
).
offset
().
top
}),
d
=
$
(
window
).
height
()
/
3
,
c
=
$
(
window
).
width
(),
e
=
$
(
document
).
height
(),
f
=
parseInt
(
$
(
"
.docs-content
"
).
css
(
"
padding-bottom
"
),
10
),
g
=
$
(
"
.docs-footer
"
).
outerHeight
(
!
1
),
q
=
$
(
"
.js-docs-component-toolbar
"
),
c
>=
768
&&
b
.
offset
()
&&
(
b
.
initialLeft
=
b
.
offset
().
left
,
b
.
initialTop
=
b
.
initialTop
||
b
.
offset
().
top
,
b
.
dockingOffset
=
(
$
(
window
).
height
()
-
b
.
height
())
/
2
),
t
(),
u
(),
v
(),
p
||
s
()},
s
=
function
(){
p
=!
0
,
b
.
on
(
"
click
"
,
function
(
a
){
a
.
preventDefault
()}),
$
(
"
.js-docs-nav-trigger
"
).
on
(
"
click
"
,
function
(){
var
a
=
$
(
"
.docs-nav-group
"
),
b
=
$
(
"
.js-docs-nav-trigger
"
);
b
.
toggleClass
(
"
active
"
),
a
.
toggleClass
(
"
active
"
)}),
h
.
click
(
function
(
a
){
a
.
stopPropagation
(),
a
.
preventDefault
(),
i
.
toggleClass
(
"
active
"
)}),
a
.
on
(
"
click
"
,
function
(){
i
.
removeClass
(
"
active
"
)}),
$
(
"
.platform-switch
"
).
on
(
"
click
"
,
function
(){
var
a
=
$
(
"
.docs-components
"
),
b
=
$
(
this
).
attr
(
"
data-platform
"
);
a
.
hasClass
(
"
platform-ios
"
)?(
a
.
removeClass
(
"
platform-ios
"
),
a
.
addClass
(
b
)):
a
.
hasClass
(
"
platform-android
"
)?(
a
.
removeClass
(
"
platform-android
"
),
a
.
addClass
(
b
)):
a
.
addClass
(
b
),
$
(
this
).
siblings
(
"
.active
"
).
removeClass
(
"
active
"
),
$
(
this
).
addClass
(
"
active
"
)}),
n
.
on
(
"
scroll
"
,
u
),
n
.
on
(
"
scroll
"
,
v
)},
t
=
function
(){
if
(
c
=
$
(
window
).
width
(),
768
>=
c
){
var
a
=
$
(
"
.content
"
);
a
.
length
>
1
&&
$
(
a
[
0
]).
remove
()}},
u
=
function
(){
function
a
(
a
){
$
(
"
#iwindow
"
).
html
(
a
)}
if
(
!
(
768
>=
c
)){
var
e
,
f
=
n
.
scrollTop
();
if
(
b
.
length
){
b
.
initialTop
-
f
<=
b
.
dockingOffset
?(
b
[
0
].
className
=
"
device device-fixed
"
,
b
.
css
({
top
:
b
.
dockingOffset
})):(
b
[
0
].
className
=
"
device
"
,
b
[
0
].
setAttribute
(
"
style
"
,
""
));
for
(
var
g
=
k
.
length
;
g
--
;)
if
(
m
[
g
]
-
f
<
d
){
if
(
l
===
g
)
return
;
l
=
g
,
o
.
find
(
"
.component.active
"
).
removeClass
(
"
active
"
),
e
=
$
(
k
[
g
]),
e
.
addClass
(
"
active
"
),
e
.
attr
(
"
id
"
)?
b
.
attr
(
"
id
"
,
e
.
attr
(
"
id
"
)
+
"
InDevice
"
):
b
.
attr
(
"
id
"
,
""
),
e
.
hasClass
(
"
informational
"
)
||
a
(
e
.
find
(
"
.highlight .html
"
).
text
());
break
}}}},
v
=
function
(){
var
a
=
n
.
scrollTop
(),
b
=
$
(
"
.docs-sub-header
"
).
outerHeight
();
a
>=
b
?
q
.
addClass
(
"
visible
"
):
b
>=
a
&&
(
q
.
removeClass
(
"
visible
"
),
i
.
removeClass
(
"
active
"
))};
$
(
window
).
on
(
"
load resize
"
,
r
),
$
(
window
).
on
(
"
load
"
,
function
(){
window
.
FingerBlast
&&
new
FingerBlast
(
"
.device-content
"
)})}),
function
(){
"
use strict
"
;
function
a
(
a
){
this
.
element
=
"
string
"
==
typeof
a
?
document
.
querySelector
(
a
):
a
,
this
.
element
&&
this
.
listen
()}
a
.
prototype
=
{
x
:
0
/
0
,
y
:
0
/
0
,
startDistance
:
0
/
0
,
startAngle
:
0
/
0
,
mouseIsDown
:
!
1
,
listen
:
function
(){
function
a
(
a
,
b
){
var
c
,
d
,
e
;
if
(
a
){
if
(
"
compareDocumentPosition
"
in
b
)
return
!!
(
16
&
b
.
compareDocumentPosition
(
a
));
if
(
"
contains
"
in
b
)
return
b
!==
a
&&
b
.
contains
(
a
);
for
(
c
=
b
.
getElementsByTagName
(
"
*
"
),
d
=
0
;
e
=
c
[
d
++
];)
if
(
e
===
a
)
return
!
0
;
return
!
1
}}
var
b
=
this
.
activate
.
bind
(
this
),
c
=
this
.
deactivate
.
bind
(
this
);
this
.
element
.
addEventListener
(
"
mouseover
"
,
function
(
c
){
var
d
=
c
.
relatedTarget
;
d
===
this
||
a
(
d
,
this
)
||
b
()}),
this
.
element
.
addEventListener
(
"
mouseout
"
,
function
(
b
){
var
d
=
b
.
relatedTarget
;
d
===
this
||
a
(
d
,
this
)
||
c
(
b
)})},
activate
:
function
(){
this
.
active
||
(
this
.
element
.
addEventListener
(
"
mousedown
"
,
this
.
touchStart
=
this
.
touchStart
.
bind
(
this
),
!
0
),
this
.
element
.
addEventListener
(
"
mousemove
"
,
this
.
touchMove
=
this
.
touchMove
.
bind
(
this
),
!
0
),
this
.
element
.
addEventListener
(
"
mouseup
"
,
this
.
touchEnd
=
this
.
touchEnd
.
bind
(
this
),
!
0
),
this
.
element
.
addEventListener
(
"
click
"
,
this
.
click
=
this
.
click
.
bind
(
this
),
!
0
),
this
.
active
=!
0
)},
deactivate
:
function
(
a
){
this
.
active
=!
1
,
this
.
mouseIsDown
&&
this
.
touchEnd
(
a
),
this
.
element
.
removeEventListener
(
"
mousedown
"
,
this
.
touchStart
,
!
0
),
this
.
element
.
removeEventListener
(
"
mousemove
"
,
this
.
touchMove
,
!
0
),
this
.
element
.
removeEventListener
(
"
mouseup
"
,
this
.
touchEnd
,
!
0
),
this
.
element
.
removeEventListener
(
"
click
"
,
this
.
click
,
!
0
)},
click
:
function
(
a
){
a
.
synthetic
||
(
a
.
preventDefault
(),
a
.
stopPropagation
())},
touchStart
:
function
(
a
){
a
.
synthetic
||
/input|textarea/
.
test
(
a
.
target
.
tagName
.
toLowerCase
())
||
(
this
.
mouseIsDown
=!
0
,
a
.
preventDefault
(),
a
.
stopPropagation
(),
this
.
fireTouchEvents
(
"
touchstart
"
,
a
))},
touchMove
:
function
(
a
){
a
.
synthetic
||
(
a
.
preventDefault
(),
a
.
stopPropagation
(),
this
.
move
(
a
.
clientX
,
a
.
clientY
),
this
.
mouseIsDown
&&
this
.
fireTouchEvents
(
"
touchmove
"
,
a
))},
touchEnd
:
function
(
a
){
a
.
synthetic
||
(
this
.
mouseIsDown
=!
1
,
a
.
preventDefault
(),
a
.
stopPropagation
(),
this
.
fireTouchEvents
(
"
touchend
"
,
a
),
this
.
target
&&
(
this
.
target
.
dispatchEvent
(
this
.
createMouseEvent
(
"
mouseover
"
,
a
)),
this
.
target
.
dispatchEvent
(
this
.
createMouseEvent
(
"
mousemove
"
,
a
)),
this
.
target
.
dispatchEvent
(
this
.
createMouseEvent
(
"
mousedown
"
,
a
))))},
fireTouchEvents
:
function
(
a
,
b
){
var
c
=
[],
d
=
[];
if
(
this
.
target
){
var
e
=
"
on
"
+
a
;
if
(
e
in
this
.
target
&&
(
console
.
warn
(
"
Converting `
"
+
e
+
"
` property to event listener.
"
,
this
.
target
),
this
.
target
.
addEventListener
(
a
,
this
.
target
[
e
],
!
1
),
delete
this
.
target
[
e
]),
this
.
target
.
hasAttribute
(
e
)){
console
.
warn
(
"
Converting `
"
+
e
+
"
` attribute to event listener.
"
,
this
.
target
);
var
f
=
new
GLOBAL
.
Function
(
"
event
"
,
this
.
target
.
getAttribute
(
e
));
this
.
target
.
addEventListener
(
a
,
f
,
!
1
),
this
.
target
.
removeAttribute
(
e
)}
var
g
=
this
.
createMouseEvent
(
a
,
b
);
if
(
c
.
push
(
g
),
c
.
length
>
1
){
var
h
=
c
[
0
].
pageX
-
c
[
1
].
pageX
,
i
=
c
[
0
].
pageY
-
c
[
1
].
pageY
,
j
=
Math
.
sqrt
(
Math
.
pow
(
h
,
2
)
+
Math
.
pow
(
i
,
2
)),
k
=
Math
.
atan2
(
h
,
i
)
*
(
180
/
Math
.
PI
),
l
=
"
gesturechange
"
;
"
touchstart
"
===
a
&&
(
l
=
"
gesturestart
"
,
this
.
startDistance
=
j
,
this
.
startAngle
=
k
),
"
touchend
"
===
a
&&
(
l
=
"
gestureend
"
),
c
.
forEach
(
function
(
a
){
var
b
=
this
.
createMouseEvent
.
call
(
a
.
_finger
,
l
,
a
);
d
.
push
(
b
)}.
bind
(
this
)),
c
.
concat
(
d
).
forEach
(
function
(
a
){
a
.
scale
=
j
/
this
.
startDistance
,
a
.
rotation
=
this
.
startAngle
-
k
})}
c
.
forEach
(
function
(
a
){
a
.
touches
=
c
.
filter
(
function
(
a
){
return
~
a
.
type
.
indexOf
(
"
touch
"
)
&&
"
touchend
"
!==
a
.
type
}),
a
.
changedTouches
=
c
.
filter
(
function
(
b
){
return
~
b
.
type
.
indexOf
(
"
touch
"
)
&&
b
.
_finger
.
target
===
a
.
_finger
.
target
}),
a
.
targetTouches
=
a
.
changedTouches
.
filter
(
function
(
a
){
return
~
a
.
type
.
indexOf
(
"
touch
"
)
&&
"
touchend
"
!==
a
.
type
})}),
c
.
concat
(
d
).
forEach
(
function
(
a
,
b
){
a
.
identifier
=
b
,
a
.
_finger
.
target
.
dispatchEvent
(
a
)})}},
createMouseEvent
:
function
(
a
,
b
){
var
c
=
new
MouseEvent
(
a
,{
view
:
window
,
detail
:
b
.
detail
,
bubbles
:
!
0
,
cancelable
:
!
0
,
target
:
this
.
target
||
b
.
relatedTarget
,
clientX
:
this
.
x
||
b
.
clientX
,
clientY
:
this
.
y
||
b
.
clientY
,
screenX
:
this
.
x
||
b
.
screenX
,
screenY
:
this
.
y
||
b
.
screenY
,
ctrlKey
:
b
.
ctrlKey
,
shiftKey
:
b
.
shiftKey
,
altKey
:
b
.
altKey
,
metaKey
:
b
.
metaKey
,
button
:
b
.
button
});
return
c
.
synthetic
=!
0
,
c
.
_finger
=
this
,
c
},
move
:
function
(
a
,
b
){
isNaN
(
a
)
||
isNaN
(
b
)?
this
.
target
=
null
:(
this
.
x
=
a
,
this
.
y
=
b
,
this
.
mouseIsDown
||
(
this
.
target
=
document
.
elementFromPoint
(
a
,
b
)))}},
window
.
FingerBlast
=
a
}();
\ No newline at end of file
$
(
function
()
{
"
use strict
"
;
var
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
,
k
,
l
,
m
,
n
,
o
,
p
,
q
,
r
=
function
()
{
l
=
0
,
m
=
[],
n
=
$
(
window
),
a
=
$
(
document
),
o
=
$
(
document
.
body
),
b
=
b
||
$
(
"
.js-device
"
),
h
=
$
(
"
.js-jump-menu
"
),
i
=
$
(
"
.js-component-group
"
),
j
=
$
(
"
.component-example a
"
),
k
=
$
(
"
.component
"
),
m
=
k
.
map
(
function
()
{
return
$
(
this
).
offset
().
top
}),
d
=
$
(
window
).
height
()
/
3
,
c
=
$
(
window
).
width
(),
e
=
$
(
document
).
height
(),
f
=
parseInt
(
$
(
"
.docs-content
"
).
css
(
"
padding-bottom
"
),
10
),
g
=
$
(
"
.docs-footer
"
).
outerHeight
(
!
1
),
q
=
$
(
"
.js-docs-component-toolbar
"
),
c
>=
768
&&
b
.
offset
()
&&
(
b
.
initialLeft
=
b
.
offset
().
left
,
b
.
initialTop
=
b
.
initialTop
||
b
.
offset
().
top
,
b
.
dockingOffset
=
(
$
(
window
).
height
()
-
b
.
height
())
/
2
),
t
(),
u
(),
v
(),
p
||
s
()
},
s
=
function
()
{
p
=
!
0
,
b
.
on
(
"
click
"
,
function
(
a
)
{
a
.
preventDefault
()
}),
$
(
"
.js-docs-nav-trigger
"
).
on
(
"
click
"
,
function
()
{
var
a
=
$
(
"
.docs-nav-group
"
),
b
=
$
(
"
.js-docs-nav-trigger
"
);
b
.
toggleClass
(
"
mui-active
"
),
a
.
toggleClass
(
"
mui-active
"
)
}),
h
.
click
(
function
(
a
)
{
a
.
stopPropagation
(),
a
.
preventDefault
(),
i
.
toggleClass
(
"
mui-active
"
)
}),
a
.
on
(
"
click
"
,
function
()
{
i
.
removeClass
(
"
mui-active
"
)
}),
$
(
"
.platform-switch
"
).
on
(
"
click
"
,
function
()
{
var
a
=
$
(
"
.docs-components
"
),
b
=
$
(
this
).
attr
(
"
data-platform
"
);
a
.
hasClass
(
"
platform-ios
"
)
?
(
a
.
removeClass
(
"
platform-ios
"
),
a
.
addClass
(
b
))
:
a
.
hasClass
(
"
platform-android
"
)
?
(
a
.
removeClass
(
"
platform-android
"
),
a
.
addClass
(
b
))
:
a
.
addClass
(
b
),
$
(
this
).
siblings
(
"
.mui-active
"
).
removeClass
(
"
mui-active
"
),
$
(
this
).
addClass
(
"
mui-active
"
)
}),
n
.
on
(
"
scroll
"
,
u
),
n
.
on
(
"
scroll
"
,
v
)
},
t
=
function
()
{
if
(
c
=
$
(
window
).
width
(),
768
>=
c
)
{
var
a
=
$
(
"
.mui-content
"
);
a
.
length
>
1
&&
$
(
a
[
0
]).
remove
()
}
},
u
=
function
()
{
function
a
(
a
)
{
$
(
"
#iwindow
"
).
html
(
a
)
}
if
(
!
(
768
>=
c
))
{
var
e
,
f
=
n
.
scrollTop
();
if
(
b
.
length
)
{
b
.
initialTop
-
f
<=
b
.
dockingOffset
?
(
b
[
0
].
className
=
"
device device-fixed
"
,
b
.
css
({
top
:
b
.
dockingOffset
}))
:
(
b
[
0
].
className
=
"
device
"
,
b
[
0
].
setAttribute
(
"
style
"
,
""
));
for
(
var
g
=
k
.
length
;
g
--
;)
if
(
m
[
g
]
-
f
<
d
)
{
if
(
l
===
g
)
return
;
l
=
g
,
o
.
find
(
"
.component.mui-active
"
).
removeClass
(
"
mui-active
"
),
e
=
$
(
k
[
g
]),
e
.
addClass
(
"
mui-active
"
),
e
.
attr
(
"
id
"
)
?
b
.
attr
(
"
id
"
,
e
.
attr
(
"
id
"
)
+
"
InDevice
"
)
:
b
.
attr
(
"
id
"
,
""
),
e
.
hasClass
(
"
informational
"
)
||
a
(
e
.
find
(
"
.highlight .language-html
"
).
text
());
break
}
}
}
},
v
=
function
()
{
var
a
=
n
.
scrollTop
(),
b
=
$
(
"
.docs-sub-header
"
).
outerHeight
();
a
>=
b
?
q
.
addClass
(
"
visible
"
)
:
b
>=
a
&&
(
q
.
removeClass
(
"
visible
"
),
i
.
removeClass
(
"
mui-active
"
))
};
$
(
window
).
on
(
"
load resize
"
,
r
),
$
(
window
).
on
(
"
load
"
,
function
()
{
window
.
FingerBlast
&&
new
FingerBlast
(
"
.device-content
"
)
})
}),
function
()
{
"
use strict
"
;
function
a
(
a
)
{
this
.
element
=
"
string
"
==
typeof
a
?
document
.
querySelector
(
a
)
:
a
,
this
.
element
&&
this
.
listen
()
}
a
.
prototype
=
{
x
:
0
/
0
,
y
:
0
/
0
,
startDistance
:
0
/
0
,
startAngle
:
0
/
0
,
mouseIsDown
:
!
1
,
listen
:
function
()
{
function
a
(
a
,
b
)
{
var
c
,
d
,
e
;
if
(
a
)
{
if
(
"
compareDocumentPosition
"
in
b
)
return
!!
(
16
&
b
.
compareDocumentPosition
(
a
));
if
(
"
contains
"
in
b
)
return
b
!==
a
&&
b
.
contains
(
a
);
for
(
c
=
b
.
getElementsByTagName
(
"
*
"
),
d
=
0
;
e
=
c
[
d
++
];)
if
(
e
===
a
)
return
!
0
;
return
!
1
}
}
var
b
=
this
.
activate
.
bind
(
this
),
c
=
this
.
deactivate
.
bind
(
this
);
this
.
element
.
addEventListener
(
"
mouseover
"
,
function
(
c
)
{
var
d
=
c
.
relatedTarget
;
d
===
this
||
a
(
d
,
this
)
||
b
()
}),
this
.
element
.
addEventListener
(
"
mouseout
"
,
function
(
b
)
{
var
d
=
b
.
relatedTarget
;
d
===
this
||
a
(
d
,
this
)
||
c
(
b
)
})
},
activate
:
function
()
{
this
.
active
||
(
this
.
element
.
addEventListener
(
"
mousedown
"
,
this
.
touchStart
=
this
.
touchStart
.
bind
(
this
),
!
0
),
this
.
element
.
addEventListener
(
"
mousemove
"
,
this
.
touchMove
=
this
.
touchMove
.
bind
(
this
),
!
0
),
this
.
element
.
addEventListener
(
"
mouseup
"
,
this
.
touchEnd
=
this
.
touchEnd
.
bind
(
this
),
!
0
),
this
.
element
.
addEventListener
(
"
click
"
,
this
.
click
=
this
.
click
.
bind
(
this
),
!
0
),
this
.
active
=
!
0
)
},
deactivate
:
function
(
a
)
{
this
.
active
=
!
1
,
this
.
mouseIsDown
&&
this
.
touchEnd
(
a
),
this
.
element
.
removeEventListener
(
"
mousedown
"
,
this
.
touchStart
,
!
0
),
this
.
element
.
removeEventListener
(
"
mousemove
"
,
this
.
touchMove
,
!
0
),
this
.
element
.
removeEventListener
(
"
mouseup
"
,
this
.
touchEnd
,
!
0
),
this
.
element
.
removeEventListener
(
"
click
"
,
this
.
click
,
!
0
)
},
click
:
function
(
a
)
{
a
.
synthetic
||
(
a
.
preventDefault
(),
a
.
stopPropagation
())
},
touchStart
:
function
(
a
)
{
a
.
synthetic
||
/input|textarea/
.
test
(
a
.
target
.
tagName
.
toLowerCase
())
||
(
this
.
mouseIsDown
=
!
0
,
a
.
preventDefault
(),
a
.
stopPropagation
(),
this
.
fireTouchEvents
(
"
touchstart
"
,
a
))
},
touchMove
:
function
(
a
)
{
a
.
synthetic
||
(
a
.
preventDefault
(),
a
.
stopPropagation
(),
this
.
move
(
a
.
clientX
,
a
.
clientY
),
this
.
mouseIsDown
&&
this
.
fireTouchEvents
(
"
touchmove
"
,
a
))
},
touchEnd
:
function
(
a
)
{
a
.
synthetic
||
(
this
.
mouseIsDown
=
!
1
,
a
.
preventDefault
(),
a
.
stopPropagation
(),
this
.
fireTouchEvents
(
"
touchend
"
,
a
),
this
.
target
&&
(
this
.
target
.
dispatchEvent
(
this
.
createMouseEvent
(
"
mouseover
"
,
a
)),
this
.
target
.
dispatchEvent
(
this
.
createMouseEvent
(
"
mousemove
"
,
a
)),
this
.
target
.
dispatchEvent
(
this
.
createMouseEvent
(
"
mousedown
"
,
a
))))
},
fireTouchEvents
:
function
(
a
,
b
)
{
var
c
=
[],
d
=
[];
if
(
this
.
target
)
{
var
e
=
"
on
"
+
a
;
if
(
e
in
this
.
target
&&
(
console
.
warn
(
"
Converting `
"
+
e
+
"
` property to event listener.
"
,
this
.
target
),
this
.
target
.
addEventListener
(
a
,
this
.
target
[
e
],
!
1
),
delete
this
.
target
[
e
]),
this
.
target
.
hasAttribute
(
e
))
{
console
.
warn
(
"
Converting `
"
+
e
+
"
` attribute to event listener.
"
,
this
.
target
);
var
f
=
new
GLOBAL
.
Function
(
"
event
"
,
this
.
target
.
getAttribute
(
e
));
this
.
target
.
addEventListener
(
a
,
f
,
!
1
),
this
.
target
.
removeAttribute
(
e
)
}
var
g
=
this
.
createMouseEvent
(
a
,
b
);
if
(
c
.
push
(
g
),
c
.
length
>
1
)
{
var
h
=
c
[
0
].
pageX
-
c
[
1
].
pageX
,
i
=
c
[
0
].
pageY
-
c
[
1
].
pageY
,
j
=
Math
.
sqrt
(
Math
.
pow
(
h
,
2
)
+
Math
.
pow
(
i
,
2
)),
k
=
Math
.
atan2
(
h
,
i
)
*
(
180
/
Math
.
PI
),
l
=
"
gesturechange
"
;
"
touchstart
"
===
a
&&
(
l
=
"
gesturestart
"
,
this
.
startDistance
=
j
,
this
.
startAngle
=
k
),
"
touchend
"
===
a
&&
(
l
=
"
gestureend
"
),
c
.
forEach
(
function
(
a
)
{
var
b
=
this
.
createMouseEvent
.
call
(
a
.
_finger
,
l
,
a
);
d
.
push
(
b
)
}.
bind
(
this
)),
c
.
concat
(
d
).
forEach
(
function
(
a
)
{
a
.
scale
=
j
/
this
.
startDistance
,
a
.
rotation
=
this
.
startAngle
-
k
})
}
c
.
forEach
(
function
(
a
)
{
a
.
touches
=
c
.
filter
(
function
(
a
)
{
return
~
a
.
type
.
indexOf
(
"
touch
"
)
&&
"
touchend
"
!==
a
.
type
}),
a
.
changedTouches
=
c
.
filter
(
function
(
b
)
{
return
~
b
.
type
.
indexOf
(
"
touch
"
)
&&
b
.
_finger
.
target
===
a
.
_finger
.
target
}),
a
.
targetTouches
=
a
.
changedTouches
.
filter
(
function
(
a
)
{
return
~
a
.
type
.
indexOf
(
"
touch
"
)
&&
"
touchend
"
!==
a
.
type
})
}),
c
.
concat
(
d
).
forEach
(
function
(
a
,
b
)
{
a
.
identifier
=
b
,
a
.
_finger
.
target
.
dispatchEvent
(
a
)
})
}
},
createMouseEvent
:
function
(
a
,
b
)
{
var
c
=
new
MouseEvent
(
a
,
{
view
:
window
,
detail
:
b
.
detail
,
bubbles
:
!
0
,
cancelable
:
!
0
,
target
:
this
.
target
||
b
.
relatedTarget
,
clientX
:
this
.
x
||
b
.
clientX
,
clientY
:
this
.
y
||
b
.
clientY
,
screenX
:
this
.
x
||
b
.
screenX
,
screenY
:
this
.
y
||
b
.
screenY
,
ctrlKey
:
b
.
ctrlKey
,
shiftKey
:
b
.
shiftKey
,
altKey
:
b
.
altKey
,
metaKey
:
b
.
metaKey
,
button
:
b
.
button
});
return
c
.
synthetic
=
!
0
,
c
.
_finger
=
this
,
c
},
move
:
function
(
a
,
b
)
{
isNaN
(
a
)
||
isNaN
(
b
)
?
this
.
target
=
null
:
(
this
.
x
=
a
,
this
.
y
=
b
,
this
.
mouseIsDown
||
(
this
.
target
=
document
.
elementFromPoint
(
a
,
b
)))
}
},
window
.
FingerBlast
=
a
}();
\ No newline at end of file
components/index.html
View file @
29485d4b
...
...
@@ -1333,8 +1333,7 @@
</div>
<script
src=
"http://dcloudio.github.io/mui/dist/js/jquery-2.1.1.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/dist/js/mui.min.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/fingerblast.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.min.js"
></script>
</div>
</div>
...
...
getting-started/index.html
View file @
29485d4b
...
...
@@ -253,8 +253,7 @@ Copy any changes made here over to the README too. -->
</div>
<script
src=
"http://dcloudio.github.io/mui/dist/js/jquery-2.1.1.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/dist/js/mui.min.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/fingerblast.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.min.js"
></script>
</div>
</div>
...
...
index.html
View file @
29485d4b
...
...
@@ -74,8 +74,7 @@
</div>
<script
src=
"http://dcloudio.github.io/mui/dist/js/jquery-2.1.1.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/dist/js/mui.min.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/fingerblast.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.min.js"
></script>
</div>
</div>
...
...
javascript/index.html
View file @
29485d4b
...
...
@@ -128,8 +128,7 @@
</div>
<script
src=
"http://dcloudio.github.io/mui/dist/js/jquery-2.1.1.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/dist/js/mui.min.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/fingerblast.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.min.js"
></script>
</div>
</div>
...
...
sitemap.xml
View file @
29485d4b
...
...
@@ -2,7 +2,7 @@
<urlset
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
xmlns=
"http://www.sitemaps.org/schemas/sitemap/0.9"
>
<url>
<loc>
http://dcloudio.github.io/mui/
</loc>
<lastmod>
2014-08-29T2
2:52:55
+08:00
</lastmod>
<lastmod>
2014-08-29T2
3:02:52
+08:00
</lastmod>
<changefreq>
daily
</changefreq>
<priority>
1.0
</priority>
</url>
...
...
@@ -10,7 +10,7 @@
<url>
<loc>
http://dcloudio.github.io/mui/about/
</loc>
<lastmod>
2014-08-29T2
2:52:55
+08:00
</lastmod>
<lastmod>
2014-08-29T2
3:02:52
+08:00
</lastmod>
<changefreq>
weekly
</changefreq>
<priority>
0.7
</priority>
</url>
...
...
@@ -19,7 +19,7 @@
<url>
<loc>
http://dcloudio.github.io/mui/components/
</loc>
<lastmod>
2014-08-29T2
2:52:55
+08:00
</lastmod>
<lastmod>
2014-08-29T2
3:02:52
+08:00
</lastmod>
<changefreq>
weekly
</changefreq>
<priority>
0.7
</priority>
</url>
...
...
@@ -28,7 +28,7 @@
<url>
<loc>
http://dcloudio.github.io/mui/getting-started/
</loc>
<lastmod>
2014-08-29T2
2:52:55
+08:00
</lastmod>
<lastmod>
2014-08-29T2
3:02:52
+08:00
</lastmod>
<changefreq>
weekly
</changefreq>
<priority>
0.7
</priority>
</url>
...
...
@@ -39,7 +39,7 @@
<url>
<loc>
http://dcloudio.github.io/mui/javascript/
</loc>
<lastmod>
2014-08-29T2
2:52:55
+08:00
</lastmod>
<lastmod>
2014-08-29T2
3:02:52
+08:00
</lastmod>
<changefreq>
weekly
</changefreq>
<priority>
0.7
</priority>
</url>
...
...
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