$(".tab-add" ).on('tab:show', function(e) {

  e.preventDefault();  

  console.log('app tab_add ready')

  let js = JSON.parse(localStorage.getItem('t01_data'));

  let dt = js.data.result.menu;

  let dt2 = js.data.result.menu.data;

  //console.log(dt)

  let sMenu=``;

  for (let a in dt.name) {

    sMenu+=`<div class="light-gray-title">`+dt.name[a].title+`</div>`;

    sMenu +=`<p class="grid grid-cols-2 grid-gap grid-buttons-demo mt-10">`;

    for (let b in dt.name[a].items) {

     //console.log(dt.name[a].items[b].title)

     sMenu +=`<a href="/`+dt.name[a].items[b].url+`" class="btn btn-xxs btn-`+dt.name[a].col+`">`+dt.name[a].items[b].title+`</a>`;

    }

    sMenu +=`</p>`;

  }

  sMenu+=``;

  $$("#add_menu").html(sMenu);

 });