Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds horizontal functionality #75

Open
wants to merge 4 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions Copyright
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Midnight.js <%= version %>
* Midnight.js <%= pkg.version %>
* jQuery plugin to switch between multiple fixed header designs on the fly, so it looks in line with the content below it.
* http://aerolab.github.io/midnight.js/
*
Expand All @@ -8,4 +8,3 @@
* Released under the MIT license
* http://aerolab.github.io/midnight.js/LICENSE.txt
*/

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ $('nav').midnight({
// The class that wraps the contents of each header. Also used as a clipping mask.
innerClass: 'midnightInner',
// The class used by the default header (useful when adding multiple headers with different markup).
defaultClass: 'default'
defaultClass: 'default',
// Define `Y` or `X` axis to use the effect vertically(Y) or horizontally(X)
axis: 'Y'
});
```

Expand Down
24 changes: 11 additions & 13 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,18 @@ var gulp = require('gulp')
, uglify = require("gulp-uglify")
, concat = require("gulp-concat")
, header = require("gulp-header");

var getVersion = function () {
info = require("./package.json");
return info.version;
};
var getCopyright = function () {
return fs.readFileSync('Copyright');
};
var pkg = require('./package.json');

gulp.task('build', function () {
gulp.src('./midnight.jquery.js')
.pipe(uglify({preserveComments:'some'}))
function buildFunction () {
return gulp.src('./midnight.jquery.js', {sourcemaps: true})
.pipe(uglify({output: {comments:'some'}}))
.pipe(header(fs.readFileSync('./Copyright', 'utf8'), { pkg : pkg } ))
.pipe(concat('midnight.jquery.min.js'))
.pipe(gulp.dest('./'));
});
}

gulp.task('default', ['build']);
var build = gulp.series(buildFunction);

exports.build = build;

exports.default = build;
1,029 changes: 534 additions & 495 deletions midnight.jquery.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions midnight.jquery.min.js

Large diffs are not rendered by default.