Skip to content

Instantly share code, notes, and snippets.

@nidhinp
Created August 11, 2019 11:42
Show Gist options
  • Save nidhinp/f926fa6f66171354aad557ef48991a58 to your computer and use it in GitHub Desktop.
Save nidhinp/f926fa6f66171354aad557ef48991a58 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Graph</title>
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/style.css">
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
</head>
<body>
<center><h2>Graph Coloring</h2></center>
<center>
<canvas id="myCanvas" width="700" height="450" style="background-color: #ffffff; border: 5px solid #000000;">
Your browser does not support the HTML5 canvas tag.
</canvas>
<center>
<p>
<button id="vertex" title="Draw Vertex" style="left:420px;">Vertex</button>
<button id="edge" title="Draw Edge" style="left:530px;" >Edge</button>
<button id="clear" title="Crear the graph" style="left:650px;">Reset</button>
<button id="submit" onclick="send()" title="Press to see Graph Coloring!" style="left:760px;">Color</button>
</p>
<script src="{{ STATIC_URL }}js/scripts.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment