[flexslider] Update tests to use non-deprecated code.

This commit is contained in:
Leonard Thieu
2017-06-26 07:18:51 -04:00
parent 1bc684f2cf
commit 55161b13d9

View File

@@ -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" });
});