Cleaned up some folders and small Walmart template changes.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const btn = document.querySelector('.event-status');
|
||||
const btn = document.querySelector('.np-training-session-cta-note');
|
||||
|
||||
if (btn) {
|
||||
const eventId = btn.getAttribute('data-event-id');
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
{% for course in courses.in_catalog %}
|
||||
{% for category in course.categories %}
|
||||
{% if available_categories contains category.name %}
|
||||
<script> console.log("{{ course.name }} + {{ category.name }}")</script>
|
||||
{% comment %} <script> console.log("{{ course.name }} + {{ category.name }}")</script> {% endcomment %}
|
||||
{% unless uniq_cats contains category.name %}
|
||||
<a class="category-card" id="{{category.name}}" href="/app/catalog?filter[category_uuid][in][]={{category.id}}&search_terms=">
|
||||
<img class="category-card-image" src="" alt="">
|
||||
|
||||
@ -19,15 +19,18 @@
|
||||
{% for course in courses.enrolled %}
|
||||
{% assign countTotal = countTotal | plus: 1 %}
|
||||
{% if course.progress == 100 %}
|
||||
<script> console.log('{{ course.name }}--{{ course.progress}}') </script>
|
||||
{% assign countComplete = countComplete | plus: 1 %}
|
||||
{% endif %}
|
||||
{% if course.progress > 0 and course.progress < 100 %}
|
||||
<script> console.log('{{ course.name }}--{{ course.progress}}') </script>
|
||||
{% assign countInProgress = countInProgress | plus: 1 %}
|
||||
{% endif %}
|
||||
{% if course.progress == 0 %}
|
||||
{% assign countNotStarted = countNotStarted | plus: 1 %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<script> console.log('{{ countTotal }}')</script>
|
||||
<ul class="progress-circle-list">
|
||||
<li>
|
||||
{%
|
||||
|
||||
@ -6,3 +6,17 @@
|
||||
</main>
|
||||
|
||||
{% include "footer" %}
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
if(document.querySelector('[class="sc-cjbZfG loiSUP Transcript_Caption"]').innerHTML.includes('Transcript for')) {
|
||||
document.querySelector('[class="sc-cjbZfG loiSUP Transcript_Caption"]').innerHTML = "<h3 class='sc-cjbZfG loiSUP Transcript_Caption'>Transcript</h3>";
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.Transcript_Caption {
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user