moved stylesheets and javascripts to assets

This commit is contained in:
albert
2011-05-24 18:24:45 -04:00
parent 1c964b5189
commit ca68b2def1
45 changed files with 921 additions and 568 deletions

View File

@@ -0,0 +1,13 @@
$(document).ready(function() {
var img = $("#image-preview img");
if (img) {
var height = img.attr("height");
var width = img.attr("width");
if (height > 400) {
var ratio = 400.0 / height;
img.attr("height", height * ratio);
img.attr("width", width * ratio);
$("#scale").val("Scaled " + parseInt(100 * ratio) + "%");
}
}
});