Skip to content

Commit 197922a

Browse files
Robert YawnJeremy White
authored andcommitted
Wrap the connectsdk js definitions into a closure to further clean up the window namespace.
1 parent 97366b5 commit 197922a

File tree

2 files changed

+456
-448
lines changed

2 files changed

+456
-448
lines changed

scripts/app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,11 @@ String.prototype.toHHMMSS = function () {
1515
time = minutes + ':' + seconds;
1616

1717
return time;
18+
}
19+
20+
function getParameterByName(name) {
21+
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
22+
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
23+
results = regex.exec(location.search);
24+
return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
1825
}

0 commit comments

Comments
 (0)