• Diederik EenschootenDiederik Eenschooten, 6 years ago

    Mhh not very difficult. Not sure why you should include a separate file something this easy imo

    1 point
    • EJ FoxEJ Fox, 6 years ago

      Care to share the easy alternative?

      0 points
      • Catalin CimpanuCatalin Cimpanu, 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, 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, 6 years ago (edited 6 years ago )
            $("a[href^='mailto']").on('click', function(e){ if(!confim("Are you sure you wanna email")){ e.preventDefault(); } });
            4 points