@healthcatalyst/catalyst-docfx-template 1.0.121 → 1.0.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
package/package.json
CHANGED
|
@@ -23,10 +23,6 @@
|
|
|
23
23
|
<label>How can we make it more helpful? (required):</label>
|
|
24
24
|
<textarea rows="4" cols="50" id="suggestions" name="suggest" required></textarea>
|
|
25
25
|
</div>
|
|
26
|
-
<div class="feedback-email" name="email">
|
|
27
|
-
<label for="email">Where can we email you to follow up? (optional):</label>
|
|
28
|
-
<input type="email" id="email" name="email" size="40">
|
|
29
|
-
</div>
|
|
30
26
|
|
|
31
27
|
<button class="submit-feedback" title="Submit" onclick="fillUrl();"">Submit</button>
|
|
32
28
|
<button type="button" class="feedback-button" style="font-weight: 400;" title="Cancel" onclick="unCheckNoHelp();"">Cancel</button>
|
package/styles/main.js
CHANGED
|
@@ -92,7 +92,7 @@ if ($('#feedback-survey').length > 0) {
|
|
|
92
92
|
source: "Docs - " + formData.get("product"),
|
|
93
93
|
url: formData.get("url"),
|
|
94
94
|
helpful: formData.get("helpful?") === "yes",
|
|
95
|
-
email:
|
|
95
|
+
email: profile && profile.email ? profile.email : "",
|
|
96
96
|
suggestions: formData.get("helpful?") === "no" && formData.get("suggest") ? formData.get("suggest") : "",
|
|
97
97
|
date: new Date()
|
|
98
98
|
};
|
|
@@ -156,7 +156,7 @@ var terms = (function () {
|
|
|
156
156
|
dataType: "json",
|
|
157
157
|
success: function (data) {
|
|
158
158
|
json = data;
|
|
159
|
-
}
|
|
159
|
+
}
|
|
160
160
|
});
|
|
161
161
|
|
|
162
162
|
for (let [key, value] of Object.entries(json)) {
|
|
@@ -173,7 +173,7 @@ var terms = (function () {
|
|
|
173
173
|
|
|
174
174
|
// Replace {{ keys }} with icon and message banner from sourcedContent/messages.json at directory root
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
var messages = (function () {
|
|
177
177
|
var json = null;
|
|
178
178
|
var pathname = window.location.pathname;
|
|
179
179
|
// console.log(pathname)
|
|
@@ -205,4 +205,17 @@ var terms = (function () {
|
|
|
205
205
|
}
|
|
206
206
|
return messages;
|
|
207
207
|
})();
|
|
208
|
+
|
|
209
|
+
var profile = (function () {
|
|
210
|
+
$.ajax({
|
|
211
|
+
async: false,
|
|
212
|
+
global: false,
|
|
213
|
+
url: "https://docs.healthcatalyst.com/api/profile",
|
|
214
|
+
dataType: "json",
|
|
215
|
+
success: function (data) {
|
|
216
|
+
console.log(data);
|
|
217
|
+
return data;
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
})();
|
|
208
221
|
|