minshell.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!doctype html>
  2. <html lang="en-us">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>CV</title>
  7. <meta name="title" content="CV">
  8. <meta name="description" content="A template for raylib games">
  9. <meta name="keywords" content="programming, C, C++, library, CV, rendering">
  10. <meta name="viewport" content="width=1500, user-scalable=yes">
  11. <script src=headersetter.js></script>
  12. <!-- Open Graph metatags for sharing -->
  13. <meta property="og:title" content="CV">
  14. <meta property="og:image:type" content="image/png">
  15. <meta property="og:image" content="https://manuel5975p.github.io/cvlogo.png">
  16. <meta property="og:site_name" content="manuel5975p.github.io">
  17. <meta property="og:url" content="https://manuel5975p.github.io">
  18. <meta property="og:description" content="CV">
  19. <!-- Twitter metatags for sharing
  20. <meta name="twitter:card" content="summary">
  21. <meta name="twitter:site" content="@raysan5">
  22. <meta name="twitter:title" content="raylib web game">
  23. <meta name="twitter:image" content="https://www.raylib.com/common/raylib_logo.png">
  24. <meta name="twitter:url" content="https://www.raylib.com/games.html">
  25. <meta name="twitter:description" content="New raylib web game, developed using raylib videogames library">-->
  26. <!-- Favicon -->
  27. <link rel="shortcut icon" href="https://manuel5975p.github.io/favicon.ico">
  28. <!-- body { margin: 0px; } -->
  29. <style>
  30. html, body, div, canvas {
  31. margin: 0;
  32. padding: 0;
  33. }
  34. canvas.emscripten { border: 0px none; background-color: black; }
  35. </style>
  36. <script type='text/javascript' src="https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js/dist/FileSaver.min.js"> </script>
  37. <script type='text/javascript'>
  38. function saveFileFromMEMFSToDisk(memoryFSname, localFSname) // This can be called by C/C++ code
  39. {
  40. var isSafari = false; // Not supported, navigator.userAgent access is being restricted
  41. //var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
  42. var data = FS.readFile(memoryFSname);
  43. var blob;
  44. if (isSafari) blob = new Blob([data.buffer], { type: "application/octet-stream" });
  45. else blob = new Blob([data.buffer], { type: "application/octet-binary" });
  46. // NOTE: SaveAsDialog is a browser setting. For example, in Google Chrome,
  47. // in Settings/Advanced/Downloads section you have a setting:
  48. // 'Ask where to save each file before downloading' - which you can set true/false.
  49. // If you enable this setting it would always ask you and bring the SaveAsDialog
  50. saveAs(blob, localFSname);
  51. }
  52. </script>
  53. </head>
  54. <body style="background-color:black;">
  55. <canvas class=emscripten id=canvas oncontextmenu=event.preventDefault() tabindex=-1 crossorigin></canvas>
  56. <p id="output" />
  57. <script>
  58. var Module = {
  59. print: (function() {
  60. var element = document.getElementById('output');
  61. if (element) element.value = ''; // clear browser cache
  62. return function(text) {
  63. if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
  64. console.log(text);
  65. if (element) {
  66. element.value += text + "\n";
  67. element.scrollTop = element.scrollHeight; // focus on bottom
  68. }
  69. };
  70. })(),
  71. canvas: (function() {
  72. var canvas = document.getElementById('canvas');
  73. return canvas;
  74. })()
  75. };
  76. </script>
  77. {{{ SCRIPT }}}
  78. </body>
  79. </html>