Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% block js %}
- <script>
- $(function(){
- var refresher = function () {
- $.getJSON( "{% url 'character_sheet_data' %}", function(data) {
- setTimeout(refresher, data.refresh_timer);
- $("#Content").replaceWith(data.content);
- });
- };
- setTimeout(refresher, 300); // 0.3 seconds
- });
- </script>{% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment