Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
8ddfd026
Commit
8ddfd026
authored
Mar 07, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused code
parent
6373a817
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
384 deletions
+0
-384
ext/libs/jquery-mobile/extensions.css
ext/libs/jquery-mobile/extensions.css
+0
-106
ext/libs/jquery-mobile/extensions.js
ext/libs/jquery-mobile/extensions.js
+0
-278
No files found.
ext/libs/jquery-mobile/extensions.css
View file @
8ddfd026
...
...
@@ -34,113 +34,7 @@ html body .ui-input-text .ui-input-action:active {
-webkit-box-shadow
:
none
/* iOS3 */
!important
;
box-shadow
:
none
/* iOS3 */
!important
;
}
/* =========================== carousel widget ========================*/
.ui-carousel
{
list-style
:
none
outside
none
;
margin
:
0
auto
;
padding
:
0
;
position
:
relative
;
text-align
:
center
;
width
:
auto
;
min-height
:
25em
;
overflow
:
hidden
;
/* firefox seems the only browser to properly overflow-hide round corners... */
margin
:
0
-15px
;
}
.ui-carousel-inset
{
margin
:
1em
auto
;
-webkit-border-radius
:
1em
;
-moz-border-radius
:
1em
;
border-radius
:
1em
;
}
.ui-carousel
li
{
list-style
:
none
;
width
:
100%
;
position
:
absolute
;
display
:
none
;
height
:
100%
;
-webkit-border-radius
:
inherit
;
-moz-border-radius
:
inherit
;
border-radius
:
inherit
;
overflow
:
inherit
;
min-height
:
inherit
;
}
.ui-carousel
li
.ui-carousel-transitioning
{
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.ui-carousel
li
.ui-carousel-active
{
display
:
block
;
}
.ui-carousel
li
a
{
height
:
inherit
;
-webkit-border-radius
:
inherit
;
-moz-border-radius
:
inherit
;
border-radius
:
inherit
;
overflow
:
inherit
;
min-height
:
inherit
;
}
.ui-carousel
img
{
width
:
100%
;
display
:
block
;
-webkit-border-radius
:
inherit
;
-moz-border-radius
:
inherit
;
border-radius
:
inherit
;
min-height
:
inherit
;
}
.ui-carousel-controls
{
text-align
:
center
;
}
.ui-carousel-controls
.ui-radio
{
display
:
inline-block
;
padding
:
0
0.25em
;
}
.ui-carousel-controls
.ui-radio
input
:checked
{
border
:
1px
solid
red
!important
;
}
.ui-carousel-captions
.ui-carousel-captions-heading
{
margin
:
0
;
padding
:
0
;
}
.ui-carousel-captions-content
{
left
:
0
;
margin
:
0
;
padding
:
0.5em
0
;
position
:
absolute
;
right
:
0
;
}
.ui-carousel-captions-bottom
{
bottom
:
0
;
}
.ui-carousel-captions-top
{
top
:
0
;
}
@media
(
max-width
:
77.5em
)
{
.ui-carousel.ui-responsive
{
max-width
:
80%
;
}
}
@media
(
max-width
:
45em
)
{
.ui-carousel.ui-responsive
{
max-width
:
85%
;
}
}
@media
(
max-width
:
40em
)
{
.ui-carousel.ui-responsive
{
max-width
:
90%
;
}
}
@media
(
max-width
:
30em
)
{
.ui-carousel.ui-responsive
{
max-width
:
90%
;
}
}
@media
(
max-width
:
20em
)
{
.ui-carousel.ui-responsive
{
max-width
:
90%
;
}
}
/* ================================= table ================================*/
html
div
.ui-table-wrapper-top
p
,
...
...
ext/libs/jquery-mobile/extensions.js
View file @
8ddfd026
/* ========================= GALLERY WIDGET ========================= */
(
function
(
$
)
{
$
.
widget
(
"
mobile.carousel
"
,
{
options
:
{
bullets
:
null
,
bulletsPos
:
null
,
inset
:
null
,
captions
:
null
,
captionpos
:
null
,
captiontheme
:
null
,
carouseltransition
:
null
,
heading
:
"
h1,h2,h3,h4,h5,h6,legend
"
},
_transitionEndEvents
:
"
webkitTransitionEnd oTransitionEnd
"
+
"
otransitionend transitionend msTransitionEnd
"
,
_create
:
function
()
{
var
el
=
this
.
element
[
0
],
o
=
this
.
options
,
getAttrFixed
=
$
.
mobile
.
getAttribute
;
// only time we read the DOM config
o
.
inset
=
getAttrFixed
(
el
,
"
inset
"
,
true
)
||
false
;
o
.
carouseltransition
=
getAttrFixed
(
el
,
"
transition
"
,
true
)
||
"
slide
"
;
o
.
bullets
=
getAttrFixed
(
el
,
"
bullets
"
,
true
)
||
true
;
o
.
captions
=
getAttrFixed
(
el
,
"
captions
"
,
true
)
||
false
;
if
(
o
.
captions
)
{
o
.
captionspos
=
getAttrFixed
(
el
,
"
captions-pos
"
,
true
)
||
"
bottom
"
;
o
.
captionstheme
=
getAttrFixed
(
el
,
"
captions-theme
"
,
true
)
||
"
a
"
;
}
if
(
o
.
bullets
)
{
o
.
bulletsPos
=
getAttrFixed
(
el
,
"
bulletsPos
"
,
true
)
||
"
bottom
"
;
}
this
.
refresh
(
true
);
},
refresh
:
function
(
create
)
{
var
o
=
this
.
options
,
el
=
this
.
element
,
items
=
el
.
children
(),
fragment
=
document
.
createDocumentFragment
(),
classes
=
"
ui-carousel
"
,
barrel
,
label
,
radio
,
item
,
i
,
containsLinks
,
captionsHeading
,
captionsContent
;
// loop over images
for
(
i
=
0
;
i
<
items
.
length
;
i
+=
1
)
{
item
=
items
[
i
];
// create captions
if
(
o
.
captions
)
{
containsLinks
=
item
.
children
.
length
===
1
&&
item
.
children
[
0
].
tagName
===
"
A
"
;
captionsContent
=
$
(
item
)
.
find
(
containsLinks
?
"
a *
"
:
"
*
"
)
.
not
(
"
img
"
)
.
wrap
(
"
<div class='ui-carousel-captions-content ui-bar-
"
+
o
.
captionstheme
+
"
ui-carousel-captions-
"
+
o
.
captionspos
+
"
'></div>
"
)
.
parent
();
captionsHeading
=
captionsContent
.
find
(
o
.
heading
).
addClass
(
"
ui-carousel-captions-heading
"
);
}
// create radios
if
(
o
.
bullets
)
{
// TODO: do this in jQuery...
radio
=
document
.
createElement
(
"
input
"
);
radio
.
setAttribute
(
"
type
"
,
'
radio
'
);
radio
.
setAttribute
(
"
name
"
,
'
radio-
'
+
this
.
uuid
);
radio
.
setAttribute
(
"
value
"
,
'
radio-
'
+
this
.
uuid
+
'
-
'
+
i
);
if
(
i
===
0
)
{
radio
.
checked
=
true
;
$
(
item
).
addClass
(
"
ui-carousel-active
"
);
}
// and use data()
radio
.
reference
=
$
(
item
);
label
=
document
.
createElement
(
"
label
"
);
label
.
setAttribute
(
"
data-
"
+
$
.
mobile
.
ns
+
"
iconpos
"
,
"
notext
"
);
label
.
appendChild
(
radio
);
fragment
.
appendChild
(
label
);
}
}
if
(
o
.
inset
)
{
classes
+=
"
ui-carousel-inset
"
;
}
if
(
o
.
captions
)
{
classes
+=
"
ui-carousel-captions
"
;
}
if
(
o
.
bullets
)
{
classes
+=
"
ui-carousel-bullets
"
;
barrel
=
$
(
"
<div id='ui-carousel-barrel-
"
+
this
.
uuid
+
"
' class='ui-carousel-controls ui-carousel-controls-
"
+
o
.
bulletsPos
+
"
' />
"
);
while
(
fragment
.
firstChild
)
{
// browser hangs up if calling this inside append()
$
(
fragment
.
firstChild
).
children
().
checkboxradio
();
barrel
.
append
(
fragment
.
firstChild
);
}
// remove existing barrel
if
(
create
===
undefined
)
{
$
(
"
#ui-carousel-barrel-
"
+
this
.
uuid
).
remove
();
}
// this always needs to go before the slider
el
[
o
.
bulletsPos
===
"
top
"
?
"
before
"
:
"
after
"
](
barrel
);
this
.
_on
(
barrel
.
find
(
"
input
"
),
{
change
:
"
_onChange
"
});
}
// all set, add classes
el
.
addClass
(
classes
);
},
// _handleKeydown: function( event ) {
// var index = this._value();
// if ( this.options.disabled ) {
// return;
// }
//
// // In all cases prevent the default and mark the handle as active
// switch ( event.keyCode ) {
// case $.mobile.keyCode.RIGHT:
// case $.mobile.keyCode.LEFT:
// event.preventDefault();
//
// if ( !this._keySliding ) {
// this._keySliding = true;
// this.handle.addClass( "ui-state-active" );
// }
//
// break;
// }
//
// // move the slider according to the keypress
// switch ( event.keyCode ) {
// case $.mobile.keyCode.RIGHT:
// this.refresh( index + this.step );
// break;
// case $.mobile.keyCode.LEFT:
// this.refresh( index - this.step );
// break;
// }
// }, // remove active mark
//
// _handleKeyup: function(/* event */) {
// if ( this._keySliding ) {
// this._keySliding = false;
// }
// },
// _bindSwipeEvents: function() {
// var self = this,
// area = self.element;
//
// // on swipe, change to the next/previous image
// if( !!self.options.swipeClose ) {
// if ( self.options.position === "left" ) {
// area.on( "swipeleft.carousel", function(/* e */) {
// // self.close();
// });
// } else {
// area.on( "swiperight.carousel", function(/* e */) {
// // self.close();
// });
// }
// }
// },
_completeTransition
:
function
(
current
,
next
,
events
)
{
var
self
=
this
,
o
=
self
.
options
;
next
.
removeClass
(
"
in out
"
+
o
.
carouseltransition
)
.
off
(
events
);
current
.
on
(
events
,
self
.
_cleanupTransition
(
current
,
events
));
},
_cleanupTransition
:
function
(
current
,
events
)
{
var
self
=
this
,
o
=
self
.
options
,
classes
=
o
.
carouseltransition
+
"
out in
"
;
current
.
removeClass
(
classes
);
current
.
removeClass
(
"
ui-carousel-active
"
).
off
(
events
);
},
_onChange
:
function
(
e
)
{
var
self
=
this
,
events
=
self
.
_transitionEndEvents
,
el
=
self
.
element
,
o
=
self
.
options
,
currentActive
=
el
.
children
().
filter
(
"
.ui-carousel-active
"
),
nextActive
=
e
.
target
.
reference
,
//classes = o.carouseltransition + " out in",
transition
=
$
.
mobile
.
_maybeDegradeTransition
(
o
.
carouseltransition
);
// click on active radio
if
(
nextActive
.
hasClass
(
"
ui-carousel-active
"
))
{
return
;
}
// initialize
nextActive
.
on
(
events
,
self
.
_completeTransition
(
currentActive
,
nextActive
,
events
));
nextActive
.
addClass
(
transition
+
"
ui-carousel-active in
"
);
}
});
}(
jQuery
));
/* tranistion workflow
// first slide
if (init) {
current.removeClass("ui-carousel-active in out reverse slide")
next.css('z-index','-10')
.addClass("ui-carousel-active ui-carousel-opaque")
.css('z-index','')
if (transition !== "none") {
// > once animation is complete!
// current.removeClass("ui-carousel-active in out reverse slide")
// next.removeClass("out in reverse slide")
next.removeClass("ui-carousel-opaque")
.addClass("slide in reverse")
} else {
current.removeClass("ui-carousel-active in out reverse slide")
next.removeClass("out in reverse slide")
}
} else {
// > once animation is complete
current.removeClass("ui-carousel-active in out reverse slide")
next.css('z-index','-10')
.addClass("ui-carousel-active ui-carousel-opaque")
.css('z-index','')
if (transition !== "none") {
// > once animation is complete!
// current.removeClass("ui-carousel-active in out reverse slide")
// next.removeClass("out in reverse slide")
next.removeClass("ui-carousel-opaque")
.addClass("slide in reverse")
} else {
current.removeClass("ui-carousel-active in out reverse slide")
next.removeClass("out in reverse slide")
}
current.addClass("slide out reverse");
}
*/
/* ========================= ACTION BUTTON EXTENSION ==================== */
(
function
()
{
...
...
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