This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, request | |
chat = Flask(__name__) | |
html = """ | |
<html><head><style> | |
#mychat{width:100%; font-size: 15px; padding: 10px; border: 1px solid #111111;} | |
</style></head><body> | |
<input id="mychat" placeholder="Type message and press enter"/> | |
<div id="chat"></div> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> |