Skip to content

Commit

Permalink
fix canvas not found
Browse files Browse the repository at this point in the history
  • Loading branch information
hongweipeng committed Nov 15, 2018
1 parent 39a1d03 commit f0ac139
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,16 @@ var closeEnable = false;

$(document).ready(function () {
fssilde();
TagCanvas.Start('mycanvas', '', {
textColour : '#000',
outlineColour: '#16a085',
outlineThickness : 1,
maxSpeed : 0.03,
depth : 0.75,
wheelZoom : false
});
if(document.getElementById("mycanvas")) {
TagCanvas.Start('mycanvas', '', {
textColour: '#000',
outlineColour: '#16a085',
outlineThickness: 1,
maxSpeed: 0.03,
depth: 0.75,
wheelZoom: false
});
}

//边栏固定
var $sidebar = $("#fixed"),
Expand Down

0 comments on commit f0ac139

Please sign in to comment.