One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
var waitForEl = function(selector, callback) { | |
if (jQuery(selector).length) { | |
callback(); | |
} else { | |
setTimeout(function() { | |
waitForEl(selector, callback); | |
}, 100); | |
} | |
}; |
jQuery.validator.addMethod("filesize_max", function(value, element, param) { | |
var isOptional = this.optional(element), | |
file; | |
if(isOptional) { | |
return isOptional; | |
} | |
if ($(element).attr("type") === "file") { | |
<div id="pagination"> | |
<ul> | |
{% if paginate.previous %} | |
<li>{{ paginate.previous.title | link_to: paginate.previous.url }}</li> | |
{% endif %} | |
{% for i in (1..paginate.pages) %} | |
{% if paginate.current_page == i %} | |
<li>{{ i }}</li> |
<?php | |
//How to use it | |
//Just call timthumb.php with appropriate arguments, For example: | |
<img src="/script/timthumb.php?src=/some/path/myimage.png&w=100&h=80" alt="resized image" /> | |
/* http://viralpatel.net/blogs/resize-image-dynamically-php/ */ | |
?> |
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |