Skip to content

Instantly share code, notes, and snippets.

@yoamomonstruos
Last active December 15, 2015 17:59
Show Gist options
  • Select an option

  • Save yoamomonstruos/5300415 to your computer and use it in GitHub Desktop.

Select an option

Save yoamomonstruos/5300415 to your computer and use it in GitHub Desktop.
Widgets = GoCardless.module("widgets")
Base = GoCardless.module("base")
class Widgets.Views.Swipe extends Base.View
initialize: ->
swipe = new Swipe(@el, @options)
Widgets = GoCardless.module("widgets")
Home = GoCardless.module("home")
Home.modals = new Widgets.Views.Modals()
Home.collapse = new Widgets.Views.Collapse()
Home.popover = new Widgets.Views.PopOver()
Home.tooltip = new Widgets.Views.Tooltip()
Home.video = new Widgets.Views.Video()
# Need to take off 54px to take into account fixed header
class GetAffixOffsets extends Widgets.GetAffixOffsets
top: ->
@offset.top + @$el.outerHeight(false) - 53
Home.affix = new Widgets.Views.Affix(
el: "[data-affix-navbar-fixed]"
offset: new GetAffixOffsets($("[data-affix-offset]"))
)
Home.syntax = new Widgets.Views.Syntax()
Home.swipe = new Widgets.Views.Swipe(
el: document.getElementById("slider")
)
console.log "We're looking to hire people like you. https://gocardless.com/jobs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment