This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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('='); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getJSONOuter(cityName) { | |
if (!cityName) { | |
var cityName = "Calgary"; | |
} | |
if (cityName == "" || cityName == null) { | |
cityName = "Calgary"; | |
} |