Skip to content
Snippets Groups Projects
Commit 5efca704 authored by Shraddha Raghuram's avatar Shraddha Raghuram
Browse files

change canvas

parent a3c1cb31
No related branches found
No related tags found
No related merge requests found
...@@ -185,7 +185,7 @@ function draw(){ ...@@ -185,7 +185,7 @@ function draw(){
let scrTop = document.documentElement.scrollTop; let scrTop = document.documentElement.scrollTop;
var canvas = document.getElementById("roadmap") var canvas = document.getElementById("roadmap")
canvas.width = 1300; canvas.width = 1300;
canvas.height = 2000; canvas.height = 3000;
let cvs_h = canvas.getBoundingClientRect().top + scrTop; let cvs_h = canvas.getBoundingClientRect().top + scrTop;
let cur_h = document.documentElement.clientHeight / 1.8 + scrTop; let cur_h = document.documentElement.clientHeight / 1.8 + scrTop;
top_screen = Math.floor(-canvas.getBoundingClientRect().top); top_screen = Math.floor(-canvas.getBoundingClientRect().top);
...@@ -249,7 +249,7 @@ function draw(){ ...@@ -249,7 +249,7 @@ function draw(){
var centerX = canvas.width / 2; var centerX = canvas.width / 2;
verticalLine(centerX, 200, 2000, ctx, canvas_h); verticalLine(centerX, 200, 3000, ctx, canvas_h);
// circularArc(centerX - 30, 1600, ctx, canvas_h, 3, 0); // circularArc(centerX - 30, 1600, ctx, canvas_h, 3, 0);
......
...@@ -344,7 +344,7 @@ ...@@ -344,7 +344,7 @@
</a> </a>
</div> </div>
<canvas id="roadmap" width="1300" height="2000" style="background-color: transparent;"></canvas> <canvas id="roadmap" width="1300" height="3000" style="background-color: transparent;"></canvas>
</div> </div>
<script src="{{ url_for('static', filename = 'homepage.js') }}" type="text/javascript"></script> <script src="{{ url_for('static', filename = 'homepage.js') }}" type="text/javascript"></script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment