Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
</head>
<body>
<canvas id="my_canvas" width="900" height="80">
</canvas>
<script>
var canvas = document.getElementById('my_canvas');
if (canvas.getContext) {
var context = canvas.getContext('2d');
context.font = 'italic 40px sans-serif';
context.textBaseline = 'top';
context.fillStyle = 'orange';
context.fillText('Net-Raft.com', 60, 0);
context.lineWidth = 4;
context.beginPath();
context.moveTo(0, 40);
context.lineTo(30, 0);
context.lineTo(60, 40);
context.lineTo(330, 40);
context.strokeStyle = "orange";
context.stroke();
context.closePath();
context.save();
context.translate(20, 20);
context.fillRect(0, 0, 20, 20)
context.strokeStyle = '#fff';
context.fillStyle = '#fff';
context.lineWidth = 2;
context.beginPath();
context.moveTo(0, 20);
context.lineTo(10, 0);
context.lineTo(20, 20);
context.lineTo(0, 20);
context.fill();
context.closePath();
context.restore();
}
else {
}
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507