How to initialize a cnblogs project?
- 内容介绍
- 文章标签
- 相关推荐
本文共计131个文字,预计阅读时间需要1分钟。
javascript// 简化代码内容cnblogs.js console.log('init+runcode.js') function runcode() { var win=window.open(); win.document.write('.'runcode.val()); }(字数超出100字,无法直接输出)
console.log('init runcode.js') function runcode() { var win = window.open(); win.document.write($('.runcode').val()); } /***********tag cloud script****************/ if($("#MyTag").length>0) { var dict = {}; $("#taglist td").has("a").has("span").each(function(i, x){ dict[$("a", this).text()] = $("span", this).text().replace(/[)(]/g, ""); }); $(" ").attr("id", "tagCloud").appendTo("div#mainContent"); for(var k in dict) { var sz = (dict[k] * 4) + 12; $(" ") .attr("href", "www.cnblogs.com/sixloop/tag/"+escape(k)+"/") .attr("title", dict[k]) .css("font-size", sz + "px") .text(k) .appendTo("#tagCloud"); } $("#taglist").remove(); }
本文共计131个文字,预计阅读时间需要1分钟。
javascript// 简化代码内容cnblogs.js console.log('init+runcode.js') function runcode() { var win=window.open(); win.document.write('.'runcode.val()); }(字数超出100字,无法直接输出)
console.log('init runcode.js') function runcode() { var win = window.open(); win.document.write($('.runcode').val()); } /***********tag cloud script****************/ if($("#MyTag").length>0) { var dict = {}; $("#taglist td").has("a").has("span").each(function(i, x){ dict[$("a", this).text()] = $("span", this).text().replace(/[)(]/g, ""); }); $(" ").attr("id", "tagCloud").appendTo("div#mainContent"); for(var k in dict) { var sz = (dict[k] * 4) + 12; $(" ") .attr("href", "www.cnblogs.com/sixloop/tag/"+escape(k)+"/") .attr("title", dict[k]) .css("font-size", sz + "px") .text(k) .appendTo("#tagCloud"); } $("#taglist").remove(); }

