Skip to content

Commit

Permalink
a11y: minor tweaks, add more urls to be tested
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Sep 25, 2024
1 parent 5ffd7a9 commit 710d994
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 17 deletions.
10 changes: 5 additions & 5 deletions sparks/student-pages/U1/L1/02-snap-accounts.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ <h2>Saving Snap<em>!</em> Projects</h2>
<div class="forYouToDo">
<ol>
<li>
<img class="inline" src="/bjc-r/img/icons/save-now.png" alt="Save your work" title="Save your work" />
<img class="inline" src="/bjc-r/img/icons/save-now.png" alt="Save your work" title="Save your work" />
There are different ways to save Snap<em>!</em> projects. Some of them involve logging in or creating a Snap<em>!</em> account. Your teacher will let you know which option to use.
<div class="narrower">
<h4><strong>Option A: Save your project to your computer</strong></h4>
<div class="box-head">Option A: Save your project to your computer</div>
<div class="endnote">
<a href="#hint-save-computer" data-toggle="collapse" title="You can save this file to your computer, a USB drive, Google Drive, or any other place you keep files.">You can save this file to your computer, a USB drive, Google Drive, or any other place you keep files.</a>
<div id="hint-save-computer" class="collapse">
Expand All @@ -27,7 +27,7 @@ <h4><strong>Option A: Save your project to your computer</strong></h4>
</div>
</div>

<h4><strong>Option B: Your teacher has set up an account for you</strong></h4>
<div class="box-head">Option B: Your teacher has set up an account for you</div>
<div class="endnote">
<a href="#hint-teacher-setup" data-toggle="collapse" title="Your teacher will let you know your Snap! username and password. If you ever need to reset your password, the request will go to your teacher.">Your teacher will let you know your Snap<em>!</em> username and password. If you ever need to reset your password, the request will go to your teacher.</a>
<div id="hint-teacher-setup" class="collapse">
Expand All @@ -51,7 +51,7 @@ <h4><strong>Option B: Your teacher has set up an account for you</strong></h4>
</div>


<h4><strong>Option C: Create a Snap<em>!</em> account with a personal email</strong></h4>
<div class="box-head">Option C: Create a Snap<em>!</em> account with a personal email</div>
<div class="endnote">
<a href="#hint-personal-email" data-toggle="collapse" title="This is a Snap! account where any password reset requests will go to a personal email account. Your teacher may ask you to use their email address.">This is a Snap<em>!</em> account where any password reset requests will go to your personal email account. Your teacher may ask you to use their email address.</a>
<div id="hint-personal-email" class="collapse">
Expand All @@ -78,7 +78,7 @@ <h4><strong>Option C: Create a Snap<em>!</em> account with a personal email</str
</li>
<li>Be sure to save your projects after an important change and, if you are using a shared computer, whenever you're done for the day. Once you have saved your Say Hello to Snap<em>!</em> project to your computer or to your account, you can continue to the next page. </li>
</ol>
</div>
</div>


<div class="learn">In this activity, you learned how save a Snap<em>!</em> project to your computer or to your new Snap<em>!</em> account.</div>
Expand Down
38 changes: 26 additions & 12 deletions utilities/specs/bjc_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,32 @@ module BJCSpecs
sparks-teacher
]

# This is a map of all courses/groups
ALL_PAGES = {}
ALL_PAGES['general'] = [
'/bjc-r/',
'/bjc-r/docs/style_guide.html',
'/bjc-r/docs/best_practices.html',
'/bjc-r/docs/translations.html',
'/bjc-r/topic/topic.html',
'/bjc-r/topic/topic.es.html',
'/bjc-r/sparks/design-principles.html',
'/bjc-r/mini/index.html'
]
# This is a map of all pages by course
ALL_PAGES = {
'general' => [
'/bjc-r/'
]
}

ALL_PAGES['general'] += [
# For the BJC Team, but technically public
'docs/style_guide',
'docs/best_practices',
'docs/translations',
# Empty Topic pages, but are publicly visible.
'topic/topic',
'topic/topic.es',
# Extra course page, but not a full course.
'mini/index',
# Informational Pages, but not linked as part of a course.
'sparks/design-principles',
'cur/snap-cheat-sheet',
'cur/snap-cheat-sheet.es',
'cur/compare',
'cur/specifications',
'cur/updates',
'eir/school-equity'
].map { |p| "/bjc-r/#{p}.html" }

def load_site_urls(courses)
# Map is a course_name => [url1, url2, ...]
Expand Down

0 comments on commit 710d994

Please sign in to comment.