Some new Scripts
This commit is contained in:
@ -18,7 +18,7 @@
|
|||||||
<style> .intercom-lightweight-app-launcher { float: right; bottom: 45px !important; margin-right: 40px; } </style> {% endcomment %}
|
<style> .intercom-lightweight-app-launcher { float: right; bottom: 45px !important; margin-right: 40px; } </style> {% endcomment %}
|
||||||
|
|
||||||
<style>
|
<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 {
|
body {
|
||||||
font-family: "Barlow", sans-serif !important;
|
font-family: "Barlow", sans-serif !important;
|
||||||
|
|||||||
@ -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/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 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 ) {
|
if ( window.location !== window.parent.location ) {
|
||||||
// console.log("The page is in an iframe - don't show header")
|
|
||||||
} else {
|
} else {
|
||||||
{% include "header" %}
|
document.addEventListener('DOMContentLoaded', function(event) {
|
||||||
console.log("The page is not in an iframe - show header")
|
const header = document.getElementById("header_g2");
|
||||||
|
header.style.display = "flex";
|
||||||
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</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-header-content">
|
||||||
<div class="np-hidden-desktop np-header-mobile-menu-nav">
|
<div class="np-hidden-desktop np-header-mobile-menu-nav">
|
||||||
{% if current_person.signed_in? %}
|
{% if current_person.signed_in? %}
|
||||||
@ -180,3 +180,4 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include "messages" %}
|
{% include "messages" %}
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{% comment %} {% include 'header' %} {% endcomment %}
|
{% include 'header' %}
|
||||||
<main class="np-main np-homepage">
|
<main class="np-main np-homepage">
|
||||||
<div class="np-homepage-hero">
|
<div class="np-homepage-hero">
|
||||||
<h1 class="community-headline">Explore</h1>
|
<h1 class="community-headline">Explore</h1>
|
||||||
|
|||||||
@ -527,6 +527,9 @@ div {
|
|||||||
/*
|
/*
|
||||||
3.1 - HEADER
|
3.1 - HEADER
|
||||||
*/
|
*/
|
||||||
|
#header_g2 {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.np-header {
|
.np-header {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
{% comment %} {% include "header" %} {% endcomment %}
|
{% include "header" %}
|
||||||
<div class="np-homepage-hero">
|
<div class="np-homepage-hero">
|
||||||
<div class="np-homepage-hero-image">
|
<div class="np-homepage-hero-image">
|
||||||
</div>
|
</div>
|
||||||
<div class="np-homepage-hero-content">
|
<div class="np-homepage-hero-content">
|
||||||
<div class="np-homepage-headline np-header-font-color">
|
<div class="np-homepage-headline np-header-font-color">
|
||||||
Menlo Learning Program
|
My Learning Program
|
||||||
</div>
|
</div>
|
||||||
<div class="np-homepage-subheadline np-header-font-color">
|
<div class="np-homepage-subheadline np-header-font-color">
|
||||||
Resources to help you make the most of your Security Training
|
Resources to help you make the most of your Security Training
|
||||||
@ -18,7 +18,7 @@
|
|||||||
<iframe
|
<iframe
|
||||||
style= "border: 3px solid #B2D7C7;"
|
style= "border: 3px solid #B2D7C7;"
|
||||||
width="100%" height="1000"
|
width="100%" height="1000"
|
||||||
src="https://climbingacademy.northpass.com/app/training_events"
|
src="https://climbingacademy.northpass.com/app/catalog"
|
||||||
title="Climbing Academy"
|
title="Climbing Academy"
|
||||||
>
|
>
|
||||||
</iframe>
|
</iframe>
|
||||||
|
|||||||
@ -8,3 +8,4 @@ walmartprod = "6hUfJdAartHTHhHc0WIRZYPWe"
|
|||||||
recast = "9LISLpq7Ebqot3Xrggn5twKWZ"
|
recast = "9LISLpq7Ebqot3Xrggn5twKWZ"
|
||||||
mizuno = "stXNF84HWL8aCGeRjHEo2rJ1U"
|
mizuno = "stXNF84HWL8aCGeRjHEo2rJ1U"
|
||||||
sps = "VNDXh8K4tLYJ-Nvp78bo6w"
|
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