Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
Add callback once images are loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
sneaknz committed Jul 29, 2014
1 parent 14a6923 commit c96a665
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 36 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

*.codekit
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ The plugin requires jQuery to be included in the page, and also the [imagesloade
<th>loaderHtml</th>
<td>The HTML for the 'loading' animation (optional). Default is `'<div class="imagefill-loader"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>'`</td>
</tr>
<tr>
<th>afterLoad</th>
<td>A callback once the image has been loaded. The value for `this` is the parent imagefill container.</td>
</tr>
</table>

## Usage
Expand Down
83 changes: 50 additions & 33 deletions config.codekit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"CodeKitInfo": "This is a CodeKit 2.x project configuration file. It is designed to sync project settings across multiple machines. MODIFYING THE CONTENTS OF THIS FILE IS A POOR LIFE DECISION. If you do so, you will likely cause CodeKit to crash. This file is not useful unless accompanied by the project that created it in CodeKit 2. This file is not backwards-compatible with CodeKit 1.x. For more information, see: http:\/\/incident57.com\/codekit",
"creatorBuild": "16903",
"creatorBuild": "17670",
"files": {
"\/css\/screen.css": {
"fileType": 16,
Expand Down Expand Up @@ -53,15 +53,6 @@
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/example.html": {
"fileType": 8192,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/example.html",
"outputAbbreviatedPath": "No Output Path",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
},
"\/img\/forrest-1600x800.jpg": {
"fileType": 16384,
"ignore": 0,
Expand All @@ -84,6 +75,15 @@
"outputPathIsSetByUser": 0,
"processed": 0
},
"\/index.html": {
"fileType": 8192,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/index.html",
"outputAbbreviatedPath": "No Output Path",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
},
"\/js\/jquery-1.11.0.js": {
"fileType": 64,
"ignore": 0,
Expand Down Expand Up @@ -157,6 +157,8 @@
"autoprefixerBrowserString": "> 1%, last 2 versions, ff 17, opera 12.1",
"autoSyncProjectSettingsFile": 1,
"browserRefreshDelay": 0,
"coffeeAutoOutputPathEnabled": 1,
"coffeeAutoOutputPathFilenamePattern": "*.js",
"coffeeAutoOutputPathRelativePath": "",
"coffeeAutoOutputPathReplace1": "",
"coffeeAutoOutputPathReplace2": "",
Expand Down Expand Up @@ -207,14 +209,18 @@
"active": 0,
"flagValue": 3
},
"no-unnecessary_fat_arrows": {
"no_backticks": {
"active": 1,
"flagValue": -1
},
"no_backticks": {
"no_debugger": {
"active": 1,
"flagValue": -1
},
"no_empty_functions": {
"active": 0,
"flagValue": -1
},
"no_empty_param_list": {
"active": 0,
"flagValue": -1
Expand All @@ -227,6 +233,10 @@
"active": 0,
"flagValue": -1
},
"no_interpolation_in_single_quotes": {
"active": 0,
"flagValue": -1
},
"no_plusplus": {
"active": 0,
"flagValue": -1
Expand All @@ -251,6 +261,14 @@
"active": 1,
"flagValue": -1
},
"no_unnecessary_double_quotes": {
"active": 0,
"flagValue": -1
},
"no_unnecessary_fat_arrows": {
"active": 1,
"flagValue": -1
},
"non_empty_constructor_needs_parens": {
"active": 0,
"flagValue": -1
Expand All @@ -266,6 +284,8 @@
"externalServerAddress": "http:\/\/localhost:8888",
"externalServerPreviewPathAddition": "",
"genericWebpageFileExtensionsString": "html, htm, shtml, shtm, xhtml, php, jsp, asp, aspx, erb, ctp",
"hamlAutoOutputPathEnabled": 1,
"hamlAutoOutputPathFilenamePattern": "*.html",
"hamlAutoOutputPathRelativePath": "",
"hamlAutoOutputPathReplace1": "",
"hamlAutoOutputPathReplace2": "",
Expand All @@ -277,19 +297,22 @@
"hamlUseCDATA": 0,
"hamlUseDoubleQuotes": 0,
"hamlUseUnixNewlines": 0,
"jadeAutoOutputPathEnabled": 1,
"jadeAutoOutputPathFilenamePattern": "*.html",
"jadeAutoOutputPathRelativePath": "",
"jadeAutoOutputPathReplace1": "",
"jadeAutoOutputPathReplace2": "",
"jadeAutoOutputPathStyle": 0,
"jadeCompileDebug": 1,
"jadeOutputStyle": 0,
"javascriptAutoOutputPathEnabled": 1,
"javascriptAutoOutputPathFilenamePattern": "*-min.js",
"javascriptAutoOutputPathRelativePath": "\/min",
"javascriptAutoOutputPathReplace1": "",
"javascriptAutoOutputPathReplace2": "",
"javascriptAutoOutputPathStyle": 2,
"javascriptCreateSourceMap": 1,
"javascriptOutputStyle": 1,
"javascriptOutputSuffix": "-ck",
"javascriptSyntaxCheckerStyle": 1,
"jsCheckerReservedNamesString": "",
"jsHintFlags2": {
Expand Down Expand Up @@ -369,10 +392,6 @@
"active": 0,
"flagValue": -1
},
"gcl": {
"active": 0,
"flagValue": -1
},
"globalstrict": {
"active": 0,
"flagValue": -1
Expand Down Expand Up @@ -485,10 +504,6 @@
"active": 0,
"flagValue": -1
},
"onevar": {
"active": 0,
"flagValue": -1
},
"phantom": {
"active": 0,
"flagValue": -1
Expand Down Expand Up @@ -525,10 +540,6 @@
"active": 0,
"flagValue": -1
},
"smarttabs": {
"active": 1,
"flagValue": -1
},
"strict": {
"active": 0,
"flagValue": -1
Expand All @@ -541,10 +552,6 @@
"active": 0,
"flagValue": -1
},
"trailing": {
"active": 1,
"flagValue": -1
},
"typed": {
"active": 0,
"flagValue": -1
Expand All @@ -557,10 +564,6 @@
"active": 1,
"flagValue": -1
},
"white": {
"active": 0,
"flagValue": -1
},
"withstmt": {
"active": 0,
"flagValue": -1
Expand Down Expand Up @@ -684,11 +687,15 @@
"flagValue": -1
}
},
"kitAutoOutputPathEnabled": 1,
"kitAutoOutputPathFilenamePattern": "*.html",
"kitAutoOutputPathRelativePath": "",
"kitAutoOutputPathReplace1": "",
"kitAutoOutputPathReplace2": "",
"kitAutoOutputPathStyle": 0,
"lessAllowInsecureImports": 0,
"lessAutoOutputPathEnabled": 1,
"lessAutoOutputPathFilenamePattern": "*.css",
"lessAutoOutputPathRelativePath": "..\/css",
"lessAutoOutputPathReplace1": "less",
"lessAutoOutputPathReplace2": "css",
Expand All @@ -701,6 +708,8 @@
"lessStrictImports": 0,
"lessStrictMath": 0,
"lessStrictUnits": 0,
"markdownAutoOutputPathEnabled": 1,
"markdownAutoOutputPathFilenamePattern": "*.html",
"markdownAutoOutputPathRelativePath": "",
"markdownAutoOutputPathReplace1": "",
"markdownAutoOutputPathReplace2": "",
Expand All @@ -709,6 +718,8 @@
"markdownEnableSmartyPants": 1,
"markdownExpandTabs": 1,
"reloadFileURLs": 0,
"sassAutoOutputPathEnabled": 1,
"sassAutoOutputPathFilenamePattern": "*.css",
"sassAutoOutputPathRelativePath": "..\/css",
"sassAutoOutputPathReplace1": "sass",
"sassAutoOutputPathReplace2": "css",
Expand All @@ -721,6 +732,8 @@
"shouldRunAutoprefixer": 0,
"shouldRunBless": 0,
"skippedItemsString": ".svn, .git, .hg, log, _logs, _cache, cache, logs",
"slimAutoOutputPathEnabled": 1,
"slimAutoOutputPathFilenamePattern": "*.html",
"slimAutoOutputPathRelativePath": "",
"slimAutoOutputPathReplace1": "",
"slimAutoOutputPathReplace2": "",
Expand All @@ -729,6 +742,8 @@
"slimLogicless": 0,
"slimOutputStyle": 1,
"slimRailsCompatible": 0,
"stylusAutoOutputPathEnabled": 1,
"stylusAutoOutputPathFilenamePattern": "*.css",
"stylusAutoOutputPathRelativePath": "..\/css",
"stylusAutoOutputPathReplace1": "stylus",
"stylusAutoOutputPathReplace2": "css",
Expand All @@ -737,6 +752,8 @@
"stylusImportCSS": 0,
"stylusOutputStyle": 0,
"stylusResolveRelativeURLS": 0,
"typescriptAutoOutputPathEnabled": 1,
"typescriptAutoOutputPathFilenamePattern": "*.js",
"typescriptAutoOutputPathRelativePath": "\/js",
"typescriptAutoOutputPathReplace1": "",
"typescriptAutoOutputPathReplace2": "",
Expand Down
Loading

0 comments on commit c96a665

Please sign in to comment.