SPA Companion

SPA stands for Single-Page Application - a web application or website that interacts with the user by dynamically rewriting the current web page with new data from the web server, instead of the default method of a web browser loading entire new pages. An example of SPA application is our BlaB! Pages CMS with any NR theme and the popular forum software Flarum.


SPA Companion adds to any SPA website a few elements - a chat box with load, minimize, maximize and close buttons + PM notification. The user can browse the main website in the same tab without leaving the chat.


How to setup SPA Companion

  1. Download SPA Companion Pack and unzip its content in the the root folder of your SPA app or website.

  2. Using a text editor open blabloader.js and set at the beginning of the file the URL of your chat: //URL-TO-CHAT/index.php

  3. In the HTML <head> section of your SPA app or website add:

    • <script src="//URL-TO/blabloader.js"></script>
    • <link rel="stylesheet" href="//URL-TO/blabloader.css" />
  4. Background colors of the chat buttons can be set in blabloader.css, additional settings at the beginning of blabloader.js.


Flarum & BlaB
 
Powered by BlaB! Pages