Giter Site home page Giter Site logo

mapescape's Introduction

MapEscape

A jQuery / Zepto plugin for maps.

This plugin detects if the viewable area on your map is greater than or beyond the screen height, and places a scrollable area to the right of your map. This scrollable area then allows you to scroll out of the map and reach the rest of the content on your web page.

  1. Simple to integrate with one line of code.
  2. Completely customisable via options, and CSS
  3. Less than 1k minified
  4. Compatable with both jQuery and Zepto

DEMOS

http://labs.codecomputerlove.com/MapEscape/

IMPLEMENTATION

//simple initialise mapescape
$(document).ready(function(){

	$('.map').mapescape();

});

OPTIONS

- alwaysOn		| Boolean |	if false map height is measured against window height - true always shows scoll area
- hiddenClass	| String  |	CSS class to hide the control
- scrollText	| String  | text in scroll indicator - leave blank for none
- threshhold	| Integer | Amount of viewable scroll area below the map before control is shown
- tabCenter		| Boolean |	Position the scroll indicator with JS - false to position with CSS
- scrollFollow	| Boolean |	set to false for static scroll tab

FILES

demos/scripts/mapescape.min.js

demos/css/mapescape.css

demos/images/scroll-icon.png

mapescape's People

Contributors

andrewbrandwood avatar codecomputerlove avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mapescape's Issues

jquery version for a drupal module

hi is it possible to make this work for older versions of jQuery

i've made a module to make this work with Drupal, but unfortunately Drupal has an older version of jQuery as standard and there are a lot of modules that use jQuery and dont function correctly with the latest version.

Drupal 7 includes jQuery 1.4.4 and jQuery UI 1.8.7 - it is possible to update it to a more recent version, but that requires installing another module and can cause other issues.

If you're able to help i'll obviously share whatever i've done - cheers

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.