Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <section id="places-map">
			<div class="map animate-fade-in">
				<img src="https://jeffbridgforth.com/codepen/places-map.png" alt="Map of Western Union Locations" width="903" height="452" />
				<div class="map-pins">
					<a class="map-location-marker marker-san-francisco tooltip" data-map-title="San Francisco" data-map-link="san-francisco" data-map-image="san-francisco.jpg" data-job-listings="https://westernunion.taleo.net/careersection/10045/jobsearch.ftl?&src=CWS-10230"></a>
					<a class="map-location-marker marker-denver tooltip" data-map-title="Denver" data-map-link="denver" data-map-image="denver.jpg" data-job-listings="https://westernunion.taleo.net/careersection/10045/jobsearch.ftl?&src=CWS-10230"></a>
					<a class="map-location-marker marker-costa-rica tooltip" data-map-title="Costa Rica" data-map-link="costa-rica" data-map-image="costa-rica.jpg" data-job-listings="https://westernunion.taleo.net/careersection/10041/jobsearch.ftl?&src=CWS-10230"></a>
					<!-- To do -->
					<a class="map-location-marker marker-argentina tooltip" data-map-title="Argentina" data-map-link="argentina" data-map-image="buenos-aires.jpg" data-job-listings="https://westernunion.taleo.net/careersection/10042/jobsearch.ftl?&src=CWS-10230"></a>
					<a class="map-location-marker marker-vilnius tooltip" data-map-title="Vilnius" data-map-link="vilnius" data-map-image="vilnius.jpg" data-job-listings="https://westernunion.taleo.net/careersection/10044/jobsearch.ftl?&src=CWS-10230"></a>
					<a class="map-location-marker marker-peterborough tooltip" data-map-title="Peterborough" data-map-link="peterborough" data-map-image="peterborough.jpg" data-job-listings="https://westernunion.taleo.net/careersection/10044/jobsearch.ftl?&src=CWS-10230"></a>
					<!-- To do -->
					<a class="map-location-marker marker-dubai tooltip" data-map-title="Dubai" data-map-link="dubai" data-map-image="dubai.jpg" data-job-listings="https://westernunion.taleo.net/careersection/10044/jobsearch.ftl?&src=CWS-10230"></a>
					<a class="map-location-marker marker-singapore tooltip" data-map-title="Singapore" data-map-link="singapore" data-map-image="singapore.jpg" data-job-listings="https://westernunion.taleo.net/careersection/10043/jobsearch.ftl?&src=CWS-10230"></a>
					<a class="map-location-marker marker-manila tooltip" data-map-title="Manila" data-map-link="manila" data-map-image="manila.jpg" data-job-listings="https://westernunion.taleo.net/careersection/10043/jobsearch.ftl?&src=CWS-10230"></a>
					<a class="map-location-marker marker-sydney tooltip" data-map-title="Sydney" data-map-link="sydney" data-map-image="sydney.jpg" data-job-listings="https://westernunion.taleo.net/careersection/10043/jobsearch.ftl?&src=CWS-10230"></a>
				</div>
			</div>
			<div class="wu-logo"></div>
			<h1>Key Locations for hiring in 2015&hellip;
	</section>
              
            
!

CSS

              
                $browser-default-font-size:16px;
$layout-size:16px;

/* Breakpoints
// ========================================================================== */
$break-0:0;
$break-1:20em; /* 320px */
$break-2:30em; /* 480px */
$break-mobile-max:37.4375em; /* 599px */
$break-3:37.5em; /* 600px */
$break-4:48em; /* 768px */
$break-tablet-max: 59.9375em; /* 967px */
$break-5:60em; /* 960px */
$break-6:87.5em; /* 1400px */

/* Colors 
// ========================================================================== */
$color-white:#fff;
$color-text: #282828;
$color-black:#000;
$color-yellow:#ffdf1c;
$color-yellow-hover:#ccb216;
$color-light-blue:#80c3d9;

/* Convert px to ems
// ========================================================================== */
@function px-to-ems( $pixels, $context: $browser-default-font-size ) {
  @return #{$pixels/$context}em;
}

@function return-ems( $pixels, $context ) {
  @return #{$pixels/$context}em;
}

@function layout-ems( $pixels, $context: $layout-size ) {
  @return #{$pixels/$context}em;
}

/* Mixins
// ========================================================================== */
@mixin clearfix {
  &:after {
    content: "";
    display: table;
    clear: both;
  }
}
@mixin delist {
	list-style-type: none;
	margin:0;
	padding: 0;
	li {
		margin: 0;
		padding: 0;
	}
}
@mixin center() {
	margin-left:auto;
	margin-right: auto;
}
@mixin content-center() {
	@media (min-width:$break-6) {
		max-width: px-to-ems(1400px);
		margin-left:auto;
		margin-right: auto;
	}
}

/* Media Query Watcher
// ========================================================================== */
#getActiveMQ-watcher {
	font-family: "break-0";
	@media (min-width:$break-1) {
		font-family: "break-1";
	}
	@media (min-width:$break-2) {
		font-family: "break-2";
	}
	@media (min-width:$break-3) {
		font-family: "break-3";
	}
	@media (min-width:$break-4) {
		font-family: "break-4";
	}
	@media (min-width:$break-5) {
		font-family: "break-5";
	}
}

/* =Map Pin Animation
// ========================================================================== */

@-webkit-keyframes pulsate {
	0% {
		-webkit-transform: scale(0.2);
		transform: scale(0.2);
		opacity: 1;
	}
	100% {
		-webkit-transform: scale(1.2);
		transform: scale(1.2);
		opacity: 0;
	}
}

@-moz-keyframes pulsate {
	0% {
		-webkit-transform: scale(0.2);
		transform: scale(0.2);
		opacity: 1;
	}
	100% {
		-webkit-transform: scale(1.2);
		transform: scale(1.2);
		opacity: 0;
	}
}

@keyframes pulsate {
	0% {
		-webkit-transform: scale(0.2);
		transform: scale(0.2);
		opacity: 1;
	}
	100% {
		-webkit-transform: scale(1.2);
		transform: scale(1.2);
		opacity: 0;
	}
}

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes bounceInDown {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-2000px);
    transform: translateY(-2000px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
  }

  80% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes bounceInDown {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-2000px);
    -ms-transform: translateY(-2000px);
    transform: translateY(-2000px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateY(30px);
    -ms-transform: translateY(30px);
    transform: translateY(30px);
  }

  80% {
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
  }

  100% {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }
}

.bounceInDown {
  -webkit-animation-name: bounceInDown;
  animation-name: bounceInDown;
}

/* =Places Map
// ========================================================================== */
#places-map {
	background: #f8dc3b;
	padding: px-to-ems(52px) px-to-ems(25px) px-to-ems(40px);
	position: relative;
	@media (min-width:$break-6) {
		// @include content-center;
	}
	h1 {
		font-size: px-to-ems(21px);
		margin-top: return-ems(20px,21px);
		text-align: center;
		@media (min-width:$break-3) {
			font-size: px-to-ems(35px);
			margin-top: return-ems(33px,35px);
		}
	}
	.wu-logo {
		display: none;
		height: px-to-ems(62px);
		width: px-to-ems(181px);
		@media (min-width:$break-5) {
			background: url(https://jeffbridgforth.com/codepen/wu-logo.jpg) no-repeat;
			display: block;
			position: absolute;
			bottom: px-to-ems(30px);
			left:px-to-ems(32px);
		}
		@media (min-width:$break-6) {
			left:50%;
			margin-left: px-to-ems(-700px);
		}
	}
	img {
		height: auto;
		position: relative;
		width: 100%;
		z-index:1;
	}
	.secondary-page & .content {
		margin: 0;
		position: relative;
		@media (min-width:$break-5) {
			margin: 0 auto;
		}
	}
	.map {
		position: relative;
		max-width: px-to-ems(903px);
		@include center;
	}
	.map-pins {
		position: absolute;
		height: 100%;
		top:0;
		left:0;
		width: 100%;
	}
	.map-location-marker {
		background: url(https://jeffbridgforth.com/codepen/map-pin.png) no-repeat;
		cursor: pointer;
		position: absolute;
		height: px-to-ems(30px);
		margin-top:px-to-ems(-30px);
		margin-left: px-to-ems(-11px,14px);
		width: px-to-ems(21px);
		z-index:3;
		@media (min-width:$break-4) {
			.js & {
				visibility: hidden;
			}
			.js &.bounceInDown {
				visibility: visible;
			}
		}
	}
	.marker-san-francisco {
		left:8%;
		top:30%;
		@media (max-width:$break-mobile-max) {
			left:6%;
			top:32%;
		}
	}
	.marker-denver {
		left:13%;
		top:29%;
		-webkit-animation-delay:.1s;
		animation-delay:.1s;
	}
	.marker-argentina {
		left:29.5%;
		bottom:21.5%;
		-webkit-animation-delay:.3s;
		animation-delay:.3s;
	}
	.marker-dubai {
		left:64%;
		top:42%;
		-webkit-animation-delay:.6s;
		animation-delay:.6s;
	}
	.marker-costa-rica {
		left:17.5%;
		top: 50%;
		-webkit-animation-delay:.2s;
		animation-delay:.2s;
	}
	.marker-peterborough {
		left:45.5%;
		top:20%;
		-webkit-animation-delay:.4s;
		animation-delay:.4s;
	}
	.marker-vilnius {
		left:52%;
		top:18%;
		-webkit-animation-delay:.5s;
		animation-delay:.5s;
	}
	.marker-singapore {
		left:79%;
		bottom:42%;
		-webkit-animation-delay:.7s;
		animation-delay:.7s;
	}
	.marker-manila {
		left:84.5%;
		top:48%;
		-webkit-animation-delay:.8s;
		animation-delay:.8s;
	}
	.marker-sydney {
		bottom: 14%;
		right:7.5%;
		-webkit-animation-delay:.9s;
		animation-delay:.9s;
	}
	.map-location-marker:after {
		-webkit-animation: pulsate 2s ease-in-out infinite;
		-moz-animation: pulsate 2s ease-in-out infinite;
		animation: pulsate 2s ease-in-out infinite;
		background: transparent;
		border: 2px solid $color-white;
		border-radius: 30px;
		content: "";
		display: block;
		height: 31px;
		left: -7px;
		opacity: 0;
		position: absolute;
		top: -8px;
		-webkit-transition: all .25s linear;
		-moz-transition: all .25s linear;
		-o-transition: all .25s linear;
		transition: all .25s linear;
		width: 31px;
		z-index: 2;
	}
}
#page-places {
	position: relative;
}
#map-info {
	background: $color-black;
	color: $color-white;
	position: absolute;
	top:px-to-ems(-25px);
	left:50%;
	margin-left:px-to-ems(-125px);
	padding:px-to-ems(18px);
	width:px-to-ems(250px);
	z-index:10;
	.close-btn {
		background: url(http://jeffbridgforth.com/codepen//close-btn.png) no-repeat;
		cursor: pointer;
		display: block;
		height: px-to-ems(11px);
		width: px-to-ems(11px);
		position: absolute;
		right:px-to-ems(18px);
		top:px-to-ems(18px);
		
	}
	@media (min-width:$break-2) {
		top:50%;
		margin-top:px-to-ems(-142px);
	}
	@media (min-width:$break-5) {
		margin-left:px-to-ems(-142px);
		width:px-to-ems(284px);
	}
	@media (min-width:$break-4) {
		margin-left:0;
		margin-top: 0;
		&:before {
			content: "";
			display: block;
			width: 0;
			height: 0;
			border-style:solid;
			border-width: 13px 16px 13px 0;
			border-color:transparent $color-black transparent transparent;
			position: absolute;
			left:-16px;
		}
		&.san-francisco {
			left:11%;
			top:23%;
		}
		&.denver {
			left:16%;
			top:21.5%;
		}
		&.argentina {
			left:32.5%;
			bottom:0;
			top:auto;
			&:before {
				top:152px;
			}
		}
		&.costa-rica {
			bottom:5%;
			left:20%;
			top:auto;
			&:before {
				top:45px;
			}
		}
		&.peterborough {
			top:12.5%;
			left:48%;
		}
		&.vilnius {
			top:10.5%;
			left:54.5%;
		}
		&.dubai {
			top:35%;
			left:66.5%;
		}
		&.singapore {
			left:auto;
			top:auto;
			bottom:0%;
			right:24%;
			&:before {
				border-width: 13px 0 13px 16px;
				border-color:transparent transparent transparent $color-black;
				left:auto;
				right:-16px;
				top:55px;
			}
		}
		&.manila {
			left:auto;
			top:auto;
			bottom:1.75%;
			right:18.5%;
			&:before {
				border-width: 13px 0 13px 16px;
				border-color:transparent transparent transparent $color-black;
				left:auto;
				right:-16px;
			//	top:55px;
			}
		}
		&.sydney {
			left: auto;
			top:auto;
			right:11.5%;
			bottom:0;
			&:before {
				border-width: 13px 0 13px 16px;
				border-color:transparent transparent transparent $color-black;
				left:auto;
				right:-16px;
				bottom:50px;
			}
		}
	}
	h1 {
		float: left;
		font-size: px-to-ems(22px,16px);
		line-height: 1;
		margin-bottom: px-to-ems(16px,22px);
		margin-top: 0;
	}
	a {
		color: $color-yellow;
		display: block;
		font-size: px-to-ems(12px);
		float: right;
		margin-right: return-ems(30px,12px);
		margin-top: return-ems(8px,12px);
		text-decoration: underline;
	}
	img {
		height: auto;
		max-width: 100%;
	}
}
              
            
!

JS

              
                // Generated by CoffeeScript 1.6.2
/*!
jQuery Waypoints - v2.0.5
Copyright (c) 2011-2014 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt
*/
(function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++){if(e in this&&this[e]===t)return e}return-1},e=[].slice;(function(t,e){if(typeof define==="function"&&define.amd){return define("waypoints",["jquery"],function(n){return e(n,t)})}else{return e(t.jQuery,t)}})(window,function(n,r){var i,o,l,s,f,u,c,a,h,d,p,y,v,w,g,m;i=n(r);a=t.call(r,"ontouchstart")>=0;s={horizontal:{},vertical:{}};f=1;c={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};this.element[u]=this.id;c[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||a)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m]("refresh");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(a&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete c[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=this.element[w])!=null?o:[];i.push(this.id);this.element[w]=i}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=t[w];if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;e=n.extend({},n.fn[g].defaults,e);if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=c[i[0][u]];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke.call(this,"disable")},enable:function(){return d._invoke.call(this,"enable")},destroy:function(){return d._invoke.call(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e<n.length-1){return t.push(n[e+1])}})},_traverse:function(t,e,i){var o,l;if(t==null){t="vertical"}if(e==null){e=r}l=h.aggregate(e);o=[];this.each(function(){var e;e=n.inArray(this,l[t]);return i(o,e,l[t])});return this.pushStack(o)},_invoke:function(t){this.each(function(){var e;e=l.getWaypointsByElement(this);return n.each(e,function(e,n){n[t]();return true})});return this}};n.fn[g]=function(){var t,r;r=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(d[r]){return d[r].apply(this,t)}else if(n.isFunction(r)){return d.init.apply(this,arguments)}else if(n.isPlainObject(r)){return d.init.apply(this,[null,r])}else if(!r){return n.error("jQuery Waypoints needs a callback function or handler option.")}else{return n.error("The "+r+" method does not exist in jQuery Waypoints.")}};n.fn[g].defaults={context:r,continuous:true,enabled:true,horizontal:false,offset:0,triggerOnce:false};h={refresh:function(){return n.each(c,function(t,e){return e.refresh()})},viewportHeight:function(){var t;return(t=r.innerHeight)!=null?t:i.height()},aggregate:function(t){var e,r,i;e=s;if(t){e=(i=c[n(t)[0][u]])!=null?i.waypoints:void 0}if(!e){return[]}r={horizontal:[],vertical:[]};n.each(r,function(t,i){n.each(e[t],function(t,e){return i.push(e)});i.sort(function(t,e){return t.offset-e.offset});r[t]=n.map(i,function(t){return t.element});return r[t]=n.unique(r[t])});return r},above:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset<=t.oldScroll.y})},below:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset>t.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=c[n(t)[0][u]];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.on("load.waypoints",function(){return n[m]("refresh")})})}).call(this);
/* Responsive Tools
 * A collection of useful fixes and helpers for responsive projects
 **/
(function( $, window ){
	
	window.getActiveMQ = function()
	{
		$('<div id="getActiveMQ-watcher"></div>')
			.appendTo('body')
			.hide();
	
		var computed = window.getComputedStyle,
			watcher = document.getElementById('getActiveMQ-watcher');
			if ( 'currentStyle' in watcher )
			{
				window.getActiveMQ = function()
				{
					return watcher.currentStyle['fontFamily'].replace(/['"]/g,'');
				};
			}
			else if ( computed )
			{
				window.getActiveMQ = function()
				{
					return computed( watcher, null ).getPropertyValue( 'font-family' ).replace(/['"]/g,'');
				};
			}
			else
			{
				window.getActiveMQ = function()
				{
					return 'unknown';
				};
			}
			return window.getActiveMQ();
	};

	/*! resize watcher */
	window.watchResize = function( callback )
	{
		var resizing;
		function done()
		{
			clearTimeout( resizing );
			resizing = null;
			callback();
		}
		$(window).resize(function(){
			if ( resizing )
			{
				clearTimeout( resizing );
				resizing = null;
			}
			resizing = setTimeout( done, 50 );
		});
		// init
		callback();
	};
	window.watchResize(function(){
		var size = window.getActiveMQ().replace("break-","");		
		window.WesternUnion = window.getActiveMQ();
		
		
	});

	/*! A fix for theWebKit Resize Bug https://bugs.webkit.org/show_bug.cgi?id=53166. */
	$(window).on('load',function(){
		window.watchResize(function(){
			var $body = $('body');
			$body.css('overflow', 'hidden').height();
			$body.css('overflow', 'auto');
		});
	});

}( jQuery, window ));

// Resize function to trigger different scripts/classes
function westernUnionResize ( $, window ) {
	window.watchResize = function( callback )
	{
		var resizing;
		function done()
		{
			clearTimeout( resizing );
			resizing = null;
			callback();
		}
		$(window).resize(function(){
			if ( resizing )
			{
				clearTimeout( resizing );
				resizing = null;
			}
			resizing = setTimeout( done, 50 );
		});
		// init
		callback();
	};
	window.watchResize(function(){
		size = window.WesternUnion.replace("break-","");
		
		if ( size < 3 ) {
			$('nav').addClass('mobile-menu');
		}
		else {
			$('nav').removeClass('mobile-menu');
		}
		
		// This would be a good place to put the Waypoints script
		if ( size > 3 ) {
			$('#places-map').waypoint(function() {
				$('.map-location-marker').addClass('animated bounceInDown');
			}, {offset:'75%'});
		}
	});
} 
westernUnionResize( jQuery, window );

// Map modal
(function($,window) {
	var $body = $('body');
	$(document).ready(function(){
		mapInfoInit();
	});

	function mapInfoInit() {
		$('.map-location-marker')
			.click(function(e){
				e.preventDefault();
				$('#map-info, #overlay').remove();
				buildmapInfo(
					$(this).data('mapLink'),
					$(this).data('mapTitle'),
					$(this).data('mapImage'),
					$(this).data('jobListings')
				);
			});
	}

	function buildmapInfo ( location, title, src, link )
	{
		$('<div id="map-info">')
			.addClass(location)
			.fadeIn('slow')
			.appendTo('#places-map .map')
			.html(
				'<h1>' + title + '</h1>' +
				'<a href="' + link + '">See Jobs</a>' +
				'<img src="https://jeffbridgforth.com/codepen/' + src + '" alt="" />' +
				'<span class="close-btn"></span>'
			);
		// Close map info if click anywhere outside of it
		/* http://stackoverflow.com/questions/1403615/use-jquery-to-hide-a-div-when-the-user-clicks-outside-of-it */
		var mapInfo = $('#map-info');
			$(document).mouseup(function(e) {
				if ( !mapInfo.is(e.target) && mapInfo.has(e.target).length === 0)
				{
					mapInfo
					.fadeOut('slow', function(){
						$(this).remove();
					 });
				}
				
			});
			$('#map-info .close-btn').click(function(e) {
				$('#map-info').fadeOut('slow', function(){
						$(this).remove();
					 });
			});
	}

}(jQuery,window));
              
            
!
999px

Console