You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
684 B
25 lines
684 B
{% extends 'common/master.html' %}
|
|
{% load static %}
|
|
|
|
{% block body %}
|
|
<link rel="stylesheet" href="{% static 'chess/css/chessboard.css' %}">
|
|
<script
|
|
src="https://code.jquery.com/jquery-3.5.1.min.js"
|
|
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
|
|
crossorigin="anonymous"></script>
|
|
<script src="{% static 'chess/chessboard.js' %}"></script>
|
|
<style>
|
|
|
|
</style>
|
|
<div id="test">Here is some text</div>
|
|
<div id="board" style="width: 800px">
|
|
</div>
|
|
<script>
|
|
var config = {
|
|
pieceTheme: "{% static 'chess/img/' %}{piece}.png",
|
|
position: 'start',
|
|
draggable: true
|
|
};
|
|
var board = Chessboard('board', config);
|
|
</script>
|
|
{% endblock %} |