Skip to content

Instantly share code, notes, and snippets.

View BrightnBubbly's full-sized avatar

Kelsey BrightnBubbly

  • GitHub Staff
  • Boulder, CO
View GitHub Profile
import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Search extends Component {
static props = {
onSubmit: PropTypes.func.isRequired,
};
constructor(props) {
super(props);
import React, { Component } from 'react';
import Search from './components/Search.js';
import './app.css';
import axios from 'axios';
import queryString from 'query-string';
const datasetId = 'dog_breed_information_20180809_010118_141';
const apiToken = '829fe134-388b-4aea-8ce3-edbe7a267958';
export const query = async query => {
(function(window) {
'use strict';
/**
* @constructor
*/
function ProactiveController(main) {
this.main = main;
this.helpers = this.helpers || new window.chat_custom_design.Helpers(this.options, this.target);
from properties file
deprecatedCustomFormMsg1 = Widget uses deprecated Custom Form. Please upgrade your
deprecatedCustomFormLink = Style Tab
deprecatedCustomFormMsg2 = to Design Studio.
from tag file
<c:when test="${!hasDesignStudio && hasStyle}">
<fmt:message key="deprecatedCustomFormMsg1" var="deprecatedCustomFormMsg1Label" />
<fmt:message key="deprecatedCustomFormLink" var="deprecatedCustomLinkLabel" />
<fmt:message key="deprecatedCustomFormMsg2" var="deprecatedCustomFormMsg1Label" />
noSessionStorage: function() {
var testKey = 'test', storage = window.sessionStorage;
try {
storage.setItem(testKey, '1');
storage.removeItem(testKey);
console.log("storage");
return false;
} catch (error) {
console.log("no storage");
return true;
<!-- begin SnapEngage code -->
<script type="text/javascript">
var uid;
var id;
(function() {
var se = document.createElement('script'); se.type = 'text/javascript'; se.async = true;
se.src = '//storage.googleapis.com/code.snapengage.com/js/f53fc276-9ebe-4093-a1ac-3fcbf85a03c0.js';
var done = false;
se.onload = se.onreadystatechange = function() {
/*
"agent" is the name that the agent has in the Admin Dashboard/their
customer-facing name
*/
/*
You can use whatever variable you want to identify the hubspot-owner-id, here,
I have used "id". You will need to identify whatever varible you decide to use
by putting something like "var id;" in your main code (most likely in a place
where you are defining other variables and then you'll put the following code
in your SnapEngage code after the line that says "Place your SnapEngage JS API