You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cpgc/html/index.html

61 lines
1.4 KiB
HTML

5 years ago
<html>
<head>
<title>CPGC</title>
5 years ago
<link href="https://fonts.googleapis.com/css?family=Montserrat:800i&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/main.css">
5 years ago
</head>
<body>
5 years ago
<header>
<h1>CPGC</h1>
</header>
<div class="container">
<div class="left">
<div class="user_name">
User Name:
<span id="user_name"></span>
</div>
<div class="user_email">
User Email:
<span id="user_email"></span>
</div>
<div class="remote">
Remote URL: <br>
<span id="remote"></span>
</div>
</div>
<div class="right">
Git Status: <br>
<textarea name="status" id="status" cols="30" rows="10"></textarea>
Git Log: <br>
<textarea name="log" id="log" cols="30" rows="10"></textarea>
</div>
</div>
5 years ago
</body>
<script>
const electron = require('electron');
const ipc = electron.ipcRenderer;
ipc.on('send_username', function(event, args) {
5 years ago
document.getElementById("user_name").innerHTML = args;
});
ipc.on('send_useremail', function(event, args) {
document.getElementById("user_email").innerHTML = args;
});
ipc.on('send_remote', function(event, args) {
document.getElementById("remote").innerHTML = args;
});
ipc.on('send_status', function(event, args) {
document.getElementById("status").innerHTML = args;
});
ipc.on('send_log', function(event, args) {
document.getElementById("log").innerHTML = args;
});
5 years ago
</script>
</html>