Forum Discussion

SarahLichy's avatar
SarahLichy
Community Member
6 days ago
Solved

Coding

If I type a prompt into CoPilot and get the coding for an interaction, is the only way to tweak the interaction through CoPilot again? What if I want it to include my own content. I'm guessing I go back into the coding within RISE and adjust? 

 

Here's an example code: 

<div style="font-family: Arial, sans-serif; max-width: 600px; margin: 20px auto;">

 

<h2 style="text-align:center;">Why Cats?</h2>

 

<p>Click each card to learn a fun reason why cats are amazing!</p>

 

<div style="display: flex; flex-direction: column; gap: 12px;">

 

<!-- Card 1 -->

<div class="cat-card" onclick="toggleReveal(this)"

style="background:#f4f4f4; padding:15px; border-radius:8px; cursor:pointer;">

<strong>Reason #1</strong>

<div class="cat-reveal" style="display:none; margin-top:8px;">

Cats are natural stress-relievers — petting them can lower your heart rate.

</div>

</div>

 

<!-- Card 2 -->

<div class="cat-card" onclick="toggleReveal(this)"

style="background:#f4f4f4; padding:15px; border-radius:8px; cursor:pointer;">

<strong>Reason #2</strong>

<div class="cat-reveal" style="display:none; margin-top:8px;">

They’re independent but still affectionate… when they decide you’re worthy.

</div>

</div>

 

<!-- Card 3 -->

<div class="cat-card" onclick="toggleReveal(this)"

style="background:#f4f4f4; padding:15px; border-radius:8px; cursor:pointer;">

<strong>Reason #3</strong>

<div class="cat-reveal" style="display:none; margin-top:8px;">

Cats are natural problem‑solvers and curious explorers — perfect for learning inspiration!

</div>

</div>

 

</div>

</div>

 

<script>

function toggleReveal(card) {

const content = card.querySelector(".cat-reveal");

content.style.display = content.style.display === "none" ? "block" : "none";

}

</script>

  • SarahLichy's avatar
    SarahLichy
    6 days ago

    Yes, I'd like to add my own images and custom text. I did figure it out by looking at the coding that AI generated. I like that the coding can create different types of interactions, I wish RISE had a little bit more variety of interactions. I struggle with Storyline, so I prefer RISE and it's nice with the coding feature, but also my understanding is that the coding block won't translate into other languages. It will take an extra step to get it translated. 

4 Replies

    • SarahLichy's avatar
      SarahLichy
      Community Member

      Yes, I'd like to add my own images and custom text. I did figure it out by looking at the coding that AI generated. I like that the coding can create different types of interactions, I wish RISE had a little bit more variety of interactions. I struggle with Storyline, so I prefer RISE and it's nice with the coding feature, but also my understanding is that the coding block won't translate into other languages. It will take an extra step to get it translated. 

  • KateMackenzie's avatar
    KateMackenzie
    Community Member

    You can edit and add what you like, either in the code block or using an app like Visual Code or Programmer's Notepad. 
    You are correct about translation (to my limited knowledge!)