-
Notifications
You must be signed in to change notification settings - Fork 62
/
html_template.html
52 lines (48 loc) · 974 Bytes
/
html_template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>API Results</title>
<style>
.apicall {
width:80%;
padding:15px;
border:1px solid black;
background-color:#e1f5fe;
}
.content{
width:90%;
margin:10px;
padding:10px;
height:300px;
background-color:#ffffff;
display:none;
}
.json {
background-color:aquamarine;
}
.html {
background-color:yellow;
}
.xml {
background-color:cornflowerblue;
}
table tr td{
border-bottom:1px solid gray;
}
</style>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
CALLSGOHERE
<script>
$( document.body ).click(function (event) {
if($(event.target).find(".content").is( ":hidden" ) ) {
$(event.target).find(".content").css("display","block");
} else {
$(event.target).find(".content").css("display","none");
}
});
</script>
</body>
</html>