Skip to content

Instantly share code, notes, and snippets.

@hjanuschka
Created May 4, 2016 06:04
Show Gist options
  • Save hjanuschka/d323b1749cb516760aea14c8f706d4db to your computer and use it in GitHub Desktop.
Save hjanuschka/d323b1749cb516760aea14c8f706d4db to your computer and use it in GitHub Desktop.
<html>
<head>
<script src=https://dispatcher.oewabox.at/oewa.js></script>
</head>
<body>
<script>
var match,
pl = /\+/g,
search = /([^&=]+)=?([^&]*)/g,
decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); },
query = window.location.search.substring(1);
var OEWA = {};
while (match = search.exec(query)) {
OEWA[decode(match[1])] = decode(match[2]);
}
oewa.c(OEWA);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment