This file contains 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
<script> | |
//check where page is coming from | |
var hostname = window.location.hostname; | |
if(hostname == 'localhost'){ | |
var sharedResources = "//localhost/00-medtronic/"; | |
}else if(hostname == 'customsolutions.capella-id.com'){ | |
var sharedResources = "//customsolutions.capella-id.com/medtronic/"; | |
}else{ | |
var sharedResources = "//medtronic.capella.edu/file.php/1/media/"; |
This file contains 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
//John Resig's handy catch-all log (amended with my own linenumber add-on + new and improved CSS support for chrome!): | |
function trace() {//just cause I like "trace" better than his "log" | |
try { | |
var dA = navigator.userAgent.toLowerCase(), fF = dA.match(/(firefox)/); | |
//show linenumber in FireFox & Chrome | |
if(fF){var lnVal = 1;}else{var lnVal = 2;}//fireFox sorts Error stack differently | |
var linenumber = new Error().stack.split("\n")[lnVal], index = linenumber.indexOf("at "), clean = linenumber.slice(index+2, linenumber.length), cleaner = clean.split(":"); | |
console.log.apply(console, arguments); | |
if(fF){ | |
console.log("--------------------------------------------------------------- line:"+Array.prototype.slice.call(cleaner)[2]); |