mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
[flexslider] Update tests to use non-deprecated code.
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
$(window).ready(function() {
|
||||
$(function() {
|
||||
$('.flexslider').flexslider({
|
||||
animation: "slide"
|
||||
});
|
||||
});
|
||||
|
||||
$(window).ready(function() {
|
||||
$(function() {
|
||||
$('.flexslider').flexslider({
|
||||
animation: "slide",
|
||||
controlNav: "thumbnails"
|
||||
});
|
||||
});
|
||||
|
||||
$(window).ready(function() {
|
||||
$(function() {
|
||||
// The slider being synced must be initialized first
|
||||
$('#carousel').flexslider({
|
||||
animation: "slide",
|
||||
@@ -32,7 +32,7 @@ $(window).ready(function() {
|
||||
});
|
||||
});
|
||||
|
||||
$(window).ready(function() {
|
||||
$(function() {
|
||||
$('.flexslider').flexslider({
|
||||
animation: "slide",
|
||||
animationLoop: false,
|
||||
@@ -41,7 +41,7 @@ $(window).ready(function() {
|
||||
});
|
||||
});
|
||||
|
||||
$(window).ready(function() {
|
||||
$(function() {
|
||||
$('.flexslider').flexslider({
|
||||
animation: "slide",
|
||||
animationLoop: false,
|
||||
@@ -52,11 +52,10 @@ $(window).ready(function() {
|
||||
});
|
||||
});
|
||||
|
||||
$(window).ready(function() {
|
||||
$(function() {
|
||||
|
||||
// Vimeo API nonsense
|
||||
var player = document.getElementById('player_1');
|
||||
$(player).on('ready', ready);
|
||||
$(ready);
|
||||
|
||||
function addEvent(element:any, eventName:any, callback:any) {
|
||||
if (element.addEventListener) {
|
||||
@@ -66,8 +65,8 @@ $(window).ready(function() {
|
||||
}
|
||||
}
|
||||
|
||||
function ready(player_id: any) {
|
||||
var froogaloop = $(player_id);
|
||||
function ready() {
|
||||
var froogaloop = $('#player_1');
|
||||
froogaloop.on('play', function(data) {
|
||||
$('.flexslider').flexslider({ pauseText: "pause" });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user