Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
PhonoDrop
Commits
29bedbb7
Commit
29bedbb7
authored
Mar 21, 2021
by
Sylvain Coulange
Browse files
ajout jquery.ui.touch-punch.min.js
parent
c709b21b
Changes
2
Show whitespace changes
Inline
Side-by-side
public/index.html
View file @
29bedbb7
...
...
@@ -13,6 +13,7 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"styles/clavier.css"
>
<script
src=
"scripts/jquery-3.6.0.min.js"
></script>
<script
src=
"scripts/jquery-ui.min.js"
></script>
<script
src=
"scripts/jquery.ui.touch-punch.min.js"
></script>
<script
src=
"scripts/DragDropTouch.js"
></script>
<script
src=
"scripts/multidraggable.js"
></script>
</head>
...
...
public/scripts/jquery.ui.touch-punch.min.js
0 → 100644
View file @
29bedbb7
/*!
* jQuery UI Touch Punch 0.2.3
*
* Copyright 2011–2014, Dave Furfero
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Depends:
* jquery.ui.widget.js
* jquery.ui.mouse.js
*/
!
function
(
a
){
function
f
(
a
,
b
){
if
(
!
(
a
.
originalEvent
.
touches
.
length
>
1
)){
a
.
preventDefault
();
var
c
=
a
.
originalEvent
.
changedTouches
[
0
],
d
=
document
.
createEvent
(
"
MouseEvents
"
);
d
.
initMouseEvent
(
b
,
!
0
,
!
0
,
window
,
1
,
c
.
screenX
,
c
.
screenY
,
c
.
clientX
,
c
.
clientY
,
!
1
,
!
1
,
!
1
,
!
1
,
0
,
null
),
a
.
target
.
dispatchEvent
(
d
)}}
if
(
a
.
support
.
touch
=
"
ontouchend
"
in
document
,
a
.
support
.
touch
){
var
e
,
b
=
a
.
ui
.
mouse
.
prototype
,
c
=
b
.
_mouseInit
,
d
=
b
.
_mouseDestroy
;
b
.
_touchStart
=
function
(
a
){
var
b
=
this
;
!
e
&&
b
.
_mouseCapture
(
a
.
originalEvent
.
changedTouches
[
0
])
&&
(
e
=!
0
,
b
.
_touchMoved
=!
1
,
f
(
a
,
"
mouseover
"
),
f
(
a
,
"
mousemove
"
),
f
(
a
,
"
mousedown
"
))},
b
.
_touchMove
=
function
(
a
){
e
&&
(
this
.
_touchMoved
=!
0
,
f
(
a
,
"
mousemove
"
))},
b
.
_touchEnd
=
function
(
a
){
e
&&
(
f
(
a
,
"
mouseup
"
),
f
(
a
,
"
mouseout
"
),
this
.
_touchMoved
||
f
(
a
,
"
click
"
),
e
=!
1
)},
b
.
_mouseInit
=
function
(){
var
b
=
this
;
b
.
element
.
bind
({
touchstart
:
a
.
proxy
(
b
,
"
_touchStart
"
),
touchmove
:
a
.
proxy
(
b
,
"
_touchMove
"
),
touchend
:
a
.
proxy
(
b
,
"
_touchEnd
"
)}),
c
.
call
(
b
)},
b
.
_mouseDestroy
=
function
(){
var
b
=
this
;
b
.
element
.
unbind
({
touchstart
:
a
.
proxy
(
b
,
"
_touchStart
"
),
touchmove
:
a
.
proxy
(
b
,
"
_touchMove
"
),
touchend
:
a
.
proxy
(
b
,
"
_touchEnd
"
)}),
d
.
call
(
b
)}}}(
jQuery
);
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