UNPKG

jquery-slugify

Version:

Just another another (another) url slug plugin for jQuery

32 lines (31 loc) 1.25 kB
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Slugify Test Suite</title> <!-- Load local jQuery. This can be overridden with a ?jquery=___ param. --> <script src="../libs/jquery-loader.js"></script> <!-- Load local QUnit. --> <link rel="stylesheet" href="../libs/qunit/qunit.css" media="screen"> <script src="../libs/qunit/qunit.js"></script> <!-- Load local lib and tests. --> <script src="../node_modules/speakingurl/speakingurl.min.js"></script> <script src="../src/slugify.js"></script> <script src="slugify_test.js"></script> <!-- Removing access to jQuery and $. But it'll still be available as _$, if you REALLY want to mess around with jQuery in the console. REMEMBER WE ARE TESTING A PLUGIN HERE, THIS HELPS ENSURE BEST PRACTICES. REALLY. --> <script>window._$ = jQuery.noConflict(true);</script> </head> <body> <div> <input type ="text" value="" id="slug-source"/> </div> <div> <input type ="text" value="" id="slug-target"/> </div> <div> <span id="slug-target-span"></span> </div> </body> </html>