Chapter 2. Your first Electron application
Listing 2.1. Adding a start script to package.json
Listing 2.2. Adding a basic main process: ./app/main.js
Listing 2.3. Requiring the BrowserWindow module: ./app/main.js
Listing 2.4. Creating a BrowserWindow: ./app/main.js
Listing 2.5. Creating index.html: ./app/index.html
Listing 2.6. Loading an HTML document into the main window: ./app/main.js
Listing 2.7. Adding a button to an HTML document: ./app/index.html
Listing 2.8. Adding script with Node.js global in the browser context: ./app/index.html
Listing 2.9. Loading JavaScript from renderer.js: ./app/index.html
Listing 2.10. Adding basic styles: ./app/style.css
Listing 2.11. Referencing a stylesheet in the HTML document: ./app/index.html
Listing 2.12. Adding the markup for the UI of the application: ./app/index.html
Listing 2.13. Caching DOM element selectors: ./app/renderer.js
Listing 2.14. Adding an event listener to enable the submit button: ./app/renderer.js
Listing 2.15. Adding a helper function to clear out form input: ./app/renderer.js
Listing 2.16. Adding an event listener to the submit button: ./app/renderer.js
Listing 2.17. Using the Fetch API to request a remote resource: ./app/renderer.js
Listing 2.18. Instantiating a DOMParser: ./app/renderer.js
Listing 2.19. Adding functions for parsing response and finding the title: ./app/renderer.js
Listing 2.20. Parsing response and finding the title when fetching a page: ./app/renderer.js