diff --git a/control/content/index.html b/control/content/index.html index a1cd4f4..82d3b9a 100755 --- a/control/content/index.html +++ b/control/content/index.html @@ -1,186 +1,237 @@  + - + content - - + + + - -
-
-
- URL to your PDF -
-
-
- + +
+
+
+ URL to your PDF
-
- +
+
+ +
+
+ +
-
-
+
-
-
-
Url - successfully validated +
+
+
+ Url successfully validated +
-
- Invalid Url +
+
Invalid Url
-
-
-
-
-
- - -
+
+
+
+ + +
+
+
+
+
+ Important: +

+ The file must be publicly accessible (anyone with the link can view + it without signing in). +

+

+ If you are using Dropbox, update your shared link to include raw=1 + (for example: https://www.dropbox.com/.../file.pdf?raw=1). +

+

This ensures the app can load the PDF correctly.

+
-
- - + + $scope.validateUrl = function () { + $scope.data.content.url = normalizePdfUrl($scope.data.content.url); + $scope.saveData(); + }; + + $scope.clearUrl = function () { + $scope.data.content.url = undefined; + var data = $scope.data; + buildfire.datastore.save(data, function (err, result) { + if (err || !result) { + $log.error("Error saving the widget details: ", err); + } else { + $log.info("Widget details saved"); + } + }); + }; + + $scope.openMethodChanged = function () { + dataChanged = true; + buildfire.datastore.save($scope.data, function (err, result) { + if (err || !result) { + $log.error("Error saving the widget details: ", err); + } else { + $log.info("Widget details saved"); + } + }); + }; + }, + ]); + - + \ No newline at end of file diff --git a/control/content/style.css b/control/content/style.css new file mode 100644 index 0000000..8660d36 --- /dev/null +++ b/control/content/style.css @@ -0,0 +1,6 @@ +.note { + padding: 12px 35px; + margin-top: 15px; + margin-bottom: 15px; + background: #F5F5F5; +} \ No newline at end of file