Some new Scripts
This commit is contained in:
@ -11,16 +11,16 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
{% comment %} <script> window.intercomSettings = { app_id: "hal1rveh" }; </script>
|
||||
<script>
|
||||
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/hal1rveh';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);};if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();
|
||||
</script>
|
||||
{% comment %} <script> window.intercomSettings = { app_id: "hal1rveh" }; </script>
|
||||
<script>
|
||||
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/hal1rveh';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);};if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();
|
||||
</script>
|
||||
<style> .intercom-lightweight-app-launcher { float: right; bottom: 45px !important; margin-right: 40px; } </style> {% endcomment %}
|
||||
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;700;800&display=swap');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;700;800&display=swap');
|
||||
|
||||
body {
|
||||
font-family: "Barlow", sans-serif !important;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@ -9,11 +9,12 @@
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js" type="text/javascript"></script>
|
||||
<script>
|
||||
<script type="text/javascript">
|
||||
if ( window.location !== window.parent.location ) {
|
||||
// console.log("The page is in an iframe - don't show header")
|
||||
} else {
|
||||
{% include "header" %}
|
||||
console.log("The page is not in an iframe - show header")
|
||||
document.addEventListener('DOMContentLoaded', function(event) {
|
||||
const header = document.getElementById("header_g2");
|
||||
header.style.display = "flex";
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<header class="np-header np-header-color" >
|
||||
<header class="np-header np-header-color" id="header_g2" style="display:none;">
|
||||
<div class="np-header-content">
|
||||
<div class="np-hidden-desktop np-header-mobile-menu-nav">
|
||||
{% if current_person.signed_in? %}
|
||||
@ -180,3 +180,4 @@
|
||||
</div>
|
||||
|
||||
{% include "messages" %}
|
||||
|
||||
|
||||
@ -36,4 +36,4 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% comment %} {% include 'header' %} {% endcomment %}
|
||||
{% include 'header' %}
|
||||
<main class="np-main np-homepage">
|
||||
<div class="np-homepage-hero">
|
||||
<h1 class="community-headline">Explore</h1>
|
||||
|
||||
@ -30,22 +30,22 @@
|
||||
3.6 - COURSE CARD
|
||||
3.7 - LEARNING PATH CARD
|
||||
3.8 - TRAINING EVENT CARD
|
||||
3.9 - COURSE BANNER
|
||||
3.9 - COURSE BANNER
|
||||
3.10 - COURSE DETAILS
|
||||
3.11 - COURSE OUTLINE
|
||||
3.12 - FILTER DROPDOWN
|
||||
3.13 - CAROUSEL - GLOBAL STYLES
|
||||
3.14 - CAROUSEL - EVENTS
|
||||
3.15 - CAROUSEL - COURSES
|
||||
3.16 - CAROUSEL - INSTRUCTORS
|
||||
3.17 - HOMEPAGE SECTION - FEATURED PHOTOGRAPHY
|
||||
3.16 - CAROUSEL - INSTRUCTORS
|
||||
3.17 - HOMEPAGE SECTION - FEATURED PHOTOGRAPHY
|
||||
3.18 - HOMEPAGE SECTION - TIPS & TRICKS
|
||||
3.19 - HOMEPAGE SECTION - FAQS
|
||||
3.20 - HOMEPAGE SECTION - FEATURED COURSES
|
||||
*/
|
||||
|
||||
/*
|
||||
1.0 GLOBAL SYLING
|
||||
1.0 GLOBAL SYLING
|
||||
*/
|
||||
body {
|
||||
background: #1d1f21;
|
||||
@ -183,12 +183,12 @@ div {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
2.0 - PAGE SPECIFIC STYLING
|
||||
/*
|
||||
2.0 - PAGE SPECIFIC STYLING
|
||||
*/
|
||||
|
||||
/*
|
||||
2.1 - HOMEPAGE
|
||||
/*
|
||||
2.1 - HOMEPAGE
|
||||
*/
|
||||
.np-homepage-hero-image {
|
||||
height: 250px;
|
||||
@ -321,8 +321,8 @@ div {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
2.2 - DASHBOARD PAGE
|
||||
/*
|
||||
2.2 - DASHBOARD PAGE
|
||||
*/
|
||||
|
||||
.np-dashboard {
|
||||
@ -367,8 +367,8 @@ div {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
2.3 - CATALOG
|
||||
/*
|
||||
2.3 - CATALOG
|
||||
*/
|
||||
|
||||
.np-catalog .np-progress-filter-wrapper,
|
||||
@ -391,8 +391,8 @@ div {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
2.4 - COURSE COVER PAGE
|
||||
/*
|
||||
2.4 - COURSE COVER PAGE
|
||||
*/
|
||||
#course-desktop .np-course-content {
|
||||
background: #1d1f21;
|
||||
@ -501,8 +501,8 @@ div {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/*
|
||||
2.7 - LEARNING PATH COVER PAGE
|
||||
/*
|
||||
2.7 - LEARNING PATH COVER PAGE
|
||||
*/
|
||||
|
||||
.np-learning-path-outline-inactive-item {
|
||||
@ -520,13 +520,16 @@ div {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
3.0 - COMPONENT SPECIFIC STYLING
|
||||
/*
|
||||
3.0 - COMPONENT SPECIFIC STYLING
|
||||
*/
|
||||
|
||||
/*
|
||||
/*
|
||||
3.1 - HEADER
|
||||
*/
|
||||
#header_g2 {
|
||||
display: none;
|
||||
}
|
||||
.np-header {
|
||||
background: #fff;
|
||||
}
|
||||
@ -552,8 +555,8 @@ div {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
3.2 - SUB NAV
|
||||
/*
|
||||
3.2 - SUB NAV
|
||||
*/
|
||||
|
||||
.np-sub-navigation {
|
||||
@ -591,7 +594,7 @@ div {
|
||||
height: 0.2rem;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
3.3 - FOOTER
|
||||
*/
|
||||
.np-footer + .np-powered-by {
|
||||
@ -609,8 +612,8 @@ div {
|
||||
color: #1d1f21;
|
||||
}
|
||||
|
||||
/*
|
||||
3.4 - BUTTONS
|
||||
/*
|
||||
3.4 - BUTTONS
|
||||
*/
|
||||
|
||||
.np-button {
|
||||
@ -673,7 +676,7 @@ button.jryxug {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
3.6 - COURSE CARD
|
||||
*/
|
||||
.np-card-container {
|
||||
@ -787,8 +790,8 @@ button.jryxug {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
3.7 - LEARNING PATH CARD
|
||||
/*
|
||||
3.7 - LEARNING PATH CARD
|
||||
*/
|
||||
|
||||
.np-learning-path .np-card-text-wrapper {
|
||||
@ -848,7 +851,7 @@ button.jryxug {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
3.8 - TRAINING EVENTS CARD
|
||||
*/
|
||||
|
||||
@ -977,8 +980,8 @@ button.jryxug {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
3.9 - COURSE BANNER
|
||||
/*
|
||||
3.9 - COURSE BANNER
|
||||
*/
|
||||
.np-course-banner {
|
||||
position: relative;
|
||||
@ -1091,7 +1094,7 @@ button.jryxug {
|
||||
}
|
||||
|
||||
/*
|
||||
3.11 - COURSE PROGRESS & CTA
|
||||
3.11 - COURSE PROGRESS & CTA
|
||||
*/
|
||||
.np-card-progress-bar-container,
|
||||
.np-progress-bar-container {
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
{% comment %} {% include "header" %} {% endcomment %}
|
||||
{% include "header" %}
|
||||
<div class="np-homepage-hero">
|
||||
<div class="np-homepage-hero-image">
|
||||
</div>
|
||||
<div class="np-homepage-hero-content">
|
||||
<div class="np-homepage-headline np-header-font-color">
|
||||
Menlo Learning Program
|
||||
My Learning Program
|
||||
</div>
|
||||
<div class="np-homepage-subheadline np-header-font-color">
|
||||
Resources to help you make the most of your Security Training
|
||||
@ -18,7 +18,7 @@
|
||||
<iframe
|
||||
style= "border: 3px solid #B2D7C7;"
|
||||
width="100%" height="1000"
|
||||
src="https://climbingacademy.northpass.com/app/training_events"
|
||||
src="https://climbingacademy.northpass.com/app/catalog"
|
||||
title="Climbing Academy"
|
||||
>
|
||||
</iframe>
|
||||
|
||||
@ -8,3 +8,4 @@ walmartprod = "6hUfJdAartHTHhHc0WIRZYPWe"
|
||||
recast = "9LISLpq7Ebqot3Xrggn5twKWZ"
|
||||
mizuno = "stXNF84HWL8aCGeRjHEo2rJ1U"
|
||||
sps = "VNDXh8K4tLYJ-Nvp78bo6w"
|
||||
anthology = "BwDUDT3mM6xzubFOgrPZNfL53"
|
||||
|
||||
Binary file not shown.
30
Scripts/API_Tests/create_groups.py
Normal file
30
Scripts/API_Tests/create_groups.py
Normal file
@ -0,0 +1,30 @@
|
||||
import requests
|
||||
import Apikeys
|
||||
|
||||
apikey = Apikeys.anthology
|
||||
|
||||
groups_to_create = [
|
||||
'Engage', 'Encompass', 'Reach',
|
||||
'Student', 'Learn', 'Baseline', 'Ally',
|
||||
'Milestone','Raise', 'Accreditation',
|
||||
'Program Review', 'Portfolio', 'Outcomes',
|
||||
'Engage-Campus-wide Elections',
|
||||
'Engage-Co-Curricular Paths', 'Engage-ECIA',
|
||||
'Engage-Rooms and Reservations', 'Learn-Bb Reporting',
|
||||
'Learn-A4L']
|
||||
|
||||
url = "https://api.northpass.com/v2/bulk/groups"
|
||||
headers = {
|
||||
"accept": "application/json",
|
||||
"content-type": "application/json",
|
||||
"X-Api-Key": apikey,
|
||||
}
|
||||
payload2 = []
|
||||
for group in groups_to_create:
|
||||
payload2.append({"name": group})
|
||||
payload = {"data": {"attributes": {"groups": payload2}}}
|
||||
|
||||
# print(payload)
|
||||
response = requests.post(url, json=payload, headers=headers)
|
||||
print(response.text)
|
||||
print(response)
|
||||
Reference in New Issue
Block a user