added button instead of href

This commit is contained in:
Francesco Mangiacrapa 2021-04-08 13:15:55 +02:00
parent 49c595191b
commit 1765e13846
1 changed files with 21 additions and 11 deletions

View File

@ -3,6 +3,14 @@
<head> <head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding"> <meta content="utf-8" http-equiv="encoding">
<script type="text/javascript">
function goToURL(relativePath) {
var x = "/wekeo/" + relativePath;
window.open(x, "_blank");
}
</script>
<style type="text/css"> <style type="text/css">
body { body {
background-color: #f8f6f2; background-color: #f8f6f2;
@ -18,11 +26,11 @@ body {
height: 300px; height: 300px;
margin-top: -150px; /*set to a negative number 1/2 of your height*/ margin-top: -150px; /*set to a negative number 1/2 of your height*/
margin-left: -300px; /*set to a negative number 1/2 of your width*/ margin-left: -300px; /*set to a negative number 1/2 of your width*/
/* border: 1px solid #ccc; */ /* border: 1px solid #ccc; */
/* background-color: #9b9b9b; */ /* background-color: #9b9b9b; */
position: fixed; position: fixed;
text-align: center; text-align: center;
/* vertical-align: middle; */ /* vertical-align: middle; */
} }
.myTitle { .myTitle {
@ -37,10 +45,9 @@ body {
} }
.uri-footer { .uri-footer {
padding: 20px 20px; padding: 20px 20px;
font-size: 14px; font-size: 14px;
} }
</style> </style>
</head> </head>
@ -49,15 +56,18 @@ body {
<img alt="" <img alt=""
src="https://www.d4science.org/image/layout_set_logo?img_id=12630" /> src="https://www.d4science.org/image/layout_set_logo?img_id=12630" />
<div class="myTitle">The Wekeo Resolver</div> <div class="myTitle">The Wekeo Resolver</div>
<div class="myListOperations">Available Operations: <div class="myListOperations">
<p> Available Operations:
# authentication operator <a href="/wekeo/gettoken" target="_blank" title="gettoken operation">gettoken</a> (gCube AuthN required) <p>
</p> # authentication operator
<button onclick="goToURL('getoken')">Get Token</button>
(gCube AuthN required)
</p>
</div> </div>
<div class="uri-footer"> <div class="uri-footer">
See wiki page at <a See wiki page at <a
href="https://gcube.wiki.gcube-system.org/gcube/URI_Resolver#Wekeo_Resolver" target="_blank">gCube Wiki Wekeo href="https://gcube.wiki.gcube-system.org/gcube/URI_Resolver#Wekeo_Resolver"
Resolver</a> target="_blank">gCube Wiki Wekeo Resolver</a>
</div> </div>
</div> </div>
</body> </body>