celldega 0.0.0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- celldega/__init__.py +16 -0
- celldega/static/widget.css +1 -0
- celldega/static/widget.js +795 -0
- celldega-0.0.0.dist-info/METADATA +38 -0
- celldega-0.0.0.dist-info/RECORD +6 -0
- celldega-0.0.0.dist-info/WHEEL +5 -0
celldega/__init__.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import importlib.metadata
|
|
2
|
+
import pathlib
|
|
3
|
+
|
|
4
|
+
import anywidget
|
|
5
|
+
import traitlets
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
__version__ = importlib.metadata.version("celldega")
|
|
9
|
+
except importlib.metadata.PackageNotFoundError:
|
|
10
|
+
__version__ = "unknown"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Counter(anywidget.AnyWidget):
|
|
14
|
+
_esm = pathlib.Path(__file__).parent / "static" / "widget.js"
|
|
15
|
+
_css = pathlib.Path(__file__).parent / "static" / "widget.css"
|
|
16
|
+
value = traitlets.Int(0).tag(sync=True)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.celldega-counter-button{background:linear-gradient(300deg,#93f 33.26%,#f66,#faca30,#00cd99,#0cf 86.29%);border-radius:10px;border:0;color:#fff;cursor:pointer;font-family:Roboto,sans-serif;font-size:2em;margin:10px;padding:10px 20px;transition:transform .25s ease-in-out}.celldega-counter-button:hover{transform:scale(1.05)}
|