Tons of Solutions Engineering work done today for the rest of the CS team! Headway, Howard Hanna, Engels, Brighton, etc. Also completed Datasnippers auth flow and worked on Anthology's script. Cloned Anthology's courses (900..) and will clone Full Story on Monday.

This commit is contained in:
Norm Rasmussen
2024-01-05 17:07:59 -05:00
parent ce261975ca
commit a5fe4bd2c8
3157 changed files with 554269 additions and 16 deletions

View File

@ -0,0 +1,75 @@
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous">
</script>
{% assign rand_realty_groups = "8f637c703ec45ac5dec70ee9517155aa0d9775c2,613932dbeb1595c00b78de8d1860a3bfdb479b22,176629fa82da1d03f3d58c81e751e61b9836a46d,91ee3a2db2f3f8b71a9d6a2d664781c8ed10e5cb,e9d26fef9adb61c4b523a273aba18c35d40b7a94,a468fb6f64f5af9757d7f60891d2240c7ea43c1e,9a70c58d13cabfc6a1b3bf63f14caaaf097fc43e,32ada17825448e171287f0c7625e2ad1ed051b0f" | split:","%}
{% assign isAllenTate = false %}
{% assign isHowardHanna = false %}
{% assign isRandRealty = false %}
{% for group in current_person.groups %}
{% if group.enrollment_code == "1817d8c96780f13abbf0f2023e3b26b3bd43d248" %}
{% assign isAllenTate = true %}
{% elsif group.enrollment_code == "ccd2aa2f1e41ebbac8fa878f806e3ccc20ae3f38" or
group.enrollment_code == "aa6fe8d22ec1e75d2e8c54c6d5452dcd585e415d" %}
{% assign isHowardHanna = true %}
{% elsif rand_realty_groups contains group.enrollment_code %}
{% assign isRandRealty = true %}
{% endif %}
{% endfor %}
{% if isAllenTate %}
{% include "styles_at" %}
{% elsif isHowardHanna %}
{% include "styles_hh" %}
{% endif %}
{% comment %} Hero Image {% endcomment %}
{% include 'hero_image' %}
{%- comment -%} Virtual Workshops {%- endcomment -%}
{% if isAllenTate %}
{% include 'virtual_workshops' %}
{% endif %}
{%- comment -%} Course Library {%- endcomment -%}
{% include 'course_library' %}
{% if isHowardHanna or isRandRealty %}
{%- comment -%} Virtual Workshops {%- endcomment -%}
{% include 'virtual_workshops' %}
{% endif %}
{%- comment -%} Calendar {%- endcomment -%}
{% include 'calendar' %}
{%- comment -%} Resources {%- endcomment -%}
{% include 'checklists_and_resources' %}
{% assign updated_at = current_person.properties.last_group_update | date: '%s'%}
{% assign date_to_compare = 4 | time_ago: "days" | date: '%s' %}
{% if updated_at < date_to_compare%}
<script>
var data = {
key1 : '{{current_person.id}}',
};
$.ajax({
type : 'POST',
url : 'https://d3puyb5d0f.execute-api.us-east-1.amazonaws.com/v1/howardhanna',
headers: {
'Content-Type': 'application/json'
},
data: JSON.stringify(data),
success:function (data) {
console.log('success!');
},
error: function(xhr, status, error) {
console.log(error)
}
});
</script>
{% endif %}