| 1234567891011121314151617181920212223242526272829 |
- <!DOCTYPE html>
- <html>
- <head>
- </head>
- <body>
- <script>
- function getURLParameter(name) {
- return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null
- }
- function sendToken() {
- window.opener.postMessage(JSON.stringify({action: "logintoken", msg: getURLParameter("token")}), "*");
- }
-
- function sendURL() {
- window.opener.postMessage(JSON.stringify({action: "openfromggt", msg: getURLParameter("url")}), "*");
- }
- if (getURLParameter("token") !== null) {
- sendToken();
- }
- if (getURLParameter("url") !== null) {
- sendURL();
- }
- </script>
- </body>
- </html>
|