This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Source: http://stackoverflow.com/a/987376/1461859 (http://jsfiddle.net/edelman/KcX6A/1506/) | |
| jQuery.fn.selectText = function(){ | |
| var doc = document | |
| , element = this[0] | |
| , range, selection | |
| ; | |
| if (doc.body.createTextRange) { | |
| range = document.body.createTextRange(); | |
| range.moveToElementText(element); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| *** OPTIONS ***/ | |
| // TITLE OF PAGE | |
| $title = "List of Files"; | |
| // ADD SPECIFIC FILES YOU WANT TO IGNORE HERE | |
| $ignore_file_list = array( ".htaccess", "Thumbs.db", ".DS_Store", "index.php" ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* eslint-disable no-var,no-console */ | |
| // detect unused CSS selectors | |
| (function() { | |
| var parsedRules = parseCssRules(); | |
| console.log('Parsed CSS rules:', parsedRules); | |
| detectDuplicateSelectors(parsedRules); | |
| var selectorsToTrack = getSelectorsToTrack(parsedRules); | |
| window.selectorStats = { unused: [], added: [], removed: [] }; | |
| console.log('Tracking style usage (inspect window.selectorStats for details)...'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Redirects for .htaccess | |
| ============================ | |
| # Place this in a sub-folder | |
| # If requested resource is not an existing file or directory, redirect to ../ | |
| # | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . / [L,R=302] |