Last active
December 15, 2015 17:59
-
-
Save yoamomonstruos/5300415 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Widgets = GoCardless.module("widgets") | |
| Base = GoCardless.module("base") | |
| class Widgets.Views.Swipe extends Base.View | |
| initialize: -> | |
| swipe = new Swipe(@el, @options) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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