Skip to content

Instantly share code, notes, and snippets.

@halfempty
halfempty / somejs.js
Last active May 24, 2017 22:17
Notes for Will
// Checking visibility
jQuery.fn.isScrolledIntoView = function () {
var thisOffset = $(this).offset().top;
var windowHeight = $(window).height();
var heightToThis = thisOffset - windowHeight;
var scrollPosition = $(window).scrollTop();
/**
* @license
* MyFonts Webfont Build ID 3578304, 2018-05-10T17:17:43-0400
*
* The fonts listed in this notice are subject to the End User License
* Agreement(s) entered into by the website owner. All other parties are
* explicitly restricted from using the Licensed Webfonts(s).
*
* You may obtain a valid license at the URLs below.
*
@halfempty
halfempty / rubin.html
Created October 9, 2023 19:07
Rubin scripts
<!-- Global site tag (gtag.js) - Google Ads: 646509206 -->
<script async type="text/javascript" src="https://www.googletagmanager.com/gtag/js?id=AW-646509206"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-646509206');
</script>
<script>
gtag('event', 'conversion', {'send_to': 'AW-646509206/89afCKzcqc4BEJblo7QC'});