HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<style>.widefat { border-spacing: 0; width: 100%; clear: both; margin: 0; } #menu-management .menu-edit, #menu-settings-column .accordion-container, .comment-ays, .feature-filter, .imgedit-group, .manage-menus, .menu-item-handle, .popular-tags, .stuffbox, .widget-inside, .widget-top, .widgets-holder-wrap, .wp-editor-container, p.popular-tags, table.widefat { border: 1px solid #e5e5e5; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04); box-shadow: 0px 1px 1px rgba(0,0,0,0.04); }.comment-ays, .feature-filter, .imgedit-group, .popular-tags, .stuffbox, .widgets-holder-wrap, .wp-editor-container, p.popular-tags, table.widefat { background: #fff; } table.fixed { table-layout: fixed; } body, html { height: 100%; margin: 0; padding: 0; } body { background: #f1f1f1; color: #444; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; font-size: 13px; line-height: 1.4em; min-width: 600px; } a { color: #0073aa; -webkit-transition-property: border, background, color; transition-property: border, background, color; -webkit-transition-duration: .05s; transition-duration: 0.05s; -webkit-transition-timing-function: ease-in-out; transition-timing-function: ease-in-out; } a, div { outline: 0; }.wrap { margin: 10px 20px 0 2px; } #wpbody-content .wrap { margin-left: 15px; } #wpbody-content { padding-bottom: 65px; float: left; width: 100%; overflow: visible !important; } #wpbody { position: relative; } #wpbody, div.folded #wpbody { margin-left: 0px; } #wpcontent { height: 100%; padding-left: 20px; } #wpcontent, #wpfooter { margin-left: 160px; } #wpcontent, #footer, .folded #wpcontent, .folded #footer, .folded.js #wpcontent, .folded.js #footer { margin-left: 0px; padding-left: 0px; margin-right: 0px; } #wpwrap { height: auto; min-height: 100%; width: 100%; position: relative; -webkit-font-smoothing: subpixel-antialiased; }.postbox-container .meta-box-sortables, html.wp-toolbar { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; } html.wp-toolbar { padding-top: 32px; box-sizing: border-box; } td { font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; } #your-profile label + a, .wp-admin select, fieldset label, label { vertical-align: middle; } label { cursor: pointer; }.screen-reader-text, .screen-reader-text span, .ui-helper-hidden-accessible { position: absolute; margin: -1px; padding: 0; height: 1px; width: 1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); border: 0; word-wrap: normal !important; } #pass-strength-result, input, textarea { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; } input, textarea { box-sizing: border-box; } button, input, select, textarea { font-family: inherit; font-size: inherit; font-weight: inherit; } input, select, textarea { font-size: 14px; -webkit-border-radius: 0; border-radius: 0; } input, select { margin: 1px; padding: 3px 5px; } b, strong { font-weight: 600; } #templateside, .misc-pub-filename, .pre, .widefat * { word-wrap: break-word; }.widefat td, .widefat th { padding: 8px 10px; }.widefat td { vertical-align: top; }.widefat td, .widefat td ol, .widefat td p, .widefat td ul { font-size: 13px; line-height: 1.5em; }.hndle a, .widefat tfoot td, .widefat th, .widefat thead td { font-weight: 400; }.widefat td, .widefat th { color: #555; }.widefat thead td, .widefat thead th { border-bottom: 1px solid #e1e1e1; }.widefat tfoot td, .widefat th, .widefat thead td { text-align: left; line-height: 1.3em; font-size: 14px; } #nav-menu-footer, #nav-menu-header, #your-profile #rich_editing, .checkbox, .control-section .accordion-section-title, .menu-item-handle, .postbox .hndle, .side-info, .sidebar-name, .stuffbox .hndle, .widefat tfoot td, .widefat tfoot th, .widefat thead td, .widefat thead th, .widget .widget-top { line-height: 1.4em; }.widefat tfoot td, .widefat tfoot th { border-top: 1px solid #e1e1e1; border-bottom: none; }.widefat ol, .widefat p, .widefat tfoot tr td, .widefat tfoot tr th, .widefat thead tr td, .widefat thead tr th, .widefat ul { color: #32373c; }.widefat .check-column { width: 2.2em; padding: 6px 0 25px; vertical-align: top; }.updates-table tbody td.check-column, .widefat tbody th.check-column, .widefat tfoot td.check-column, .widefat thead td.check-column { padding: 11px 0 0 3px; }.widefat tfoot td.check-column, .widefat thead td.check-column { padding-top: 4px; vertical-align: middle; }.fixed .column-author, .fixed .column-date, .fixed .column-format, .fixed .column-links, .fixed .column-parent, .fixed .column-posts { width: 10%; }.widefat th.sortable, .widefat th.sorted { padding: 0; }.row-title { font-size: 14px !important; font-weight: 600; } #delete-link a, .subsubsub a, .widefat a, .widefat button.button-link, .wp-filter a { text-decoration: none; }.wp-person a:focus .gravatar, a:focus, a:focus .media-icon img { color: #124964; -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); box-shadow: 0px 0px 0px 1px #5b9dd9, 0px 0px 2px 1px rgba(30,140,190,0.8); }.wp-list-table a { -webkit-transition: none; transition: none; } th.sortable a, th.sorted a { display: block; overflow: hidden; padding: 8px; }.sorting-indicator { display: block; visibility: hidden; width: 10px; height: 4px; margin-top: 8px; margin-left: 7px; }.sorting-indicator::before { content: "\f142"; font: 400 20px/1 dashicons; speak: none; display: inline-block; padding: 0; top: -4px; left: -8px; line-height: 10px; position: relative; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; color: #444; } th.sortable a span, th.sorted a span { float: left; cursor: pointer; } input[type=text], input[type=search], input[type=radio], input[type=tel], input[type=time], input[type=url], input[type=week], input[type=password], input[type=checkbox], input[type=color], input[type=date], input[type=datetime], input[type=datetime-local], input[type=email], input[type=month], input[type=number], select, textarea { border: 1px solid #ddd; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .07); box-shadow: inset 0px 1px 2px rgba(0,0,0,0.07); background-color: #fff; color: #32373c; outline: 0; -webkit-transition: 50ms border-color ease-in-out; transition: 50ms border-color ease-in-out; } input[type=radio], input[type=checkbox] { border: 1px solid #b4b9be; background: #fff; color: #555; clear: none; cursor: pointer; display: inline-block; line-height: 0; height: 16px; margin: -4px 4px 0 0; outline: 0; padding: 0 !important; text-align: center; vertical-align: middle; width: 16px; min-width: 16px; -webkit-appearance: none; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1); -webkit-transition: .05s border-color ease-in-out; transition: .05s border-color ease-in-out; }.wp-admin p input[type=radio], .wp-admin p input[type=checkbox], td > input[type=checkbox] { margin-top: 0px; }.updates-table td input, .widefat tfoot td input, .widefat th input, .widefat thead td input { margin: 0 0 0 8px; padding: 0; vertical-align: text-top; }.alternate, .striped > tbody > :nth-child(2n+1), ul.striped > :nth-child(2n+1) { background-color: #f9f9f9; } #the-list tr:last-child td, #the-list tr:last-child th { border-bottom: none !important; -webkit-box-shadow: none; box-shadow: none; } tr .locked-info { height: 0px; opacity: 0; } td.column-title strong, td.plugin-title strong { display: block; margin-bottom: 0.2em; font-size: 14px; }.hidden, .js .closed .inside, .js .hide-if-js, .js .wp-core-ui .hide-if-js, .wp-core-ui.js .hide-if-js, .no-js .hide-if-no-js, .no-js .wp-core-ui .hide-if-no-js, .wp-core-ui.no-js .hide-if-no-js { display: none; }.row-actions, .row-actions-visible { padding: 2px 0 0; }.row-actions { color: #ddd; font-size: 13px; position: relative; left: -9999em; }.wp-list-table .toggle-row { position: absolute; right: 8px; top: 10px; display: none; padding: 0; width: 40px; height: 40px; border: none; outline: 0; background: 0 0; }.wp-list-table .toggle-row::before { position: absolute; top: -5px; left: 10px; -webkit-border-radius: 50%; border-radius: 50%; display: block; padding: 1px 2px 1px 0; color: #444; content: "\f140"; font: 400 20px/1 dashicons; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; speak: none; } #all-plugins-table .plugins a.delete, #delete-link a.delete, #media-items a.delete, #media-items a.delete-permanently, #nav-menu-footer .menu-delete, #search-plugins-table .plugins a.delete, .plugins a.delete, .row-actions span.delete a, .row-actions span.spam a, .row-actions span.trash a, .submitbox .submitdelete { color: #a00; }.locked-text { vertical-align: top; } th.asc a:focus span.sorting-indicator, th.asc:hover span.sorting-indicator, th.desc a:focus span.sorting-indicator, th.desc:hover span.sorting-indicator, th.sorted .sorting-indicator { visibility: visible; } th.desc a:focus span.sorting-indicator::before, th.desc:hover span.sorting-indicator::before, th.asc.sorted .sorting-indicator::before { content: "\f142"; }
</style>
</head>
<body class="wp-admin wp-core-ui js frm_38_trigger edit-php auto-fold admin-bar post-type-menu branch-4-8 version-4-8-3 admin-color-fresh locale-en-us customize-support sticky-menu svg">
<div id="wpwrap">
<div id="wpcontent">
<div id="wpbody" role="main">
<div tabindex="0" id="wpbody-content" aria-label="Main content">
<div class="wrap">
<form id="posts-filter" method="get">
<table class="wp-list-table widefat fixed striped pages">
<thead>
<tr>
<td class="manage-column column-cb check-column" id="cb">
<label class="screen-reader-text" for="cb-select-all-1">Select All
</label>
<input id="cb-select-all-1" type="checkbox"></td>
<th class="manage-column column-title column-primary sortable desc" id="title" scope="col">
<a href="javascript:void()">
<span>Title
</span>
<span class="sorting-indicator">
</span></a>
</th>
<th class="manage-column column-date sortable asc" id="date" scope="col">
<a href="javascript:void()">
<span>Date
</span>
<span class="sorting-indicator">
</span></a>
</th>
</tr>
</thead>
<tbody id="the-list">
<tr class="iedit author-other level-0 post-2566 type-menu status-publish hentry" id="post-2566">
<th class="check-column" scope="row">
<label class="screen-reader-text" for="cb-select-2566">Select Windermere Manor Hotel Lunch Menu
</label>
<input name="post[]" id="cb-select-2566" type="checkbox" value="2566">
</th>
<td class="title column-title has-row-actions column-primary page-title" data-colname="Title">
<strong>
<a class="row-title" aria-label="“Windermere Manor Hotel Lunch Menu” (Edit)" href="javascript:void()">Windermere Manor Hotel Lunch Menu</a></strong>
<div class="row-actions">
<span class="edit">
<a href="javascript:void()">Edit</a> |
</span>
<span class="inline hide-if-no-js">
<a class="editinline" href="javascript:void()">Quick Edit</a> |
</span>
<span class="trash">
<a class="submitdelete" href="javascript:void()">Trash</a> |
</span>
<span class="view">
<a href="javascript:void()">View</a> |
</span>
<span class="export-menu-to-excel">
<a title="Export Menu to Excel" href="javascript:void()">Export Menu to Excel</a> |
</span>
<span class="import-menu-from-excel">
<a title="Import Menu from Excel" href="javascript:void()">Import Menu from Excel</a> |
</span>
</div>
<button class="toggle-row" type="button">
<span class="screen-reader-text">Show more details
</span>
</button></td>
<td class="date column-date" data-colname="Date">Published
<br>
<abbr title="2014/07/08 5:14:46 pm">2014/07/08</abbr></td>
</tr>
<tr class="iedit author-other level-0 post-552105 type-menu status-publish hentry" id="post-552105">
<th class="check-column" scope="row">
<label class="screen-reader-text" for="cb-select-552105">Select 01a TGIF liberty March 2017
</label>
<input name="post[]" id="cb-select-552105" type="checkbox" value="552105">
</th>
<td class="title column-title has-row-actions column-primary page-title" data-colname="Title">
<strong>
<a class="row-title" aria-label="“01a TGIF liberty March 2017” (Edit)" href="javascript:void()">01a TGIF liberty March 2017</a></strong>
<div class="row-actions">
<span class="edit">
<a href="javascript:void()">Edit</a> |
</span>
<span class="inline hide-if-no-js">
<a class="editinline" href="javascript:void()">Quick Edit</a> |
</span>
<span class="trash">
<a class="submitdelete" href="javascript:void()">Trash</a> |
</span>
<span class="view">
<a href="javascript:void()">View</a> |
</span>
<span class="export-menu-to-excel">
<a title="Export Menu to Excel" href="javascript:void()">Export Menu to Excel</a> |
</span>
<span class="import-menu-from-excel">
<a title="Import Menu from Excel" href="javascript:void()">Import Menu from Excel</a> |
</span>
</div>
<button class="toggle-row" type="button">
<span class="screen-reader-text">Show more details
</span>
</button></td>
<td class="date column-date" data-colname="Date">Published
<br>
<abbr title="2016/03/16 9:30:47 pm">2016/03/16</abbr></td>
</tr>
<tr class="iedit author-other level-0 post-1174322 type-menu status-publish hentry" id="post-1174322">
<th class="check-column" scope="row">
<label class="screen-reader-text" for="cb-select-1174322">Select 01at TGIF Liberty set menu test Oct 2017
</label>
<input name="post[]" id="cb-select-1174322" type="checkbox" value="1174322">
</th>
<td class="title column-title has-row-actions column-primary page-title" data-colname="Title">
<strong>
<a class="row-title" aria-label="“01at TGIF Liberty set menu test Oct 2017” (Edit)" href="javascript:void()">01at TGIF Liberty set menu test Oct 2017</a></strong>
<div class="row-actions">
<span class="edit">
<a href="javascript:void()">Edit</a> |
</span>
<span class="inline hide-if-no-js">
<a class="editinline" href="javascript:void()">Quick Edit</a> |
</span>
<span class="trash">
<a class="submitdelete" href="javascript:void()">Trash</a> |
</span>
<span class="view">
<a href="javascript:void()">View</a> |
</span>
<span class="export-menu-to-excel">
<a title="Export Menu to Excel" href="javascript:void()">Export Menu to Excel</a> |
</span>
<span class="import-menu-from-excel">
<a title="Import Menu from Excel" href="javascript:void()">Import Menu from Excel</a> |
</span>
</div>
<button class="toggle-row" type="button">
<span class="screen-reader-text">Show more details
</span>
</button></td>
<td class="date column-date" data-colname="Date">Published
<br>
<abbr title="2016/09/15 5:13:05 pm">2016/09/15</abbr></td>
</tr>
<tr class="iedit author-other level-0 post-527796 type-menu status-publish hentry" id="post-527796">
<th class="check-column" scope="row">
<label class="screen-reader-text" for="cb-select-527796">Select 01b TGIF downtown March 2017
</label>
<input name="post[]" id="cb-select-527796" type="checkbox" value="527796">
<div class="locked-indicator">
<span class="locked-indicator-icon" aria-hidden="true">
</span>
<span class="screen-reader-text">“01b TGIF downtown March 2017” is locked
</span>
</div>
</th>
<td class="title column-title has-row-actions column-primary page-title" data-colname="Title">
<strong>
<a class="row-title" aria-label="“01b TGIF downtown March 2017” (Edit)" href="javascript:void()">01b TGIF downtown March 2017</a></strong>
<div class="row-actions">
<span class="edit">
<a href="javascript:void()">Edit</a> |
</span>
<span class="inline hide-if-no-js">
<a class="editinline" href="javascript:void()">Quick Edit</a> |
</span>
<span class="trash">
<a class="submitdelete" href="javascript:void()">Trash</a> |
</span>
<span class="view">
<a href="javascript:void()">View</a> |
</span>
<span class="export-menu-to-excel">
<a title="Export Menu to Excel" href="javascript:void()">Export Menu to Excel</a> |
</span>
<span class="import-menu-from-excel">
<a title="Import Menu from Excel" href="javascript:void()">Import Menu from Excel</a> |
</span>
</div>
<button class="toggle-row" type="button">
<span class="screen-reader-text">Show more details
</span>
</button></td>
<td class="date column-date" data-colname="Date">Published
<br>
<abbr title="2016/01/12 3:54:44 pm">2016/01/12</abbr></td>
</tr>
<tr class="iedit author-other level-0 post-1174343 type-menu status-publish hentry" id="post-1174343">
<th class="check-column" scope="row">
<label class="screen-reader-text" for="cb-select-1174343">Select 01bt TGIF downtown test Oct 2017
</label>
<input name="post[]" id="cb-select-1174343" type="checkbox" value="1174343">
<div class="locked-indicator">
<span class="locked-indicator-icon" aria-hidden="true">
</span>
<span class="screen-reader-text">“01bt TGIF downtown test Oct 2017” is locked
</span>
</div>
</th>
<td class="title column-title has-row-actions column-primary page-title" data-colname="Title">
<strong>
<a class="row-title" aria-label="“01bt TGIF downtown test Oct 2017” (Edit)" href="javascript:void()">01bt TGIF downtown test Oct 2017</a></strong>
<div class="row-actions">
<span class="edit">
<a href="javascript:void()">Edit</a> |
</span>
<span class="inline hide-if-no-js">
<a class="editinline" href="javascript:void()">Quick Edit</a> |
</span>
<span class="trash">
<a class="submitdelete" href="javascript:void()">Trash</a> |
</span>
<span class="view">
<a href="javascript:void()">View</a> |
</span>
<span class="export-menu-to-excel">
<a title="Export Menu to Excel" href="javascript:void()">Export Menu to Excel</a> |
</span>
<span class="import-menu-from-excel">
<a title="Import Menu from Excel" href="javascript:void()">Import Menu from Excel</a> |
</span>
</div>
<button class="toggle-row" type="button">
<span class="screen-reader-text">Show more details
</span>
</button></td>
<td class="date column-date" data-colname="Date">Published
<br>
<abbr title="2016/10/08 12:51:38 pm">2016/10/08</abbr></td>
</tr>
<tr class="iedit author-other level-0 post-527859 type-menu status-publish hentry" id="post-527859">
<th class="check-column" scope="row">
<label class="screen-reader-text" for="cb-select-527859">Select 01s TGIF showtime March 2017 detach from Manc, attach to super As
</label>
<input name="post[]" id="cb-select-527859" type="checkbox" value="527859">
<div class="locked-indicator">
<span class="locked-indicator-icon" aria-hidden="true">
</span>
<span class="screen-reader-text">“01s TGIF showtime March 2017 detach from Manc, attach to super As” is locked
</span>
</div>
</th>
<td class="title column-title has-row-actions column-primary page-title" data-colname="Title">
<div class="locked-info">
<span class="locked-avatar">
</span>
<span class="locked-text">
</span>
</div><strong>
<a class="row-title" aria-label="“01s TGIF showtime March 2017 detach from Manc, attach to super As” (Edit)" href="javascript:void()">01s TGIF showtime March 2017 detach from Manc, attach to super As</a></strong>
<div class="hidden" id="inline_527859">
<div class="post_title">01s TGIF showtime March 2017 detach from Manc, attach to super As
</div>
<div class="post_name">tgif-downtown-band-b-jan-2016-3
</div>
<div class="post_author">476
</div>
<div class="comment_status">closed
</div>
<div class="ping_status">closed
</div>
<div class="_status">publish
</div>
<div class="jj">22
</div>
<div class="mm">01
</div>
<div class="aa">2016
</div>
<div class="hh">15
</div>
<div class="mn">34
</div>
<div class="ss">12
</div>
<div class="post_password">
</div>
<div class="post_parent">0
</div>
<div class="page_template">default
</div>
</div>
<div class="row-actions">
<span class="edit">
<a aria-label="Edit “01s TGIF showtime March 2017 detach from Manc, attach to super As”" href="javascript:void()">Edit</a> |
</span>
<span class="inline hide-if-no-js">
<a class="editinline" aria-label="Quick edit “01s TGIF showtime March 2017 detach from Manc, attach to super As” inline" href="javascript:void()">Quick Edit</a> |
</span>
<span class="trash">
<a class="submitdelete" aria-label="Move “01s TGIF showtime March 2017 detach from Manc, attach to super As” to the Trash" href="javascript:void()">Trash</a> |
</span>
<span class="view">
<a aria-label="View “01s TGIF showtime March 2017 detach from Manc, attach to super As”" href="javascript:void()">View</a> |
</span>
<span class="print-menu">
<a title="Print Menu" href="javascript:void()">Print Menu</a> |
</span>
<span class="show-embed-code">
<a title="Get Embed Code" onclick="getMenuEmbedCode(event,this,527859);" href="javascript:void()">Get Embed Code</a> |
</span>
<span class="export-menu-to-rtf">
<a title="Export Menu to RTF" href="javascript:void()">Export Menu to RTF</a> |
</span>
<span class="export-menu-to-excel">
<a title="Export Menu to Excel" href="javascript:void()">Export Menu to Excel</a> |
</span>
<span class="import-menu-from-excel">
<a title="Import Menu from Excel" href="javascript:void()">Import Menu from Excel</a> |
</span>
<span class="duplicate">
<a title="Duplicate Menu" href="javascript:void()">Duplicate</a>
</span>
</div>
<button class="toggle-row" type="button">
<span class="screen-reader-text">Show more details
</span>
</button></td>
<td class="date column-date" data-colname="Date">Published
<br>
<abbr title="2016/01/22 3:34:12 pm">2016/01/22</abbr></td>
</tr>
</tbody>
<tfoot>
<tr>
<td class="manage-column column-cb check-column">
<label class="screen-reader-text" for="cb-select-all-2">Select All
</label>
<input id="cb-select-all-2" type="checkbox"></td>
<th class="manage-column column-title column-primary sortable desc" scope="col">
<a href="javascript:void()">
<span>Title
</span>
<span class="sorting-indicator">
</span></a>
</th>
<th class="manage-column column-date sortable asc" scope="col">
<a href="javascript:void()">
<span>Date
</span>
<span class="sorting-indicator">
</span></a>
</th>
</tr>
</tfoot>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<hr />
<p style="text-align:left;">If this demo has brought you even a modicum of joy, please consider <a href="https://www.paypal.me/RobertGravelle/1" target="_blank">donating $1 dollar</a> (secure PayPal link) for a coffee or purchasing one of my songs from <a href="https://ax.itunes.apple.com/WebObjects/MZSearch.woa/wa/search?term=rob%20gravelle" target="_blank">iTunes.com</a> or <a href="http://www.amazon.com/s/ref=ntt_srch_drd_B001ES9TTK?ie=UTF8&field-keywords=Rob%20Gravelle&index=digital-music&search-type=ss" target="_blank">Amazon.com</a> for only 0.99 cents each.</p>
<p style="text-align:left;">Rob uses and recommends <a href="http://www.mochahost.com/2425.html" target="_blank">MochaHost</a>, which provides Web Hosting for as low as $1.95 per month, as well as unlimited emails and disk space!</p>
.import-menu-from-excel {
font-weight: bold;
}
$( 'tr.type-menu' ).hover( function() {
$(this).find('.row-actions').css('left','1em');
}, function() {
if ($('.row-actions').find('form[id^=upload_form_]').length == 0)
$(this).find('.row-actions').css('left','-9999em');
});
$('div.row-actions').on(
'click',
'span.import-menu-from-excel > a', function(evt) {
//cancel the link navigation
evt.preventDefault();
var $linkElt = $(evt.target),
parentRow = $linkElt.closest('div.row-actions'),
uploadForm = parentRow.find('form[id^=upload_form_]')
menuId = $linkElt.data('post-id');
if (uploadForm.length > 0) return;
$('<form>')
.attr('id','upload_form_'+$linkElt.closest('tr').attr('id'))
.attr('action', '')
.attr('method', 'post')
.attr('enctype', 'multipart/form-data')
.attr('target', 'messages')
//.on('submit', uploadFile)
.append(
$('<p>')
.append(
$('<input>')
.attr('id', 'upload')
.attr('name', 'upload')
.attr('type', 'file')
.attr('accept','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
+', application/vnd.ms-excel')
)
)
.append(
$('<p>')
.append(
$('<input>')
.attr('type', 'submit')
.attr('id', 'btnSubmit')
.val('Upload Selected Spreadsheet')
)
)
.append(
$('<iframe>')
.attr('id', 'messages')
.attr('name', 'messages')
//.on('load', resetForm)
)
.append(
$('<p>')
.append($('<a>')
.attr('href', '#')
.attr('id', 'hide_upload_form')
.click(function(){
alert('That\'s for part 2!');
})
.text('Close upload form')
)
).append(
$('<p>')
.append($('<input>')
.attr('type', 'hidden')
.attr('name', 'post-id')
.val(menuId)
)
).appendTo($('<div>')).appendTo(parentRow);
});
Also see: Tab Triggers