/templates/complex.html

http://django-jchat.googlecode.com/ · HTML · 33 lines · 30 code · 2 blank · 1 comment · 0 complexity · b348c3ae085905449bcd3dc7155111d0 MD5 · raw file

  1. {% extends 'base.html' %}
  2. {% block content %}
  3. <div id="instructions">
  4. <p>Complex 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 complex() function, it's all there... and here watch it in action:</p>
  5. </div>
  6. <h3>Chat for document: {{ document.title }}</h3>
  7. <div id="chat"></div>
  8. <!-- You should try to include this at another place at your convenience :D -->
  9. <script type="text/javascript" src="/static/js/jchat.js"></script>
  10. <script type="text/javascript">
  11. /* chat_id is passed form the view, the init_chat function then does all the magic */
  12. $(window).ready(function(){
  13. init_chat({{chat_id}}, "chat");
  14. })
  15. </script>
  16. <div id="explanation">
  17. <strong>Emoticon Reference</strong> (try these)<br />
  18. <pre>
  19. >:D
  20. :D
  21. =D
  22. :)
  23. :O
  24. :P
  25. :(
  26. :3
  27. ;)
  28. (ball)
  29. </pre>
  30. </div>
  31. {% endblock %}