Replaced jQuery UI by Animate.css (better, faster, lighter)

This commit is contained in:
Bernd Bestel
2020-01-28 19:27:18 +01:00
parent 6f549bdf3a
commit 8d490351d0
23 changed files with 109 additions and 158 deletions

View File

@@ -3,12 +3,12 @@
RefreshQuPluralTestingResult();
});
$("#amount").keyup(function (event)
$("#amount").keyup(function(event)
{
RefreshQuPluralTestingResult();
});
$("#amount").change(function (event)
$("#amount").change(function(event)
{
RefreshQuPluralTestingResult();
});
@@ -24,11 +24,8 @@ function RefreshQuPluralTestingResult()
return;
}
$("#result").parent().effect("highlight", {}, 100);
$("#result").fadeOut(100, function ()
{
$(this).text(__n(amount, singularForm, pluralForm)).fadeIn(100);
});
animateCSS("h2", "shake");
$("#result").text(__n(amount, singularForm, pluralForm));
}
if (GetUriParam("qu") !== undefined)