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

does it work?

parent 73a81d7d
No related branches found
No related tags found
No related merge requests found
...@@ -270,6 +270,14 @@ function draw(){ ...@@ -270,6 +270,14 @@ function draw(){
draw(); draw();
window.addEventListener('scroll', draw); window.addEventListener('scroll', draw);
var current_line = 300;
var lines = [300, 180, 1040, 180, 1120, 480, 700, 180, 600, 180, 210, 180, 630, 1120, 260, 180];
var r = 30;
var start_height = 300;
var speed = 10;
var top_screen;
var bottom_screen;
function verticalLine_timeline(x, y1, y2, ctx, canvas_h) { function verticalLine_timeline(x, y1, y2, ctx, canvas_h) {
if (current_line >= y1 && canvas_h >= start_height) { if (current_line >= y1 && canvas_h >= start_height) {
if (canDraw(y1, y2)) ctx.moveTo(x, y1); if (canDraw(y1, y2)) ctx.moveTo(x, y1);
......
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