/templates/simple.html

http://django-jchat.googlecode.com/ · HTML · 33 lines · 29 code · 3 blank · 1 comment · 0 complexity · 3b21a17d3e9b22b256b9c553cd9c244a MD5 · raw file

  1. {% extends 'base.html' %}
  2. {% block content %}
  3. <div id="instructions">
  4. <p>Simple chat example here. Please refer to the documentation at my blog, the wiki and/or read the source code for the project's main views.py file, under the simple() function, it's all there... and here watch it in action:</p>
  5. </div>
  6. <div id="chat"></div>
  7. <!-- You should try to include this at another place at your convenience :D -->
  8. <script type="text/javascript" src="/static/js/jchat.js"></script>
  9. <script type="text/javascript">
  10. /* chat_id is passed form the view, the init_chat function then does all the magic */
  11. $(window).ready(function(){
  12. init_chat({{chat_id}}, "chat");
  13. })
  14. </script>
  15. <div id="explanation">
  16. <strong>Emoticon Reference</strong> (try these)<br />
  17. <pre>
  18. >:D
  19. :D
  20. =D
  21. :)
  22. :O
  23. :P
  24. :(
  25. :3
  26. ;)
  27. (ball)
  28. </pre>
  29. </div>
  30. {% endblock %}