Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

Behavior

Save Automatically?

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens. You can view all of your templates, or learn more in the documentation.

Screenshot

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <header>
<div class="header-container">
		<a href=""><h1>Plugins</h1></a>
		<span class="dashicons dashicons-arrow-down-alt2"></span>
		<nav role="navigation" class="subnav">
			<a href="">Favorites</a>
			<a href="">Beta Testing</a>
			<a href="">Developers</a>
			<span>
				<input type="text" class="searchfield" placeholder="Search plugins"> 
				<button class="button button-primary button-search"><i class="dashicons dashicons-search"></i></button>
			</span>
		</nav>
	</div>
</header>

<div class="container">

<div class="banner">Display banner (1050 x 340)</div>

<section class="header-detail">
	<button class="button button-primary button-large">Download</button>
	<h1>Plugin Detail Name</h1>
	<p>By Plugin Author</p>
	<div class="tag__cards__block">
		
	<div class="tag__cards builtfor"><span class="dashicons dashicons-admin-plugins"></span> Built for: <a href="#">BuddyPress</a></div>
	<div class="tag__cards addons"><span class="dashicons dashicons-cart"></span> This plugin has commercial addons.</div>
	</div>
</section>

<div class="notification">This plugin is also available in Deutsch.</div>

<section>
	<div class="container">
		<article>
			<h4>Plugin Details</h4>
			<p class="readmore">Lucas ipsum dolor sit amet maul mon kenobi ackbar darth grievous organa sidious chewbacca padmé. Organa fett k-3po grievous grievous dantooine fett amidala organa. Luke mara solo calrissian. Ponda boba hutt palpatine qui-gonn sith moff hutt darth. Maul hutt hutt anakin padmé aayla leia antilles darth. Mon c-3p0 jabba lando yavin skywalker kenobi ventress organa. Jabba darth calrissian hutt mon. Windu ventress obi-wan ackbar yoda solo. Darth bespin skywalker moff endor tusken raider yoda padmé twi'lek. Antilles skywalker antilles fett. Dagobah dagobah maul moff. Thrawn gonk kashyyyk solo boba jawa coruscant aayla yoda. Zabrak darth luke tatooine hutt mace yoda kashyyyk. Solo gamorrean moff skywalker darth. Grievous leia wicket moff fett yavin solo mothma owen. Antilles grievous kessel palpatine tatooine mandalore padmé fisto. Yoda endor vader fett hutt. Hutt windu darth jinn kamino. Jinn sebulba ventress solo maul palpatine. Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine. Ventress jar chewbacca tusken raider skywalker obi-wan tatooine mara. Solo kenobi kenobi c-3p0 dagobah moff.</p>
			
			<h4>Screenshots</h4>
			<div style="width:100%; height:400px; background:#eee;"></div>
			
			<h4>FAQs</h4>
			<div class="readmore--jump">
				<h5>Does this plugin do this?</h5>
				<p>Yes, this plugin does that. Yoda endor vader fett hutt. Hutt windu darth jinn kamino. Jinn sebulba ventress solo maul palpatine. Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p>
			</div>
				<a href="#">Read complete FAQ</a>
			
			<h4>Reviews</h4>
			<div class="readmore--jump">
				<div class="review">
					<div class="avatar"></div>
					<div class="stars__small">
						<span class="dashicons dashicons-star-filled"></span>
						<span class="dashicons dashicons-star-filled"></span>
						<span class="dashicons dashicons-star-filled"></span>
						<span class="dashicons dashicons-star-filled"></span>
						<span class="dashicons dashicons-star-empty"></span>
					</div>
					<strong>This is a really cool plugin!</strong>
					<p>Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p>
				</div>
				
				<div class="review">
					<div class="avatar"></div>
					<div class="stars__small">
						<span class="dashicons dashicons-star-filled"></span>
						<span class="dashicons dashicons-star-empty"></span>
						<span class="dashicons dashicons-star-empty"></span>
						<span class="dashicons dashicons-star-empty"></span>
						<span class="dashicons dashicons-star-empty"></span>
					</div>
					<strong>Meh, I've seen better and this is a really long title for this review</strong>
					<p>Yoda endor vader fett hutt. Hutt windu darth jinn kamino. Jinn sebulba ventress solo maul palpatine. Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p>
				</div>
			</div>
					<a href="#">Read all reviews</a>
			
			<h4>Changelogs</h4>
			<div class="readmore--jump">
				<p><strong>1.4</strong>
				Yoda endor vader fett hutt. Hutt windu darth jinn kamino. Jinn sebulba ventress solo maul palpatine.</p>
				<p><strong>1.3</strong>
				Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p>
				<p><strong>1.2</strong>
				Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p>
			</div>
				<a href="#">Read full changelog</a>
			
			<h4>Contributors</h4>
			<div class="readmore--jump">
				<p>Moff leia gonk amidala darth vader antilles palpatine.</p>
				<div class="people-grid">
					<div>
						<div class="avatar"></div>
						<p>Name of person</p>
					</div>
					<div>
						<div class="avatar"></div>
						<p>Name of person</p>
					</div>
					<div>
						<div class="avatar"></div>
						<p>Name of person</p>
					</div>
					<div>
						<div class="avatar"></div>
						<p>Name of person</p>
					</div>
				</div>
			</div>
				<a href="#">View development details</a>
		</article>
		
		<aside>
			<h4>Ratings</h4>
			<div class="stars">
				<span class="dashicons dashicons-star-filled"></span>
				<span class="dashicons dashicons-star-filled"></span>
				<span class="dashicons dashicons-star-filled"></span>
				<span class="dashicons dashicons-star-filled"></span>
				<span class="dashicons dashicons-star-half"></span>
			</div>
			<div class="star-count">
				<div>5 stars</div>
				<div>4 stars</div>
				<div>3 stars</div>
				<div>2 stars</div>
				<div>1 stars</div>
			</div>
			<h4>Support</h4>
			<p class="aside">416 of 587 support threads in the last two months have been marked resolved. Got something to say? Need help?</p>
			<p><button class="button button-primary">View FAQ</button> <button class="button">View support forum</button></p>
			<ul class="aside-details">
				<li>Version: <strong>3.1.11</strong></li>
				<li>Last updated: <strong>Yesterday</strong></li>
				<li>Active installs: <strong>1,238</strong></li>
				<li>Category: <div class="tag-container"><span class="tag">Discussion & Community</span><span class="tag">Accessibility</span></div></li>
			</ul>
		</aside>
	</div>
</section>
</div>
              
            
!

CSS

              
                $max-width: 50rem;

img { max-width:100%; }

.notification {
	padding:.5rem;
	background:$color__green;
	text-align:center;
	font-size:ms(-2);
	cursor:pointer;
}
@media ( min-width:67rem ) {
	.notification { margin:1rem auto 0; max-width:$max-width; }
}

.dashicons {
	display:block;
	margin:0 auto -1rem;
	font-size:4rem;
	color:#CBCDCE;
	width:auto;
	height:auto;
}

.cta-wrapper { 
	text-align:center;
	font-size:ms(-1);
	margin:2rem 0 2rem; 
	display:block;
}
@media (min-width: $ms-breakpoint) {
	.cta-wrapper {
		font-size:ms(-2);
		margin: 4rem 0 2rem;
	}
}

.subpage {
	header {
		position:absolute;
		top:0;
		left:0;
		width:100%;
		padding:1rem 0;
		margin-bottom:-1rem;
		z-index:1;
		background:$color__wp-blue;
		overflow:hidden;
		
		h1 {
			font-size:ms(4);
			text-align:left;
			color:#FFF;
			margin:0 2rem 0 0;
			max-width:50rem; //1050px
			display:inline;
			line-height:1;
			
		}
		
		&.open {
			-webkit-box-shadow:0 1px 8px rgba(0,0,0,.5);
			box-shadow:0 1px 8px rgba(0,0,0,.5);
			
			.subnav {	
				max-height:400px;
				padding:1rem 0 0;

				a, span {
					opacity:1;
					-webkit-transition: opacity .3s ease;
					transition: opacity .3s ease;

					&:last-child { padding-bottom:0; }
				}
			}
		}
	}
	
	
	> .container {
		max-width: 50rem;
		margin:0 auto;
		padding:3rem 0;
		@extend .clearfix;
		border-top:2px solid #EEE;
		
		article {
			max-width: ms(32);
			margin:0 auto;

			h1 {
				@extend h3;
			}
			h2 {
				@extend h5;
			}
		}
	}
	
	header + .container { 
		border-top: none; 
		padding-top: 78px; 
	}
}

.header-container {
	max-width:50rem;
	margin:0 auto;
	padding:0 2rem;
	position:relative;
	@extend .clearfix;
	
	[class*='dashicons-arrow-'] {
		color:#FFF;
		position:absolute;
		top:-1rem;
		right:0;
		display:block;
		cursor:pointer;
		padding:1.1rem 2rem;
		width:auto;
		height:auto;
		font-size:ms(4);
	}
	
	a:hover {
		text-decoration: none;
	}
}

.subnav {
	width:100%;
	padding:0;
	-webkit-transition: max-height .2s ease;
	transition: max-height .2s ease;
	max-height:0;
	
	a, span {
		display:block;
		font-size:ms(-2);
		border-top:1px solid rgba(255,255,255,.2);
		padding:1rem;
		margin:0;
		opacity:0;
		text-decoration:none;
		color:rgba(255,255,255,.8);
		position:relative;
		
		&:hover, &.active {
			color:#FFF;
		}
		&.active {
			border-color:rgba(255,255,255,.2);
		}
	}
	
	input.searchfield {
		border: 0;
		padding: 5px 10px;
		position: relative;
		border-radius: 2px;
		width: 10rem;
	}
	
	input + .button.button-search {
		display: none;
		border-radius: 0 2px 2px 0;
		margin-left: -7px;
		position: relative;
		top: 0;
		border-left: none;
		
		&:active {
			top: 0;
			border-right: 1px solid #006799;
			box-shadow: none;
			background: #006799;
		}
		
		.dashicons {
			color: #FFF;
			font-size: 1rem;
			margin: auto;
		}
	}
}

@media (min-width:1024px) {
	.subpage {
		header {
			position:relative;

			&.open {
				-webkit-box-shadow:none;
				box-shadow:none;
				
				.subnav {
					padding:0;
				}
			}
		}
	}
	
	.header-container [class*='dashicons-arrow-'] { display:none; }
	
	.subpage header + .container { padding-top:1rem; }
	
	.subnav {
		position:absolute;
		top:0rem;
		right:0;
		z-index:10;
		width:auto;
		height:auto;
		
		a, span {
			margin-right:2rem;
			display:inline;
			opacity:1;
			padding:0;
			border:none;
			
			&.active { border-bottom:1px solid #FFF; }
		}
		input.searchfield {
			border-radius: 2px 0 0 2px;
		}
		input + .button.button-search {
			top: 1px;
			display: inline-block;
		}
	}
}

@media (min-width: 67rem) {
	.header-container {
		padding: 0;
	}
	.subnav a:last-child, .subnav span:last-child {
		margin-right: 0;
	}
	.subpage header + .container { padding-top:3rem; }
}

header {
	padding: ms(4) ms(1);
	background:$color__wp-blue;
	
	h1 {
		text-align:center;
		color:#FFF;
		line-height: 1;
	}
	.subheading {
		color:#FFF;
	}
	form {
		margin-bottom:2rem;
		
		input[type="search"] {
			width: ms(28);
			padding:.5rem;
			display:block;
			margin:0 auto;
			border:none;
		}
	}
	
	@media (min-width: $ms-breakpoint) {
		padding: ms(4);
	}
}

.banner {
	margin:0 auto ms(1);
	padding:ms(10) ms(4);
	max-width:$max-width;
	display:flex;
	justify-content: center;
	align-items: center;
	height:340px;
	width:100%;
	background:#EEE;
}

.header-detail {
	padding:0 ms(4) ms(1);
	border-bottom:2px solid #EEE;
	@extend .clearfix;
	
	.button {
		float:right;
	}
	h1, p {
		margin:0;
	}
	p { 
		color: lighten($color__base-gray, 30%); 
	}
	.plugin-avatar {
		width:96px;
		height:96px;
		background: #EEE;
		float:left;
		margin-right:1rem;
		position: relative;
	}
	
	@media (min-width:67rem) {
		padding:0 0 ms(1) 0;
	}
}

.stars {
	margin-bottom: 1rem;
	@extend .clearfix; 
	
	[class*='dashicons-star-'] {
		font-size: ms(4);
		color:#FFB900;
		display:inline-block;
		margin:0;
	}
}
.stars__small {
	@extend .stars;
	display: inline-block;
	margin: 0 10px 0 0;
	line-height: 1;
	
	[class*='dashicons-star-'] {
		font-size: ms(0);
	}
}

.star-count {
	font-size: ms(-2);
	@extend .clearfix;
}

.review {
	.avatar {
		width: 60px;
		height: 60px;
		background: #EEE;
		float: left;
		margin-right: 10px;
	}
	
	p {
		margin: 0 0 1em;
	}
}

.people-grid {
	@extend .clearfix;
	
	> div {
		width: 48%;
		float: left;
		margin:0 4% 1rem 0;
		
		&:nth-child(even) {
			margin-right: 0;	
		}
		
		.avatar {
			width: 32px;
			height: 32px;
			float: left;
			background: #EEE;
			margin-right: 10px;
			vertical-align: middle;
		}
		
		p {
			margin: 0;
		}
	}
}

.aside-details {
	margin:0;
	padding:0;
	font-size: ms(-2);
	list-style:none;
	
	li {
		padding: 0.5rem 0;
		border-top:1px solid #EEE;
		@extend .clearfix;
		
		strong { float:right; }
	}
}

.readmore,
.readmore--jump {
	margin-bottom: 0;
	
	+ a {
		border-top: 2px solid #EEE;
		margin-top: 1px;
		font-size: ms(-2);
		padding-top: .5rem;
		position: relative;
		background: #FFF;
		text-decoration: none;

		&:after {
			font-family: dashicons;
			content: "\f347";
			padding-left: 5px;
			position: relative;
			top: 3px;
		}
	}
	
	h5 {
		font-size: ms(0);
		text-transform: none;
		
		&:first-child {
			margin-top: 0;
		}
	}
	
	p:first-child {
		margin-top: 0;
	}
	
	&[aria-expanded="true"] + a:after {
		content: "\f343";
	}
}

.slider {
	width:100vw;
	margin:0;
	padding:0 10vw;
	
	li { 
		height:400px;
		display:flex;
		justify-content: center;
		align-items: center;
		background:#CCC;
		
		&:nth-child(even) { background:#EEE; }
	}
}
.unslider {
	.unslider-arrow { display:none; }
}

.tag__cards {
	float: right;
	font-size: ms(-6);
	text-transform: uppercase;
	padding: 3px 8px;
	background: #826EB4;
	color: #FFF;
	position: absolute;
	bottom: 0;
	width: 100%;
	text-align: center;
	letter-spacing: 1px;
	
	&.light {
		background: #F56E28;
	}
}

.tag-container {
	//float: right;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	max-width: 100%;
	display: block;
	
	.tag {
		background: #EEE;
		border-radius: 2px;
		padding: 3px 6px;
		font-size: ms(-4);
		white-space: nowrap;
		margin: 2px;
		border-bottom: 1px solid #dfdfdf;
		width: auto;
		display: inline-block;
	}
	
	@media ( min-width:940px ) {
		float: right;
		width: 60%;
		
		.tag {
			float: right;
		}
	}
}

main {
	max-width:50rem;
	margin:0 auto;
	padding:ms(10) ms(4);
	
	h1 {
		@extend h3;
	}
}

section {
	margin:0 auto;
	padding:ms(10) ms(4);
	max-width:$max-width;
	
	.container {
		max-width:$max-width;
		margin:0 auto;
		@extend .clearfix;
	}
	h1 {
		@extend h3;
		
		a.jump-link {
			float:right;
			font-size:ms(0);
			position:relative;
			top:.7rem;
		}
	}
	h2 { 
		text-align:center; 
	}
	&.download { 
		display:none; 
	}
	&.download, &.apps-mobile {
		h2 { 
			margin-top:0rem; 
		}
	}
	&.download-mobile {
		.subheading { 
			margin:0 auto; 
		}
		.cta-wrapper { 
			margin:2rem 0 0; 
		}
	}
	&.apps { 
		display:none; 
	}
	
	@media (min-width: $ms-breakpoint) {
		aside {
			float:left;
			width:30%;
		}
		article {
			float:left;
			width:65%;
		}
		aside + article {
			margin-left:5%;
		}
		article + aside {
			margin-left:5%;
		}
	}
	
	@media (min-width:67rem) {
		padding:0;
	}
}

.three-up { 
	@extend .clearfix;
	
	> div {
		margin-top:3rem;
		
		.logo__bluehost, .logo__getlisted, .logo__wpcom { height:35px; }
	}
	
	@media (min-width: $ms-breakpoint) {
		> div {
			float:left;
			width:30%;
			margin-right:5%;
			font-size:ms(-2);
			&:last-child {
				margin-right:0;
			}
		}
	}
}

.more-info .three-up {
	> div {
		margin-top:0;
	}
}

.two-up {
	@extend .clearfix;
	
	> div {
		float:left;
		width:48%;
		margin-right:4%;
		margin-bottom:4%;
		background:#CCC; height:200px;
		&:nth-child(even) {
			margin-right:0;
		}
	}
}

.web-stores { //mobile section
	width:100%;
	margin: 2rem auto 0;
	text-align:center;
	@extend .clearfix;
	
	a { 
		width:150px; 
		display:inline-block; 
		margin:10px;
	}
	
	@media (min-width: $ms-breakpoint) {
		margin: 4rem auto 0;
	}
}
.ios .button-android { display:none; }
.android .button-ios { display:none; }

// Hiding & Showing different content based on screensize
@media (min-width:769px) {
	.apps-mobile, .download-mobile { display:none; }
	section.apps, section.download { display:block; }
}

.tag__cards__block {
	margin-top: 1em;
}

.tag__cards {
	position: relative;
	font-size: 0.7em;
	background: transparent;
	color: #777;
	text-transform: none;
	font-weight: 400;
	text-align: left;
	padding-left: 0;
	padding-right: 0;
	letter-spacing: 0;
}

.tag__cards .dashicons {
	font-size: 1.2em;
	margin: 0 0.25em 0 0;
	text-align: left;
	display: inline-block;
	line-height: 1.5em;
}

.tag__cards a {
	font-weight: 700;
}

.readmore--jump {
	
	+ a {
		display: block;

		&:after {
			content: "\f345";
		}
	}
}

              
            
!

JS

              
                /*!
 * @preserve
 *
 * Readmore.js jQuery plugin
 * Author: @jed_foster
 * Project home: https://jedfoster.github.io/Readmore.js
 * Licensed under the MIT license
 *
 * Debounce function from http://davidwalsh.name/javascript-debounce-function
 */
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";function e(t,e,i){var a;return function(){var n=this,o=arguments,r=function(){a=null,i||t.apply(n,o)},s=i&&!a;clearTimeout(a),a=setTimeout(r,e),s&&t.apply(n,o)}}function i(t){var e=++h;return String(null==t?"rmjs-":t)+e}function a(t){var e=t.clone().css({height:"auto",width:t.width(),maxHeight:"none",overflow:"hidden"}).insertAfter(t),i=e.outerHeight(),a=parseInt(e.css({maxHeight:""}).css("max-height").replace(/[^-\d\.]/g,""),10),n=t.data("defaultHeight");e.remove();var o=a||t.data("collapsedHeight")||n;t.data({expandedHeight:i,maxHeight:a,collapsedHeight:o}).css({maxHeight:"none"})}function n(t){if(!d[t.selector]){var e=" ";t.embedCSS&&""!==t.blockCSS&&(e+=t.selector+" + [data-readmore-toggle], "+t.selector+"[data-readmore]{"+t.blockCSS+"}"),e+=t.selector+"[data-readmore]{transition: height "+t.speed+"ms;overflow: hidden;}",function(t,e){var i=t.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),t.getElementsByTagName("head")[0].appendChild(i)}(document,e),d[t.selector]=!0}}function o(e,i){this.element=e,this.options=t.extend({},s,i),n(this.options),this._defaults=s,this._name=r,this.init(),window.addEventListener?(window.addEventListener("load",l),window.addEventListener("resize",l)):(window.attachEvent("load",l),window.attachEvent("resize",l))}var r="readmore",s={speed:100,collapsedHeight:200,heightMargin:16,moreLink:'<a href="#">Read More</a>',lessLink:'<a href="#">Close</a>',embedCSS:!0,blockCSS:"display: block; width: 100%;",startOpen:!1,beforeToggle:function(){},afterToggle:function(){}},d={},h=0,l=e(function(){t("[data-readmore]").each(function(){var e=t(this),i="true"===e.attr("aria-expanded");a(e),e.css({height:e.data(i?"expandedHeight":"collapsedHeight")})})},100);o.prototype={init:function(){var e=t(this.element);e.data({defaultHeight:this.options.collapsedHeight,heightMargin:this.options.heightMargin}),a(e);var n=e.data("collapsedHeight"),o=e.data("heightMargin");if(e.outerHeight(!0)<=n+o)return!0;var r=e.attr("id")||i(),s=this.options.startOpen?this.options.lessLink:this.options.moreLink;e.attr({"data-readmore":"","aria-expanded":this.options.startOpen,id:r}),e.after(t(s).on("click",function(t){return function(i){t.toggle(this,e[0],i)}}(this)).attr({"data-readmore-toggle":"","aria-controls":r})),this.options.startOpen||e.css({height:n})},toggle:function(e,i,a){a&&a.preventDefault(),e||(e=t('[aria-controls="'+_this.element.id+'"]')[0]),i||(i=_this.element);var n=t(i),o="",r="",s=!1,d=n.data("collapsedHeight");n.height()<=d?(o=n.data("expandedHeight")+"px",r="lessLink",s=!0):(o=d,r="moreLink"),this.options.beforeToggle(e,n,!s),n.css({height:o}),n.on("transitionend",function(i){return function(){i.options.afterToggle(e,n,s),t(this).attr({"aria-expanded":s}).off("transitionend")}}(this)),t(e).replaceWith(t(this.options[r]).on("click",function(t){return function(e){t.toggle(this,i,e)}}(this)).attr({"data-readmore-toggle":"","aria-controls":n.attr("id")}))},destroy:function(){t(this.element).each(function(){var e=t(this);e.attr({"data-readmore":null,"aria-expanded":null}).css({maxHeight:"",height:""}).next("[data-readmore-toggle]").remove(),e.removeData()})}},t.fn.readmore=function(e){var i=arguments,a=this.selector;return e=e||{},"object"==typeof e?this.each(function(){if(t.data(this,"plugin_"+r)){var i=t.data(this,"plugin_"+r);i.destroy.apply(i)}e.selector=a,t.data(this,"plugin_"+r,new o(this,e))}):"string"==typeof e&&"_"!==e[0]&&"init"!==e?this.each(function(){var a=t.data(this,"plugin_"+r);a instanceof o&&"function"==typeof a[e]&&a[e].apply(a,Array.prototype.slice.call(i,1))}):void 0}});

// End Readmore.js
// -----------------------


$('.readmore').readmore({
	collapsedHeight: 400,
});


// Mobile Subnav open/close
$(document).ready(function() {
	$('.header-container > .dashicons').click(function() {
		$('header').toggleClass('open');
		if ($('header').hasClass('open')) {
			$('span.dashicons').removeClass('dashicons-arrow-down-alt2').addClass('dashicons-arrow-up-alt2');
		} else {
			$('span.dashicons').removeClass('dashicons-arrow-up-alt2').addClass('dashicons-arrow-down-alt2');
		};
	});
});


// Accordion Tables
$(function() {
  $(".table__accordion tr:not(.table__accordion-show)").hide();
  $(".table__accordion tr:first-child").show();
	
  $(".table__accordion tr.table__accordion-trigger").click(function(){
    $(this).prevAll(".table__accordion tr:not(.table__accordion-show)").fadeToggle(100);
  }).eq().trigger('click');
	
	$(".table__accordion-trigger td").click(function() {
		$(this).toggleClass('less');
		if ($(this).hasClass('less')) {
			$(this).children().removeClass('dashicons-arrow-down-alt2').addClass('dashicons-arrow-up-alt2');
		} else {
			$(this).children().removeClass('dashicons-arrow-up-alt2').addClass('dashicons-arrow-down-alt2');
		};
	}); 
});


              
            
!
999px
How do you comfort a JavaScript bug? You console it!

Console