exiguus/js.npm.babel.jquery.env

View on GitHub
src/index.jquery.html

Summary

Maintainability
Test Coverage
<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title></title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <title>Mail deobfuscate jQuery Plugin</title>
    </head>
    <body>
        <header>
          <h1>Mail deobfuscate</h1>
          <h2>jQuery Plugin</h2>
        </header>

        <main>
          <article>
            <h2>Mail deobfuscating with <em>rot13 caesar cipher</em></h2>
            <p>The plugin deobfuscate a mailto-link which was obfuscated with <em>rot13 caesar cipher</em> onClick in this example</p>
            <h2>Example:</h2>
            <h3>
              E-Mail with <em>rot13 caesar cipher</em> ciphed:
            </h3>
            <ul>
              <li>
                <a href="mailto:znvy@rknzcyr.bet" title="mail to">with obfuscated mail address in href</a>
              </li>
              <li>
                <a href="mailto:znvy@rknzcyr.bet" title="mail to">znvy@rknzcyr.bet with obfuscated mail address in text</a>
              </li>
              <li>
                <a href="mailto:znvy@rknzcyr.bet" title="mail to znvy@rknzcyr.bet">znvy@rknzcyr.bet with obfuscated mail address in text and title </a>
              </li>
            </ul>
            <h4>Mailto Links</h4>
<pre>
<code>
  &lt;ul&gt;
    &lt;li&gt;
      &lt;a href=&quot;mailto:znvy@rknzcyr.bet&quot; title=&quot;mail to&quot;&gt;with obfuscated mail address in href&lt;/a&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;a href=&quot;mailto:znvy@rknzcyr.bet&quot; title=&quot;mail to&quot;&gt;znvy@rknzcyr.bet with obfuscated mail address in text&lt;/a&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;a href=&quot;mailto:znvy@rknzcyr.bet&quot; title=&quot;mail to znvy@rknzcyr.bet&quot;&gt;znvy@rknzcyr.bet with obfuscated mail address in text and title &lt;/a&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
</code>
</pre>
            <h4>mailDeobfuscate event binding</h4>
<pre>
<code>
  &lt;script&gt;
    $('a[href^=&quot;mailto:&quot;]').each(function (index, value) {
      $(value).on('click', function(event) {
        $(event.target).mailDeobfuscate()
      })
    })
  &lt;/script&gt;
</code>
</pre>
          </article>
        </main>
        <script src="../node_modules/jquery/dist/jquery.min.js"></script>
        <script src="js/jquery.mail.deobfuscate.js"></script>
        <script>
          $('a[href^="mailto:"]').each(function (index, value) {
            $(value).on('click', function(event) {
              $(event.target).mailDeobfuscate()
            })
          })
        </script>
    </body>
</html>