diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-05-12 18:33:00 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-05-17 16:43:12 +0800 |
commit | 74a3b45c290d1b6e289ac1c3b9425e804e2f0ab7 (patch) | |
tree | 905343c0fbd8114b1619641dcf359e2cd3fc1928 /testapi/3rd_party/static/swagger/o2c.html | |
parent | de3ac5fcdb1259df876df53d93b4166011fae79b (diff) |
refactor static_path to accomodate web portal
move tornado_swagger/static to opnfv_testapi/static
move swagger related 3rd libs to 3rd_party/swagger
Change-Id: I32bba10584c99d13687b93f32577e37581db0c63
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/3rd_party/static/swagger/o2c.html')
-rw-r--r-- | testapi/3rd_party/static/swagger/o2c.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testapi/3rd_party/static/swagger/o2c.html b/testapi/3rd_party/static/swagger/o2c.html new file mode 100644 index 0000000..d32d130 --- /dev/null +++ b/testapi/3rd_party/static/swagger/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 |