Skip to content
This repository was archived by the owner on Aug 1, 2022. It is now read-only.

Latest commit

 

History

History
78 lines (73 loc) · 2.73 KB

File metadata and controls

78 lines (73 loc) · 2.73 KB
<script> function createProduct(data) { var anthors = []; for(let key in data){ var anthor = {"name" : key , "expand": []}; for(let key1 in data[key]){ anthor.expand.push({ "name":key1, "id": data[key][key1][0]["id"], "icon": icon_list.MODULE }); $(".product_page").append(`
`); data[key][key1].forEach((productInfo)=>{ if(productInfo.id != undefined){ return; } if(productInfo.category != undefined){ $("#"+data[key][key1][0]["id"]).append(`

${productInfo.category}

`); } let qsBtn = ''; if(productInfo.qs != undefined){ qsBtn = `QuickStart` } var html = ` `; $("#"+data[key][key1][0]["id"].toLowerCase()).append(html); }) } anthors.push(anthor); } header.anchorList = anthors; } $(document).ready(function(){ $(function () { var x = -30; var y = 40; var newtitle = ''; $('.item').mouseover(function (e) { newtitle = $(this).find(".item-title")[0].dataset.kw; $('body').append('
' + newtitle + '
'); $('#tag_title').css({ 'left': (e.pageX - x + 'px'), 'top': (e.pageY - y + 'px') }).show(); }).mouseout(function () { $('#tag_title').remove(); }).mousemove(function (e) { $('#tag_title').css({ 'left': (e.pageX - x + 'px'), 'top': (e.pageY - y + 'px') }).show(); }).click(function (e) { $('#tag_title').remove(); }) }); // anchor_search(); scrollFunc(); }); (function(FilePath){ Docsify.get(FilePath).then(data=>{ const Product_Json = JSON.parse(data) createProduct(Product_Json); }) })("./en/product_list.json") </script>