From f13618fef1b7361a18d36763410b2b14a43ac907 Mon Sep 17 00:00:00 2001 From: mappu Date: Wed, 17 May 2023 18:09:15 +1200 Subject: [PATCH] sdk: inline the widget html definition --- static/sdk.js | 166 ++++++++++++++++++++++++++++++++++++++++++++- static/widget.html | 161 ------------------------------------------- 2 files changed, 165 insertions(+), 162 deletions(-) delete mode 100644 static/widget.html diff --git a/static/sdk.js b/static/sdk.js index e94f77f..9dd5497 100644 --- a/static/sdk.js +++ b/static/sdk.js @@ -57,6 +57,170 @@ }); }; + var widgetHtml = ` + +
+ +
+ + + +
+ +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+
+ +
+
+ +
+ +
+
+ + +
+ +
+ + +
+ +
+
+
+ +
+ +
+
+
+
+`; + var initArea = function (elementSelector, onUploaded, onClose) { onUploaded = onUploaded || function () { }; onClose = onClose || function () { }; @@ -76,7 +240,7 @@ extraText = " (max " + formatBytes(ret.MaxUploadBytes) + ")"; } - $.get(contented.baseURL + "widget.html", function (widgetHtml) { + var $f = $("
").html(widgetHtml); $f.find(".contented-extratext").text(extraText); diff --git a/static/widget.html b/static/widget.html deleted file mode 100644 index 312a4aa..0000000 --- a/static/widget.html +++ /dev/null @@ -1,161 +0,0 @@ - -
- -
- - - -
- -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
-
- -
-
- -
- -
-
- - -
- -
- - -
- -
-
-
- -
- -
-
-
-