• Catalin CimpanuCatalin Cimpanu, almost 6 years ago

    Copy-pasting the plugin's source into your main JS file so you don't include it as a separate file. It's only 40 lines of code.

    1 point
    • Alex AnderAlex Ander, almost 6 years ago

      You don't even need to do that. It's like three lines of JS if you're not interested in making a general solution. Just a click bind and an alert.

      1 point
      • Will FroelichWill Froelich, almost 6 years ago (edited almost 6 years ago )
        $("a[href^='mailto']").on('click', function(e){ if(!confim("Are you sure you wanna email")){ e.preventDefault(); } });
        4 points