Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions client/public/New folder/displayui.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./css/common.css">
<link rel="stylesheet" href="./css/header.css">
<link rel="stylesheet" href="./css/ticket-table.css">
<title>Ticket List</title>
</head>

<body>
<header id="top-header">
<h1>Your Tickets</h1>
<button class="pay-button">Pay For All</button>
<button class="delete-button">Delete All</button>
</header>
<div class="ticket-table-wrapper">
<table>
<thead>
<tr>
<th>Artist</th>
<th>City</th>
<th>Date</th>
<th>Price</th>
<th>Actions</th>
<th>Status</th>
</tr>
</thead>
</table>
</div>
<a href="./index.html">Back to home</a>
<script src="./assets/data.js" type="text/javascript"></script>
<script src="./js/ticketList.js" type="application/javascript"></script>
<script src="./js/ticketService.js" type="application/javascript"></script>
</body>

</html>
27 changes: 27 additions & 0 deletions client/public/client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
window.addEventListener('load', async () => {
var contract;
const contractAddress = "0xd0846c1F03fd422AFCF430F8Ed22a341cbF75Cef";
console.log(contractAddress);
const contractMessage = async () => {
contract = new web3.eth.Contract(abi, contractAddress);
let message = await contract.methods.getMessage().call();
return message;
}
// Modern dapp browsers...
if (window.ethereum) {
window.web3 = new Web3(ethereum);
try {
// Request account access if needed
await ethereum.enable();
var message = await contractMessage();
var elm = document.getElementById("message");
elm.innerHTML = message;
} catch (error) {
// User denied account access...
}
}
// Non-dapp browsers...
else {
console.log('Non-Ethereum browser detected. You should consider trying MetaMask!');
}
});
197 changes: 162 additions & 35 deletions client/public/index.html
Original file line number Diff line number Diff line change
@@ -1,40 +1,167 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<!-- saved from url=(0047)https://colorlib.com/etc/lf/Login_v1/index.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Complaint System</title>
<script src="client.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="https://colorlib.com/etc/lf/Login_v1/images/icons/favicon.ico">
<link rel="stylesheet" type="text/css" href="./Login V1_files/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="./Login V1_files/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="./Login V1_files/animate.css">
<link rel="stylesheet" type="text/css" href="./Login V1_files/hamburgers.min.css">
<link rel="stylesheet" type="text/css" href="./Login V1_files/select2.min.css">
<link rel="stylesheet" type="text/css" href="./Login V1_files/util.css">
<link rel="stylesheet" type="text/css" href="./Login V1_files/main.css">
</head>
<body>
<div class="limiter">
<div class="container-login100">
<div class="wrap-login100">
<div class="login100-pic js-tilt" data-tilt="">
<img src="./Login V1_files/img-01.webp" alt="IMG">
</div>
<form class="login100-form validate-form">
<span class="login100-form-title">
Complaint Form</span>
<div class="wrap-input100 validate-input" data-validate="Valid email is required: [email protected]">
<input class="input100" type="text" name="email" placeholder="Email">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-envelope" aria-hidden="true"></i>
</span>
</div>
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>
<div class="wrap-input100 validate-input" data-validate="Password is required">
<input class="input100" type="text" name="pass" placeholder="Name">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-address-card" aria-hidden="true"></i>
</span>
</div>
<div class="wrap-input100 validate-input" data-validate="Social Media Link is required">
<input class="input100" type="text" name="pass" placeholder="Social Media Link">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-external-link-square" aria-hidden="true"></i>
</span>
</div>
<div class="wrap-input100 validate-input" data-validate="Conjecture Name is required">
<input class="input100" type="text" name="pass" placeholder="Conjecture Name">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-address-card" aria-hidden="true"></i>
</span>
</div>
<div class="wrap-input100 validate-input" data-validate="Conjecture Link is required">
<input class="input100" type="text" name="pass" placeholder="Conjecture Link">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-external-link-square" aria-hidden="true"></i>
</span>
</div>
<div class="wrap-input100 validate-input" data-validate="Description is required">
<input class="input100" type="text" name="pass" placeholder="Description">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-file-text-o" aria-hidden="true"></i>
</span>
</div>
<div class="wrap-input100 validate-input" data-validate="Reward is Optional">
<input class="input100" type="text" name="pass" placeholder="Reward">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-inr" aria-hidden="true"></i>
</span>
</div>

<a class="txt2" >Please upload evidences*.</a>
<button class="upfile100-form-btn">Upload a file</button>
<div class="container-login100-form-btn">

<div class="container-login100-form-btn">
<button class="login100-form-btn">
SUBMIT
</button>
</div>
</div>

<div class="text-center p-t-136">
<button id="myBtn">Help<i class="fa fa-long-arrow-right m-l-5" aria-hidden="true"></i></button>
</div>
<div id="myModal" class="modal">
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
<!-- Modal content -->
<div class="modal-content">
<span class="close">&times;</span>
<p><b>Why RedBully?:</b><br />

*-Redbully does not ask you to fill documents or wait for months to file a complaint instead our app makes sure that the complaint are uploaded and posted instantaneously to the blockchain network. Hence anyone using our app can take action against the person.<br />
*-Once a complaint is filed to the blockchain network, it cannot be taken down by anyone, thereby politics or corruption cannot interfere in this matter.<br />
*-The person who is complaining shall not worry about the jurisdictional issues, nor the person who plans on taking action.<br />
*-The network would also solve problems that transcends jurisdictional territories faster.<br />

</p>
</div>

</div>

<script>
// Get the modal
var modal = document.getElementById("myModal");

// Get the button that opens the modal
var btn = document.getElementById("myBtn");

// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];

// When the user clicks the button, open the modal
btn.onclick = function() {
modal.style.display = "block";
}

// When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal.style.display = "none";
}

// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
</form>
</div>
</div>
</div>

<script type="text/javascript" async="" src="./Login V1_files/analytics.js.download"></script>
<script src="./Login V1_files/jquery-3.2.1.min.js.download" type="text/javascript"></script>
<script src="./Login V1_files/popper.js.download" type="text/javascript"></script>
<script src="./Login V1_files/bootstrap.min.js.download" type="text/javascript"></script>
<script src="./Login V1_files/select2.min.js.download" type="text/javascript"></script>
<script src="./Login V1_files/tilt.jquery.min.js.download" type="text/javascript"></script>
<script type="text/javascript">
$('.js-tilt').tilt({
scale: 1.1
})
</script>

<script async="" src="./Login V1_files/js" type="text/javascript"></script>
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-23581568-13');
</script>

<script src="./Login V1_files/main.js.download" type="text/javascript"></script>


</body></html>