-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
114 lines (109 loc) · 4.75 KB
/
index.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>SmartBugs: A Dataset of Vulnerable Solidity Smart Contracts</title>
<meta name="description" content="SmartBugs: A Dataset of Vulnerable Solidity Smart Contracts">
<meta name="author" content="João F. Ferreira">
<meta name="viewport" content="width=device-width">
<!-- Full jQuery is required -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<!-- Boostrap 4 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<!-- Bootswatch 4 -->
<!--
You can change this skin if you like to any from: https://www.bootstrapcdn.com/bootswatch/
Generate SRI hashes using this: https://www.srihash.org/
-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.3.1/united/bootstrap.min.css" integrity="sha384-WTtvlZJeRyCiKUtbQ88X1x9uHmKi0eHCbQ8irbzqSLkE0DpAZuixT5yFvgX0CjIu" crossorigin="anonymous">
<!-- Showdown markdown renderer -->
<script src="https://cdn.rawgit.com/showdownjs/showdown/1.9.0/dist/showdown.min.js" integrity="sha384-KpuxVjTC2hfOkg5KV3jSdx1eA6xy0PGS0wNfDrwf4sZBnZdzlIsnkH+LzLkavmH7" crossorigin="anonymous"></script>
<!-- Page-specific script -->
<script>
// Configure the page here.
const username = "smartbugs";
const repo = "smartbugs";
// Pre-calculate some URLs.
const userPage = `https://github.com/${username}`;
const projectPage = `${userPage}/${repo}`;
// This runs on page load.
$(document).ready(function() {
// Update links etc.
$(".jsProjPage").attr("href", projectPage);
$(".jsUsername").attr("href", userPage);
$(".jsUsername").html(username);
// Enable support for tables
showdown.setOption("tables", true);
// Load markdown from the readme, render it and display.
$.ajax({
url: `https://raw.githubusercontent.com/${username}/${repo}/master/README.md`,
success: function(result) {
var converter = new showdown.Converter();
var logoRemoved = result.replace(/!\[logo\]\(.+?\)/gi, ""); // Remove logo.
$("#content").html(converter.makeHtml(logoRemoved));
},
error: function() {
// Show error message.
$("#content").html(`<p class="loadErr">Error loading page, visit it on <a href="${projectPage}">GitHub</a> instead.</p>`);
}
});
});
</script>
<!-- Page-specific styles -->
<style>
body {
margin: 36px;
}
a {
color: #aa0000;
}
h2,h3 {
margin-top: 1em;
}
.logo {
margin-bottom: 36px;
}
.loader {
color: #505050;
text-align: center;
}
.loadErr {
color: #7f0000;
text-align: center;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<img class="logo" src="svg/logo.svg">
</div>
</div>
<div class="row">
<!-- Rendered markdown is loaded in the following element -->
<div class="col-md-12" id="content">
<!-- Loader is shown initially -->
<div class="loader">
<p>
Loading page content...
</p>
<img src="gif/loader.gif">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<hr>
</div>
</div>
<div class="row">
<div class="col-md-12 text-center text-muted">
<small>Copyright © <a class="jsUsername"></a> | <a class="jsProjPage">GitHub</a> | Powered by <a target="_blank" href="https://lambdacasserole.github.io/rollout/">Rollout</a></small>
</div>
</div>
</div>
</body>
</html>