diff --git a/js/1.js b/js/1.js index 4e0d931..3ceb762 100644 --- a/js/1.js +++ b/js/1.js @@ -4,6 +4,14 @@ * @returns {any[]} */ function flatten(arr) { - + let result = [] + for (let num of arr) { + if (Array.isArray(num)) { + result.push(...flatten(num)) + } else { + result.push(num) + } + } + return result } -console.log(flatten([[1,2,3,4],[1,[1,[1]]]])==[1,2,3,4,1,1,1]) +console.log(flatten([[1, 2, 3, 4], [1, [1, [1]]]])) diff --git a/js/2.js b/js/2.js index dfc7e3a..4c52521 100644 --- a/js/2.js +++ b/js/2.js @@ -3,7 +3,11 @@ * @param {number} size * @return {Array} */ -var chunk = function(arr, size) { - +var chunk = function (arr, size) { + let temp = [] + for (let i = 0; i < arr.length; i += size) { + temp.push(arr.slice(i, i + size)) + } + return temp }; -console.log(chunk([1,2,3,4,5], 1)==[[1],[2],[3],[4],[5]]) \ No newline at end of file +console.log(chunk([1, 2, 3, 4, 5], 1) == [[1], [2], [3], [4], [5]]) \ No newline at end of file diff --git a/js/3.js b/js/3.js index a667d15..ced3b44 100644 --- a/js/3.js +++ b/js/3.js @@ -4,5 +4,13 @@ * @return {boolean} */ function hasStraightFlush(arr) { - // 返回 true 或 false + for (let card of arr) { + const kk = card % 13; + const rank = Math.floor(card / 13); + let isStraightflush = true + + + + + } } diff --git a/web/index.css b/web/index.css index e69de29..add8dc9 100644 --- a/web/index.css +++ b/web/index.css @@ -0,0 +1,364 @@ +/* 头部导航开始 */ +.nav { + width: 1000px; + height: 45px; + background-color: #fff; + margin-top: -100px; + margin-left: 250px; + position: fixed; + z-index: 2; +} + +.nav .left-nav img { + height: 25px; + width: 25px; + padding: 1px 2px; +} + +.nav .left-nav input { + height: 25px; + width: 200px; + border-radius: 50px; + padding: 1px 2px; +} + +.nav .left-nav { + float: left; +} + +.right-nav div { + float: left; + padding: 0px 10px; +} + +.right-nav img { + height: 25px; + width: 25px; +} + +.right-nav { + margin-left: 600px; +} + +body { + background-color: rgb(130, 112, 112); +} + +.right-nav div p { + margin: 0; + font-size: 10px; + color: gray; +} + +.right-nav div:click { + border-bottom: 2px solid black; + outline: none; +} + +.right-nav div:hover { + background-color: #333; +} + +.io { + margin-left: 30px; +} + +/* 头部导航结束 */ +/* 主体部分开始 */ +.main { + display: grid; + justify-items: center; + margin-top: 100px; + margin-left: 264.432px; + width: 1000px; + height: 1000px; + position: relative; + gap: 20px; +} + +.main-left { + height: 400px; + margin-left: -900px; + position: fixed; +} + +.main-mid { + background-color: blue; + width: 600px; + margin-left: -100px; + height: 80px; + margin-top: 0px; +} + +.main-right { + background-color: orange; + width: 200px; + height: 600px; + margin-left: 770px; + margin-top: -500px; +} + +.main-left .left-first img { + height: 50px; + width: 50px; + border-radius: 50%; + vertical-align: middle; +} + +.main-left .left-first .name { + font-weight: bolder; + margin: 2px 2px; +} + +.main-left .left-first .home { + font-size: 10px; + color: gray; + margin: 2px 2px; +} + +.main-left .left-first .work { + font-weight: bold; + margin: 2px 2px; +} + +.main-left .left-first { + background-color: #fff; + border-radius: 10px; +} + +.main-left .left-second { + background-color: #fff; + border-radius: 10px; +} + +.main-left .left-second .friend { + font-weight: bolder; +} + +.main-left .left-second .add { + color: gray; +} + +.main-left .left-second img { + height: 20px; + width: 20px; + border-radius: 50%; + float: right; + margin-top: -80px; +} + +.main-left .left-third .see { + color: gray; + font-size: 10px; +} + +.main-left .left-third .word { + font-weight: bolder; + font-size: 12px; +} + +.main-left .left-third { + background-color: #fff; + border-radius: 10px; +} + +.main-left .left-forth img { + display: inline; + width: 20px; + height: 20px; + float: left; +} + +.main-left .left-forth p { + font-weight: bolder; +} + +.main-left .left-forth { + background-color: #fff; + border-radius: 10px; +} + +.first-top img { + border-radius: 50%; + height: 50px; + width: 50px; + display: inline; +} + +.first-top input { + width: 500px; + border-radius: 20px; + margin: 20px; + position: absolute; +} + +.first-bottom img { + width: 30px; + height: 20px; +} + +.box { + float: left; + padding: 0px 50px; +} + +.main-mid { + background-color: #fff; + border-radius: 10px; +} + +.user img { + height: 50px; + width: 50px; + border-radius: 50%; + margin-top: -20px; +} + +.content-first { + background-color: #fff; + border-radius: 10px; +} + +.user { + display: flex; + align-items: center; +} + +.user div p { + margin: 0px; +} + +.user div .big { + font-weight: bolder; + font-size: 12px; +} + +.user div .big:hover { + color: skyblue; +} + +.user div .small { + font-weight: lighter; + font-size: 10px; + color: gray; +} + +.main-content img { + height: 300px; + width: 600px; +} + +.main-right h2 { + margin: 2px; + font-size: 20px; +} + +.main-right h3 { + margin: 2px; + font-size: 15px; + color: rgb(199, 179, 179); +} + +.right-first p { + margin: 2px; +} + +.bkk { + color: gray; + font-size: 10px; +} + +.main-right { + background-color: #fff; + border-radius: 10px; +} + +.show-content { + display: none; +} + +.show:hover .show-content { + display: block; +} + +.under img { + height: 50px; + width: 50px; + margin-top: 10px; +} + +.under div { + display: flex; + align-items: center; +} + +.word-top { + font-size: 12px; + color: rgb(41, 38, 38); +} + +.word1 { + font-size: 10px; + color: rgb(76, 100, 121); +} + +.adver { + background-color: #fff; + width: 200px; + height: 200px; + border-radius: 10px; + margin-top: 120px; +} + +.adver .left-first img { + height: 50px; + width: 50px; + border-radius: 50%; + vertical-align: middle; +} + +.adver .left-first .name { + font-weight: bolder; + margin: 2px 2px; +} + +.adver .left-first .home { + font-size: 10px; + color: gray; + margin: 2px 2px; +} + +.adver .left-first a { + color: #333; + font-size: 10px; + margin-top: -150px; + display: block; + margin-left: 150px; +} + +.bik:hover { + background-color: rgb(53, 117, 121); +} + +.hand { + cursor: pointer; +} + +.adver .left-first { + position: sticky; + top: 0px; + z-index: 1; +} + +.main-left .left-first img { + height: 50px; + width: 50px; + border-radius: 50%; + vertical-align: middle; +} + +.box:hover { + background-color: gray; +} + +/* 主体部分结束 */ \ No newline at end of file diff --git a/web/index.html b/web/index.html index fbc4ed5..d821508 100644 --- a/web/index.html +++ b/web/index.html @@ -5,10 +5,249 @@ Muxi Studio + + + + + +
+
+
+ +

佐助

+

木叶村

+

-火影

+
+
+

好友

+

拓展职场人脉

+ +
+
+

解锁高级账号工具与洞察

+

■ 试用高级账号(HK$0)

+
+
+
+ +

我的收藏

+
+
+ +

群组

+
+
+ +

专栏

+
+
+ +

活动

+
+ +
+
+
+
+
+ + +
+
+
视频 +
+
照片 +
+
写文章 +
+
+
+
——————————————————————————————————————排序方式:热门
+
+
+
+ + +
+

腾讯

+

12800关注

+

两周前

+
+
+
+

火影忍者10周年,我是蛤蟆广,衣领拉到最高处我们才是真投入

+ +
+
+
+
+ + +
+

腾讯

+

12800关注

+

两周前

+
+
+
+

一颗土豆,一个线,土豆服务器

+ +
+
+
+
+ + +
+

腾讯

+

12800关注

+

两周前

+
+
+
+

无敌面麻大王

+ +
+
+
+
+ + +
+

腾讯

+

12800关注

+

两周前

+
+
+
+

木犀你赢了/(ㄒoㄒ)/~~ 火影10周年选三船不扣点券

+ +
+
+
+
+
+
+
+

火影周刊

+

火影八卦

+
+

kjldgjdjgldjgdgkjkghjghgk

+

3小时前·36748读者

+
+
+

kjldgjdjgldjgdgkhjghghgg

+

3小时前·36748读者

+
+
+

kjldgjdjgldjgdgkhgghgiug

+

3小时前·36748读者

+
+
+

kjldgjdjgldjgdgkhgghgiug

+

3小时前·36748读者

+
+
+

kjldgjdjgldjgdgkhgghgiug

+

3小时前·36748读者

+
+
+
展开 ▼ +
+
+

kjldgjdjgldjgdgkjkghjghgk

+

3小时前·36748读者

+
+
+

kjldgjdjgldjgdgkhjghghgg

+

3小时前·36748读者

+
+
+

kjldgjdjgldjgdgkhgghgiug

+

3小时前·36748读者

+
+
+

kjldgjdjgldjgdgkhgghgiug

+

3小时前·36748读者

+
+
+

kjldgjdjgldjgdgkhgghgiug

+

3小时前·36748读者

+
+ +
+
+
+
+

今日游戏

+
+

太难了

+
+
+

要燃尽了

+
+
+

今晚吃好吃的了

+
+ +
+ +
+
+
+
+ +

佐助

+

木叶村

+

-火影

+ 广告 +
+
+
+
+
+
+ \ No newline at end of file diff --git "a/web/\345\233\276\347\211\207.webp" "b/web/\345\233\276\347\211\207.webp" new file mode 100644 index 0000000..f927dbc Binary files /dev/null and "b/web/\345\233\276\347\211\207.webp" differ diff --git "a/web/\345\234\237\350\261\206.webp" "b/web/\345\234\237\350\261\206.webp" new file mode 100644 index 0000000..342056d Binary files /dev/null and "b/web/\345\234\237\350\261\206.webp" differ diff --git "a/web/\345\244\247\347\232\204\346\235\245\345\225\246.png" "b/web/\345\244\247\347\232\204\346\235\245\345\225\246.png" new file mode 100644 index 0000000..5b0fc94 Binary files /dev/null and "b/web/\345\244\247\347\232\204\346\235\245\345\225\246.png" differ diff --git "a/web/\345\245\266\351\276\231.webp" "b/web/\345\245\266\351\276\231.webp" new file mode 100644 index 0000000..7d65711 Binary files /dev/null and "b/web/\345\245\266\351\276\231.webp" differ diff --git "a/web/\351\235\242\351\272\273\345\244\247\347\216\213.jpeg" "b/web/\351\235\242\351\272\273\345\244\247\347\216\213.jpeg" new file mode 100644 index 0000000..1654dac Binary files /dev/null and "b/web/\351\235\242\351\272\273\345\244\247\347\216\213.jpeg" differ