Skip to content

Instantly share code, notes, and snippets.

@curtisj44
curtisj44 / trello.user.js
Last active January 15, 2019 20:46
User Script: Trello
// ==UserScript==
// @description Make Trello more awesome
// @downloadURL https://gist.github.com/curtisj44/9491644
// @grant none
// @include https://trello.com/*
// @name Trello
// @namespace trello
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @version 2.3.0
// ==/UserScript==
@curtisj44
curtisj44 / show-on-scroll.js
Last active December 12, 2015 07:09
Show hidden items as they appear in viewport
var windowBottom = $(window).scrollTop() + $(window).height();
$(window).scroll(function () {
$('.hideme').each(function (i) {
var $this = $(this),
objectBottom = $(this).position().top + $(this).outerHeight();
if (windowBottom > objectBottom) {
$(this).animate({'opacity': '1'}, 500);
}
@-moz-viewport {
width: device-width;
}
@-ms-viewport {
width: device-width;
@media screen and (max-width: 400px) {
width: 320px;
}