Tag: 涟漪

Firefox上的Mousedown和Click冲突

我尝试使用MAWButton插件( https://github.com/yuhua-chen/MAWButton )和JQuery Color插件( https://github.com/jquery/jquery-color )来模拟Paper Ripple Effect。 基本上,效果对Firefox不起作用。 这是演示 – > http://jsfiddle.net/2txszd46/4/ //https://github.com/yuhua-chen/MAWButton/blob/master/js/mawbutton.js (function($) { $.fn.ripple = function(options) { var settings = $.extend({ speed: 333, // ms transitionEnd: function() {} // callback when transition ends. }, options); return this.each(function() { var $this = $(this); var supportEvent = (‘ontouchstart’ in window) ? ‘touchstart’ : ‘mousedown’; […]

PhoneGap应用程序无法在Google Ripple上运行

我正在开发一个phoneGap应用程序。 当我在浏览器中测试我的应用程序时没有问题。 万事如意。 但是当我在涟漪中尝试它时,我的javascript无法正常工作。 详细信息:用户可以登录系统,如果它成功重定向到另一个页面(使用jquery mobile),它在chrome,Internet Explorer和firefox中运行良好。 但是在波纹中不起作用。 我的代码如下所示: $(function() { var credentials = ‘admin:adminabc’; var authType = “Basic ” + credentials; $(‘#loginForm’).submit(function() { $.ajax({ type : “GET”, url : ‘http://localhost:30673/api/user/Get’, data : ‘json’, beforeSend : function(xhr) { xhr.setRequestHeader(“Authorization”, authType); }, success : function(data, textStatus) { $.mobile.changePage(“#menu”, { transition : “slideup” }); } }); }); […]