@healthcatalyst/catalyst-docfx-template 1.0.123 → 1.0.125

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcatalyst/catalyst-docfx-template",
3
- "version": "1.0.123",
3
+ "version": "1.0.125",
4
4
  "license": "MIT",
5
5
  "description": "A DocFX Template patching the Default template.",
6
6
  "publishConfig": {
package/styles/main.js CHANGED
@@ -6,6 +6,8 @@ if (!String.prototype.startsWith) {
6
6
  };
7
7
  }
8
8
 
9
+ var profile;
10
+
9
11
  $(function() {
10
12
  // version dropdown
11
13
  var $version = $('#version').on('change', function() {
@@ -37,6 +39,16 @@ $(function() {
37
39
  $version.val(window.location.host);
38
40
  }
39
41
  });
42
+
43
+ $.ajax({
44
+ global: false,
45
+ url: "https://docs.healthcatalyst.com/api/profile",
46
+ dataType: "json",
47
+ success: function (data) {
48
+ profile = data;
49
+ console.log( profile );
50
+ }
51
+ });
40
52
  });
41
53
 
42
54
  // lightbox2 (Lokesh Dhakar, https://lokeshdhakar.com/projects/lightbox2, MIT License)
@@ -86,6 +98,7 @@ if ($('#feedback-survey').length > 0) {
86
98
  }
87
99
 
88
100
  form.addEventListener('submit', e => {
101
+ console.log(profile);
89
102
  e.preventDefault();
90
103
  var formData = new FormData(form);
91
104
  var feedbackForm = {
@@ -96,9 +109,9 @@ if ($('#feedback-survey').length > 0) {
96
109
  suggestions: formData.get("helpful?") === "no" && formData.get("suggest") ? formData.get("suggest") : "",
97
110
  date: new Date()
98
111
  };
99
- fetch(scriptURL, { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify(feedbackForm) })
112
+ /*fetch(scriptURL, { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify(feedbackForm) })
100
113
  .then(response => console.log('Success!', response))
101
- .catch(error => console.error('Error!', error.message))
114
+ .catch(error => console.error('Error!', error.message))*/
102
115
  $(".feedback-container").toggle();
103
116
  $("#feedback-response").toggle(500);
104
117
  })
@@ -205,17 +218,4 @@ var messages = (function () {
205
218
  }
206
219
  return messages;
207
220
  })();
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
- })();
221
221