CARVIEW |
Select Language
HTTP/2 301
location: https://raw.githubusercontent.com/sloria/AreYouSure.js/master/areyousure.min.js
accept-ranges: bytes
age: 0
date: Thu, 24 Jul 2025 16:37:19 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210090-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753375038.459099,VS0,VE1305
vary: Accept-Encoding
x-fastly-request-id: a588add5dcd2dee10fc251da42cb28042e170a27
content-length: 0
HTTP/2 200
cache-control: max-age=300
content-security-policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
content-type: text/plain; charset=utf-8
etag: W/"62f088a4af1dd35f81c56f2e679be75465a06dae5cabb1966688799257f75e97"
strict-transport-security: max-age=31536000
x-content-type-options: nosniff
x-frame-options: deny
x-xss-protection: 1; mode=block
x-github-request-id: 245E:316214:28CA5:52CC0:6882613F
content-encoding: gzip
accept-ranges: bytes
date: Thu, 24 Jul 2025 16:37:20 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210026-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753375040.819367,VS0,VE271
vary: Authorization,Accept-Encoding
access-control-allow-origin: *
cross-origin-resource-policy: cross-origin
x-fastly-request-id: 51416967a5307870299fa00252c2bed7184dddf4
expires: Thu, 24 Jul 2025 16:42:20 GMT
source-age: 0
content-length: 863
(function(){var t,e,i,n,s,a;t=jQuery,s="areyousure",i=function(t,e){return""+t+""},a=function(){},n={text:"Are you sure?",confirmText:"Yes",cancelText:"No",sep:" | ",reverse:!1,yes:a,no:a,additional:[]},e=function(){function e(e,a){var o,r;this.element=e,this.element.wrap(""),this.options=t.extend({},n,a),this.cancelText=i(this.options.cancelText,"cancel"),this.confirmText=i(this.options.confirmText,"confirm"),this.additional=this.options.additional.length>0?function(){var t,e,n,s;for(n=this.options.additional,s=[],t=0,e=n.length;e>t;t++)r=n[t],s.push(i(r));return s}.call(this).join(this.options.sep):"",o=this.options.reverse?""+this.options.text+" "+this.cancelText+this.options.sep+this.confirmText:""+this.options.text+" "+this.confirmText+this.options.sep+this.cancelText,this.confirmElem=" "+o+(this.additional?this.options.sep+this.additional:"")+"",this.element.after(this.confirmElem),this.outer=this.element.parent(),this.dialog=this.outer.find("[data-ays-dialog]"),this.init()}return e.prototype.init=function(){var e;return e=this,this.element.on("click",function(t){return t.preventDefault(),e.activate()}),this.outer.on("click","."+s+"-link",function(i){var n;return i.preventDefault(),n="confirm"===t(this).data("ays-action")?"yes":"no",t.when(e.options[n].call(e,i)).then(function(){return e.deactivate()})}),this},e.prototype.activate=function(){return this.dialog.show()&&this.element.hide(),this},e.prototype.deactivate=function(){return this.dialog.hide()&&this.element.show(),this},e}(),t.fn.areyousure=function(i){return this.each(function(){return t.data(this,"plugin_"+s)?void 0:t.data(this,"plugin_"+s,new e(t(this),i))})},e.discover=function(){return t("[data-areyousure]").each(function(){var i;return i=t(this),new e(i,{text:i.data("areyousure")||n.text,confirmText:i.data("confirm")||n.confirmText,cancelText:i.data("cancel")||n.cancelText,reverse:i.data("reversed"),sep:i.data("separator")})})},window.AreYouSure=e,e.auto=!0,t(function(){return e.auto?e.discover():void 0})}).call(this);