Skip to content

Instantly share code, notes, and snippets.

View tmurvv's full-sized avatar

Tisha Murvihill tmurvv

View GitHub Profile
@tmurvv
tmurvv / PostClassCaseStudy.js
Created February 13, 2018 01:04
Case Study Site Creation "Request uses too many resources."
var outerObject = outerObject || {};
SP.SOD.executeFunc("sp.js");
//These functions taken from the internet
function getUrlVars() {
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for (var i = 0; i < hashes.length; i++) {
hash = hashes[i].split('=');
@tmurvv
tmurvv / JSONWeatherApp
Created January 20, 2018 23:45
This function works if city is found, but how do I 'error handle' a 404 response?
function getJSONOuter(cityName) {
if (!cityName) {
var cityName = "Calgary";
}
if (cityName == "" || cityName == null) {
cityName = "Calgary";
}