O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing the live chat box templates

In order to have the chat box present in all sections of the website, we will need to place the chat box div container right below the primary content div container in the web page layout template (layouts/webpage_layout.tmpl):

<!doctype html><html>  {{ template "partials/header_partial" . }}    <div id="primaryContent" class="pageContent">      {{ template "pagecontent" . }}    </div>    <div id="chatboxContainer" class="containerPulse">    </div>  {{ template "partials/footer_partial" . }}</html>

The chat box will be implemented as a partial template in the chatbox_partial.tmpl source file in the shared/templates/partials folder:

<div id="chatbox">  <div id="chatboxHeaderBar" class="chatboxHeader"> <div id="chatboxTitle" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required