From e130903e0165c3fa019a8121dee29c825b2afdfe Mon Sep 17 00:00:00 2001 From: titi_2115 <73474137+jasiukiewicztymon@users.noreply.github.com> Date: Thu, 14 Jul 2022 08:44:34 +0200 Subject: [PATCH] Update nodelay.html --- experimental/nodelay.html | 39 +++++---------------------------------- 1 file changed, 5 insertions(+), 34 deletions(-) diff --git a/experimental/nodelay.html b/experimental/nodelay.html index d5ec89a..251a6e2 100644 --- a/experimental/nodelay.html +++ b/experimental/nodelay.html @@ -73,39 +73,10 @@ // mutations (async () => { - let res = JSON.parse(`{ - "values": { - "spacing": { "0": "0px", "px": "1px", "0.5": "0.125rem" } - }, - "screens": { - "sm": { "min" : null, "max" : "640px" }, - "md": { "min" : null, "max" : "768px" }, - "lg": { "min" : null, "max" : "1024px" }, - "xl": { "min" : null, "max" : "1280px" }, - "2xl": { "min" : null, "max" : "1536px" } - }, - "selectors": { - "active": { "selector": ":active" }, - "act": { "selector": ":active" }, - "checked": { "selector": ":checked" }, - "ckd": { "selector": ":checked" }, - "hover": { "selector": ":hover" }, - "hvr": { "selector": ":hover" } - }, - "proprieties": { - "valueOnly": { - "absolute": { "css": "position:absolute;" }, - "relative": { "css": "position:relative;" }, - "static": { "css": "position:static;" }, - "fixed": { "css": "position:fixed;" }, - "sticky": { "css": "position:sticky;" } - }, - "valueKey": { - "padding": { "propriety": "padding", "values": "spacing" }, - "p": { "propriety": "padding", "values": "spacing" } - } - } - }`) + var styleHttpReq = new XMLHttpRequest(); + styleHttpReq.open("GET", document.querySelector('[lightwindsrc]').getAttribute('lightwindsrc'), false); + styleHttpReq.send(null); + let res = JSON.parse(styleHttpReq.responseText) new MutationObserver(function(mutations) { mutations.forEach(mutation => { @@ -141,7 +112,7 @@ -
+
jj