Git Product home page Git Product logo

jquery-sticky-footer's Introduction

Build Status

jQuery Sticky Footer

The footer is positioned at the bottom of the page but without an absolute position.

Installation

You'll need bower to install jQuery Sticky Footer plugin and its dependencies. Install the plugin and save it as a dependency in your project:

$ bower --save install jquery-sticky-footer

Usage

The page structure has to match the following one:

<body>
    <div>...</div>
    <div class="footer">/div>
</body>
  • <body> tag must have ONLY two tags as children: the first one as page container and the second one as footer container.
  • There are NO restrictions for tags and classes that you can use as children of the <body> tag.

Please run the following script to initialize a footer:

$('.footer').stickyFooter();

Development

The project has the following structure:

dist/
    *.min.js // The uglified version of the component.
src/
    *.js // The source file
test/
    src/*.js // Tests
    ...      // Task runner configuration file and test dependencies
...

Installation

This project requires node for the development installation so you can install its dependencies, build it and test it.

Please run following commands to install all dependencies:

$ npm install
$ ./node_modules/bower/bin/bower install
$ cd test && npm install

Grunt Tasks

Here is a list of grunt tasks => actions mappings, see below for a deeper explanation of the actions.

Grunt task jshint uglify usebanner devserver watch emptyTheChangelog conventionalChangelog changelogCommit
grunt * * *
grunt development * *
grunt changelog * * *
  • jshint: Validate files with JSHint.
  • uglify: Create the final *.min.js.
  • usebanner: Prepends a banner to the minified file
  • devserver: Spawns a web server so you can rapidly test your app in action
  • watch: Run default task when src or test files are added, changed or deleted.
  • emptyTheChangelog: Truncates the CHANGELOG.md file as conventionalChangelog task will append fully regenerated changelog
  • conventionalChangelog: Appends Markdown-formatted changelog history to CHANGELOG.md
  • changelogCommit: Prepares a new commit with updated CHANGELOG.md and commit message "CHANGELOG.md Updated"

Tests

Take a look at test/README.md for more details.

Contributing

Take a look at CONTRIBUTING.md for more details.

jquery-sticky-footer's People

Contributors

4mp3r avatar

Watchers

Marco Matarazzi avatar James Cloos avatar Francesco Capozzo avatar Matteo Tafani Alunno avatar Andrea Stronati avatar Daniele Orru' avatar Luca Mancini avatar Giuseppe Bruno avatar Fr4 avatar Gianluca Bei avatar

jquery-sticky-footer's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.