Files
edx-platform/lms/static/js/query-params.js

10 lines
300 B
JavaScript

// http://james.padolsey.com/javascript/bujs-1-getparameterbyname/
function getParameterByName(name) {
var match = RegExp('[?&]' + name + '=([^&]*)')
.exec(window.location.search);
return match ?
decodeURIComponent(match[1].replace(/\+/g, ' '))
: null;
}