0.0
No commit activity in last 3 years
No release in over 3 years
A very simple engine to give an introduction of page(s) with finger pointing annotations on page elements to make user/visitor familiar to your application.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.0.4, ~> 3.0
>= 4.0.8, ~> 4.0
 Project Readme

Familiarity¶ ↑

This gem packages a rails engine which provides an interactive demo of features/entities on any given page.

Installation¶ ↑

Add this line to your application’s Gemfile:

gem 'familiarity'

Then execute:

$ bundle

Mount Familiarity at specific location (from routes.rb of application):

mount Familiarity::Engine, at: "/some_specific_location"

Add javascript(s) in application manifest (most probably from app/assets/javascripts/application.js):

//= require familiarity/application

Add stylesheet(s) in application manifest (most probably from app/assets/stylesheets/application.css):

*= require familiarity/application

Add familiarity’s switch-board on all the pages (append following helper at the end as body content in layout):

<%= familiaritySwitchBoard %>

Add familiarity’s view on all the pages (append following helper at the end as body content in layout):

<%= familiarityView %>

Helpers¶ ↑

To provide a switch board where an user (or may be a bunch of users in any specific environment of application) want to add/edit/update or delete annotations on any page .

<%= familiaritySwitchBoard %>
<%= familiaritySwitchBoard(position: 'topLeft') %> #Possible options are topLeft, topRight, bottomRight(default) and bottomLeft

To provide annotations view of elements, one element at a time on the first visit of page.

<%= familiarityView %>
<%= familiarityView({
        escape_to_exit: true,           #Exits on ESC key press.
        f1_to_start: true,              #Starts on F1 key press. In Chromium based browser Ctrl+F1 key press
        show_tips_recursively: false,   #To restart annotations display after complete traverse of available annotations.
        mandatory_all_tips: true,       #To show all tips(annotations) at least once (before enabling ESC key for exit).
        traverse_back: true,            #By default 'LEFT' arrow key is available to visit back but which can be disabled  with a 'false' here.
        remember_duration: 30           #Duration(in days) in which application need to show familiarity view irrespective whether user has viewed them or not.
    }) %>

Dependencies used¶ ↑

  1. github.com/carhartl/jquery-cookie

  2. iamceege.github.io/tooltipster/

Contributing¶ ↑

  1. Fork it ( github.com/praveenkumarsinha/familiarity/fork )

  2. Create your feature branch (‘git checkout -b my-new-feature`)

  3. Commit your changes (‘git commit -am ’Add some feature’‘)

  4. Push to the branch (‘git push origin my-new-feature`)

  5. Create a new Pull Request