Skip to content

Instantly share code, notes, and snippets.

{
title: 'Envestnet is Fully Vested™ in connecting people’s daily financial lives with their long-term goals',
stories: [
{
// First story...
heroHeadline: {
showArrowIcon: true,
stats: '65%',
},
heroVideoCarousel: {
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "NI Compare Page API",
"description": "A sample response from the Experience API that will feed NI's Compare Page",
"type": "object",
"definitions": {
"productData": {
"type": "object",
"properties": {
"attribute": {
{
"compareIds": [
{
"id": "124878",
"kbmaxId": "",
"productName": "USB-5132",
"shortDescription": "50 MHz Bandwidth, 2-Channel, 8-Bit USB Oscilloscope Device",
"longDescription": "The USB‑5132 low-cost oscilloscope device has two channels that sample up to 50 MS/s with flexible settings for coupling, impedance, voltage range, and filtering. Oscilloscope devices also feature a number of triggering modes and an instrument driver that includes data streaming and analysis functions. This device is ideal for portable and benchtop applications with fast signals that require flexible measurement configurations and up to 50 MHz of analog bandwidth.",
"listPrice": "475300.0",
"unitPrice": "475300.0",
{​​
"errorType": {​​
"parentErrorType": {​​
"parentErrorType": null,
"identifier": "ANY",
"namespace": "MULE"
}​​,
"identifier": "INTERNAL_SERVER_ERROR",
"namespace": "HTTP"
}​​,
@dviedma
dviedma / CategoryAPIschema.json
Last active June 23, 2021 00:14
Category API schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "NI Category Page API",
"description": "A sample response from the Experience API that will feed NI's Category Page",
"type": "object",
"definitions": {
"filter": {
"type": "object",
"properties": {
"id": {
@dviedma
dviedma / CategoryAPIexampleResponse.json
Created June 23, 2021 00:10
Category API example response
{
"filters": [
{
"id": "cableType",
"name": "Cable Type",
"description": "Select what kind of ports your product has",
"typeId": "structuredMulti",
"order": 10,
"isPinned": true,
"options": [
NIUA.prototype.getDetails = function () {
var that = this;
var promise = new Promise(function (resolve, reject) {
var data = {};
if (that.getCookie("profile_id") != null) {
if (sessionStorage.getItem("NIUA_details")) {
var returnedValue = JSON.parse(sessionStorage.getItem("NIUA_details"));
var expiryTime = new Date().getTime() - (that.appConfig.minutesBeforeExpire * 60 * 1000);
if (parseInt(returnedValue.timestamp) < expiryTime) {
/* Data is cached but it has already expired - reload it and re-cache it */
<script>
var $jquery = window.jQuery,
isResultsLoaded = {},
select = (query, item = document) => item.querySelector(query),
selectAll = (query, item = document) => item.querySelectorAll(query),
insertAfter = (newNode, referenceNode) => referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling),
productLineEl,
productLine2,
filterDropdownEls,
filtersEls,
.homepage-hero {
display: flex;
flex-direction: column;
margin-top: 70px;
margin-bottom: 5px;
@include breakpoint(tablet){
margin-top: 50px;
}
$nav-height: 70px;
.homepage-hero {
display: flex;
flex-direction: column;
margin-top: 70px;
margin-bottom: 5px;
@include breakpoint(tablet){
margin-top: 50px;