text: !function(a){"use strict";a.fn.gif=function(){var b=a(this).attr("src"),c=a(this).data("gif"),d="img",e=!1;if(void 0!=c){a(this).wrap("<div class='gif-loader'></div>");var f=a(this).parent(),g=a("<a/>",{html:'<span class="fa fa-play fa-5x"></span>'}).appendTo(f);a(f).data("row_parent",this),a(f).on("click",function(b){void 0!=b&&b.preventDefault(),a(this).data("row_parent").swap()}),this.swap=function(){"img"==d?e?this.setState("gif"):this.loadGIF():"gif"==d&&this.setState("img")},this.setState=function(f){d=f,"img"==d?(a(this).attr("src",b),a(g).html('<span class="fa fa-play fa-5x"></span>')):"gif"==d?(e=!0,a(this).attr("src",c),a(g).html('<span class="fa fa-pause fa-5x"></span>')):"loading"==d&&(e=!1,a(g).html('<span class="fa fa-circle-o-notch fa-spin fa-2x"></span>'))},this.loadGIF=function(){this.setState("loading");var b=new Image;b.src=c,a(b).data("row_parent",this),b.onload=function(){a(this).data("row_parent").setState("gif")}}}}}(jQuery);