12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>CSS Demo</title>
- <!-- You just include the css file as usual -->
- <link rel="stylesheet" href="/css/XP.css">
- <script src="/js/jquery-3.7.1.min.js"></script>
- </head>
- <body>
- <div class="window" style="margin: 32px; width: 250px">
- <div class="title-bar">
- <div class="title-bar-text">
- My First Program
- </div>
- <div class="title-bar-controls">
- <button aria-label="Minimize"></button>
- <button aria-label="Maximize"></button>
- <button aria-label="Close"></button>
- </div>
- </div>
- <div class="window-body">
- <p id="text">Hello, world!</p>
- <section class="field-row" style="justify-content: flex-end">
- <button id="okbtn">OK</button>
- <button id="cancelbtn">Cancel</button>
- </section>
- </div>
- </div>
- <script>
- $(document).ready(function(){
- $("#okbtn").click(function(){
- $("#text").text("You clicked OK");
- });
- $("#cancelbtn").click(function(){
- $("#text").text("You clicked Cancel");
- });
- });
- </script>
- </body>
- </html>
|