Skip to content

Instantly share code, notes, and snippets.

@dikyarga
Created November 19, 2016 14:30
Show Gist options
  • Save dikyarga/6369a88bc08cfcddb2bd44791980c918 to your computer and use it in GitHub Desktop.
Save dikyarga/6369a88bc08cfcddb2bd44791980c918 to your computer and use it in GitHub Desktop.
File HTML yang dipanggil dari main.js
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePolitan</title>
<style media="screen">
</style>
</head>
<body>
<!-- Webview adalah method yang disediakan Electron -->
<!-- Keterangan : autoresize="on" > untuk mengatur ulang ukuran tinggi dan lebar <webview> ketika jendela diubah ukuranya -->
<!-- width dan height seperti pengguna style pada CSS biasa -->
<!-- src="http://www.codepolita.com" > sebagai sumber yang akan dimuat oleh webview -->
<webview autoresize="on" style="width: 100%; height: 95vh;" src="http://www.codepolitan.com"></webview>
</body>
<script>
// You can also require other files to run in this process
// Kita juga dapat menambahkan file JavaScript lainya untuk dijalankan pada proses ini
require('./renderer.js')
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment