1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1"/>
- <meta charset="UTF-8">
- <meta name="theme-color" content="#4b75ff">
- <link rel="stylesheet" href="../script/semantic/semantic.min.css">
- <script src="../script/jquery.min.js"></script>
- <script src="../script/ao_module.js"></script>
- <script src="../script/semantic/semantic.min.js"></script>
- <title>PyServer</title>
- <style>
- body{
- background-color:white;
- }
- </style>
- </head>
- <body>
- <br><br>
- <div class="ui container">
- <h2>Hello World!</h2>
- <p>This is a Python written web server running inside ArozOS</p>
- <p>Your Desktop folder path on the disk is: <span id="desktopPath">Loading...</span></p>
- <p>For CSS Examples, see <a href="https://semantic-ui.com/">https://semantic-ui.com/</a></p>
- <button class="ui blue button" onclick="openDesktop()"><i class="folder open icon"></i> Open Desktop</button>
- </div>
- <script>
- //See arozos/web/script/ao_module.js for more floatWindow APIs
- ao_module_setWindowTitle("PyServer - Example");
-
- function openDesktop(){
- ao_module_openPath("user:/Desktop/");
- }
-
- //This will request the /api endpoint from the Python Server
- setTimeout(function(){
- $.get("./api", function(data){
- $("#desktopPath").text(data);
- })
- }, 1000);
- </script>
- </body>
- </html>
|