diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-02-15 15:04:44 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-02-15 15:04:44 +0000 |
| commit | 52c9149663fd77925e3dd9a4e9d164f6132dd418 (patch) | |
| tree | 9458a319996ba4e188bc4c72d302e2b21dd4df22 /root/research | |
| parent | realities default to clientside (diff) | |
| download | mmm-52c9149663fd77925e3dd9a4e9d164f6132dd418.tar.gz mmm-52c9149663fd77925e3dd9a4e9d164f6132dd418.zip | |
link_interactive for hybrid pages
Diffstat (limited to 'root/research')
| -rw-r--r-- | root/research/realities/_web_view: type | 1 | ||||
| -rw-r--r-- | root/research/realities/text$moonscript -> mmm$component.moon | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/root/research/realities/_web_view: type b/root/research/realities/_web_view: type deleted file mode 100644 index bde5644..0000000 --- a/root/research/realities/_web_view: type +++ /dev/null @@ -1 +0,0 @@ -text/html+interactive diff --git a/root/research/realities/text$moonscript -> mmm$component.moon b/root/research/realities/text$moonscript -> mmm$component.moon index a7dc365..f6947db 100644 --- a/root/research/realities/text$moonscript -> mmm$component.moon +++ b/root/research/realities/text$moonscript -> mmm$component.moon @@ -1,5 +1,6 @@ import elements from require 'mmm.component' import h1, h2, p, a, i, div, ol, li, br, hr, span, button, section, article from elements +import interactive_link from (require 'mmm.mmmfs.util') elements _content = div! append = _content\append @@ -11,7 +12,9 @@ if MODE == 'SERVER' display: 'inline-block', width: '150px', height: '80px', - 'line-height': '80px', + padding: '12px' + 'line-height': '20px', + 'box-sizing': 'border-box' color: '#fff', background: '#666', } @@ -23,7 +26,7 @@ if MODE == 'SERVER' render: => rplc = with div id: @id, :style - \append '(diagram goes here)' + \append interactive_link 'click for interactive version' -- \append "<script type=\"text/lua\"> -- local rplc = js.global.document:getElementById('#{@id}'); -- local fn = #{compile @func} |
