-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.html
86 lines (69 loc) · 2.83 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
<!DOCTYPE html>
<html>
<title>Taj Mahal</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet" type="text/css">
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js"></script>
<script>
if (typeof web3 !== 'undefined') {
web3 = new Web3(web3.currentProvider);
} else {
// set the provider you want from Web3.providers
web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
}
</script>
<script>
// Previous if/else statement removed for brevity
web3.eth.defaultAccount = web3.eth.accounts[0];
//paste your abi function here
var TajmahalContract = web3.eth.contract(YOUR ABI);
//paste your contract address here.
var Tajmahal = TajmahalContract.at('PASTE CONTRACT ADDRESS HERE');
console.log(Tajmahal);
</script>
<style>
body {font-family: "Raleway", Arial, sans-serif}
.w3-row img {margin-bottom: -8px}
</style>
<body>
<!-- !PAGE CONTENT! -->
<div class="w3-content" style="max-width:1500px">
<!-- Header -->
<header class="w3-container w3-xlarge w3-padding-24">
<a href="#" class="w3-left w3-button w3-white">Crypto TajMahal </a>
<a href="#about" class="w3-right w3-button w3-white">About</a>
</header>
<!-- Photo Grid -->
<div class="w3-row">
<div class="w3-half">
<img src="taj.jpg" style="width:100%">
<img src="tajmm.jpg" style="width:100%">
<img src="tajm.jpg" style="width:100%">
</div>
<div class="w3-half">
<img src="tajmk.jpg" style="width:100%">
<img src="tj.jpeg" style="width:100%">
</div>
</div>
<!-- End Page Content -->
</div>
<!-- Footer / About Section -->
<footer class="w3-light-grey w3-padding-64 w3-center" id="about">
<h2>About</h2>
<!-- <img src="/w3images/boy.jpg" class="w3-image w3-padding-32" width="300" height="300"> -->
<!-- <form style="margin:auto;width:60%" action="/action_page.php" target="_blank"> -->
<p style="margin:auto;width:60%" >Crypto TajMahal is ERC721 crypto token powered by etherium blockchain.Only one such TajMahal will exist (guranteed by Etherium Blockchain ) and only one would be the owner.Anyone who pays the price of Tajmahal becomes the owner of this Tajmahal.</p>
<p class="w3-large w3-text-pink">Do not hesitate to buy TajMahal !</p>
<button id="button">Buy Tajmahal</button>
<script>
$("#button").click(function() {
Tajmahal.buyTajmahal();
});
</script>>
<br>
<p>Developed by <a href="https://www.linkedin.com/in/susmit-lavania-4b9558107/" target="_blank" class="w3-hover-text-green">Susmit</a></p>
</footer>
</body>
</html>