rdbeach / wb

Online collaborative Whiteboard that is simple, free, easy to use and to deploy
https://lcfprep.com/wb2/wb.html
GNU Affero General Public License v3.0
24 stars 13 forks source link

Turn off grid by deafult on start #7

Open sujeet-agrahari opened 3 years ago

sujeet-agrahari commented 3 years ago

How can I turn off grid by default. In grid.js , tried setting values to toggle but it doen't work

(function grid() { //Code isolation

    var toggle=1; //grid on by default
    var msg = {
        "type": "grid",
        "id":"",
        "toggle":toggle
    };
..............

Also, can you please explain what's this is doing if($("#menu").width()>Tools.menu_width+3)return; in each tool?

shabashev-ivan commented 3 years ago

How can I turn off grid by default. In grid.js , tried setting values to toggle but it doen't work


(function grid() { //Code isolation

  var toggle=1; //grid on by default
  var msg = {
      "type": "grid",
      "id":"",
      "toggle":toggle
  };

Hello. Just change var toogle=1; New: var toogle=0;

shabashev-ivan commented 3 years ago

Also, can you please explain what's this is doing if($("#menu").width()>Tools.menu_width+3)return; in each tool? I'm not sure, I did not delve into the project, but I think that if the submenu is open, then do not draw on the board, but close the submenu

sujeet-agrahari commented 3 years ago

How can I turn off grid by default. In grid.js , tried setting values to toggle but it doen't work

(function grid() { //Code isolation

    var toggle=1; //grid on by default
    var msg = {
        "type": "grid",
        "id":"",
        "toggle":toggle
    };

Hello. Just change var toogle=1; New: var toogle=0;

As I already mentioned I tried setting those values to toggle, but that didn't work, but as a workaround I had to change the initial fill for board to white than to grid in board.html.