diff --git a/client/public/New folder/displayui.html b/client/public/New folder/displayui.html new file mode 100644 index 0000000..7b79297 --- /dev/null +++ b/client/public/New folder/displayui.html @@ -0,0 +1,40 @@ + + + + + + + + + + + Ticket List + + + +
+

Your Tickets

+ + +
+
+ + + + + + + + + + + +
ArtistCityDatePriceActionsStatus
+
+ Back to home + + + + + + diff --git a/client/public/client.js b/client/public/client.js new file mode 100644 index 0000000..8f73adf --- /dev/null +++ b/client/public/client.js @@ -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!'); + } +}); diff --git a/client/public/index.html b/client/public/index.html index 4bfce95..c208974 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -1,40 +1,167 @@ - - - - - - - + + +Complaint System + + + + + + + + + + + + +
+
+
+
+IMG +
+
+ +Complaint Form +
+ + + + + +
- - React App - - -
+
+
+ + + + + + + + + + + + + + + +