Mercurial > dirlist-php
diff index.php @ 41:e122e4e55e75
No need to wait for document ready since it's already at the bottom of the page.
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 24 May 2015 17:21:04 +0900 |
parents | 12eabc73a441 |
children | ddb5458658d2 |
line wrap: on
line diff
--- a/index.php Sun May 24 17:19:40 2015 +0900 +++ b/index.php Sun May 24 17:21:04 2015 +0900 @@ -201,18 +201,16 @@ <script src="//cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/0.9.9/jquery.magnific-popup.min.js"></script> <script> - $(document).ready(function() { - $("table td a").each(function() { - if (!this.href.match(/\.(jpe?g|png|gif|webp)$/i)) return - this.className = "image" - this.setAttribute("title", this.innerHTML) - }) + $("table td a").each(function() { + if (!this.href.match(/\.(jpe?g|png|gif|webp)$/i)) return + this.className = "image" + this.setAttribute("title", this.innerHTML) + }) - $("table > tbody").magnificPopup({ - delegate: "a.image", - type: "image", - gallery: { enabled: true } - }) + $("table > tbody").magnificPopup({ + delegate: "a.image", + type: "image", + gallery: { enabled: true } }) </script> </body>