Pen Settings



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


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


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.


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.


                <!-- Notice: Codepen requires YouTube embed/video to be muted if using autoplay which adwire adds automatically for seamless user experience. This won't be required on your website. -->


	<h1>Lorem Ipsum</h1>

		Lorem ipsum dolor sit amet consectetur, adipisicing elit. Dolor illum voluptas inventore assumenda? Dolorem explicabo excepturi aperiam deserunt quas! Earum aspernatur provident quisquam quia ad amet! Nemo magni accusamus temporibus.

		Quae enim minus dolore fugiat vel, nostrum vero magni distinctio cumque inventore omnis saepe? Ratione deleniti magni possimus error earum neque perferendis, sequi mollitia ducimus quasi eligendi illo impedit asperiores.

		Accusamus soluta voluptas exercitationem ea vel dolor sed recusandae sapiente iure totam veritatis distinctio, quam aut, repellendus ipsam repellat voluptatem inventore et voluptatibus asperiores minima tenetur, reiciendis perspiciatis. Sed, cumque.

		Veritatis libero quam dicta doloremque laudantium officiis magnam, fugiat quaerat nam ratione. Delectus voluptatem voluptas fugiat, commodi ad esse iusto aut reiciendis ea obcaecati aspernatur laudantium adipisci earum cum iure!

		Totam ratione quod voluptatibus aut non perferendis quaerat dignissimos odio accusamus id. Laborum, illo neque molestiae consectetur cumque at vel dignissimos eaque earum temporibus asperiores eius enim commodi repellat voluptates.

		Adipisci eius impedit architecto laudantium sit, obcaecati expedita exercitationem totam sapiente repellendus voluptates, unde quia accusantium! Autem nisi aspernatur debitis, iste, blanditiis dolore aliquam mollitia molestias pariatur veniam illum delectus!



                @charset "utf-8";

.adwire-responsive {
	position: relative;
	padding-bottom: 56.25%;

.adwire-responsive .adwire {
	position: absolute;

.adwire-responsive .adwire,
.adwire-responsive .adwire .adwire-ad,
.adwire-responsive .adwire .adwire-ad > *,
.adwire-responsive .adwire .adwire-ad iframe,
.adwire-responsive .adwire .adwire-ad video {
	width: 100% !important;
	height: 100% !important;



                "use strict";

const AD_TAG_URL =


const paragraphs = document.querySelectorAll(
	`article > p:nth-of-type(n + ${NUMBER_OF_VISIBLE_PARAGRAPHS + 1})`

const target = document.createComment("adwire");
const responsiveDiv = document.createElement("div");

const message = document.createTextNode("Article continues after ad...");
const buttonText = document.createTextNode("Play ad now!");
const button = document.createElement("button");
button.type = "button"; = ".5em";

const _display = (value) =>
	paragraphs.forEach((paragraph) => ( = value));
const hide = () => _display("none");
const show = () => _display("block");


paragraphs[0].parentNode.insertBefore(message, paragraphs[0]);
paragraphs[0].parentNode.insertBefore(button, paragraphs[0]);

const plugin = (api) => {;
	api.on(Adwire.Event.Type.ENDED, () => {

const start = () =>
	new Adwire({
		adTagUrl: AD_TAG_URL,
		cookies: true,
		height: 315,
		mode: Adwire.Mode.OUTSTREAM,
		terms: true,
		width: 560

	(event) => {
		paragraphs[0].parentNode.insertBefore(responsiveDiv, paragraphs[0]);
	{ once: true }