This file contains 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
// Copyright 2017 The Chromium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
const Duration _kExpand = Duration(milliseconds: 200); | |
/// A single-line [ListTile] with a trailing button that expands or collapses | |
/// the tile to reveal or hide the [children]. |
This file contains 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
# Credit: Eike Send for the awesome swipe event | |
# --------------------------------------------- | |
# | |
# https://github.com/peachananr/onepage-scroll | |
$.fn.swipeEvents = -> | |
return this.each -> | |
startX = startY = undefined | |
$this = $(this) | |
$this.bind('touchstart', touchstart) |
This file contains 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
/* | |
* jQuery offscreen plugin | |
* | |
* Filters that detect when an element is partially or completely outside | |
* of the viewport. | |
* | |
* Usage: | |
* | |
* $('#element').is(':off-bottom') | |
* |
This file contains 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
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |