Skip to content

Instantly share code, notes, and snippets.

(($) ->
# Author: Mohamad El-Husseini, www.mohamad.im
# Light weight character counter for jQuery.
# Example: http://jsfiddle.net/yHPg7/6/
"use strict"
$.fn.counter = (options) ->
defaultText = ->
options.defaultText.replace /minSize/g, options.minSize
count = (elem) ->
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')