Templates for Chubb need updating.
This commit is contained in:
@ -0,0 +1,49 @@
|
||||
{% styles default %}
|
||||
{% styles colors %}
|
||||
{% styles custom %}
|
||||
|
||||
{% comment %} <link rel="preconnect" href="https://fonts.googleapis.com"> {% endcomment %}
|
||||
{% comment %} <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> {% endcomment %}
|
||||
{% comment %} <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100..900&display=swap" rel="stylesheet"> {% endcomment %}
|
||||
|
||||
<!-- Gainsight PX Tag-->
|
||||
<script type="text/javascript">
|
||||
(function(n,t,a,e,co){var i="aptrinsic";n[i]=n[i]||function(){
|
||||
(n[i].q=n[i].q||[]).push(arguments)},n[i].p=e;n[i].c=co;
|
||||
var r=t.createElement("script");r.async=!0,r.src=a+"?a="+e;
|
||||
var c=t.getElementsByTagName("script")[0];c.parentNode.insertBefore(r,c)
|
||||
})(window,document,"https://web-sdk.aptrinsic.com/api/aptrinsic.js","AP-QUWV37HJ0TII-2");
|
||||
</script>
|
||||
<!-- Gainsight PX Tag-->
|
||||
|
||||
{% if current_person.groups.any? %}
|
||||
{% for groups in current_person.groups %}
|
||||
<script> console.log("Person groups are {{ groups.name }}") </script>
|
||||
{% assign group = groups.name | split: "," %}
|
||||
<script> console.log("{{ group }}") </script>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% assign group = "None" %}
|
||||
<script> console.log("No groups found.") </script>
|
||||
{% endif %}
|
||||
|
||||
{% assign email_add = current_person.email | split: "@" %}
|
||||
{% assign domain = email_add.last | split: "." %}
|
||||
<script> console.log("{{ domain }}") </script>
|
||||
|
||||
<script>
|
||||
aptrinsic("identify",
|
||||
{
|
||||
"id": "{{ current_person.id }}",
|
||||
"email": "{{ current_person.email }}",
|
||||
"firstName": "{{ current_person.first_name }}",
|
||||
"lastName": "{{ current_person.last_name }}",
|
||||
"signUpDate": "{{ current_person.created_at }}",
|
||||
},
|
||||
{
|
||||
"id":"{{ domain.first }}",
|
||||
"name":"{{ domain.first }}",
|
||||
"content_label": "{{ current_person.my_content_label }}"
|
||||
}
|
||||
);
|
||||
</script>
|
||||
BIN
Custom_Templates/customer_templates/Chubb/.DS_Store
vendored
Normal file
BIN
Custom_Templates/customer_templates/Chubb/.DS_Store
vendored
Normal file
Binary file not shown.
@ -35,7 +35,13 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% elsif group.id == '' %}
|
||||
{% comment %}
|
||||
<------------------------------->
|
||||
Jenelle, similar to above for Cornerstone, please add your carousel items here!
|
||||
<------------------------------->
|
||||
{% endcomment %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<div class="feature-card-wrapper">
|
||||
|
||||
@ -14,7 +14,11 @@
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% comment %}
|
||||
To add for Chubb:
|
||||
If person is in group show certain courses.
|
||||
|
||||
{% endcomment%}
|
||||
<div class="recommended-carousel-wrapper">
|
||||
<div class="recommended-carousel">
|
||||
{% for course in courses.in_catalog%}
|
||||
@ -100,4 +104,4 @@
|
||||
z-index:1;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
@ -34,3 +34,4 @@ EMPLOY = "qcNggCm4SBtC0gTqLGv30vX8l"
|
||||
LUMAFINTECH = "oDFA7XSmjEKjEwIDIKLm0rxs1"
|
||||
SUPPLIERPROD = "DtRH9m4r0zMbJEx1yWBGKlObi"
|
||||
DEEPL = "fo5uOoG9FNNGQ6lZkenmZVIzq"
|
||||
CECSINTERNAL = "r8KINCJRgkkQnrzzKitOJfsVw"
|
||||
|
||||
25
Scripts/blank_javascript.js
Normal file
25
Scripts/blank_javascript.js
Normal file
@ -0,0 +1,25 @@
|
||||
function extractEmailDomain(email) {
|
||||
// Check if email is provided and is a string
|
||||
if (!email || typeof email !== 'string') {
|
||||
return 'Please provide a valid email address';
|
||||
}
|
||||
|
||||
// Check if email contains @ symbol
|
||||
if (!email.includes('@')) {
|
||||
return 'Invalid email format';
|
||||
}
|
||||
|
||||
// Split the email at @ and get the domain part
|
||||
const domainPart = email.split('@')[1];
|
||||
|
||||
// Remove .com or any other extension
|
||||
const domain = domainPart.split('.')[0];
|
||||
|
||||
return domain;
|
||||
}
|
||||
|
||||
// Example usage:
|
||||
console.log(extractEmailDomain('user@gmail.com')); // Output: gmail
|
||||
console.log(extractEmailDomain('john.doe@yahoo.com')); // Output: yahoo
|
||||
console.log(extractEmailDomain('contact@company.org')); // Output: company
|
||||
|
||||
Reference in New Issue
Block a user