|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <title>Lab. Automatas</title> |
| 7 | + <script src="https://cdn.tailwindcss.com"></script> |
| 8 | + <link rel="stylesheet" href="src/styles.css" /> |
| 9 | + <link |
| 10 | + rel="stylesheet" |
| 11 | + href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" |
| 12 | + integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" |
| 13 | + crossorigin="anonymous" |
| 14 | + referrerpolicy="no-referrer" |
| 15 | + /> |
| 16 | + |
| 17 | + <link |
| 18 | + rel="stylesheet" |
| 19 | + href="https://cdnjs.cloudflare.com/ajax/libs/jointjs/3.7.5/joint.min.css" |
| 20 | + integrity="sha512-GyvR5jC0OnZNT+eb5PR1OaRq4uSlkE+SrHK/T3DfKyUboA191W3aUiuCrErwtZuVdPMVu/Me595KD+rxXSe19w==" |
| 21 | + crossorigin="anonymous" |
| 22 | + referrerpolicy="no-referrer" |
| 23 | + /> |
| 24 | + <script |
| 25 | + src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" |
| 26 | + integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" |
| 27 | + crossorigin="anonymous" |
| 28 | + referrerpolicy="no-referrer" |
| 29 | + ></script> |
| 30 | + <script |
| 31 | + src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js" |
| 32 | + integrity="sha512-WFN04846sdKMIP5LKNphMaWzU7YpMyCU245etK3g/2ARYbPK9Ub18eG+ljU96qKRCWh+quCY7yefSmlkQw1ANQ==" |
| 33 | + crossorigin="anonymous" |
| 34 | + referrerpolicy="no-referrer" |
| 35 | + ></script> |
| 36 | + <script |
| 37 | + src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.5.0/backbone-min.js" |
| 38 | + integrity="sha512-NAJF/IIdtSJ5JxYalGv+g0xbnbHJTa0W24Gy21nImt+sBkjRWTOhoo+JAQvCw9A9WzCJmq/JVuijggiOkrdW1Q==" |
| 39 | + crossorigin="anonymous" |
| 40 | + referrerpolicy="no-referrer" |
| 41 | + ></script> |
| 42 | + <script |
| 43 | + src="https://cdnjs.cloudflare.com/ajax/libs/jointjs/3.7.5/joint.min.js" |
| 44 | + integrity="sha512-pSAAtQw8Sz/OO4m9e2rLqIUe8pZVng7giqZgoBnFTkl3ovJJ6WHHxNgIY+q607xg3CHhWdZKih7oVofY5ENdxQ==" |
| 45 | + crossorigin="anonymous" |
| 46 | + referrerpolicy="no-referrer" |
| 47 | + ></script> |
| 48 | + </head> |
| 49 | + <body class="min-h-[100vh]"> |
| 50 | + <div class="border-b-[2px]"> |
| 51 | + <div class="bg-gray-100 px-8 py-2 flex justify-between items-center"> |
| 52 | + <div class="flex items-center gap-2"> |
| 53 | + <div class="mr-6 relative"> |
| 54 | + <h1 class="select-none">Automata Simulation</h1> |
| 55 | + <span |
| 56 | + class="bg-yellow-300 px-1 rounded text-[10px] absolute right-[-5px] top-[-5px]" |
| 57 | + >BETA</span |
| 58 | + > |
| 59 | + </div> |
| 60 | + |
| 61 | + <div class="pr-2"> |
| 62 | + <i class="fa-solid fa-screwdriver-wrench"></i> |
| 63 | + </div> |
| 64 | + |
| 65 | + <div |
| 66 | + class="element bg-white cursor-pointer select-none rounded-full border-2 w-8 h-8 text-center leading-6 text-xs" |
| 67 | + draggable="true" |
| 68 | + title="State" |
| 69 | + > |
| 70 | + q |
| 71 | + </div> |
| 72 | + |
| 73 | + <div |
| 74 | + class="element bg-white cursor-pointer select-none rounded-full border-2 w-8 h-8 text-center leading-6 text-xs" |
| 75 | + draggable="true" |
| 76 | + title="Final State" |
| 77 | + > |
| 78 | + qf |
| 79 | + </div> |
| 80 | + </div> |
| 81 | + |
| 82 | + <div class="flex gap-4"> |
| 83 | + <a href="https://github.com/byandrev" target="_blank" |
| 84 | + ><i class="fa-brands fa-github"></i |
| 85 | + ></a> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + </div> |
| 89 | + |
| 90 | + <div class="split"> |
| 91 | + <div id="paper" class="overflow-hidden"></div> |
| 92 | + <div id="split-1" class="bg-gray-100 p-4 border-b-2"> |
| 93 | + <div class="flex items-center gap-2"> |
| 94 | + <input |
| 95 | + type="text" |
| 96 | + id="input-string" |
| 97 | + placeholder="String" |
| 98 | + class="w-full px-1 h-8 text-xs rounded border-2 border-slate-200 bg-slate-100" |
| 99 | + /> |
| 100 | + |
| 101 | + <button |
| 102 | + id="run" |
| 103 | + class="rounded px-4 h-8 text-xs bg-blue-500 text-white hover:bg-blue-600 active:bg-blue-500" |
| 104 | + > |
| 105 | + Run |
| 106 | + </button> |
| 107 | + </div> |
| 108 | + |
| 109 | + <div class="mt-4"> |
| 110 | + <p><span id="out"></span></p> |
| 111 | + <p class="mt-2 text-xl" id="string-out"></p> |
| 112 | + </div> |
| 113 | + </div> |
| 114 | + </div> |
| 115 | + |
| 116 | + <div class="container mx-auto my-10"> |
| 117 | + <h2 class="text-xl">How work?</h2> |
| 118 | + </div> |
| 119 | + |
| 120 | + <div |
| 121 | + class="modal micromodal-slide" |
| 122 | + id="modal-label-name" |
| 123 | + aria-hidden="true" |
| 124 | + > |
| 125 | + <div class="modal__overlay" tabindex="-1" data-micromodal-close> |
| 126 | + <div |
| 127 | + class="modal__container" |
| 128 | + role="dialog" |
| 129 | + aria-modal="true" |
| 130 | + aria-labelledby="modal-1-title" |
| 131 | + > |
| 132 | + <header class="modal__header"> |
| 133 | + <h2 class="modal__title" id="modal-1-title">Transition</h2> |
| 134 | + <button |
| 135 | + class="modal__close" |
| 136 | + aria-label="Close modal" |
| 137 | + data-micromodal-close |
| 138 | + ></button> |
| 139 | + </header> |
| 140 | + <main class="modal__content" id="modal-1-content"> |
| 141 | + <input |
| 142 | + type="text" |
| 143 | + id="input-label-name" |
| 144 | + class="p-2 rounded border-2" |
| 145 | + /> |
| 146 | + </main> |
| 147 | + <footer class="modal__footer"> |
| 148 | + <button id="btn-label-name" class="modal__btn modal__btn-primary"> |
| 149 | + Save |
| 150 | + </button> |
| 151 | + <button |
| 152 | + class="modal__btn" |
| 153 | + data-micromodal-close |
| 154 | + aria-label="Close this dialog window" |
| 155 | + > |
| 156 | + Close |
| 157 | + </button> |
| 158 | + </footer> |
| 159 | + </div> |
| 160 | + </div> |
| 161 | + </div> |
| 162 | + |
| 163 | + <script src="src/main.js" type="module"></script> |
| 164 | + </body> |
| 165 | +</html> |
0 commit comments