Skip to content

Instantly share code, notes, and snippets.

@svaustin66
Created March 9, 2022 03:52
Show Gist options
  • Save svaustin66/0f18fa8678896f0a27e8dc712cce37f0 to your computer and use it in GitHub Desktop.
Save svaustin66/0f18fa8678896f0a27e8dc712cce37f0 to your computer and use it in GitHub Desktop.
Here's a template that does stuff
<div class="commit-create position-relative ">
<div class="">
<textarea class="form-control file-editor-textarea js-blob-contents js-code-textarea " rows="17" name="gist[contents][][value]" data-filename="product-demo.liquid" data-codemirror-mode="" data-allow-unchanged="true" data-hotkey-scope-id="code-editor" data-codemirror-fixed-height="true" placeholder="Enter file contents here" aria-label="Enter file contents here" spellcheck="false" style="display: none;"></textarea>
<div class="CodeMirror cm-s-github-light" style="height: 322px;"><div class="CodeMirror-vscrollbar" tabindex="-1" cm-not-content="true"><div style="min-width: 1px; height: 0px;"></div></div><div class="CodeMirror-hscrollbar" tabindex="-1" cm-not-content="true"><div style="height: 100%; min-height: 1px; width: 0px;"></div></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 53px; margin-bottom: -17px; border-right-width: 33px; min-height: 26px; min-width: 7px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-cursors" style=""></div><div class="CodeMirror-code" role="presentation" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true" tabindex="0" id="code-editor"><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" contenteditable="false" style="left: -53px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">1</div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div></div></div></div></div></div><div style="position: absolute; height: 33px; width: 1px; border-bottom: 0px solid transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="height: 59px;"><div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 53px;"></div></div></div></div></div>
<label class="text-normal drag-and-drop hx_drag-and-drop position-relative d-flex flex-justify-between" hidden="">
<input accept=".gif,.jpeg,.jpg,.mov,.mp4,.png,.svg,.csv,.docx,.fodg,.fodp,.fods,.fodt,.gz,.log,.md,.odf,.odg,.odp,.ods,.odt,.pdf,.pptx,.txt,.xls,.xlsx,.zip" type="file" multiple="" class="manual-file-chooser manual-file-chooser-transparent top-0 right-0 bottom-0 left-0 width-full ml-0 form-control rounded-top-0" id="blob-dragged-file-input">
<span class="color-bg-subtle position-absolute top-0 left-0 rounded-bottom-2 width-full height-full" style="pointer-events: none;"></span>
<span class="position-relative pr-2" style="pointer-events: none;">
<span class="default">
Attach files by selecting or pasting them.
</span>
<span class="loading">
<svg style="box-sizing: content-box; color: var(--color-icon-primary);" width="16" height="16" viewBox="0 0 16 16" fill="none" data-view-component="true" class="v-align-text-bottom mr-1 anim-rotate">
<circle cx="8" cy="8" r="7" stroke="currentColor" stroke-opacity="0.25" stroke-width="2" vector-effect="non-scaling-stroke"></circle>
<path d="M15 8a7.002 7.002 0 00-7-7" stroke="currentColor" stroke-width="2" stroke-linecap="round" vector-effect="non-scaling-stroke"></path>
</svg>
<span class="js-file-upload-loading-text" data-file-upload-message="Uploading your files…">
Uploading your files…
</span>
</span>
<span class="error bad-file">
We don’t support that file type.
<span class="drag-and-drop-error-info">
<span class="btn-link">Try again</span> with a
GIF, JPEG, JPG, MOV, MP4, PNG, SVG, CSV, DOCX, FODG, FODP, FODS, FODT, GZ, LOG, MD, ODF, ODG, ODP, ODS, ODT, PDF, PPTX, TXT, XLS, XLSX or ZIP.
</span>
</span>
<span class="error bad-permissions">
Attaching documents requires write permission to this repository.
<span class="drag-and-drop-error-info">
<span class="btn-link">Try again</span> with a GIF, JPEG, JPG, MOV, MP4, PNG, SVG, CSV, DOCX, FODG, FODP, FODS, FODT, GZ, LOG, MD, ODF, ODG, ODP, ODS, ODT, PDF, PPTX, TXT, XLS, XLSX or ZIP.
</span>
</span>
<span class="error repository-required">
We don’t support that file type.
<span class="drag-and-drop-error-info">
<span class="btn-link">Try again</span> with a GIF, JPEG, JPG, MOV, MP4, PNG, SVG, CSV, DOCX, FODG, FODP, FODS, FODT, GZ, LOG, MD, ODF, ODG, ODP, ODS, ODT, PDF, PPTX, TXT, XLS, XLSX or ZIP.
</span>
</span>
<span class="error too-big js-upload-too-big">
</span>
<span class="error empty">
This file is empty.
<span class="drag-and-drop-error-info">
<span class="btn-link">Try again</span> with a file that’s not empty.
</span>
</span>
<span class="error hidden-file">
This file is hidden.
<span class="drag-and-drop-error-info">
<span class="btn-link">Try again</span> with another file.
</span>
</span>
<span class="error failed-request">
Something went really wrong, and we can’t process that file.
<span class="drag-and-drop-error-info">
<span class="btn-link">Try again.</span>
</span>
</span>
</span>
<a class="Link--muted position-relative d-inline" href="https://docs.github.com/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax" target="_blank" data-ga-click="Markdown Toolbar, click, help" id="dd_blob-dragged-file-input_md_link" aria-labelledby="tooltip-1646797899084-3002">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-markdown v-align-bottom">
<path fill-rule="evenodd" d="M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z"></path>
</svg>
</a>
<primer-tooltip for="dd_blob-dragged-file-input_md_link" data-type="label" data-direction="nw" hidden="" id="tooltip-1646797899084-3002" class="hx_tooltip" role="tooltip">Styling with Markdown is supported</primer-tooltip>
</label>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment