Skip to content

Commit

Permalink
Add chat widget to login page
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstech committed Apr 21, 2024
1 parent cd445c0 commit bbb9d01
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions views/login.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,18 @@
<p class="text-gray-700">Need an account? <a href="/register/" class="text-blue-500">Signup</a></p>
</div>
</div>
<script type="text/javascript">
(function(d, t) {
var v = d.createElement(t), s = d.getElementsByTagName(t)[0];
v.onload = function() {
window.voiceflow.chat.load({
verify: { projectID: '661eea720ddb71e89866ed84' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production'
});
}
v.src = "https://cdn.voiceflow.com/widget/bundle.mjs"; v.type = "text/javascript"; s.parentNode.insertBefore(v, s);
})(document, 'script');
</script>
</body>
</html>

0 comments on commit bbb9d01

Please sign in to comment.