Skip to content

Instantly share code, notes, and snippets.

View EthanGould's full-sized avatar
:shipit:
Ship it

Ethan Gould EthanGould

:shipit:
Ship it
  • Cricut
  • Anchorage, AK
View GitHub Profile
var modal = {}
modal.init = function () {
var brandColor = window.location.host.indexOf('asics') > 0 ? '#001e63' : '#000',
langLocale = document.documentElement.getAttribute('lang') || 'en-us';
this.modalContent = modalContent[langLocale];
this.styles = 'body.modal-active { height: 100vh; overflow: hidden; } .tealium-modal { content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,0.5); z-index: 100; opacity: 0; transition: opacity 0.3s; } .tealium-modal-content { position: fixed; top: 0; right: 0; left: 0; box-sizing: border-box; width: 350px; margin: 200px auto 0; padding: 20px; background: white; color:' + brandColor + '; z-index: 101; } .tealium-modal .dismiss { position: absolute; right: 10px; top: 10px; height: 40px; width: 40px; padding: 0; background: transparent; border: 0; font-size: 30px; color:' + brandColor + '; } .tealium-modal h1 { margin: 25px 0 15px; font-family: Graphik Semibold, sans-serif; font-size: 20px; line-height: 24px; text-transf

Keybase proof

I hereby claim:

  • I am ethangould on github.
  • I am ethang (https://keybase.io/ethang) on keybase.
  • I have a public key ASCkggTvUTM1IJJrij7NvO3SRy61ain6IUH73WxthS8Y-Qo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ethan-gould on github.
  • I am ethang (https://keybase.io/ethang) on keybase.
  • I have a public key ASCkggTvUTM1IJJrij7NvO3SRy61ain6IUH73WxthS8Y-Qo

To claim this, I am signing this object:

@EthanGould
EthanGould / all_games.json
Last active May 26, 2023 14:10
All Games JSON
{
"sports": {
"nhl": {
"status": "In-Progress",
"homeScore": "12",
"segment_number": "5",
"status_id": "4",
"seconds": "10",
"awayScore": "3",
"homeTeam": "was",
<script type="text/javascript">
(function($) {
var module = {};
module.init = function() {
this.$contentBtn = $('.js-content-btn');
this.$sliderNav = $('.js-slider-nav');
this.$slides = $('.toolbox-slide');
this.$slideCount = $('.js-slide-count');
$('#side-header').remove();
@EthanGould
EthanGould / HamTech
Last active November 27, 2016 22:50
/*
* Sidebar edits
*/
/* hide tagline + search box */
.side-header-content-3 .fusion-header-content-3-wrapper {
display: none;
}
@EthanGould
EthanGould / inline-username-form.html
Last active October 26, 2016 18:34
inline form for users to create username before commenting
<div class="js-view--create-username js-view--all" data-regi-id="REGI_ID_HERE">
<!-- No username notification -->
<div class="form__notification form__notification--pointer">
<p class="form__text">You need a username!</p>
<p class="form__subtext">Please create a unique username below before commenting. Or <a href="/logout" class="add-comment-item add-comment-queslink link js-inline-logout">sign out</a>.</p>
</div>
<!-- create username inline form -->
<form class="form form--compact js-regi-new-username js-form">
<div class="form__notification form__notification--error js-form-error"></div>
// *
// * Cars Search
// *
if (typeof bdc === 'undefined') { bdc = {}; }
(function( $, _ ) {
'use strict';
var module = {};
<div class="cars-search-result__container">
<div class="cars-search-result__summary">
<p>Results Found <span class="cars-search__summary-count"></span></p>
<span>/</span>
<a class="cars-search-result__clear" href="javascript:;">Clear Filters</a>
</div>
<div class="cars-search-result">
<span class="cars-search-result__distance">0.5 miles</span>