summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api/3rd_party/static/o2c.html
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-10-13 16:17:30 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-10-17 10:57:03 +0800
commitacba346463b1b2c0be489a553f12fcd28d383f05 (patch)
tree1501e4fa2cecb252a60dc1cc7d60d8bd2cf2e151 /utils/test/result_collection_api/3rd_party/static/o2c.html
parent898fbb54b0bd1f0c576d15f516a8e67130c1268e (diff)
fix files with MIT or BSD licenses in testapi
moving tornado_swagger/static/ dir under 3rd_party/ dir JIRA: RELENG-156 Change-Id: I8c15f6776a7626d5837982d5961106a120f0c7a5 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/result_collection_api/3rd_party/static/o2c.html')
-rw-r--r--utils/test/result_collection_api/3rd_party/static/o2c.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/test/result_collection_api/3rd_party/static/o2c.html b/utils/test/result_collection_api/3rd_party/static/o2c.html
new file mode 100644
index 000000000..d32d130ec
--- /dev/null
+++ b/utils/test/result_collection_api/3rd_party/static/o2c.html
@@ -0,0 +1,15 @@
+<script>
+var qp = null;
+if(window.location.hash) {
+ qp = location.hash.substring(1);
+}
+else {
+ qp = location.search.substring(1);
+}
+qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}',
+ function(key, value) {
+ return key===""?value:decodeURIComponent(value) }
+ ):{}
+window.opener.onOAuthComplete(qp);
+window.close();
+</script> \ No newline at end of file