PHP Classes

File: web/application/views/chat/chatbox.php

Recommend this page to a friend!
  Classes of David Girón  >  PHP Telegram Web Chat  >  web/application/views/chat/chatbox.php  >  Download  
File: web/application/views/chat/chatbox.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Telegram Web Chat
Interact with Telegram users via a Web based chat
Author: By
Last change:
Date: 2 years ago
Size: 2,078 bytes


Class file image Download
<!DOCTYPE html>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <script src="//"></script>
    <script src="//"></script>
    <script src="//"></script>
    <script src="//"></script>
    <link rel="stylesheet" href="//">
    <link rel="stylesheet" href="//">
    <link rel="stylesheet" href="//">
        html,body{ height: 100% }
        header{ background: #222; color: white; }
        header h2{ margin: 0; padding: 10px; }
        footer{ height: 34px; position: fixed !important; bottom: 0; left: 0; background: #AAA; }
        main .media { margin-top: 10px !important; padding-bottom: 10px; border-bottom: 1px solid #CCC;}
        main .media img { width: 32px; }
    <div class="container">
        <main class="col-xs-12">
        <footer class="col-xs-12">
            <div class="input-group">
                <input type="text" class="form-control" placeholder="Escribir mensaje...">
                <span class="input-group-btn">
                    <button class="btn btn-default" type="button" disabled>
                        <i class="fa fa-send"></i>
            </div><!-- /input-group -->
    <script src="<?= base_url('js/chat.js'); ?>"></script>
    <script type="text/javascript">
        var userpic = "";
        var userpic_empty = "";
        var mid = "";
        var session = "";

            Chat.ajax = "<?= site_url('chat/ajax'); ?>";
            Chat.addMessage("Hola vendedor!", 1);
            Chat.addMessage("Hola usuario!", 0);