Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter calvinseng

    (@calvinseng)

    Hi Sultan,

    Thanks but whenever I upgraded to PHP7.X
    It will generate the following error code,

    Warning: Declaration of Illuminate\Database\Eloquent\Collection::contains($key, $value = NULL) should be compatible with Illuminate\Support\Collection::contains($key, $operator = NULL, $value = NULL) in /server_path/plugins/erp/vendor/illuminate/database/Eloquent/Collection.php on line 5
    
    Warning: Declaration of Illuminate\Database\Eloquent\Collection::max($key) should be compatible with Illuminate\Support\Collection::max($callback = NULL) in /server_path/plugins/erp/vendor/illuminate/database/Eloquent/Collection.php on line 5
    
    Warning: Declaration of Illuminate\Database\Eloquent\Collection::min($key) should be compatible with Illuminate\Support\Collection::min($callback = NULL) in /server_path/plugins/erp/vendor/illuminate/database/Eloquent/Collection.php on line 5
    
    Warning: Declaration of Illuminate\Database\Eloquent\Collection::unique() should be compatible with Illuminate\Support\Collection::unique($key = NULL, $strict = false) in /server_path/plugins/erp/vendor/illuminate/database/Eloquent/Collection.php on line 5
    Thread Starter calvinseng

    (@calvinseng)

    Hi,

    it is at https://f1.calvinseng.com/wp-content/uploads/2017/07/F1-Logo-Footer.jpg

    <div id="footer">
    
      <div class="copyright"><img src="https://f1.calvinseng.com/wp-content/uploads/2017/07/F1-Logo-Footer.jpg" width=1024" height="165" /></div>
      <div class="copyright"></div>
    
    </div>
    

    And it just shows “Image not found or type unknown”

    Thread Starter calvinseng

    (@calvinseng)

    Thank you so so much man!

    <script type="text/javascript">
    
    window.onload = drawSignatureBackground;
    $( document ).ready( function() {
    	$("#bodyparts").onload( function(){
    		drawSignatureBackground();
    	});
    } );
    
    function drawSignatureBackground() {
       var canvas = document.getElementById("bodyparts");
       var ctx=canvas.getContext("2d");
       var image = new Image();
        image.onload = function() {
         ctx.drawImage(image, 0, 0);
       }
       image.src = 'https://your-domain.com/wp-content/uploads/2017/07/body_parts-1.jpg';
    }
    
    </script>

    This is the final script. For whoever requires the picture to show onload.

    I missed filling up the canvas ID within the function.

    • This reply was modified 7 years, 4 months ago by calvinseng.
    • This reply was modified 7 years, 4 months ago by calvinseng.
    Thread Starter calvinseng

    (@calvinseng)

    Hi,

    Yes. There is.

Viewing 4 replies - 1 through 4 (of 4 total)