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

              
                <div class="container">
  <div class="row">
    <div class="col-md-6">
      <h1>The prompt</h1>
      <div class="prompt" id="the-prompt">
        <span class="emotional">Please</span> <span class="output">simulate the dialogue and provide step-by-step guidance</span> to help <span class="audience">me (the instructional designer)</span> best prepare when dealing with a <span class="audience">resistant SME</span> <span class="details">during an online course development process. Context: the SME’s course videos are too long, with many of them 30 minutes long or more. I want the SME to create fewer and shorter videos to deliver their content. The SME feels like the only or best way to deliver their content is through talking in a video.</span>
      </div>
      <div class="actions">
        <button id="copy">Copy</button>
        <a href="https://chat.openai.com/share/217844f1-0ad9-47ed-be3d-930e47bfa78e" class="gpt-35">GPT 3.5</a>
        <a href="https://g.co/gemini/share/f14051e9bdee" class="gemini">Gemini</a>
      </div>
    </div>
    <div class="col-md-4">
      <div class="legend">
        <div class="legend-item">
          <div class="box persona">Persona</div>
          <p>Define the LLM in terms of skills and knowledge.</p>
        </div>
        <div class="legend-item">
          <div class="box audience">Audience </div>
          <p>Define who the LLM is writing for.</p>
        </div>
        <div class="legend-item">
          <div class="box details">Details</div>
          <p>This kind of language in a prompt helps do .....</p>
        </div>
        <div class="legend-item">
          <div class="box emotional">Emotional Language</div>
          <p>Strangely, being polite seems to matter.</p>
        </div>
        <div class="legend-item">
          <div class="box output">Output </div>
          <p>Say what you want in detail.</p>
        </div>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                body {
  margin: 50px;
}
.prompt {
  border: 1px solid lightblue;
  border-radius: 10px;
  padding: 20px;
  font-size: 1.3rem;
}

button, .actions a {
  margin: 15px 0;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  width: 100px;
  text-align: center;
}

button:hover, .actions a:hover {
    transform: scale(1.1);
}

.persona {
  background-color: pink;
  padding: 3px;
  margin: 0 3px;
}

.audience {
  background-color: lime;
  padding: 3px;
  margin: 0 3px;
}

.details, .context {
  background-color: yellow;
  padding: 3px;
  margin: 0 3px;
}

.output {
  background-color: lightblue;
  padding: 3px;
  margin: 0 3px;
}

.emotional{
  background-color: orange;
  padding: 3px;
  margin: 0 3px;
}

.legend-item {
  margin-bottom: 15px;
  padding-left: 10px;
}

.box{
  padding-left: 10px;
  font-size: 1.2rem;
}

.legend-item p{
  padding-left: 10px;
}

.audience::before,
.audience::after {
  clip-path: inset(100%);
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.audience::before {
  content: " [audience highlight start] ";
}

.audience::after {
  content: " [audience highlight end] ";
}

.actions {
  display: flex;
  justify-content: space-around;
}

.actions a {
  padding: 10px;
  background: #efefef;
  display: block;
  text-decoration: none;
  color: #000;
}
              
            
!

JS

              
                const copyButton = document.querySelector('#copy');

copyButton.addEventListener('click', copyPrompt);

function copyPrompt(){
  const prompt = document.querySelector('#the-prompt');
  const content = prompt.textContent;
  navigator.clipboard.writeText(content)
  alert('copied')
}


              
            
!
999px

Console