Skip to content

Commit f6e8f1b

Browse files
committed
wip(web): prefill the contact description from the topic url param
1 parent 75dd764 commit f6e8f1b

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎web/content/en/contact.html‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,21 @@ <h3 class="mText">StackGres, Inc.</h3>
101101
</div>
102102
</section>
103103

104+
<script>
105+
(function () {
106+
var topic = new URLSearchParams(window.location.search).get('topic');
107+
if (!topic) return;
108+
109+
var messages = {
110+
'containers-extensions': 'I am missing an extension on StackGres Containers. The extension(s) I need: ',
111+
'containers-limits': 'I am hitting the fair-use rate limits on StackGres Containers and would like to get them raised.',
112+
'containers-enterprise': 'I am interested in the Enterprise subscription for StackGres Containers.'
113+
};
114+
115+
var description = document.getElementById('Description');
116+
if (description && !description.value && messages[topic]) {
117+
description.value = messages[topic];
118+
}
119+
})();
120+
</script>
121+

0 commit comments

Comments
 (0)