|
42 | 42 | "from monsterui.foundations import *\n",
|
43 | 43 | "from fasthtml.common import Div, P, Span, FT\n",
|
44 | 44 | "from enum import Enum, auto\n",
|
45 |
| - "from fasthtml.components import Uk_select,Uk_input_tag,Uk_icon\n", |
| 45 | + "from fasthtml.components import Uk_select,Uk_input_tag,Uk_icon,Uk_input_range\n", |
46 | 46 | "from functools import partial\n",
|
47 | 47 | "from itertools import zip_longest\n",
|
48 | 48 | "from typing import Union, Tuple, Optional, Sequence\n",
|
|
53 | 53 | "from mistletoe.span_token import Image\n",
|
54 | 54 | "import mistletoe\n",
|
55 | 55 | "from lxml import html, etree\n",
|
56 |
| - "from fasthtml.components import Uk_input_range\n", |
57 | 56 | "import fasthtml.components as fh_comp"
|
58 | 57 | ]
|
59 | 58 | },
|
|
452 | 451 | {
|
453 | 452 | "data": {
|
454 | 453 | "text/html": [
|
455 |
| - "<iframe src=\"http://localhost:8000/_8kczAnbcSHeP9QArVz2g1Q\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n", |
| 454 | + "<iframe src=\"http://localhost:8000/_xSRcgLmLQxGpk0OYGA36aA\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n", |
456 | 455 | " let frame = this;\n",
|
457 | 456 | " window.addEventListener('message', function(e) {\n",
|
458 | 457 | " if (e.source !== frame.contentWindow) return; // Only proceed if the message is from this iframe\n",
|
|
1176 | 1175 | {
|
1177 | 1176 | "data": {
|
1178 | 1177 | "text/html": [
|
1179 |
| - "<a href=\"http://localhost:8000/_RPiRGpnWQoO6cbGUPyRUXw\" target=\"_blank\">Open in new tab</a>" |
| 1178 | + "<a href=\"http://localhost:8000/_Krhk4_fOTLyDaD4Balqtjg\" target=\"_blank\">Open in new tab</a>" |
1180 | 1179 | ],
|
1181 | 1180 | "text/plain": [
|
1182 | 1181 | "<IPython.core.display.HTML object>"
|
|
1188 | 1187 | {
|
1189 | 1188 | "data": {
|
1190 | 1189 | "text/html": [
|
1191 |
| - "<iframe src=\"http://localhost:8000/_RPiRGpnWQoO6cbGUPyRUXw\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n", |
| 1190 | + "<iframe src=\"http://localhost:8000/_Krhk4_fOTLyDaD4Balqtjg\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n", |
1192 | 1191 | " let frame = this;\n",
|
1193 | 1192 | " window.addEventListener('message', function(e) {\n",
|
1194 | 1193 | " if (e.source !== frame.contentWindow) return; // Only proceed if the message is from this iframe\n",
|
|
1609 | 1608 | {
|
1610 | 1609 | "data": {
|
1611 | 1610 | "text/html": [
|
1612 |
| - "<iframe src=\"http://localhost:8000/_OR1TtyOZRUmm4EezKWUnyQ\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n", |
| 1611 | + "<iframe src=\"http://localhost:8000/_6ZHyICVfQMSyaIKR3TZDIA\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n", |
1613 | 1612 | " let frame = this;\n",
|
1614 | 1613 | " window.addEventListener('message', function(e) {\n",
|
1615 | 1614 | " if (e.source !== frame.contentWindow) return; // Only proceed if the message is from this iframe\n",
|
|
1856 | 1855 | "metadata": {},
|
1857 | 1856 | "outputs": [],
|
1858 | 1857 | "source": [
|
1859 |
| - "test_modal = Modal(Caption(\"This is a test modal\"), header=Span(ModalTitle(\"Modal Heading\"), ModalCloseButton(htmx=True)), footer=Center(\"Modal Footer\"), id=\"mymodal\", open=True)" |
| 1858 | + "test_modal = Modal(Caption(\"This is a test modal\"), header=Span(ModalTitle(\"Modal Heading\"), ModalCloseButton(htmx=True)), footer=P(\"Modal Footer\"), id=\"mymodal\", open=True)" |
1860 | 1859 | ]
|
1861 | 1860 | },
|
1862 | 1861 | {
|
|
1879 | 1878 | {
|
1880 | 1879 | "data": {
|
1881 | 1880 | "text/html": [
|
1882 |
| - "<iframe src=\"http://localhost:8008/_-q-N4moZSPShOg47WTtRxg\" style=\"width: 100%; height: 500px; border: none;\" onload=\"\" allow=\"accelerometer; autoplay; camera; clipboard-read; clipboard-write; display-capture; encrypted-media; fullscreen; gamepad; geolocation; gyroscope; hid; identity-credentials-get; idle-detection; magnetometer; microphone; midi; payment; picture-in-picture; publickey-credentials-get; screen-wake-lock; serial; usb; web-share; xr-spatial-tracking\"></iframe> " |
| 1881 | + "<iframe src=\"http://localhost:8000/_AP-9kDhSR4qGutzaR6GHxg\" style=\"width: 100%; height: 500px; border: none;\" onload=\"\" allow=\"accelerometer; autoplay; camera; clipboard-read; clipboard-write; display-capture; encrypted-media; fullscreen; gamepad; geolocation; gyroscope; hid; identity-credentials-get; idle-detection; magnetometer; microphone; midi; payment; picture-in-picture; publickey-credentials-get; screen-wake-lock; serial; usb; web-share; xr-spatial-tracking\"></iframe> " |
1883 | 1882 | ],
|
1884 | 1883 | "text/plain": [
|
1885 | 1884 | "<IPython.core.display.HTML object>"
|
|
2982 | 2981 | {
|
2983 | 2982 | "data": {
|
2984 | 2983 | "text/html": [
|
2985 |
| - "<iframe src=\"http://localhost:8008/_MYrJVodpR5yhlSq_Hdvxhw\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n", |
| 2984 | + "<iframe src=\"http://localhost:8008/_AJHBq27jRxi0-aaQPUiMNQ\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n", |
2986 | 2985 | " let frame = this;\n",
|
2987 | 2986 | " window.addEventListener('message', function(e) {\n",
|
2988 | 2987 | " if (e.source !== frame.contentWindow) return; // Only proceed if the message is from this iframe\n",
|
|
3282 | 3281 | {
|
3283 | 3282 | "data": {
|
3284 | 3283 | "text/html": [
|
3285 |
| - "<iframe src=\"http://localhost:8008/_QKWPjVcdTwOqI5Co3z11iQ\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n", |
| 3284 | + "<iframe src=\"http://localhost:8008/_dGhN_-iERHu6pAvNtJnWKw\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n", |
3286 | 3285 | " let frame = this;\n",
|
3287 | 3286 | " window.addEventListener('message', function(e) {\n",
|
3288 | 3287 | " if (e.source !== frame.contentWindow) return; // Only proceed if the message is from this iframe\n",
|
|
3354 | 3353 | {
|
3355 | 3354 | "data": {
|
3356 | 3355 | "text/html": [
|
3357 |
| - "<iframe src=\"http://localhost:8008/_TOBgWBN4RwSajDt7xCtMpA\" style=\"width: 100%; height: 350px; border: none;\" onload=\"\" allow=\"accelerometer; autoplay; camera; clipboard-read; clipboard-write; display-capture; encrypted-media; fullscreen; gamepad; geolocation; gyroscope; hid; identity-credentials-get; idle-detection; magnetometer; microphone; midi; payment; picture-in-picture; publickey-credentials-get; screen-wake-lock; serial; usb; web-share; xr-spatial-tracking\"></iframe> " |
| 3356 | + "<iframe src=\"http://localhost:8008/_2QVlYN4PQJCLSIHQACpH2A\" style=\"width: 100%; height: 350px; border: none;\" onload=\"\" allow=\"accelerometer; autoplay; camera; clipboard-read; clipboard-write; display-capture; encrypted-media; fullscreen; gamepad; geolocation; gyroscope; hid; identity-credentials-get; idle-detection; magnetometer; microphone; midi; payment; picture-in-picture; publickey-credentials-get; screen-wake-lock; serial; usb; web-share; xr-spatial-tracking\"></iframe> " |
3358 | 3357 | ],
|
3359 | 3358 | "text/plain": [
|
3360 | 3359 | "<IPython.core.display.HTML object>"
|
|
3547 | 3546 | "# height=400\n",
|
3548 | 3547 | "# )"
|
3549 | 3548 | ]
|
| 3549 | + }, |
| 3550 | + { |
| 3551 | + "cell_type": "markdown", |
| 3552 | + "id": "ad606199", |
| 3553 | + "metadata": {}, |
| 3554 | + "source": [ |
| 3555 | + "## export -" |
| 3556 | + ] |
| 3557 | + }, |
| 3558 | + { |
| 3559 | + "cell_type": "code", |
| 3560 | + "execution_count": null, |
| 3561 | + "id": "e05a5ad6", |
| 3562 | + "metadata": {}, |
| 3563 | + "outputs": [], |
| 3564 | + "source": [ |
| 3565 | + "#|hide\n", |
| 3566 | + "from nbdev import nbdev_export\n", |
| 3567 | + "nbdev_export()" |
| 3568 | + ] |
| 3569 | + }, |
| 3570 | + { |
| 3571 | + "cell_type": "code", |
| 3572 | + "execution_count": null, |
| 3573 | + "id": "de35d138", |
| 3574 | + "metadata": {}, |
| 3575 | + "outputs": [], |
| 3576 | + "source": [] |
3550 | 3577 | }
|
3551 | 3578 | ],
|
3552 | 3579 | "metadata": {
|
|
0 commit comments