diff --git a/public/docs/ts/latest/help-new.jade b/public/docs/ts/latest/help-new.jade new file mode 100644 index 0000000000..42f4561286 --- /dev/null +++ b/public/docs/ts/latest/help-new.jade @@ -0,0 +1,24 @@ +div(flex) + p. + What's your question about? + select#dropdown(name="Angular Version" class="dropdown") + option(value="Angular2") Angular2 + option(value="AngularJS") AngularJS + button#btn(class="btn"). + Submit + +script(src="//www.gstatic.com/feedback/api.js" type="text/javascript") + +script. + var btn = document.getElementById("btn"); + var submitFeedback = function() { + var dropdown = document.getElementById("dropdown"); + var configuration = { + 'productId': 'Angular', + 'authuser': '1', + 'bucket': dropdown.options[dropdown.selectedIndex].value + } + userfeedback.api.startFeedback(configuration); + } + btn.addEventListener("click", submitFeedback); +