aboutsummaryrefslogtreecommitdiffstats
path: root/root/blog/aspect_ratios/interactive/_base: text$moonscript -> table.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-10-10 18:58:16 +0000
committers-ol <s-ol@users.noreply.github.com>2019-10-10 18:58:16 +0000
commit7b61518128ac3c666406f76756994a70adede4f2 (patch)
tree162e70f5ba315364fd82fbc6490d44d091f0dfa7 /root/blog/aspect_ratios/interactive/_base: text$moonscript -> table.moon
parentmove static files into root/ (diff)
downloadmmm-7b61518128ac3c666406f76756994a70adede4f2.tar.gz
mmm-7b61518128ac3c666406f76756994a70adede4f2.zip
fix mmm-embed
Diffstat (limited to 'root/blog/aspect_ratios/interactive/_base: text$moonscript -> table.moon')
-rw-r--r--root/blog/aspect_ratios/interactive/_base: text$moonscript -> table.moon26
1 files changed, 24 insertions, 2 deletions
diff --git a/root/blog/aspect_ratios/interactive/_base: text$moonscript -> table.moon b/root/blog/aspect_ratios/interactive/_base: text$moonscript -> table.moon
index d348f4b..f47e03f 100644
--- a/root/blog/aspect_ratios/interactive/_base: text$moonscript -> table.moon
+++ b/root/blog/aspect_ratios/interactive/_base: text$moonscript -> table.moon
@@ -1,7 +1,29 @@
-assert MODE == 'CLIENT', '[nossr]'
+import div from require 'mmm.dom'
+
+if MODE ~= 'CLIENT'
+ class Dummy
+ render: =>
+ div 'Interactive Example not available with Server-Side rendering', style:
+ position: 'relative'
+ resize: 'horizontal'
+ overflow: 'hidden'
+
+ width: '576px'
+ height: '324px'
+ 'min-width': '324px'
+ 'max-width': '742px'
+
+ margin: 'auto'
+ padding: '10px'
+ boxSizing: 'border-box'
+ background: 'var(--gray-bright)'
+
+ return {
+ UIDemo: Dummy
+ Example: Dummy
+ }
import CanvasApp from require 'mmm.canvasapp'
-import div from require 'mmm.dom'
class UIDemo extends CanvasApp
width: nil