Mercurial > dirlist-php
comparison index.php @ 40:12eabc73a441
Less strict selector.
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 24 May 2015 17:19:40 +0900 |
parents | 79d3478c33a3 |
children | e122e4e55e75 |
comparison
equal
deleted
inserted
replaced
39:79d3478c33a3 | 40:12eabc73a441 |
---|---|
1 <?php | 1 <?php |
2 define('DL_VERSION', '2.0.1'); | 2 define('DL_VERSION', '2.0.2'); |
3 // Required for strftime(). Set to UTC because :internet:. | 3 // Required for strftime(). Set to UTC because :internet:. |
4 date_default_timezone_set('UTC'); | 4 date_default_timezone_set('UTC'); |
5 | 5 |
6 // $uri: web-facing path | 6 // $uri: web-facing path |
7 $uri = $_SERVER["REQUEST_URI"]; | 7 $uri = $_SERVER["REQUEST_URI"]; |
200 | 200 |
201 <script src="//cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/0.9.9/jquery.magnific-popup.min.js"></script> | 201 <script src="//cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/0.9.9/jquery.magnific-popup.min.js"></script> |
202 | 202 |
203 <script> | 203 <script> |
204 $(document).ready(function() { | 204 $(document).ready(function() { |
205 $("table > tbody > tr > td > a").each(function() { | 205 $("table td a").each(function() { |
206 if (!this.href.match(/\.(jpe?g|png|gif|webp)$/i)) return | 206 if (!this.href.match(/\.(jpe?g|png|gif|webp)$/i)) return |
207 this.className = "image" | 207 this.className = "image" |
208 this.setAttribute("title", this.innerHTML) | 208 this.setAttribute("title", this.innerHTML) |
209 }) | 209 }) |
210 | 210 |