-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
121 lines (107 loc) · 4.77 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
115
116
117
118
119
120
121
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Decentralized Science</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link rel="stylesheet" href="css/style.css">
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js"></script>
<script src="js/utils/buffer.js"></script>
<script src="js/index.js"></script>
<script src="js/utils/bs58.js"></script>
<script type="text/javascript">
const ipfs = window.IpfsApi('127.0.0.1','5001',{protocol: 'http'});
const decoder = new TextDecoder('utf-8');
</script>
<script src="js/platform/metamask_checker.js"></script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mainNavBar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"><img class="logo" src="images/logo.jpg"></a>
</div>
<ul class="collapse navbar-collapse nav navbar-nav" id="mainNavBar">
<li><a href="index.html">Home<span class="sr-only">(current)</span></a></li>
<li><a href="register.html">Register Journal</a></li>
<li><a href="about.html">About us</a></li>
</ul>
<form class="navbar-form navbar-collapse navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Enter you search here">
</div>
<button type="submit" class="btn btn-default">Search</button>
</form>
</div><!-- /.container-fluid -->
</nav>
<div class="content">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>Featured Journals</h1>
<hr>
</div>
</div>
<script src="js/deploy/contractDeployment.js"></script>
<div class="row">
<div class="col-md-2">
<a href="journal.html" class="featured-paper"><img src="images/DOJODOT.png" width="100%" class="img-thumbnail"></a>
</div>
<div class="col-md-2">
<a href="journal.html" class="featured-paper"><img src="images/DAJ.png" width="100%" class="img-thumbnail"></a>
</div>
<div class="col-md-2">
<a href="journal.html" class="featured-paper"><img src="images/AJAR.png" width="100%" class="img-thumbnail"></a>
</div>
<div class="col-md-2">
<a href="register.html" class="featured-paper"><img src="images/REg.png" width="100%" class="img-thumbnail"></a>
</div>
<div class="col-md-2">
<a href="register.html" class="featured-paper"><img src="images/REg.png" width="100%" class="img-thumbnail"></a>
</div>
<div class="col-md-2">
<a href="register.html" class="featured-paper"><img src="images/REg.png" width="100%" class="img-thumbnail"></a>
</div>
</div>
<hr style="border:transparent">
<div class="row">
<div class="col-md-12">
<button id="createRephub">Create Reputation Hub</button>
<span id="rephubaddr">Not set</span>
</div>
<div class="col-md-12">
<button id="createJournal">Create Journal</button>
<span id="journaladdr">Not set</span>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var rephubaddr = "";
$('.collapse').collapse({
toggle: false
});
$('#createRephub').on('click',function(){
$('#rephubaddr').html('Creating contract...');
createRephub($('#rephubaddr'));
});
$('#createJournal').on('click',function(){
rephubaddress = $('#rephubaddr').html();
$('#journaladdr').html('Creating contract...');
createJournal(12,20,"0x0A2A33F5143A7ECD157CAE13D32B5BE5274963158CDE389EB1CA92AB6DB99512",0,0,rephubaddress,$('#journaladdr'));
});
</script>
</body>
</html>