Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| if (typeof (AC) === "undefined") { | |
| AC = {} | |
| } | |
| AC.ImageReplacer = Class.create({ | |
| _defaultOptions: { | |
| listenToSwapView: true, | |
| filenameRegex: /(.*)(\.[a-z]{3}($|#.*|\?.*))/i, | |
| filenameInsert: "_☃x", | |
| ignoreCheck: /(^http:\/\/movies\.apple\.com\/|\/105\/|\/global\/elements\/quicktime\/|_(([2-9]|[1-9][0-9]+)x|nohires)(\.[a-z]{3})($|#.*|\?.*))/i, | |
| attribute: "data-hires", |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| /* | |
| NOTE!!!! | |
| The most updated version of this code is here: | |
| https://github.com/scottjehl/iOS-Orientationchange-Fix |
| var cat = {}; | |
| /** | |
| * cat.NewsBox | |
| * Retrieves news from Google | |
| */ | |
| cat.NewsBox = (function(){ | |
| function NewsBox(searchTerm, injectFn) { | |
| this.searchTerm = searchTerm; |
| {!-- build result rows --} | |
| {exp:stash:set parse_tags="yes"} | |
| {stash:results_rows} | |
| {exp:channel:entries | |
| channel="my_channel" | |
| limit="10" | |
| paginate="bottom" | |
| } | |
| <tr> |
| /* A lightweight templating system. | |
| * | |
| * Based on Tim (http://github.com/premasagar/tim) and Mustache | |
| * (http://github.com/janl/mustache.js). | |
| * | |
| * Template supports simple value replacement as well as block | |
| * functions, iterators and conditionals | |
| * | |
| * Template strings can contain either plain tokens `{{token}}` | |
| * which are replaced with their equivilent value in the data |
| /* | |
| == Tim == | |
| A tiny, secure JavaScript micro-templating script. | |
| This has now moved to: | |
| github.com/premasagar/tim | |
| */ |