Skip to content
This repository was archived by the owner on Jul 27, 2020. It is now read-only.

NPM #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

NPM #18

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "jquery-parallax",
"version": "1.0.1",
"description": " Used to recreate the Nike Better World parallax effect",
"main": "scripts/jquery.parallax-1.1.3.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/IanLunn/jQuery-Parallax.git"
},
"author": "Ian Lunn",
"license": "MIT",
"bugs": {
"url": "https://github.com/IanLunn/jQuery-Parallax/issues"
},
"homepage": "https://github.com/IanLunn/jQuery-Parallax#readme"
}
13 changes: 10 additions & 3 deletions scripts/jquery.parallax-1.1.3.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@ Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html
*/

(function( $ ){
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
factory(require('jquery'));
} else {
factory(root.jQuery);
}
}(this, function ($) {
var $window = $(window);
var windowHeight = $window.height();

Expand Down Expand Up @@ -66,4 +73,4 @@ http://www.gnu.org/licenses/gpl.html
$window.bind('scroll', update).resize(update);
update();
};
})(jQuery);
}));