GithubHelp home page GithubHelp logo

mandardhasal / overlay-viewport Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

overlay viewport or window using JQuery

License: Other

HTML 17.91% JavaScript 82.09%
overlay-viewport jquery-plugin window jquery overlay

overlay-viewport's Introduction

overlay-viewport

A simple JQuery plugin to create a re-sizable overlay window on HTML elements.

Usage

Can be initialized with or without options. Once initialized options can be changed later.

Example

$("#id").overlay_viewport(); //initialize 

$("#id").overlay_viewport({  //initialize with options  
	window_height: 100,
	window_width: 100,
}); 


$("#id").overlay_viewport({  //change options at any point.  
	window_height: 150,
	window_width: 150,
}); 

options

{
            
    window_height: 50, 			// pixels (default: 50)
    window_width: 50, 			// pixels (default: 50)
    opacity: 0.5, 				// between 0 to 1 (default: 0.5)
    background_color : '#000', 	// any valid color (default: #000)
    z_index: 999, 				// should be greater than underlying element's z-index (default: 999) 
    window_top : 50, 			// percentage with respect to underlying element (default: 50)
    window_left : 50, 			// percentage with respect to underlying element (default: 50)  
    disable : false				// boolean (default: false)    
}

remove plugin

Plugin can be removed any time after initialization.

$("#id").overlay_viewport({ disable:true }); //remove plugin

overlay-viewport's People

Contributors

mandardhasal avatar

Watchers

 avatar

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.