WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

Drawing Rectangles with Canvas | Loop and Break

Drawing Rectangles with Canvas

Following example will show you how to draw simple rectangles with Canvas Element

Example

<!DOCTYPE HTML>
<html>
 <head>
 </head>
 <body onload="draw();">
   <canvas id="canvas" width="150" height="150">
   </canvas>
  <script type="application/javascript">
    function draw() {
      var canvas = document.getElementById('canvas');
      if (canvas.getContext) {
        var ctx = canvas.getContext("2d");
 
        ctx.fillStyle = "rgb(200,0,0)"; // red colour
        ctx.fillRect (10, 10, 55, 50); //ctx.fillRect(x1,y1,x2,y2)
      }
    }
  </script>
 </body>
</html>

Output

Untitled

Share

You may also like...