Coder Social home page Coder Social logo

labdaro / first-timer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thatepicchris/first-timer

0.0 1.0 0.0 1.34 MB

A simple Welcome screen that only shows on a user's first time visiting. Demo:

Home Page: thatepicchris.github.io/First-Timer

License: MIT License

HTML 3.25% CSS 2.78% JavaScript 93.96%

first-timer's Introduction

First-Timer

Demo

Version 1.0.7

##INTRODUCTION Welcome to First Timer! I assume you want to get up and running real quick, so below you will find the installation instructions and important notes so you can get First Timer up and running in a jiffy.

##INSTRUCTIONS

  1. Copy all of the files in the folder PACKAGE into your root folder for your website. This is important so all you have to do is direct the html (and JS if your code goes that route) to the package folder, and you can simply leave the rest of the Links & Src links as is.
  2. Copy the CSS refrences, and Javscript Refrences into your index.html file (assuming this is the on the default page on your website - but if it isn't, no change is needed).
  3. Copy the First-Timer Popup Code. This is outlined with very wide comment marks below - shouldn't be that hard to miss.
  4. Copy the First-Timer Trigger Code. This again is outlined with very wide comment marks, below the Popup Code.
  5. Customize! You can now customize First-Timer to your needs, and implement accordingly.

##IMPORTANT NOTES ###TABS If you have more than 5 Tabs with small title text, I would highly reccomend using just the '.tabid''s instead of a '.tabid' + Title. ###PAGINATION When you add the pagination triggers at the bottom, you need to make sure what css class is attached to each - to be sure that they trigger the next page. Below is a simple table to help organize which classes are needed for which types of pagination buttons.

TYPE        CLASS                         NOTES
Next	    md-btn, btnNext			      none
Previous	md-btn, btnPrevious		      none
Last	    md-close, md-btn, btnFirst	  If you do not add the md-close class, the
                                          popup modal will not dismiss! It is imperative
                                          that you add the btnFirst class as this resets
                                          the modal, so if the user wants to reopen it at
                                          a later time through your app/website's settings,
                                          they can.

###OVERLAY The small div that contains the '.md-overlay' class controls the dimmed background. You can edit what color, or what opacity it is in the directory: 'package/css/custom.css' ###IMAGES If you want to change the background of the pages, you can change the images located in the directory: 'package/img/' You can replace the images in this folder, reduce, or add more - but I highly reccomend on keeping them in this folder for organization. The linkage to the images are in a 'style="background-image"'line in the page's top-most div. If you want just a color background, you can edit the class '.tab-pane' in the custom.css file located in the directory: 'package/css/custom.css' ###REMOTE TRIGGERING If you want to remotely trigger First Timer, you can run the following line in the JS Console for the website: 'Cookies.set('firsttimeview', '0')' You can also reset your browser's cookies to re-trigger it, or if you have a cookies editor, just set the cookie 'firsttimeview' to 0. ###COOKIES First timer DOES USE COOKIES. If your website serves the UK please read this website on regards to the usage of Cookies. https://goo.gl/lpqF4f ###Z-INDEX All of First-Timer is built on the level of '2000' in regards to the Z-Index. If you want to put content above First Timer, put it above '2010' - as some content for the Stepper utilize the 10 levels in between.

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.