Coder Social home page Coder Social logo

2braincells2go / first-visit-popup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chriscook/first-visit-popup

0.0 3.0 0.0 111 KB

A jQuery plug-in to display a message to a user on their first visit to a page.

License: MIT License

HTML 75.68% JavaScript 24.32%

first-visit-popup's Introduction

First Visit Popup

Version 1.2

Introduction

First Visit Popup is a jQuery plug-in which shows the user a message on their first visit to a web page.

How to use it

  1. Add the file (jquery.firstVisitPopup.js) to your project, along with jQuery.
  2. Add an element to the page for your popup message.
  3. Add the following jQuery to your page, to be executed on load:
	$('#my-welcome-message').firstVisitPopup({
		cookieName : 'homepage',
		showAgainSelector : '#show-message'
	});

...where '#my-welcome-message' is a selector for the element added in step 2, cookieName is a name for cookie which will determine whether or not to show the message again, and showAgainSelector is the selector of an element on the page the user can click to show the message again (optional).

The script doesn't add any styling information, so you'll have to manually place the elements and hide them. See demo.html for an example.

Author and Acknowledgements

first-visit-popup's People

Contributors

chriscook avatar

Watchers

James Cloos avatar Woody avatar  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.