sinzmise-cetastories 2.0.0-1731680763439 → 2.0.0-1731680899282
Sign up to get free protection for your applications and to get access to all the features.
- package/404/index.html +1 -1
- package/about/index.html +1 -1
- package/album/index.html +1 -1
- package/archives/2021/12/index.html +1 -1
- package/archives/2021/index.html +1 -1
- package/archives/2022/12/index.html +1 -1
- package/archives/2022/index.html +1 -1
- package/archives/2023/01/index.html +1 -1
- package/archives/2023/02/index.html +1 -1
- package/archives/2023/03/index.html +1 -1
- package/archives/2023/04/index.html +1 -1
- package/archives/2023/07/index.html +1 -1
- package/archives/2023/08/index.html +1 -1
- package/archives/2023/09/index.html +1 -1
- package/archives/2023/10/index.html +1 -1
- package/archives/2023/11/index.html +1 -1
- package/archives/2023/12/index.html +1 -1
- package/archives/2023/index.html +1 -1
- package/archives/2023/page/2/index.html +1 -1
- package/archives/2023/page/3/index.html +1 -1
- package/archives/2024/01/index.html +1 -1
- package/archives/2024/02/index.html +1 -1
- package/archives/2024/03/index.html +1 -1
- package/archives/2024/04/index.html +1 -1
- package/archives/2024/05/index.html +1 -1
- package/archives/2024/06/index.html +1 -1
- package/archives/2024/07/index.html +1 -1
- package/archives/2024/08/index.html +1 -1
- package/archives/2024/09/index.html +1 -1
- package/archives/2024/10/index.html +1 -1
- package/archives/2024/index.html +1 -1
- package/archives/2024/page/2/index.html +1 -1
- package/archives/index.html +1 -1
- package/archives/page/2/index.html +1 -1
- package/archives/page/3/index.html +1 -1
- package/archives/page/4/index.html +1 -1
- package/archives/page/5/index.html +1 -1
- package/atom.xml +31 -31
- package/bbs/bbs.html +1 -1
- package/bbs/index.html +1 -1
- package/categories/index.html +1 -1
- package/categories//344/270/252/344/272/272/345/260/217/350/256/260/index.html +1 -1
- package/categories//344/270/252/344/272/272/345/260/217/350/256/260/page/2/index.html +1 -1
- package/categories//346/255/214/346/233/262/346/224/266/351/233/206/index.html +1 -1
- package/categories//346/270/270/346/210/217/347/233/270/345/205/263/index.html +1 -1
- package/categories//347/253/231/347/202/271/346/212/230/350/205/276/index.html +1 -1
- package/categories//347/253/231/347/202/271/346/212/230/350/205/276/page/2/index.html +1 -1
- package/categories//351/241/271/347/233/256/346/212/230/350/205/276/index.html +1 -1
- package/charts/index.html +1 -1
- package/comments/index.html +1 -1
- package/essay/index.html +1 -1
- package/fcircle/index.html +1 -1
- package/games +3 -3
- package/index.html +1 -1
- package/link/index.html +1 -1
- package/maps/sw.js.map +1 -1
- package/music/index.html +1 -1
- package/package.json +1 -1
- package/page/2/index.html +1 -1
- package/page/3/index.html +1 -1
- package/page/4/index.html +1 -1
- package/page/5/index.html +1 -1
- package/posts/10021/index.html +2 -2
- package/posts/10045/index.html +1 -1
- package/posts/10733/index.html +1 -1
- package/posts/10996/index.html +2 -2
- package/posts/12779/index.html +1 -1
- package/posts/13624/index.html +1 -1
- package/posts/15688/index.html +1 -1
- package/posts/15748/index.html +2 -2
- package/posts/15799/index.html +1 -1
- package/posts/15842/index.html +2 -2
- package/posts/16107/index.html +1 -1
- package/posts/18063/index.html +1 -1
- package/posts/20412/index.html +1 -1
- package/posts/21375/index.html +1 -1
- package/posts/22945/index.html +2 -2
- package/posts/23021/index.html +1 -1
- package/posts/27531/index.html +2 -2
- package/posts/28536/index.html +1 -1
- package/posts/28733/index.html +1 -1
- package/posts/29196/index.html +1 -1
- package/posts/38917/index.html +1 -1
- package/posts/38964/index.html +1 -1
- package/posts/42487/index.html +1 -1
- package/posts/42580/index.html +1 -1
- package/posts/45875/index.html +1 -1
- package/posts/46640/index.html +1 -1
- package/posts/48762/index.html +1 -1
- package/posts/50710/index.html +1 -1
- package/posts/52677/index.html +1 -1
- package/posts/53662/index.html +1 -1
- package/posts/54386/index.html +1 -1
- package/posts/54481/index.html +1 -1
- package/posts/54787/index.html +2 -2
- package/posts/56467/index.html +1 -1
- package/posts/57692/index.html +1 -1
- package/posts/58203/index.html +1 -1
- package/posts/61417/index.html +1 -1
- package/posts/61712/index.html +1 -1
- package/posts/646/index.html +1 -1
- package/posts/64856/index.html +1 -1
- package/posts/64935/index.html +1 -1
- package/search.xml +135 -135
- package/seas/index.html +1 -1
- package/sw.js +1 -1
- package/tags/Flash/347/233/270/345/205/263/index.html +1 -1
- package/tags/Steam/346/270/270/346/210/217/index.html +1 -1
- package/tags/Windows/350/275/257/344/273/266/index.html +1 -1
- package/tags/index.html +1 -1
- package/tags//344/270/252/344/272/272/345/260/217/350/256/260/index.html +1 -1
- package/tags//344/270/252/344/272/272/345/260/217/350/256/260/page/2/index.html +1 -1
- package/tags//345/205/266/345/256/203/346/270/270/346/210/217/index.html +1 -1
- package/tags//345/212/240/350/275/275/345/212/250/347/224/273/index.html +1 -1
- package/tags//346/202/254/346/265/256/345/256/240/347/211/251-/347/234/213/346/235/277/345/250/230/index.html +1 -1
- package/tags//346/255/214/346/233/262/346/224/266/351/233/206/index.html +1 -1
- package/tags//346/270/270/346/210/217/347/233/270/345/205/263/index.html +1 -1
- package/tags//347/253/231/347/202/271/345/272/225/351/203/250/351/255/224/346/224/271/index.html +1 -1
- package/tags//347/253/231/347/202/271/346/212/230/350/205/276/index.html +1 -1
- package/tags//347/253/231/347/202/271/346/212/230/350/205/276/page/2/index.html +1 -1
- package/tags//350/207/252/345/273/272/351/203/250/347/275/262/index.html +1 -1
- package/tags//351/241/265/351/235/242/351/255/224/346/224/271/index.html +1 -1
- package/tags//351/241/271/347/233/256/346/212/230/350/205/276/index.html +1 -1
- package/update/index.html +1 -1
package/search.xml
CHANGED
@@ -113,35 +113,6 @@
|
|
113
113
|
<h1 id="收藏了几台手机"><a href="#收藏了几台手机" class="headerlink" title="收藏了几台手机"></a>收藏了几台手机</h1><p>这些都是之前在闲鱼上看见的<br>其中有一台说是配件机,说是不能开机<br>结果被我搞开机了</p>
|
114
114
|
<p>然后这三台我都给它们换了主题<br>换完主题的效果:<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240705/d76602a274135b80c62d56bd26c758a.4xuf2npsag.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240705/d76602a274135b80c62d56bd26c758a.4xuf2npsag.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="d76602a274135b80c62d56bd26c758a"><br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240705/0dbf4a6d201aa874c099abce975c7cb.1lbp8a96lv.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240705/0dbf4a6d201aa874c099abce975c7cb.1lbp8a96lv.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="0dbf4a6d201aa874c099abce975c7cb"></p>
|
115
115
|
<p>以上(虽然还有一场考试。。。。。但是是在下周四)</p>
|
116
|
-
]]></content>
|
117
|
-
<categories>
|
118
|
-
<category>个人小记</category>
|
119
|
-
</categories>
|
120
|
-
<tags>
|
121
|
-
<tag>个人小记</tag>
|
122
|
-
</tags>
|
123
|
-
</entry>
|
124
|
-
<entry>
|
125
|
-
<title>2024-07小记</title>
|
126
|
-
<url>/posts/15799/</url>
|
127
|
-
<content><![CDATA[<p>依然还是每个月的个人小记啦<br>虽然这个月出了一点事故,但也是有一点惊喜的啦 ~~~<br>话不多说,正片开始<br><span id="more"></span></p>
|
128
|
-
<h1 id="初入罗德岛"><a href="#初入罗德岛" class="headerlink" title="初入罗德岛"></a>初入罗德岛</h1><p>看到罗德岛,你们知道我干啥了吧<br>没错,我入坑《明日方舟》了<br>我原本是想说小何让我入坑《绝区零》的事情的,结果那次我祖奶奶过世再加上我弟生病,导致我这几天根本没心情玩<br>也因此对绝区零也没什么太大印象,只能说说方舟的事情</p>
|
129
|
-
<p>入坑的是国际服(国服的话。。。。。懂得都懂)<br>但是这暑假的一堆事情和小何给我的一大堆事情,再加上补习,让我没怎么玩过游戏(甚至连ba,赛马娘和大碧蓝都没玩了,)</p>
|
130
|
-
<p>后面也懒得给这游戏做评价了,反正游戏嘛,能放轻松就行</p>
|
131
|
-
<h1 id="成为小众网vip"><a href="#成为小众网vip" class="headerlink" title="成为小众网vip"></a>成为小众网vip</h1><p>我上篇小记不是收藏了一些机子吗?<br>我之前想给这些机子安装几款游戏玩玩,但是无奈我想找的只有去小众网才有</p>
|
132
|
-
<p>于是我花9.9买下小众网一年会员<br>虽然我不怎么下载这里面的软件了。。。。。就当是支持小众网吧~~<br>(反正这个月入手了几台新机子,后面想给这些机子下载软件也很方便)</p>
|
133
|
-
<h1 id="淘到的新机子"><a href="#淘到的新机子" class="headerlink" title="淘到的新机子"></a>淘到的新机子</h1><p>还是老样子,来看看我这个月收藏了什么老机子吧:</p>
|
134
|
-
<h2 id="三星M128"><a href="#三星M128" class="headerlink" title="三星M128"></a>三星M128</h2><p>这台原计划是两天到达的,但是因为台风导致拖了一天<br><psw>有人甚至还说被风吹飞了,这要是被风吹飞了我可能会当场裂开,毕竟这可是稀有机子,还是奥运会特别纪念手机。。。。。</psw></p>
|
135
|
-
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/c1a54fbb55916d8f6620dddf757751d.lvmw822eq.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/c1a54fbb55916d8f6620dddf757751d.lvmw822eq.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="1"><br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/6fc6b0db81948cb34832ca40e11ec50.6t70wdy9dj.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/6fc6b0db81948cb34832ca40e11ec50.6t70wdy9dj.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="2"></p>
|
136
|
-
<p>这台的右键貌似有问题,每次都得用力按一下才能点到右边<br>算了,反正是稀有机子嘛,就别要求这么多啦。。。。</p>
|
137
|
-
<h2 id="PPC-三-兄-贵-——-三星Omnia-I900V-I908-I908L"><a href="#PPC-三-兄-贵-——-三星Omnia-I900V-I908-I908L" class="headerlink" title="PPC 三 兄 贵 —— 三星Omnia I900V/I908/I908L"></a>PPC 三 兄 贵 —— 三星Omnia I900V/I908/I908L</h2><p>其实那I900V就是我上个小记说的那PPC,这次确实搞到了三台,只不过是两台I908L和一台I908<br>其中一台I908L屏幕是坏的,刚好我有一台I900V那外壳是坏的,索性就把外壳拆下来装到那I900V上来了</p>
|
138
|
-
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/613ebc652ab401e77260183401c41b0.2venfpyhas.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/613ebc652ab401e77260183401c41b0.2venfpyhas.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="1"></p>
|
139
|
-
<h2 id="第二台摩托罗拉-——-摩托罗拉-明A1200"><a href="#第二台摩托罗拉-——-摩托罗拉-明A1200" class="headerlink" title="第二台摩托罗拉 —— 摩托罗拉 明A1200"></a>第二台摩托罗拉 —— 摩托罗拉 明A1200</h2><p>那次看完《保持通话》这个电影之后就一直想搞台这个了<br>(其实我原本想要的是A1600,然后找不到便宜的,只能a1200)</p>
|
140
|
-
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/95f222caa18e68ac9f4291bfdb5d4e6.51e21hq6w3.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/95f222caa18e68ac9f4291bfdb5d4e6.51e21hq6w3.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="1"><br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/416fd6ec87046b4960c74d571c72ee7.73tupjoth9.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/416fd6ec87046b4960c74d571c72ee7.73tupjoth9.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="2"></p>
|
141
|
-
<p>可惜的是这个貌似听筒是坏掉的,后面等我搞到个好的听筒再来发照片吧</p>
|
142
|
-
<h2 id="第三台摩托罗拉-——-摩托罗拉-刀锋V3"><a href="#第三台摩托罗拉-——-摩托罗拉-刀锋V3" class="headerlink" title="第三台摩托罗拉 —— 摩托罗拉 刀锋V3"></a>第三台摩托罗拉 —— 摩托罗拉 刀锋V3</h2><p>(别问第一台是什么,第一台是C289,黑白屏的,很久之前从我外婆那边收到的)<br>这台我其实是买了两台<br>有一台被当作另一台的配件机了<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/020d1e7c98affcf11c42805e0d173fe.1e8idyuhdn.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/020d1e7c98affcf11c42805e0d173fe.1e8idyuhdn.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="1"><br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/f50d9ac7fb46d8f6b7506fb5c34ebe4.2venfpyn60.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/f50d9ac7fb46d8f6b7506fb5c34ebe4.2venfpyn60.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="2"><br>不愧是刀锋,这手感放在2024都不过时<br>可惜的是在此之后摩托罗拉据说是错过了安卓,导致移动业务被收购了。。。。。</p>
|
143
|
-
<p>其它的先不展示。。。。。这个月淘到的机子有一点多了。。。。</p>
|
144
|
-
<p>以上</p>
|
145
116
|
]]></content>
|
146
117
|
<categories>
|
147
118
|
<category>个人小记</category>
|
@@ -174,6 +145,35 @@
|
|
174
145
|
<p>然而这些为啥才算钻石级别呢,因为还有高手!</p>
|
175
146
|
<h2 id="皇冠级稀有机子-——-诺基亚X3-01"><a href="#皇冠级稀有机子-——-诺基亚X3-01" class="headerlink" title="皇冠级稀有机子 —— 诺基亚X3-01"></a>皇冠级稀有机子 —— 诺基亚X3-01</h2><p>别问这台为啥称之为皇冠级别呢?因为这台根本就没有真正意义上的发售过!<br>而且虽然只是brew的机子,但是因为是稀有机子,就算是brew也值了!<br>不多说,放图!<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240901/a10094e6a06250f3d92c36da4486e65.7ax3uny6dr.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240901/a10094e6a06250f3d92c36da4486e65.7ax3uny6dr.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="a10094e6a06250f3d92c36da4486e65"><br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240901/78d009edcf8931da871fa1b92371acb.3uus2kokpr.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240901/78d009edcf8931da871fa1b92371acb.3uus2kokpr.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="78d009edcf8931da871fa1b92371acb"><br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240901/1a3db58061f3e020d1ff94a81a65242.4917tfwx1w.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240901/1a3db58061f3e020d1ff94a81a65242.4917tfwx1w.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="1a3db58061f3e020d1ff94a81a65242"><br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240901/ec6b46a5bd1d8a91cdefd99482223a2.3k7y9f9fjm.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240901/ec6b46a5bd1d8a91cdefd99482223a2.3k7y9f9fjm.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="ec6b46a5bd1d8a91cdefd99482223a2"><br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240901/e92bf7b365ca318da8a8efb0e860f21.92q2pkhori.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240901/e92bf7b365ca318da8a8efb0e860f21.92q2pkhori.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="e92bf7b365ca318da8a8efb0e860f21"></p>
|
176
147
|
<p>以上(我得去睡觉了,要不然明天开学要迟到了。。。。。)</p>
|
148
|
+
]]></content>
|
149
|
+
<categories>
|
150
|
+
<category>个人小记</category>
|
151
|
+
</categories>
|
152
|
+
<tags>
|
153
|
+
<tag>个人小记</tag>
|
154
|
+
</tags>
|
155
|
+
</entry>
|
156
|
+
<entry>
|
157
|
+
<title>2024-07小记</title>
|
158
|
+
<url>/posts/15799/</url>
|
159
|
+
<content><![CDATA[<p>依然还是每个月的个人小记啦<br>虽然这个月出了一点事故,但也是有一点惊喜的啦 ~~~<br>话不多说,正片开始<br><span id="more"></span></p>
|
160
|
+
<h1 id="初入罗德岛"><a href="#初入罗德岛" class="headerlink" title="初入罗德岛"></a>初入罗德岛</h1><p>看到罗德岛,你们知道我干啥了吧<br>没错,我入坑《明日方舟》了<br>我原本是想说小何让我入坑《绝区零》的事情的,结果那次我祖奶奶过世再加上我弟生病,导致我这几天根本没心情玩<br>也因此对绝区零也没什么太大印象,只能说说方舟的事情</p>
|
161
|
+
<p>入坑的是国际服(国服的话。。。。。懂得都懂)<br>但是这暑假的一堆事情和小何给我的一大堆事情,再加上补习,让我没怎么玩过游戏(甚至连ba,赛马娘和大碧蓝都没玩了,)</p>
|
162
|
+
<p>后面也懒得给这游戏做评价了,反正游戏嘛,能放轻松就行</p>
|
163
|
+
<h1 id="成为小众网vip"><a href="#成为小众网vip" class="headerlink" title="成为小众网vip"></a>成为小众网vip</h1><p>我上篇小记不是收藏了一些机子吗?<br>我之前想给这些机子安装几款游戏玩玩,但是无奈我想找的只有去小众网才有</p>
|
164
|
+
<p>于是我花9.9买下小众网一年会员<br>虽然我不怎么下载这里面的软件了。。。。。就当是支持小众网吧~~<br>(反正这个月入手了几台新机子,后面想给这些机子下载软件也很方便)</p>
|
165
|
+
<h1 id="淘到的新机子"><a href="#淘到的新机子" class="headerlink" title="淘到的新机子"></a>淘到的新机子</h1><p>还是老样子,来看看我这个月收藏了什么老机子吧:</p>
|
166
|
+
<h2 id="三星M128"><a href="#三星M128" class="headerlink" title="三星M128"></a>三星M128</h2><p>这台原计划是两天到达的,但是因为台风导致拖了一天<br><psw>有人甚至还说被风吹飞了,这要是被风吹飞了我可能会当场裂开,毕竟这可是稀有机子,还是奥运会特别纪念手机。。。。。</psw></p>
|
167
|
+
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/c1a54fbb55916d8f6620dddf757751d.lvmw822eq.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/c1a54fbb55916d8f6620dddf757751d.lvmw822eq.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="1"><br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/6fc6b0db81948cb34832ca40e11ec50.6t70wdy9dj.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/6fc6b0db81948cb34832ca40e11ec50.6t70wdy9dj.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="2"></p>
|
168
|
+
<p>这台的右键貌似有问题,每次都得用力按一下才能点到右边<br>算了,反正是稀有机子嘛,就别要求这么多啦。。。。</p>
|
169
|
+
<h2 id="PPC-三-兄-贵-——-三星Omnia-I900V-I908-I908L"><a href="#PPC-三-兄-贵-——-三星Omnia-I900V-I908-I908L" class="headerlink" title="PPC 三 兄 贵 —— 三星Omnia I900V/I908/I908L"></a>PPC 三 兄 贵 —— 三星Omnia I900V/I908/I908L</h2><p>其实那I900V就是我上个小记说的那PPC,这次确实搞到了三台,只不过是两台I908L和一台I908<br>其中一台I908L屏幕是坏的,刚好我有一台I900V那外壳是坏的,索性就把外壳拆下来装到那I900V上来了</p>
|
170
|
+
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/613ebc652ab401e77260183401c41b0.2venfpyhas.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/613ebc652ab401e77260183401c41b0.2venfpyhas.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="1"></p>
|
171
|
+
<h2 id="第二台摩托罗拉-——-摩托罗拉-明A1200"><a href="#第二台摩托罗拉-——-摩托罗拉-明A1200" class="headerlink" title="第二台摩托罗拉 —— 摩托罗拉 明A1200"></a>第二台摩托罗拉 —— 摩托罗拉 明A1200</h2><p>那次看完《保持通话》这个电影之后就一直想搞台这个了<br>(其实我原本想要的是A1600,然后找不到便宜的,只能a1200)</p>
|
172
|
+
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/95f222caa18e68ac9f4291bfdb5d4e6.51e21hq6w3.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/95f222caa18e68ac9f4291bfdb5d4e6.51e21hq6w3.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="1"><br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/416fd6ec87046b4960c74d571c72ee7.73tupjoth9.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/416fd6ec87046b4960c74d571c72ee7.73tupjoth9.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="2"></p>
|
173
|
+
<p>可惜的是这个貌似听筒是坏掉的,后面等我搞到个好的听筒再来发照片吧</p>
|
174
|
+
<h2 id="第三台摩托罗拉-——-摩托罗拉-刀锋V3"><a href="#第三台摩托罗拉-——-摩托罗拉-刀锋V3" class="headerlink" title="第三台摩托罗拉 —— 摩托罗拉 刀锋V3"></a>第三台摩托罗拉 —— 摩托罗拉 刀锋V3</h2><p>(别问第一台是什么,第一台是C289,黑白屏的,很久之前从我外婆那边收到的)<br>这台我其实是买了两台<br>有一台被当作另一台的配件机了<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/020d1e7c98affcf11c42805e0d173fe.1e8idyuhdn.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/020d1e7c98affcf11c42805e0d173fe.1e8idyuhdn.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="1"><br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/f50d9ac7fb46d8f6b7506fb5c34ebe4.2venfpyn60.jpg" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240731/f50d9ac7fb46d8f6b7506fb5c34ebe4.2venfpyn60.jpg" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="2"><br>不愧是刀锋,这手感放在2024都不过时<br>可惜的是在此之后摩托罗拉据说是错过了安卓,导致移动业务被收购了。。。。。</p>
|
175
|
+
<p>其它的先不展示。。。。。这个月淘到的机子有一点多了。。。。</p>
|
176
|
+
<p>以上</p>
|
177
177
|
]]></content>
|
178
178
|
<categories>
|
179
179
|
<category>个人小记</category>
|
@@ -352,72 +352,6 @@ function loadkaixinmusic() {
|
|
352
352
|
<tag>Flash相关</tag>
|
353
353
|
</tags>
|
354
354
|
</entry>
|
355
|
-
<entry>
|
356
|
-
<title>Vercel部署Umami</title>
|
357
|
-
<url>/posts/28733/</url>
|
358
|
-
<content><![CDATA[<p>之前我是想参考这个教程来部署:<a href="https://digu.plus/post/8034746f42b3495fbb19926e3fb8ec4f/">https://digu.plus/post/8034746f42b3495fbb19926e3fb8ec4f/</a><br>然而部署过程中翻了车<br>这个教程新版教程(顺便总结一下我翻的车)<br><span id="more"></span></p>
|
359
|
-
<h1 id="数据库选择"><a href="#数据库选择" class="headerlink" title="数据库选择"></a>数据库选择</h1><p>Umami支持MySQL和PostgreSQL数据库,选择自己喜欢的数据库进行数据初始化即可。下面是几个免费的数据库服务,这里选择的是ElephantSQL,当然,并不限于这些。<br>目前www.jsdelivr.ren免费数据库如下:</p>
|
360
|
-
<ul>
|
361
|
-
<li>MySQL:<a href="https://freedb.tech/">FREEDB.TECH</a>、<a href="https://www.db4free.net/">db4free</a>、<a href="https://sqlpub.com/">SQLPub</a></li>
|
362
|
-
<li>PostgreSQL:<a href="https://www.elephantsql.com/">ElephantSQL</a>、<a href="https://supabase.com/">Supabase</a></li>
|
363
|
-
</ul>
|
364
|
-
<h1 id="数据库部署"><a href="#数据库部署" class="headerlink" title="数据库部署"></a>数据库部署</h1><div class="note warning"><p>目前已知Supabase部署失败原因:<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230716/msedge_DL0IGBX6O1.2876ewjv3lz4.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230716/msedge_DL0IGBX6O1.2876ewjv3lz4.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_DL0IGBX6O1"></p></div>
|
365
|
-
<div class="tabs" id="tab-数据库部署"><ul class="nav-tabs"><li class="tab active"><a class="#数据库部署-1">MySQL</a></li><li class="tab"><a class="#数据库部署-2">PostgreSQL</a></li></ul><div class="tab-content"><div class="tab-pane active" id="数据库部署-1"><div class="tabs" id="tab-mysql数据库"><ul class="nav-tabs"><li class="tab active"><a class="#mysql数据库-1">FREEDB.TECH</a></li><li class="tab"><a class="#mysql数据库-2">db4free(不推荐,官网访问较慢)</a></li><li class="tab"><a class="#mysql数据库-3">SQLPub(推荐)</a></li></ul><div class="tab-content"><div class="tab-pane active" id="mysql数据库-1"><p>打开<a href="https://freedb.tech/">FREEDB.TECH</a>,注册登录,创建数据库和用户</p>
|
366
|
-
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_gi9vdCGiIt.48n3g4pzzvw0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_gi9vdCGiIt.48n3g4pzzvw0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_gi9vdCGiIt"></p>
|
367
|
-
<p>得到你的数据库和密码:<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_fGVbS9POH4.409i0oz7v9k0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_fGVbS9POH4.409i0oz7v9k0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_fGVbS9POH4"></p>
|
368
|
-
<p>组合一下:<br><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">mysql://(DATABASE USER):(PASSWORD)@(HOST):(PORT)/(DATABASE NAME)</span><br></pre></td></tr></table></figure></p></div><div class="tab-pane" id="mysql数据库-2"><div class="note warning"><p>这个数据库疑似国人开办,建议用国内邮箱收验证码,国外的基本收不到<br>(转自:<a href="https://www.freeaday.com/2023/01/db4free/">https://www.freeaday.com/2023/01/db4free/</a> 的一条评论)</p></div>
|
369
|
-
|
370
|
-
<p><p>打开<a href="https://www.db4free.net/">db4free</a>,点击“注册免费账号”,输入信息然后点击“注册”,一会后你会收到如下邮件:</p></p>
|
371
|
-
<p><p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/网易灵犀办公_JmFVOuOEIc.30smaneqwfa0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/网易灵犀办公_JmFVOuOEIc.30smaneqwfa0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="网易灵犀办公_JmFVOuOEIc"></p></p>
|
372
|
-
<p><p>访问邮件提供的确认网址,数据库就创建成功了</p></p>
|
373
|
-
<p><p>然后将你设置的信息替换掉下面括号里的内容(注意:括号得去掉):<br><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">mysql://(你设置的数据库用户名):(你设置的数据库密码)@db4free.net:3306/(你设置的数据库名)</span><br></pre></td></tr></table></figure></p></div><div class="tab-pane" id="mysql数据库-3"><p>访问<a href="https://sqlpub.com/">SQLPub</a>,输入账号密码,点击申请,申请成功后会有如下提示<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_8FyIBEs6Ja.14toupglasps.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_8FyIBEs6Ja.14toupglasps.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_8FyIBEs6Ja"><br>然后将里面的替换掉下面括号里的内容(注意:括号得去掉):<br><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">mysql://(数据库用户):(数据库密码)@(数据库地址)/(数据库名称)</span><br></pre></td></tr></table></figure></p></div></div></div></p></div><div class="tab-pane" id="数据库部署-2"><div class="tabs" id="tab-postgresql"><ul class="nav-tabs"><li class="tab active"><a class="#postgresql-1">Supabase(推荐)</a></li><li class="tab"><a class="#postgresql-2">ElephantSQL</a></li></ul><div class="tab-content"><div class="tab-pane active" id="postgresql-1"><p>打开<a href="https://supabase.com/">Supabase</a>,推荐使用Github登录。登陆成功后,创建一个新的项目New project->personal。</p>
|
374
|
-
<ul>
|
375
|
-
<li>Name:随意</li>
|
376
|
-
<li>Database Password:建议点击Generate a password生成</li>
|
377
|
-
<li>Region:建议选择US,因为Vercel的免费服务器在漂亮国</li>
|
378
|
-
<li>Pricing Plan:Free白嫖</li>
|
379
|
-
</ul>
|
380
|
-
<p>创建成功后,打开菜单Project Setting -> Database -> Connection string -> URI,如下图:<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/image.3jutc7fp3fc0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/image.3jutc7fp3fc0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="image"><br>将红框内的内容复制下来,然后把<code>[YOUR-PASSWORD]</code>替换成你生成的密码,复制备用</p></div><div class="tab-pane" id="postgresql-2"><p>打开ElephantSQL,推荐使用Github登录,创建一个新的实例。Plan选择Tiny Turtle(Free)、Region随意,提交创建。<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_ELQQZsgMsH.68dwkz5in1w0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_ELQQZsgMsH.68dwkz5in1w0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_ELQQZsgMsH"><br>打开刚刚创建的示例,找到URL,点击眼睛图标,然后将URL复制下来备用</p></div></div></div></div></div></div>
|
381
|
-
<h1 id="Vercel部署"><a href="#Vercel部署" class="headerlink" title="Vercel部署"></a>Vercel部署</h1><p><a href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fmikecao%2Fumami&env=DATABASE_URL,HASH_SALT,TRACKER_SCRIPT_NAME&envDescription=These%20values%20are%20defined%20in%20the%20configure%20Umami%20step%20from%20Install&envLink=https%3A%2F%2Fumami.is%2Fdocs%2Finstall&project-name=umami&repo-name=umami"><img src="https://vercel.com/button" class="lazyload" data-srcset="https://vercel.com/button" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="部署到Vercel"></a></p>
|
382
|
-
<ol>
|
383
|
-
<li>点击上方按钮,跳转至 Vercel 进行 Server 端部署</li>
|
384
|
-
<li><div class="note info"><p>如果你未登录的话,Vercel 会让你注册或登录,请使用 GitHub 账户进行快捷登录。</p></div>
|
385
|
-
</li>
|
386
|
-
<li><p>输入一个你喜欢的 Vercel 项目名称并点击 Create 继续:</p>
|
387
|
-
</li>
|
388
|
-
</ol>
|
389
|
-
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_EtpjrPwPlG.4zkys81bppo0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_EtpjrPwPlG.4zkys81bppo0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_EtpjrPwPlG"></p>
|
390
|
-
<ol>
|
391
|
-
<li>配置环境变量</li>
|
392
|
-
</ol>
|
393
|
-
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_EtpjrPwPlG.4zkys81bppo0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_EtpjrPwPlG.4zkys81bppo0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_EtpjrPwPlG"><br>部署完成后,会跳转到环境变量部分,请按照如下方式配置环境变量:<br>| 名称 | 说明 |<br>| —————- | —————- |<br>|DATABASE_URL|(必填)数据库链接|<br>|HASH_SALT|(必填)任意字符串,推荐<a href="https://uuid.bmcx.com/">这里</a>生成一串UUID|<br>|TRACKER_SCRIPT_NAME|(建议)任意字符串,推荐<a href="https://uuid.bmcx.com/">这里</a>生成一串UUID(不填会导致去广告插件把这段脚本给拦截)|</p>
|
394
|
-
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_3VF46Qh4uk.6ebntqavbmw.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_3VF46Qh4uk.6ebntqavbmw.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_3VF46Qh4uk"></p>
|
395
|
-
<p>配置完成后点击Deploy开始部署,部署过程大概两分钟,部署成功后会有一个彩纸的喜庆页面。</p>
|
396
|
-
<h1 id="绑定域名"><a href="#绑定域名" class="headerlink" title="绑定域名"></a>绑定域名</h1><p>点击Go to Dashboard,进入Settings——>Domains绑定域名</p>
|
397
|
-
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/image.6kbvzv14uic.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/image.6kbvzv14uic.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="image"></p>
|
398
|
-
<p>你绑定的域名就是umami的后台网址</p>
|
399
|
-
<h1 id="配置后台"><a href="#配置后台" class="headerlink" title="配置后台"></a>配置后台</h1><p>点击你绑定的域名,进入Umami后台登录(默认用户名admin和密码umami)进入后第一时间修改密码。</p>
|
400
|
-
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_V6f3L8vvos.3pvc55z6eqw0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_V6f3L8vvos.3pvc55z6eqw0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_V6f3L8vvos"></p>
|
401
|
-
<h1 id="添加站点-amp-获取代码"><a href="#添加站点-amp-获取代码" class="headerlink" title="添加站点 & 获取代码"></a>添加站点 & 获取代码</h1><p>“网站”—->“添加网站”添加你自己的网站</p>
|
402
|
-
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/image.x9jagr7mvxc.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/image.x9jagr7mvxc.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="image"></p>
|
403
|
-
<p>保存后点击“编辑”—->“跟踪代码”,将获取到的代码放进你的站点</p>
|
404
|
-
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_trQnJ47k75.20wh55o85wkg.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_trQnJ47k75.20wh55o85wkg.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_trQnJ47k75"></p>
|
405
|
-
<p>不久后就能看到你的站点数据了</p>
|
406
|
-
<h1 id="问题"><a href="#问题" class="headerlink" title="问题"></a>问题</h1><ul>
|
407
|
-
<li>Umami无法登录,提示“Failed to load resource: the server responded with a status of 405”<br>等待几分钟后登录重试</li>
|
408
|
-
<li>使用Supabase数据库时,Vercel提示这个错误:</li>
|
409
|
-
</ul>
|
410
|
-
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_D1X7RIZpUD.5wxtzukahdo0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_D1X7RIZpUD.5wxtzukahdo0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_D1X7RIZpUD"></p>
|
411
|
-
<p>建议重新新建数据库,还不行的话更换别的数据库</p>
|
412
|
-
]]></content>
|
413
|
-
<categories>
|
414
|
-
<category>站点折腾</category>
|
415
|
-
</categories>
|
416
|
-
<tags>
|
417
|
-
<tag>站点折腾</tag>
|
418
|
-
<tag>自建部署</tag>
|
419
|
-
</tags>
|
420
|
-
</entry>
|
421
355
|
<entry>
|
422
356
|
<title>Serv00搭建Artalk</title>
|
423
357
|
<url>/posts/13624/</url>
|
@@ -496,6 +430,72 @@ function loadkaixinmusic() {
|
|
496
430
|
<tag>自建部署</tag>
|
497
431
|
</tags>
|
498
432
|
</entry>
|
433
|
+
<entry>
|
434
|
+
<title>Vercel部署Umami</title>
|
435
|
+
<url>/posts/28733/</url>
|
436
|
+
<content><![CDATA[<p>之前我是想参考这个教程来部署:<a href="https://digu.plus/post/8034746f42b3495fbb19926e3fb8ec4f/">https://digu.plus/post/8034746f42b3495fbb19926e3fb8ec4f/</a><br>然而部署过程中翻了车<br>这个教程新版教程(顺便总结一下我翻的车)<br><span id="more"></span></p>
|
437
|
+
<h1 id="数据库选择"><a href="#数据库选择" class="headerlink" title="数据库选择"></a>数据库选择</h1><p>Umami支持MySQL和PostgreSQL数据库,选择自己喜欢的数据库进行数据初始化即可。下面是几个免费的数据库服务,这里选择的是ElephantSQL,当然,并不限于这些。<br>目前www.jsdelivr.ren免费数据库如下:</p>
|
438
|
+
<ul>
|
439
|
+
<li>MySQL:<a href="https://freedb.tech/">FREEDB.TECH</a>、<a href="https://www.db4free.net/">db4free</a>、<a href="https://sqlpub.com/">SQLPub</a></li>
|
440
|
+
<li>PostgreSQL:<a href="https://www.elephantsql.com/">ElephantSQL</a>、<a href="https://supabase.com/">Supabase</a></li>
|
441
|
+
</ul>
|
442
|
+
<h1 id="数据库部署"><a href="#数据库部署" class="headerlink" title="数据库部署"></a>数据库部署</h1><div class="note warning"><p>目前已知Supabase部署失败原因:<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230716/msedge_DL0IGBX6O1.2876ewjv3lz4.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230716/msedge_DL0IGBX6O1.2876ewjv3lz4.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_DL0IGBX6O1"></p></div>
|
443
|
+
<div class="tabs" id="tab-数据库部署"><ul class="nav-tabs"><li class="tab active"><a class="#数据库部署-1">MySQL</a></li><li class="tab"><a class="#数据库部署-2">PostgreSQL</a></li></ul><div class="tab-content"><div class="tab-pane active" id="数据库部署-1"><div class="tabs" id="tab-mysql数据库"><ul class="nav-tabs"><li class="tab active"><a class="#mysql数据库-1">FREEDB.TECH</a></li><li class="tab"><a class="#mysql数据库-2">db4free(不推荐,官网访问较慢)</a></li><li class="tab"><a class="#mysql数据库-3">SQLPub(推荐)</a></li></ul><div class="tab-content"><div class="tab-pane active" id="mysql数据库-1"><p>打开<a href="https://freedb.tech/">FREEDB.TECH</a>,注册登录,创建数据库和用户</p>
|
444
|
+
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_gi9vdCGiIt.48n3g4pzzvw0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_gi9vdCGiIt.48n3g4pzzvw0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_gi9vdCGiIt"></p>
|
445
|
+
<p>得到你的数据库和密码:<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_fGVbS9POH4.409i0oz7v9k0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_fGVbS9POH4.409i0oz7v9k0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_fGVbS9POH4"></p>
|
446
|
+
<p>组合一下:<br><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">mysql://(DATABASE USER):(PASSWORD)@(HOST):(PORT)/(DATABASE NAME)</span><br></pre></td></tr></table></figure></p></div><div class="tab-pane" id="mysql数据库-2"><div class="note warning"><p>这个数据库疑似国人开办,建议用国内邮箱收验证码,国外的基本收不到<br>(转自:<a href="https://www.freeaday.com/2023/01/db4free/">https://www.freeaday.com/2023/01/db4free/</a> 的一条评论)</p></div>
|
447
|
+
|
448
|
+
<p><p>打开<a href="https://www.db4free.net/">db4free</a>,点击“注册免费账号”,输入信息然后点击“注册”,一会后你会收到如下邮件:</p></p>
|
449
|
+
<p><p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/网易灵犀办公_JmFVOuOEIc.30smaneqwfa0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/网易灵犀办公_JmFVOuOEIc.30smaneqwfa0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="网易灵犀办公_JmFVOuOEIc"></p></p>
|
450
|
+
<p><p>访问邮件提供的确认网址,数据库就创建成功了</p></p>
|
451
|
+
<p><p>然后将你设置的信息替换掉下面括号里的内容(注意:括号得去掉):<br><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">mysql://(你设置的数据库用户名):(你设置的数据库密码)@db4free.net:3306/(你设置的数据库名)</span><br></pre></td></tr></table></figure></p></div><div class="tab-pane" id="mysql数据库-3"><p>访问<a href="https://sqlpub.com/">SQLPub</a>,输入账号密码,点击申请,申请成功后会有如下提示<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_8FyIBEs6Ja.14toupglasps.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_8FyIBEs6Ja.14toupglasps.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_8FyIBEs6Ja"><br>然后将里面的替换掉下面括号里的内容(注意:括号得去掉):<br><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">mysql://(数据库用户):(数据库密码)@(数据库地址)/(数据库名称)</span><br></pre></td></tr></table></figure></p></div></div></div></p></div><div class="tab-pane" id="数据库部署-2"><div class="tabs" id="tab-postgresql"><ul class="nav-tabs"><li class="tab active"><a class="#postgresql-1">Supabase(推荐)</a></li><li class="tab"><a class="#postgresql-2">ElephantSQL</a></li></ul><div class="tab-content"><div class="tab-pane active" id="postgresql-1"><p>打开<a href="https://supabase.com/">Supabase</a>,推荐使用Github登录。登陆成功后,创建一个新的项目New project->personal。</p>
|
452
|
+
<ul>
|
453
|
+
<li>Name:随意</li>
|
454
|
+
<li>Database Password:建议点击Generate a password生成</li>
|
455
|
+
<li>Region:建议选择US,因为Vercel的免费服务器在漂亮国</li>
|
456
|
+
<li>Pricing Plan:Free白嫖</li>
|
457
|
+
</ul>
|
458
|
+
<p>创建成功后,打开菜单Project Setting -> Database -> Connection string -> URI,如下图:<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/image.3jutc7fp3fc0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/image.3jutc7fp3fc0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="image"><br>将红框内的内容复制下来,然后把<code>[YOUR-PASSWORD]</code>替换成你生成的密码,复制备用</p></div><div class="tab-pane" id="postgresql-2"><p>打开ElephantSQL,推荐使用Github登录,创建一个新的实例。Plan选择Tiny Turtle(Free)、Region随意,提交创建。<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_ELQQZsgMsH.68dwkz5in1w0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_ELQQZsgMsH.68dwkz5in1w0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_ELQQZsgMsH"><br>打开刚刚创建的示例,找到URL,点击眼睛图标,然后将URL复制下来备用</p></div></div></div></div></div></div>
|
459
|
+
<h1 id="Vercel部署"><a href="#Vercel部署" class="headerlink" title="Vercel部署"></a>Vercel部署</h1><p><a href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fmikecao%2Fumami&env=DATABASE_URL,HASH_SALT,TRACKER_SCRIPT_NAME&envDescription=These%20values%20are%20defined%20in%20the%20configure%20Umami%20step%20from%20Install&envLink=https%3A%2F%2Fumami.is%2Fdocs%2Finstall&project-name=umami&repo-name=umami"><img src="https://vercel.com/button" class="lazyload" data-srcset="https://vercel.com/button" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="部署到Vercel"></a></p>
|
460
|
+
<ol>
|
461
|
+
<li>点击上方按钮,跳转至 Vercel 进行 Server 端部署</li>
|
462
|
+
<li><div class="note info"><p>如果你未登录的话,Vercel 会让你注册或登录,请使用 GitHub 账户进行快捷登录。</p></div>
|
463
|
+
</li>
|
464
|
+
<li><p>输入一个你喜欢的 Vercel 项目名称并点击 Create 继续:</p>
|
465
|
+
</li>
|
466
|
+
</ol>
|
467
|
+
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_EtpjrPwPlG.4zkys81bppo0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_EtpjrPwPlG.4zkys81bppo0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_EtpjrPwPlG"></p>
|
468
|
+
<ol>
|
469
|
+
<li>配置环境变量</li>
|
470
|
+
</ol>
|
471
|
+
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_EtpjrPwPlG.4zkys81bppo0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_EtpjrPwPlG.4zkys81bppo0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_EtpjrPwPlG"><br>部署完成后,会跳转到环境变量部分,请按照如下方式配置环境变量:<br>| 名称 | 说明 |<br>| —————- | —————- |<br>|DATABASE_URL|(必填)数据库链接|<br>|HASH_SALT|(必填)任意字符串,推荐<a href="https://uuid.bmcx.com/">这里</a>生成一串UUID|<br>|TRACKER_SCRIPT_NAME|(建议)任意字符串,推荐<a href="https://uuid.bmcx.com/">这里</a>生成一串UUID(不填会导致去广告插件把这段脚本给拦截)|</p>
|
472
|
+
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_3VF46Qh4uk.6ebntqavbmw.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_3VF46Qh4uk.6ebntqavbmw.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_3VF46Qh4uk"></p>
|
473
|
+
<p>配置完成后点击Deploy开始部署,部署过程大概两分钟,部署成功后会有一个彩纸的喜庆页面。</p>
|
474
|
+
<h1 id="绑定域名"><a href="#绑定域名" class="headerlink" title="绑定域名"></a>绑定域名</h1><p>点击Go to Dashboard,进入Settings——>Domains绑定域名</p>
|
475
|
+
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/image.6kbvzv14uic.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/image.6kbvzv14uic.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="image"></p>
|
476
|
+
<p>你绑定的域名就是umami的后台网址</p>
|
477
|
+
<h1 id="配置后台"><a href="#配置后台" class="headerlink" title="配置后台"></a>配置后台</h1><p>点击你绑定的域名,进入Umami后台登录(默认用户名admin和密码umami)进入后第一时间修改密码。</p>
|
478
|
+
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_V6f3L8vvos.3pvc55z6eqw0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_V6f3L8vvos.3pvc55z6eqw0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_V6f3L8vvos"></p>
|
479
|
+
<h1 id="添加站点-amp-获取代码"><a href="#添加站点-amp-获取代码" class="headerlink" title="添加站点 & 获取代码"></a>添加站点 & 获取代码</h1><p>“网站”—->“添加网站”添加你自己的网站</p>
|
480
|
+
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/image.x9jagr7mvxc.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/image.x9jagr7mvxc.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="image"></p>
|
481
|
+
<p>保存后点击“编辑”—->“跟踪代码”,将获取到的代码放进你的站点</p>
|
482
|
+
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_trQnJ47k75.20wh55o85wkg.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_trQnJ47k75.20wh55o85wkg.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_trQnJ47k75"></p>
|
483
|
+
<p>不久后就能看到你的站点数据了</p>
|
484
|
+
<h1 id="问题"><a href="#问题" class="headerlink" title="问题"></a>问题</h1><ul>
|
485
|
+
<li>Umami无法登录,提示“Failed to load resource: the server responded with a status of 405”<br>等待几分钟后登录重试</li>
|
486
|
+
<li>使用Supabase数据库时,Vercel提示这个错误:</li>
|
487
|
+
</ul>
|
488
|
+
<p><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_D1X7RIZpUD.5wxtzukahdo0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230714/msedge_D1X7RIZpUD.5wxtzukahdo0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_D1X7RIZpUD"></p>
|
489
|
+
<p>建议重新新建数据库,还不行的话更换别的数据库</p>
|
490
|
+
]]></content>
|
491
|
+
<categories>
|
492
|
+
<category>站点折腾</category>
|
493
|
+
</categories>
|
494
|
+
<tags>
|
495
|
+
<tag>站点折腾</tag>
|
496
|
+
<tag>自建部署</tag>
|
497
|
+
</tags>
|
498
|
+
</entry>
|
499
499
|
<entry>
|
500
500
|
<title>butterfly主题添加音乐页面(适配手机)</title>
|
501
501
|
<url>/posts/22945/</url>
|
@@ -1080,6 +1080,30 @@ function loadkaixinmusic() {
|
|
1080
1080
|
<h1 id="偏执狂金属网(www-paranoidmetal-com-)"><a href="#偏执狂金属网(www-paranoidmetal-com-)" class="headerlink" title="偏执狂金属网(www.paranoidmetal.com )"></a>偏执狂金属网(www.paranoidmetal.com )</h1><p>重金属音乐爱好者的站点,没什么好说的</p>
|
1081
1081
|
<h1 id="机动展示联盟MSL中国(cnmsl-net-)"><a href="#机动展示联盟MSL中国(cnmsl-net-)" class="headerlink" title="机动展示联盟MSL中国(cnmsl.net )"></a>机动展示联盟MSL中国(cnmsl.net )</h1><p>(请勿理解成那个cnmsl,这个网站全称是China Mobile Suit League,是CN-MSL,不是那个cnmsl。。。。。。)<br>没想到1999年就有人围绕机械和高达搭建了同人站(这好像不算同人站吧),只能说国内高达能吸引那么多人有他们的一份功劳</p>
|
1082
1082
|
<p>还有很多站点就不再说了,再说下去空间不够了</p>
|
1083
|
+
]]></content>
|
1084
|
+
<categories>
|
1085
|
+
<category>个人小记</category>
|
1086
|
+
</categories>
|
1087
|
+
<tags>
|
1088
|
+
<tag>个人小记</tag>
|
1089
|
+
</tags>
|
1090
|
+
</entry>
|
1091
|
+
<entry>
|
1092
|
+
<title>站点装修与国庆小记</title>
|
1093
|
+
<url>/posts/10733/</url>
|
1094
|
+
<content><![CDATA[<p>国庆假期已经快要收尾了<br>不知道大家过得怎么样呢?<br>不废话,正片开始!<br><span id="more"></span></p>
|
1095
|
+
<h1 id="站点又重新装修"><a href="#站点又重新装修" class="headerlink" title="站点又重新装修"></a>站点又重新装修</h1><p>之前我魔改的那Butterfly主题被人诟病加载慢等等问题<psw>,并且在经过我的“努力”之下成功变成了史山代码</psw><br>因此被迫重新装修</p>
|
1096
|
+
<p>站点更新如下:</p>
|
1097
|
+
<ul>
|
1098
|
+
<li>更换主题为<a href="https://hexo-theme-async.imalun.com/">Hexo-Theme-Async</a>,并且为这个主题适配了IndieWeb,同时也做了一些魔改</li>
|
1099
|
+
<li>将原先的swpp换成async主题自带sw,并且在此基础上进行适配全站npm化</li>
|
1100
|
+
<li>添加DocSearch</li>
|
1101
|
+
</ul>
|
1102
|
+
<p>很多功能我还没添加,敬请期待!</p>
|
1103
|
+
<h1 id="第一次去漫展"><a href="#第一次去漫展" class="headerlink" title="第一次去漫展"></a>第一次去漫展</h1><p>之前在微信的朋友圈里面看到了我的一位朋友<br>他要几个人跟他去漫展<br>而且那漫展还是在汕头(离我家很近)<br>于是我想去逛漫展了</p>
|
1104
|
+
<p>虽然那位朋友在去漫展的路上出事(腰出问题)导致迟到了差不多一个小时<br>不过没关系,我能自己逛逛</p>
|
1105
|
+
<p>逛逛的过程中顺带买了hina的立牌和大米的谷子<psw>别问为啥没买麻酱和独角兽的谷子,貌似卖完了或者根本没卖(悲)</psw><br>而且还去看了那边的演出(那边的演出是会整活的,给背景音乐混入了几个奇奇怪怪的东西)<br>我那朋友一来我就带他们去卖立牌的地方<br><psw>然后我就看见了这地方还有本子。。。。。。。</psw><br>他们买了几个谷子,我也跟着买了几个谷子和钥匙扣</p>
|
1106
|
+
<p>收获:<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/82245cff3c03cdd649f4b71ea6b8cc1.5tr06yjfnx.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/82245cff3c03cdd649f4b71ea6b8cc1.5tr06yjfnx.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="四个谷子,一个立牌和两个钥匙扣"></p>
|
1083
1107
|
]]></content>
|
1084
1108
|
<categories>
|
1085
1109
|
<category>个人小记</category>
|
@@ -1133,27 +1157,21 @@ function loadkaixinmusic() {
|
|
1133
1157
|
</tags>
|
1134
1158
|
</entry>
|
1135
1159
|
<entry>
|
1136
|
-
<title
|
1137
|
-
<url>/posts/
|
1138
|
-
<content><![CDATA[<p
|
1139
|
-
<
|
1140
|
-
<p>站点更新如下:</p>
|
1141
|
-
<
|
1142
|
-
<
|
1143
|
-
<
|
1144
|
-
<li>添加DocSearch</li>
|
1145
|
-
</ul>
|
1146
|
-
<p>很多功能我还没添加,敬请期待!</p>
|
1147
|
-
<h1 id="第一次去漫展"><a href="#第一次去漫展" class="headerlink" title="第一次去漫展"></a>第一次去漫展</h1><p>之前在微信的朋友圈里面看到了我的一位朋友<br>他要几个人跟他去漫展<br>而且那漫展还是在汕头(离我家很近)<br>于是我想去逛漫展了</p>
|
1148
|
-
<p>虽然那位朋友在去漫展的路上出事(腰出问题)导致迟到了差不多一个小时<br>不过没关系,我能自己逛逛</p>
|
1149
|
-
<p>逛逛的过程中顺带买了hina的立牌和大米的谷子<psw>别问为啥没买麻酱和独角兽的谷子,貌似卖完了或者根本没卖(悲)</psw><br>而且还去看了那边的演出(那边的演出是会整活的,给背景音乐混入了几个奇奇怪怪的东西)<br>我那朋友一来我就带他们去卖立牌的地方<br><psw>然后我就看见了这地方还有本子。。。。。。。</psw><br>他们买了几个谷子,我也跟着买了几个谷子和钥匙扣</p>
|
1150
|
-
<p>收获:<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/82245cff3c03cdd649f4b71ea6b8cc1.5tr06yjfnx.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/82245cff3c03cdd649f4b71ea6b8cc1.5tr06yjfnx.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="四个谷子,一个立牌和两个钥匙扣"></p>
|
1160
|
+
<title>给你的站点添加个可可爱爱的看板娘——伪春菜</title>
|
1161
|
+
<url>/posts/54787/</url>
|
1162
|
+
<content><![CDATA[<p>什么是伪春菜?<a href="https://mzh.moegirl.org.cn/%E4%BC%AA%E6%98%A5%E8%8F%9C">请看这里</a><br>作为一个早在xp时代就出现的桌面精灵,伪春菜有了爆火的人气<br>后来不知道什么时候开始在国内由盛转衰,直到现在我对这个圈子少之又少<br>我自己也下载了ssp并且应用了后来某位大佬复活的Taromati2人格</p>
|
1163
|
+
<p>某次我逛逛某个博客站点时发现有个站点将伪春菜当成了看板娘<br>就去去搜了一下,得到的结果是:<a href="http://www.lmyoaoa.com/inn/archives/4504/">http://www.lmyoaoa.com/inn/archives/4504/</a><br>又因为这玩意已经很久没更新,所以我将这个的js、css和图片提取出来,然后魔改了一下,方便放在hexo里面<br>废话不多说,开始吧!<br><span id="more"></span></p>
|
1164
|
+
<h1 id="引入js和css"><a href="#引入js和css" class="headerlink" title="引入js和css"></a>引入js和css</h1><p>{blogroot}/source/weichuncai/css/style.css<br><figure class="highlight css"><table><tr><td class="code"><pre><span class="line"><span class="selector-id">#smchuncai</span> {<span class="attribute">opacity</span>:<span class="number">0.85</span>;<span class="attribute">width</span>:<span class="number">160px</span>;<span class="attribute">height</span>:<span class="number">160px</span>;<span class="attribute">position</span>:fixed;<span class="attribute">top</span>:<span class="number">400px</span>;<span class="attribute">left</span>:<span class="number">800px</span>;<span class="attribute">font-size</span>:<span class="number">12px</span>;}</span><br><span class="line">* <span class="selector-tag">html</span> <span class="selector-id">#smchuncai</span> {<span class="attribute">position</span>:absolute;}</span><br><span class="line"><span class="selector-id">#chuncaiface</span> {<span class="attribute">width</span>:<span class="number">160px</span>;<span class="attribute">height</span>:<span class="number">160px</span>;<span class="attribute">background-repeat</span>:no-repeat;<span class="attribute">position</span>:absolute;<span class="attribute">top</span>:<span class="number">0px</span>;<span class="attribute">left</span>:<span class="number">0px</span>;}</span><br><span class="line"><span class="comment">/*#chuncaimenu {width:46px;line-height:16px;float:left;font-size:12px;cursor:pointer;background-color:#666;color:#FFF;text-align:center;}*/</span></span><br><span class="line"><span class="selector-id">#showchuncaimenu</span> {<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">text-align</span><span class="selector-pseudo">:left</span>;<span class="attribute">width</span>:<span class="number">100%</span>;<span class="attribute">overflow</span>:hidden;<span class="attribute">display</span>:none;}</span><br><span class="line"><span class="comment">/*#showchuncaimenu ul, */</span><span class="selector-id">#tempsaying</span> <span class="selector-tag">ul</span> {<span class="attribute">margin</span>:<span class="number">1px</span> <span class="number">0px</span> <span class="number">0px</span> <span class="number">0px</span>;<span class="attribute">padding</span>:<span class="number">0px</span> <span class="number">0px</span> <span class="number">0px</span> <span class="number">5px</span>;<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">width</span>:<span class="number">100%</span>;<span class="attribute">line-height</span>:<span class="number">16px</span>;<span class="attribute">cursor</span>:pointer;<span class="attribute">overflow</span>:hidden;}</span><br><span class="line"><span class="selector-class">.wcc_mlist</span> {<span class="attribute">text-align</span>:center;<span class="attribute">width</span>:<span class="number">47%</span>;<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">line-height</span>:<span class="number">16px</span>;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0px</span> <span class="number">0px</span> <span class="number">4px</span> <span class="number">0px</span>;<span class="attribute">cursor</span>:pointer;<span class="attribute">overflow</span>:hidden;}</span><br><span class="line"><span class="selector-id">#tempsaying</span> <span class="selector-tag">ul</span> {<span class="attribute">width</span>:<span class="number">96%</span>;}</span><br><span class="line"><span class="selector-id">#callchuncai</span> {<span class="attribute">position</span>:fixed;<span class="attribute">width</span>:<span class="number">60px</span>;<span class="attribute">line-height</span>:<span class="number">16px</span>;<span class="attribute">cursor</span>:pointer;<span class="attribute">display</span>:none;<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#e87a73</span>;<span class="attribute">background-color</span>:<span class="number">#FFF</span>;}</span><br><span class="line">* <span class="selector-tag">html</span> <span class="selector-id">#callchuncai</span> {<span class="attribute">position</span>:absolute;}</span><br><span class="line"><span class="selector-id">#dialog_chat</span> {<span class="attribute">position</span>:absolute;<span class="attribute">top</span>:<span class="number">0px</span>;<span class="attribute">left</span>:-<span class="number">205px</span>;<span class="attribute">width</span>:<span class="number">200px</span>;<span class="attribute">line-height</span>:<span class="number">23px</span>;<span class="attribute">text-align</span><span class="selector-pseudo">:left</span>;}</span><br><span class="line"><span class="selector-id">#dialog_chat_loading</span> {<span class="attribute">width</span>:<span class="number">200px</span>;<span class="attribute">height</span>:<span class="number">30px</span>;<span class="attribute">background</span>:<span class="built_in">url</span>(<span class="string">"../imgs/loading.gif"</span>) no-repeat center center;<span class="attribute">display</span>:none;}</span><br><span class="line"><span class="selector-id">#chat_top</span> {<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">width</span>:<span class="number">200px</span>;<span class="attribute">height</span>:<span class="number">5px</span>;<span class="attribute">overflow</span>:hidden;<span class="attribute">background</span>:<span class="built_in">url</span>(<span class="string">"../imgs/chat_top.gif"</span>) no-repeat;}</span><br><span class="line"><span class="selector-id">#dialog_chat_contents</span>, <span class="selector-id">#chuncaisaying</span>, <span class="selector-id">#getmenu</span>, <span class="selector-id">#tempsaying</span> {<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">padding-left</span>:<span class="number">0px</span>;<span class="attribute">width</span>:<span class="number">198px</span>;<span class="attribute">line-height</span>:<span class="number">23px</span>;<span class="attribute">background-color</span>:<span class="number">#ffffee</span>;}</span><br><span class="line"><span class="selector-id">#getmenu</span>, <span class="selector-id">#tempsaying</span>,<span class="selector-id">#chuncaisaying</span> {<span class="attribute">padding</span>:<span class="number">0px</span> <span class="number">0px</span> <span class="number">0px</span> <span class="number">2px</span>; <span class="attribute">width</span>:<span class="number">196px</span>;}</span><br><span class="line"><span class="selector-id">#dialog_chat_contents</span> {<span class="attribute">width</span>:<span class="number">198px</span>;<span class="attribute">border-left</span>:<span class="number">1px</span> solid <span class="number">#e87a73</span>;<span class="attribute">border-right</span>:<span class="number">1px</span> solid <span class="number">#e87a73</span>;}</span><br><span class="line"><span class="selector-id">#chat_bottom</span> {<span class="attribute">width</span>:<span class="number">200px</span>;<span class="attribute">height</span>:<span class="number">10px</span>;<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">background</span>:<span class="built_in">url</span>(<span class="string">"../imgs/chat_bottom.gif"</span>) no-repeat;}</span><br><span class="line"><span class="selector-id">#chat_top</span>, <span class="selector-id">#chat_bottom</span> {}</span><br><span class="line"><span class="selector-id">#tempsaying</span>, <span class="selector-id">#hiddenfaces</span> {<span class="attribute">display</span>:none;}</span><br><span class="line"><span class="selector-id">#getmenu</span> {<span class="attribute">width</span>:<span class="number">95%</span>;<span class="attribute">height</span>:<span class="number">16px</span>;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span>;<span class="attribute">cursor</span>:pointer;<span class="attribute">background</span>:<span class="built_in">url</span>(<span class="string">"../imgs/menu.jpg"</span>) no-repeat top right;}</span><br><span class="line"><span class="selector-id">#addinput</span> {<span class="attribute">width</span>:<span class="number">240px</span>;<span class="attribute">height</span>:<span class="number">20px</span>;<span class="attribute">position</span>:absolute;<span class="attribute">top</span>:<span class="number">150px</span>;<span class="attribute">left</span>:-<span class="number">260px</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#888</span>;<span class="attribute">background-color</span>:<span class="number">#FFF</span>;<span class="attribute">padding-top</span>:<span class="number">2px</span>;<span class="attribute">overflow</span>:hidden;<span class="attribute">display</span>:none;}</span><br><span class="line"><span class="selector-id">#inp_l</span> {<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">width</span>:<span class="number">220px</span>;<span class="attribute">height</span>:<span class="number">20px</span>;}</span><br><span class="line"><span class="selector-id">#inp_r</span> {<span class="attribute">float</span><span class="selector-pseudo">:right</span>;<span class="attribute">width</span>:<span class="number">20px</span>;<span class="attribute">height</span>:<span class="number">20px</span>;<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">text-align</span>:center;<span class="attribute">cursor</span>:pointer;}</span><br><span class="line"><span class="selector-id">#talk</span> {<span class="attribute">border</span>:none;<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">width</span>:<span class="number">180px</span>;<span class="attribute">height</span>:<span class="number">16px</span>;}</span><br><span class="line"><span class="selector-id">#talkto</span> {<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">border</span>:none;<span class="attribute">width</span>:<span class="number">30px</span>;<span class="attribute">height</span>:<span class="number">16px</span>;<span class="attribute">background</span>:<span class="built_in">url</span>(<span class="string">"../imgs/ok.jpg"</span>);<span class="attribute">cursor</span>:pointer;}</span><br></pre></td></tr></table></figure><br>{blogroot}/source/weichuncai/js/common.js<br><figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="keyword">var</span> smjq = jQuery;</span><br><span class="line"><span class="keyword">var</span> _typei = <span class="number">0</span>;</span><br><span class="line"><span class="keyword">var</span> weichuncai_text = <span class="string">''</span>;</span><br><span class="line"><span class="title function_">smjq</span>(<span class="variable language_">document</span>).<span class="title function_">ready</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">var</span> getwidth = <span class="title function_">getCookie</span>(<span class="string">"historywidth"</span>);</span><br><span class="line"> <span class="keyword">var</span> getheight = <span class="title function_">getCookie</span>(<span class="string">"historyheight"</span>);</span><br><span class="line"> <span class="keyword">if</span>(getwidth != <span class="literal">null</span> && getheight != <span class="literal">null</span>){</span><br><span class="line"> <span class="keyword">var</span> width = getwidth;</span><br><span class="line"> <span class="keyword">var</span> height = getheight;</span><br><span class="line"> }<span class="keyword">else</span>{</span><br><span class="line"> <span class="keyword">var</span> width = <span class="variable language_">document</span>.<span class="property">documentElement</span>.<span class="property">clientWidth</span>- <span class="number">200</span> - imagewidth;</span><br><span class="line"> <span class="keyword">var</span> height = <span class="variable language_">document</span>.<span class="property">documentElement</span>.<span class="property">clientHeight</span>- <span class="number">180</span> - imageheight;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">var</span> cwidth = <span class="variable language_">document</span>.<span class="property">documentElement</span>.<span class="property">clientWidth</span>-<span class="number">100</span>;</span><br><span class="line"> <span class="keyword">var</span> cheight = <span class="variable language_">document</span>.<span class="property">documentElement</span>.<span class="property">clientHeight</span>-<span class="number">20</span>;</span><br><span class="line"> <span class="comment">//var height = document.body.clientHeight-200;</span></span><br><span class="line"> <span class="keyword">var</span> moveX = <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">var</span> moveY = <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">var</span> moveTop = <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">var</span> moveLeft = <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">var</span> moveable = <span class="literal">false</span>;</span><br><span class="line"> <span class="keyword">var</span> docMouseMoveEvent = <span class="variable language_">document</span>.<span class="property">onmousemove</span>;</span><br><span class="line"> <span class="keyword">var</span> docMouseUpEvent = <span class="variable language_">document</span>.<span class="property">onmouseup</span>;</span><br><span class="line"></span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"body"</span>).<span class="title function_">append</span>(<span class="string">'<div id="smchuncai" onfocus="this.blur();" style="color:#626262;z-index:999;"><div id="chuncaiface"></div><div id="dialog_chat"><div id="chat_top"></div><div id="dialog_chat_contents"><div id="dialog_chat_loading"></div><div id="tempsaying"></div><div id="showchuncaimenu"><ul class="wcc_mlist" id="shownotice">显示公告</ul><ul class="wcc_mlist" id="chatTochuncai">聊&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;天</ul><ul class="wcc_mlist" id="foods">吃 零 食</ul><ul class="wcc_mlist" id="aboutmanage">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;于</ul><ul class="wcc_mlist" id="lifetimechuncai">生存时间</ul><ul class="wcc_mlist" id="closechuncai">关闭春菜</ul></div><div><ul id="chuncaisaying"></ul></div><div id="getmenu"> </div></div><div id="chat_bottom"></div></div></div>'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">append</span>(<span class="string">'<div id="addinput"><div id="inp_l"><input id="talk" type="text" name="mastersay" value="" /> <input id="talkto" type="button" value=" " /></div><div id="inp_r"> X </div></div>'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"body"</span>).<span class="title function_">append</span>(<span class="string">'<div id="callchuncai">召唤春菜</div>'</span>);</span><br><span class="line"> <span class="comment">//判断春菜是否处于隐藏状态</span></span><br><span class="line"> <span class="keyword">var</span> is_closechuncai = <span class="title function_">getCookie</span>(<span class="string">"is_closechuncai"</span>);</span><br><span class="line"> <span class="keyword">if</span>(is_closechuncai == <span class="string">'close'</span>){</span><br><span class="line"> <span class="title function_">closechuncai_init</span>();</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//设置初始状态</span></span><br><span class="line"> <span class="title function_">getdata</span>(<span class="string">"getnotice"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">1</span>);</span><br><span class="line"></span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">css</span>(<span class="string">'left'</span>, width+<span class="string">'px'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">css</span>(<span class="string">'top'</span>, height+<span class="string">'px'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">css</span>(<span class="string">'width'</span>, imagewidth+<span class="string">'px'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">css</span>(<span class="string">'height'</span>, imageheight+<span class="string">'px'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#callchuncai"</span>).<span class="title function_">attr</span>(<span class="string">"style"</span>, <span class="string">"top:"</span>+cheight+<span class="string">"px; left:"</span>+cwidth+<span class="string">"px; text-align:center;"</span>);</span><br><span class="line"></span><br><span class="line"> smcc = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"smchuncai"</span>);</span><br><span class="line"> smcc.<span class="property">onmousedown</span> = <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">var</span> ent = <span class="title function_">getEvent</span>();</span><br><span class="line"> moveable = <span class="literal">true</span>;</span><br><span class="line"> moveX = ent.<span class="property">clientX</span>;</span><br><span class="line"> moveY = ent.<span class="property">clientY</span>;</span><br><span class="line"> <span class="keyword">var</span> obj = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"smchuncai"</span>);</span><br><span class="line"> moveTop = <span class="built_in">parseInt</span>(obj.<span class="property">style</span>.<span class="property">top</span>);</span><br><span class="line"> moveLeft = <span class="built_in">parseInt</span>(obj.<span class="property">style</span>.<span class="property">left</span>);</span><br><span class="line"> <span class="keyword">if</span>(isFirefox=navigator.<span class="property">userAgent</span>.<span class="title function_">indexOf</span>(<span class="string">"Firefox"</span>)><span class="number">0</span>){</span><br><span class="line"> <span class="variable language_">window</span>.<span class="title function_">getSelection</span>().<span class="title function_">removeAllRanges</span>();</span><br><span class="line"> } </span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">onmousemove</span> = <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">if</span>(moveable){</span><br><span class="line"> <span class="keyword">var</span> ent = <span class="title function_">getEvent</span>();</span><br><span class="line"> <span class="keyword">var</span> x = moveLeft + ent.<span class="property">clientX</span> - moveX;</span><br><span class="line"> <span class="keyword">var</span> y = moveTop + ent.<span class="property">clientY</span> - moveY;</span><br><span class="line"> <span class="keyword">var</span> w = <span class="number">200</span>;</span><br><span class="line"> <span class="keyword">var</span> h = <span class="number">200</span>; <span class="comment">//w,h为浮层宽高</span></span><br><span class="line"> obj.<span class="property">style</span>.<span class="property">left</span> = x + <span class="string">"px"</span>;</span><br><span class="line"> obj.<span class="property">style</span>.<span class="property">top</span> = y + <span class="string">"px"</span>;</span><br><span class="line"> }</span><br><span class="line"> };</span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">onmouseup</span> = <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">if</span>(moveable){</span><br><span class="line"> <span class="keyword">var</span> historywidth = obj.<span class="property">style</span>.<span class="property">left</span>;</span><br><span class="line"> <span class="keyword">var</span> historyheight = obj.<span class="property">style</span>.<span class="property">top</span>;</span><br><span class="line"> historywidth = historywidth.<span class="title function_">replace</span>(<span class="string">'px'</span>, <span class="string">''</span>);</span><br><span class="line"> historyheight = historyheight.<span class="title function_">replace</span>(<span class="string">'px'</span>, <span class="string">''</span>);</span><br><span class="line"> <span class="title function_">setCookie</span>(<span class="string">"historywidth"</span>, historywidth, <span class="number">60</span>*<span class="number">60</span>*<span class="number">24</span>*<span class="number">30</span>*<span class="number">1000</span>);</span><br><span class="line"> <span class="title function_">setCookie</span>(<span class="string">"historyheight"</span>, historyheight, <span class="number">60</span>*<span class="number">60</span>*<span class="number">24</span>*<span class="number">30</span>*<span class="number">1000</span>);</span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">onmousemove</span> = docMouseMoveEvent;</span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">onmouseup</span> = docMouseUpEvent;</span><br><span class="line"> moveable = <span class="literal">false</span>; </span><br><span class="line"> moveX = <span class="number">0</span>;</span><br><span class="line"> moveY = <span class="number">0</span>;</span><br><span class="line"> moveTop = <span class="number">0</span>;</span><br><span class="line"> moveLeft = <span class="number">0</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> };</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#getmenu"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">chuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">1</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#shownotice"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">getdata</span>(<span class="string">"getnotice"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">1</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#closechuncai"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> <span class="title function_">closechuncai</span>();</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#callchuncai"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">2</span>);</span><br><span class="line"> <span class="title function_">callchuncai</span>();</span><br><span class="line"> <span class="title function_">setCookie</span>(<span class="string">"is_closechuncai"</span>, <span class="string">''</span>, <span class="number">60</span>*<span class="number">60</span>*<span class="number">24</span>*<span class="number">30</span>*<span class="number">1000</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#shownotice"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">1</span>);</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#lifetimechuncai"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">2</span>);</span><br><span class="line"> <span class="title function_">getdata</span>(<span class="string">'showlifetime'</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#chatTochuncai"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">showInput</span>();</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#inp_r"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">closeInput</span>();</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">'不聊天了吗?(→_→)'</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#talkto"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">getdata</span>(<span class="string">"talking"</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#aboutmanage"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#getmenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"你想了解我主人?跟我来吧~~~"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">2</span>);</span><br><span class="line"> <span class="built_in">setTimeout</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">href</span> = _about_path ;</span><br><span class="line"> }, <span class="number">2000</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#foods"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">getdata</span>(<span class="string">"foods"</span>);</span><br><span class="line"> });</span><br><span class="line"><span class="comment">/* smjq("#showchuncaimenu").hover(function(){</span></span><br><span class="line"><span class="comment"> },function(){</span></span><br><span class="line"><span class="comment"> smjq("#showchuncaimenu").slideUp('slow').show();</span></span><br><span class="line"><span class="comment"> });*/</span></span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">onmousemove</span> = <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">stoptime</span>();</span><br><span class="line"> tol = <span class="number">0</span>;</span><br><span class="line"> <span class="title function_">setTime</span>();</span><br><span class="line"> <span class="comment">//chuncaiSay("啊,野生的主人出现了! ~~~O口O");</span></span><br><span class="line"> }</span><br><span class="line"> <span class="title function_">talkSelf</span>(talktime);</span><br><span class="line"> <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"smchuncai"</span>).<span class="property">onmouseover</span> = <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">if</span>(talkobj){</span><br><span class="line"> <span class="built_in">clearTimeout</span>(talkobj);</span><br><span class="line"> }</span><br><span class="line"> talktime = <span class="number">0</span>;</span><br><span class="line"> <span class="title function_">talkSelf</span>(talktime);</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">getEvent</span>(<span class="params"></span>) {</span><br><span class="line"> <span class="keyword">return</span> <span class="variable language_">window</span>.<span class="property">event</span> || <span class="variable language_">arguments</span>.<span class="property">callee</span>.<span class="property">caller</span>.<span class="property">arguments</span>[<span class="number">0</span>];</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">var</span> eattimes = <span class="number">0</span>;</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">eatfood</span>(<span class="params">obj</span>){</span><br><span class="line"> <span class="keyword">var</span> gettimes = <span class="title function_">getCookie</span>(<span class="string">"eattimes"</span>);</span><br><span class="line"> <span class="keyword">if</span>(<span class="built_in">parseInt</span>(gettimes) > <span class="built_in">parseInt</span>(<span class="number">9</span>)){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"主人是个大混蛋!!"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> <span class="title function_">closechuncai_evil</span>();</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(<span class="built_in">parseInt</span>(gettimes) > <span class="built_in">parseInt</span>(<span class="number">7</span>)){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">".....................肚子要炸了,死也不要再吃了~~!!!TAT"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(<span class="built_in">parseInt</span>(gettimes) == <span class="built_in">parseInt</span>(<span class="number">5</span>)){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"我已经吃饱了,不要再吃啦......"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(<span class="built_in">parseInt</span>(gettimes) == <span class="built_in">parseInt</span>(<span class="number">3</span>)){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"多谢款待,我吃饱啦~~~ ╰( ̄▽ ̄)╭"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">2</span>);</span><br><span class="line"> }<span class="keyword">else</span>{</span><br><span class="line"> <span class="keyword">var</span> id = obj.<span class="title function_">replace</span>(<span class="string">"f"</span>,<span class="string">''</span>);</span><br><span class="line"> <span class="title function_">getdata</span>(<span class="string">'eatsay'</span>, id);</span><br><span class="line"> }</span><br><span class="line"> eattimes++;</span><br><span class="line"> <span class="title function_">setCookie</span>(<span class="string">"eattimes"</span>, eattimes, <span class="number">60</span>*<span class="number">10</span>*<span class="number">1000</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">chuncaiMenu</span>(<span class="params"></span>){</span><br><span class="line"> <span class="comment">//smjq("#showchuncaimenu").slideDown('fast').show();</span></span><br><span class="line"> <span class="title function_">clearChuncaiSay</span>();</span><br><span class="line"> <span class="title function_">closeInput</span>();</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"准备做什么呢?"</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#showchuncaimenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#getmenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#chuncaisaying"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">closeChuncaiMenu</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">clearChuncaiSay</span>();</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#showchuncaimenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="comment">//smjq("#chuncaisaying").css("display", "block");</span></span><br><span class="line"> <span class="title function_">showNotice</span>();</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#getmenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">showNotice</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#chuncaisaying"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">closechuncai</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">stopTalkSelf</span>();</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"记得再叫我出来哦..."</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#showchuncaimenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="built_in">setTimeout</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">fadeOut</span>(<span class="number">1200</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#callchuncai"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);}, <span class="number">2000</span>);</span><br><span class="line"> <span class="comment">//保存关闭状态的春菜</span></span><br><span class="line"> <span class="title function_">setCookie</span>(<span class="string">"is_closechuncai"</span>, <span class="string">'close'</span>, <span class="number">60</span>*<span class="number">60</span>*<span class="number">24</span>*<span class="number">30</span>*<span class="number">1000</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">closechuncai_evil</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">stopTalkSelf</span>();</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#showchuncaimenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="built_in">setTimeout</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">fadeOut</span>(<span class="number">1200</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#callchuncai"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);}, <span class="number">2000</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">closechuncai_init</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">stopTalkSelf</span>();</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#showchuncaimenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="built_in">setTimeout</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#callchuncai"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);}, <span class="number">30</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">callchuncai</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">talkSelf</span>(talktime);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">fadeIn</span>(<span class="string">'normal'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#callchuncai"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"我回来啦~"</span>);</span><br><span class="line"> <span class="title function_">setCookie</span>(<span class="string">"is_closechuncai"</span>, <span class="string">''</span>, <span class="number">60</span>*<span class="number">60</span>*<span class="number">24</span>*<span class="number">30</span>*<span class="number">1000</span>);</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">chuncaiSay</span>(<span class="params">s</span>){</span><br><span class="line"> <span class="title function_">clearChuncaiSay</span>();</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#tempsaying"</span>).<span class="title function_">append</span>(s);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#tempsaying"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);</span><br><span class="line"> weichuncai_text = s;</span><br><span class="line"> <span class="title function_">typeWords</span>();</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">clearChuncaiSay</span>(<span class="params"></span>){</span><br><span class="line"> <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"tempsaying"</span>).<span class="property">innerHTML</span> = <span class="string">''</span>;</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">closeNotice</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#chuncaisaying"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">showInput</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"............?"</span>);</span><br><span class="line"> <span class="comment">//setFace(1);</span></span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#addinput"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">closeInput</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#addinput"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">clearInput</span>(<span class="params"></span>){</span><br><span class="line"> <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"talk"</span>).<span class="property">value</span> = <span class="string">''</span>;</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">createFace</span>(<span class="params">a, b, c</span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"head"</span>).<span class="title function_">append</span>(<span class="string">'<div id="hiddenfaces"><img id="hf1" src="'</span>+a+<span class="string">'" /><img id="hf2" src="'</span>+b+<span class="string">'" /><img id="hf3" src="'</span>+c+<span class="string">'" /></div>'</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">1</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">setFace</span>(<span class="params">num</span>){</span><br><span class="line"> obj = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"hf"</span>+num).<span class="property">src</span>;</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#chuncaiface"</span>).<span class="title function_">attr</span>(<span class="string">"style"</span>, <span class="string">"background:url("</span>+obj+<span class="string">") no-repeat scroll 50% 0% transparent; width:"</span>+imagewidth+<span class="string">"px;height:"</span>+imageheight+<span class="string">"px;"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">getdata</span>(<span class="params">el, id</span>){</span><br><span class="line"> smjq.<span class="title function_">ajax</span>({</span><br><span class="line"> <span class="attr">type</span>: <span class="string">'GET'</span>,</span><br><span class="line"> <span class="attr">url</span>: _weichuncai_jsonpath,</span><br><span class="line"> <span class="attr">cache</span>: <span class="string">'false'</span>,</span><br><span class="line"> <span class="attr">dataType</span>: <span class="string">'html'</span>,</span><br><span class="line"> <span class="attr">contentType</span>: <span class="string">'application/json; charset=utf8'</span>,</span><br><span class="line"> <span class="attr">beforeSend</span>: <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="comment">//smjq("#dialog_chat").fadeOut("normal");</span></span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#tempsaying"</span>).<span class="title function_">css</span>(<span class="string">'display'</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#dialog_chat_loading"</span>).<span class="title function_">fadeIn</span>(<span class="string">"normal"</span>);</span><br><span class="line"> },</span><br><span class="line"> <span class="attr">success</span>: <span class="keyword">function</span>(<span class="params">data</span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#dialog_chat_loading"</span>).<span class="title function_">css</span>(<span class="string">'display'</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="comment">//smjq("#dialog_chat").fadeIn("normal");</span></span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#tempsaying"</span>).<span class="title function_">css</span>(<span class="string">'display'</span>, <span class="string">""</span>);</span><br><span class="line"> <span class="keyword">var</span> dat = <span class="built_in">eval</span>(<span class="string">"("</span>+data+<span class="string">")"</span>);</span><br><span class="line"> <span class="keyword">if</span>(el == <span class="string">'getnotice'</span>){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(dat.<span class="property">notice</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">1</span>);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(el == <span class="string">'showlifetime'</span>){</span><br><span class="line"> <span class="title class_">BirthDay</span>=<span class="keyword">new</span> <span class="title class_">Date</span>(dat.<span class="property">showlifetime</span>);<span class="comment">//建站日期</span></span><br><span class="line"> today=<span class="keyword">new</span> <span class="title class_">Date</span>();</span><br><span class="line"> timeold=(today.<span class="title function_">getTime</span>()-<span class="title class_">BirthDay</span>.<span class="title function_">getTime</span>());</span><br><span class="line"> sectimeold=timeold/<span class="number">1000</span></span><br><span class="line"> secondsold=<span class="title class_">Math</span>.<span class="title function_">floor</span>(sectimeold);</span><br><span class="line"> msPerDay=<span class="number">24</span>*<span class="number">60</span>*<span class="number">60</span>*<span class="number">1000</span></span><br><span class="line"> e_daysold=timeold/msPerDay</span><br><span class="line"> daysold=<span class="title class_">Math</span>.<span class="title function_">floor</span>(e_daysold);</span><br><span class="line"> e_hrsold=(daysold-e_daysold)*-<span class="number">24</span>;</span><br><span class="line"> hrsold=<span class="title class_">Math</span>.<span class="title function_">floor</span>(e_hrsold);</span><br><span class="line"> e_minsold=(hrsold-e_hrsold)*-<span class="number">60</span>;</span><br><span class="line"> minsold=<span class="title class_">Math</span>.<span class="title function_">floor</span>((hrsold-e_hrsold)*-<span class="number">60</span>);</span><br><span class="line"> seconds=<span class="title class_">Math</span>.<span class="title function_">floor</span>((minsold-e_minsold)*-<span class="number">60</span>);</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"我已经与主人 一起生存了 "</span>+daysold+<span class="string">" 天 "</span>+hrsold+<span class="string">" 小时 "</span>+minsold+<span class="string">" 分钟 "</span>+seconds+<span class="string">" 秒的快乐时光啦~*^_^*"</span>);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(el == <span class="string">'talking'</span>){</span><br><span class="line"> <span class="keyword">var</span> talkcon = <span class="title function_">smjq</span>(<span class="string">"#talk"</span>).<span class="title function_">val</span>();</span><br><span class="line"> <span class="keyword">var</span> i = <span class="title function_">in_array</span>(talkcon, dat.<span class="property">ques</span>);</span><br><span class="line"> <span class="keyword">var</span> types = <span class="title function_">typeof</span>(i);</span><br><span class="line"> <span class="keyword">if</span>(types != <span class="string">'boolean'</span>){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(dat.<span class="property">ans</span>[i]);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">2</span>);</span><br><span class="line"> }<span class="keyword">else</span>{</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">'.......................嗯?'</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="title function_">clearInput</span>();</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(el == <span class="string">'foods'</span>){</span><br><span class="line"> <span class="keyword">var</span> str=<span class="string">''</span>;</span><br><span class="line"> <span class="keyword">var</span> arr = dat.<span class="property">foods</span>;</span><br><span class="line"> <span class="keyword">var</span> preg = <span class="regexp">/function/</span>; </span><br><span class="line"> <span class="keyword">for</span>(<span class="keyword">var</span> i <span class="keyword">in</span> arr){</span><br><span class="line"> <span class="keyword">if</span>(arr[i] != <span class="string">''</span> && !preg.<span class="title function_">test</span>(arr[i]) ){</span><br><span class="line"> str +=<span class="string">'<ul id="f'</span>+i+<span class="string">'" class="eatfood" onclick="eatfood(this.id)">'</span>+arr[i]+<span class="string">'</ul>'</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(str);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(el = <span class="string">"eatsay"</span>){</span><br><span class="line"> <span class="keyword">var</span> str = dat.<span class="property">eatsay</span>[id];</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(str);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">2</span>);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(el = <span class="string">"talkself"</span>){</span><br><span class="line"> <span class="keyword">var</span> arr = dat.<span class="property">talkself</span>;</span><br><span class="line"> <span class="keyword">return</span> arr;</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> <span class="attr">error</span>: <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">'好像出错了,是什么错误呢...请联系管理猿'</span>);</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">in_array</span>(<span class="params">str, arr</span>){</span><br><span class="line"> <span class="keyword">for</span>(<span class="keyword">var</span> i <span class="keyword">in</span> arr){</span><br><span class="line"> <span class="keyword">if</span>(arr[i] == str){</span><br><span class="line"> <span class="keyword">return</span> i;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">var</span> timenum;</span><br><span class="line"><span class="keyword">var</span> tol=<span class="number">0</span>;</span><br><span class="line"><span class="comment">//10分钟后页面没有响应就停止活动</span></span><br><span class="line"><span class="keyword">var</span> goal = <span class="number">10</span>*<span class="number">60</span>;</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">setTime</span>(<span class="params"></span>){</span><br><span class="line"> tol++;</span><br><span class="line"> <span class="comment">//document.body.innerHTML(tol);</span></span><br><span class="line"> timenum = <span class="variable language_">window</span>.<span class="built_in">setTimeout</span>(<span class="string">"setTime('"</span>+tol+<span class="string">"')"</span>, <span class="number">1000</span>);</span><br><span class="line"> <span class="keyword">if</span>(<span class="built_in">parseInt</span>(tol) == <span class="built_in">parseInt</span>(goal)){</span><br><span class="line"> <span class="title function_">stopTalkSelf</span>();</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">closeInput</span>();</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"主人跑到哪里去了呢...."</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> <span class="title function_">stoptime</span>();</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">stoptime</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">if</span>(timenum){</span><br><span class="line"> <span class="built_in">clearTimeout</span>(timenum);</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"><span class="keyword">var</span> talktime = <span class="number">0</span>;</span><br><span class="line"><span class="comment">//设置自言自语频率(单位:秒)</span></span><br><span class="line"><span class="keyword">var</span> talkself = <span class="number">60</span>;</span><br><span class="line"><span class="keyword">var</span> talkobj;</span><br><span class="line"><span class="keyword">var</span> tsi = <span class="number">0</span>;</span><br><span class="line"><span class="keyword">var</span> talkself_arr = [</span><br><span class="line"> [<span class="string">"白日依山尽,黄河入海流,欲穷千里目,更上.....一层楼?"</span>, <span class="string">"1"</span>],</span><br><span class="line"> [<span class="string">"我看见主人熊猫眼又加重了!"</span>, <span class="string">"3"</span>],</span><br><span class="line"> [<span class="string">"我是不是很厉害呀~~?"</span>, <span class="string">"2"</span>],</span><br><span class="line"> [<span class="string">"5555...昨天有个小孩子跟我抢棒棒糖吃....."</span>, <span class="string">"3"</span>],</span><br><span class="line"> [<span class="string">"昨天我好像看见主人又在众人之前卖萌了哦~"</span>, <span class="string">"2"</span>]</span><br><span class="line">];</span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">talkSelf</span>(<span class="params">talktime</span>){</span><br><span class="line"> talktime++;</span><br><span class="line"> <span class="keyword">var</span> yushu = talktime%talkself;</span><br><span class="line"> <span class="keyword">if</span>(<span class="built_in">parseInt</span>(yushu) == <span class="built_in">parseInt</span>(<span class="number">9</span>)){</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">closeInput</span>();</span><br><span class="line"> tsi = <span class="title class_">Math</span>.<span class="title function_">floor</span>(<span class="title class_">Math</span>.<span class="title function_">random</span>() * talkself_arr.<span class="property">length</span> + <span class="number">1</span>)-<span class="number">1</span>;</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(talkself_arr[tsi][<span class="number">0</span>]);</span><br><span class="line"> <span class="title function_">setFace</span>(talkself_arr[tsi][<span class="number">1</span>]);</span><br><span class="line"> }</span><br><span class="line"> talkobj = <span class="variable language_">window</span>.<span class="built_in">setTimeout</span>(<span class="string">"talkSelf("</span>+talktime+<span class="string">")"</span>, <span class="number">1000</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">stopTalkSelf</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">if</span>(talkobj){</span><br><span class="line"> <span class="built_in">clearTimeout</span>(talkobj);</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">arrayShuffle</span>(<span class="params">arr</span>){</span><br><span class="line"> <span class="keyword">var</span> result = [],</span><br><span class="line"> len = arr.<span class="property">length</span>;</span><br><span class="line"> <span class="keyword">while</span>(len--){</span><br><span class="line"> result[result.<span class="property">length</span>] = arr.<span class="title function_">splice</span>(<span class="title class_">Math</span>.<span class="title function_">floor</span>(<span class="title class_">Math</span>.<span class="title function_">random</span>()*(len+<span class="number">1</span>)),<span class="number">1</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> result;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">typeWords</span>(<span class="params"></span>) {</span><br><span class="line"> <span class="keyword">var</span> p = <span class="number">1</span>;</span><br><span class="line"> <span class="keyword">var</span> str = weichuncai_text.<span class="title function_">substr</span>(<span class="number">0</span>,_typei);</span><br><span class="line"> <span class="keyword">var</span> w = weichuncai_text.<span class="title function_">substr</span>(_typei,<span class="number">1</span>);</span><br><span class="line"> <span class="keyword">if</span>(w==<span class="string">"<"</span>){</span><br><span class="line"> str += weichuncai_text.<span class="title function_">substr</span>(_typei,weichuncai_text.<span class="title function_">substr</span>(_typei).<span class="title function_">indexOf</span>(<span class="string">">"</span>)+<span class="number">1</span>);</span><br><span class="line"> p= weichuncai_text.<span class="title function_">substr</span>(_typei).<span class="title function_">indexOf</span>(<span class="string">">"</span>)+<span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"> _typei+=p;</span><br><span class="line"> <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"tempsaying"</span>).<span class="property">innerHTML</span> = str;</span><br><span class="line"> txtst = <span class="built_in">setTimeout</span>(<span class="string">"typeWords()"</span>,<span class="number">20</span>);</span><br><span class="line"> <span class="keyword">if</span> (_typei> weichuncai_text.<span class="property">length</span>){</span><br><span class="line"> <span class="built_in">clearTimeout</span>(txtst);</span><br><span class="line"> _typei = <span class="number">0</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">setCookie</span>(<span class="params">name, val, ex</span>){</span><br><span class="line"> <span class="keyword">var</span> times = <span class="keyword">new</span> <span class="title class_">Date</span>();</span><br><span class="line"> times.<span class="title function_">setTime</span>(times.<span class="title function_">getTime</span>() + ex);</span><br><span class="line"> <span class="keyword">if</span>(ex == <span class="number">0</span>){</span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">cookie</span> = name+<span class="string">"="</span>+val+<span class="string">";"</span>;</span><br><span class="line"> }<span class="keyword">else</span>{</span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">cookie</span> = name+<span class="string">"="</span>+val+<span class="string">"; expires="</span>+times.<span class="title function_">toGMTString</span>();</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">getCookie</span>(<span class="params">name</span>){</span><br><span class="line"> <span class="keyword">var</span> arr = <span class="variable language_">document</span>.<span class="property">cookie</span>.<span class="title function_">match</span>(<span class="keyword">new</span> <span class="title class_">RegExp</span>(<span class="string">"(^| )"</span>+name+<span class="string">"=([^;]*)(;|$)"</span>)); </span><br><span class="line"> <span class="keyword">if</span>(arr != <span class="literal">null</span>) <span class="keyword">return</span> <span class="built_in">unescape</span>(arr[<span class="number">2</span>]); <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure><br>{blogroot}/source/weichuncai/js/chuncai.json(这个地方可以自行配置)<br><figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"notice"</span><span class="punctuation">:</span> <span class="string">"欢迎来到我的新家,没想到在2024我会被人注意到,真幸福~~"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"ques"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="string">"早上好"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"中午好"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"下午好"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"晚上好"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"晚安"</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"ans"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="string">"早上好~"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"中午好~"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"下午好~"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"晚上好~"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"晚安~"</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"foods"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="string">"金坷垃"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"咸梅干"</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"eatsay"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="string">"吃了金坷垃,一刀能秒一万八~!"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"吃咸梅干,变超人!哦耶~~~"</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showlifetime"</span><span class="punctuation">:</span><span class="string">"02-16-2024 15:30:00"</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure><br>{blogroot}/source/weichuncai/js/chuncai.json(这个地方可以自行配置)<br><figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="keyword">var</span> _about_path = <span class="string">"https://blog.sinzmise.top/about"</span>; <span class="comment">//你的关于页面地址</span></span><br><span class="line"><span class="keyword">var</span> _weichuncai_jsonpath = <span class="string">"/weichuncai/chuncai.json"</span>; <span class="comment">//chuncai.json的位置</span></span><br><span class="line"><span class="keyword">var</span> imagewidth = <span class="string">'85'</span>; <span class="comment">//人格长度</span></span><br><span class="line"><span class="keyword">var</span> imageheight = <span class="string">'152'</span>; <span class="comment">//人格高度</span></span><br><span class="line"><span class="comment">//设置人格的自言自语,前面的双引号是内容后面的双引号是人格表情,后面的1、2、3对应createFace设置的第几个表情</span></span><br><span class="line"><span class="keyword">var</span> talkself_arr = [</span><br><span class="line"> [<span class="string">"白日依山尽,黄河入海流,欲穷千里目,更上.....一层楼?"</span>, <span class="string">"1"</span>],</span><br><span class="line"> [<span class="string">"我看见主人熊猫眼又加重了!"</span>, <span class="string">"3"</span>],</span><br><span class="line"> [<span class="string">"我是不是很厉害呀~~?"</span>, <span class="string">"2"</span>],</span><br><span class="line"> [<span class="string">"5555...昨天有个小孩子跟我抢棒棒糖吃....."</span>, <span class="string">"3"</span>]</span><br><span class="line">];</span><br><span class="line"><span class="comment">//设置表情</span></span><br><span class="line"><span class="title function_">createFace</span>(</span><br><span class="line"> <span class="string">"https://dqapi.sininno.eu.org/weichuncai/skin/rakutori/face1.gif"</span>, </span><br><span class="line"> <span class="string">"https://dqapi.sininno.eu.org/weichuncai/skin/rakutori/face2.gif"</span>, </span><br><span class="line"> <span class="string">"https://dqapi.sininno.eu.org/weichuncai/skin/rakutori/face3.gif"</span></span><br><span class="line">);</span><br></pre></td></tr></table></figure><br>butterfly、anzhiyu主题引入:<br><figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="comment"># Inject</span></span><br><span class="line"><span class="comment"># Insert the code to head (before '</head>' tag) and the bottom (before '</body>' tag)</span></span><br><span class="line"><span class="comment"># 插入代码到头部 </head> 之前 和 底部 </body> 之前</span></span><br><span class="line"><span class="attr">inject:</span></span><br><span class="line"> <span class="attr">head:</span></span><br><span class="line"> <span class="comment"># jQuery(必须在之前引入)</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string"><script</span> <span class="string">src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.3/jquery.min.js"></script></span></span><br><span class="line"> <span class="attr">bottom:</span></span><br><span class="line"> <span class="comment"># 主体</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string"><link</span> <span class="string">rel="stylesheet"</span> <span class="string">type="text/css"</span> <span class="string">href="/weichuncai/css/style.css"></span></span><br><span class="line"> <span class="bullet">-</span> <span class="string"><script</span> <span class="string">src="/weichuncai/js/common.js"></script></span></span><br><span class="line"> <span class="bullet">-</span> <span class="string"><script</span> <span class="string">src="/weichuncai/wcc-config.js"></script></span></span><br></pre></td></tr></table></figure></p>
|
1165
|
+
<h1 id="后记"><a href="#后记" class="headerlink" title="后记"></a>后记</h1><p>我为什么会将伪春菜定义为桌面精灵而不是桌宠?<br>是因为相比于桌宠来说,伪春菜比桌宠的功能还多得多<br>因此我即使开着虚拟桌宠模拟器,我有时也会开着伪春菜<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240216/ssp_OgKZgUjISo.1rssdhcjowjk.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240216/ssp_OgKZgUjISo.1rssdhcjowjk.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="ssp_OgKZgUjISo"><br>(甚至我电脑卡的时候也会提醒我,虽然我电脑没有卡死QWQ)</p>
|
1166
|
+
<p>还有,我之前看<a href="https://steve02081504.github.io/2020/02/27/about-kikka/">关于Kikka</a>这篇文章,有一句话很吸引我:<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240216/msedge_h7th45Tk9U.47mkdav98180.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240216/msedge_h7th45Tk9U.47mkdav98180.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_h7th45Tk9U"><br>也据此可以看出,在2020年,伪春菜这个圈子越来越难活下去<br>更何况现在是2024。。。。。。</p>
|
1167
|
+
<p>但不管怎么说,还是有人在用这个桌面精灵的,至少有我一个。。。。。。<br>后面我打算写个有关伪春菜的配置教程吧。。。。。。</p>
|
1151
1168
|
]]></content>
|
1152
1169
|
<categories>
|
1153
|
-
<category
|
1170
|
+
<category>站点折腾</category>
|
1154
1171
|
</categories>
|
1155
1172
|
<tags>
|
1156
|
-
<tag
|
1173
|
+
<tag>站点折腾</tag>
|
1174
|
+
<tag>悬浮宠物/看板娘</tag>
|
1157
1175
|
</tags>
|
1158
1176
|
</entry>
|
1159
1177
|
<entry>
|
@@ -1172,21 +1190,17 @@ function loadkaixinmusic() {
|
|
1172
1190
|
</tags>
|
1173
1191
|
</entry>
|
1174
1192
|
<entry>
|
1175
|
-
<title
|
1176
|
-
<url>/posts/
|
1177
|
-
<content><![CDATA[<p
|
1178
|
-
<p
|
1179
|
-
<h1 id="引入js和css"><a href="#引入js和css" class="headerlink" title="引入js和css"></a>引入js和css</h1><p>{blogroot}/source/weichuncai/css/style.css<br><figure class="highlight css"><table><tr><td class="code"><pre><span class="line"><span class="selector-id">#smchuncai</span> {<span class="attribute">opacity</span>:<span class="number">0.85</span>;<span class="attribute">width</span>:<span class="number">160px</span>;<span class="attribute">height</span>:<span class="number">160px</span>;<span class="attribute">position</span>:fixed;<span class="attribute">top</span>:<span class="number">400px</span>;<span class="attribute">left</span>:<span class="number">800px</span>;<span class="attribute">font-size</span>:<span class="number">12px</span>;}</span><br><span class="line">* <span class="selector-tag">html</span> <span class="selector-id">#smchuncai</span> {<span class="attribute">position</span>:absolute;}</span><br><span class="line"><span class="selector-id">#chuncaiface</span> {<span class="attribute">width</span>:<span class="number">160px</span>;<span class="attribute">height</span>:<span class="number">160px</span>;<span class="attribute">background-repeat</span>:no-repeat;<span class="attribute">position</span>:absolute;<span class="attribute">top</span>:<span class="number">0px</span>;<span class="attribute">left</span>:<span class="number">0px</span>;}</span><br><span class="line"><span class="comment">/*#chuncaimenu {width:46px;line-height:16px;float:left;font-size:12px;cursor:pointer;background-color:#666;color:#FFF;text-align:center;}*/</span></span><br><span class="line"><span class="selector-id">#showchuncaimenu</span> {<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">text-align</span><span class="selector-pseudo">:left</span>;<span class="attribute">width</span>:<span class="number">100%</span>;<span class="attribute">overflow</span>:hidden;<span class="attribute">display</span>:none;}</span><br><span class="line"><span class="comment">/*#showchuncaimenu ul, */</span><span class="selector-id">#tempsaying</span> <span class="selector-tag">ul</span> {<span class="attribute">margin</span>:<span class="number">1px</span> <span class="number">0px</span> <span class="number">0px</span> <span class="number">0px</span>;<span class="attribute">padding</span>:<span class="number">0px</span> <span class="number">0px</span> <span class="number">0px</span> <span class="number">5px</span>;<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">width</span>:<span class="number">100%</span>;<span class="attribute">line-height</span>:<span class="number">16px</span>;<span class="attribute">cursor</span>:pointer;<span class="attribute">overflow</span>:hidden;}</span><br><span class="line"><span class="selector-class">.wcc_mlist</span> {<span class="attribute">text-align</span>:center;<span class="attribute">width</span>:<span class="number">47%</span>;<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">line-height</span>:<span class="number">16px</span>;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0px</span> <span class="number">0px</span> <span class="number">4px</span> <span class="number">0px</span>;<span class="attribute">cursor</span>:pointer;<span class="attribute">overflow</span>:hidden;}</span><br><span class="line"><span class="selector-id">#tempsaying</span> <span class="selector-tag">ul</span> {<span class="attribute">width</span>:<span class="number">96%</span>;}</span><br><span class="line"><span class="selector-id">#callchuncai</span> {<span class="attribute">position</span>:fixed;<span class="attribute">width</span>:<span class="number">60px</span>;<span class="attribute">line-height</span>:<span class="number">16px</span>;<span class="attribute">cursor</span>:pointer;<span class="attribute">display</span>:none;<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#e87a73</span>;<span class="attribute">background-color</span>:<span class="number">#FFF</span>;}</span><br><span class="line">* <span class="selector-tag">html</span> <span class="selector-id">#callchuncai</span> {<span class="attribute">position</span>:absolute;}</span><br><span class="line"><span class="selector-id">#dialog_chat</span> {<span class="attribute">position</span>:absolute;<span class="attribute">top</span>:<span class="number">0px</span>;<span class="attribute">left</span>:-<span class="number">205px</span>;<span class="attribute">width</span>:<span class="number">200px</span>;<span class="attribute">line-height</span>:<span class="number">23px</span>;<span class="attribute">text-align</span><span class="selector-pseudo">:left</span>;}</span><br><span class="line"><span class="selector-id">#dialog_chat_loading</span> {<span class="attribute">width</span>:<span class="number">200px</span>;<span class="attribute">height</span>:<span class="number">30px</span>;<span class="attribute">background</span>:<span class="built_in">url</span>(<span class="string">"../imgs/loading.gif"</span>) no-repeat center center;<span class="attribute">display</span>:none;}</span><br><span class="line"><span class="selector-id">#chat_top</span> {<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">width</span>:<span class="number">200px</span>;<span class="attribute">height</span>:<span class="number">5px</span>;<span class="attribute">overflow</span>:hidden;<span class="attribute">background</span>:<span class="built_in">url</span>(<span class="string">"../imgs/chat_top.gif"</span>) no-repeat;}</span><br><span class="line"><span class="selector-id">#dialog_chat_contents</span>, <span class="selector-id">#chuncaisaying</span>, <span class="selector-id">#getmenu</span>, <span class="selector-id">#tempsaying</span> {<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">padding-left</span>:<span class="number">0px</span>;<span class="attribute">width</span>:<span class="number">198px</span>;<span class="attribute">line-height</span>:<span class="number">23px</span>;<span class="attribute">background-color</span>:<span class="number">#ffffee</span>;}</span><br><span class="line"><span class="selector-id">#getmenu</span>, <span class="selector-id">#tempsaying</span>,<span class="selector-id">#chuncaisaying</span> {<span class="attribute">padding</span>:<span class="number">0px</span> <span class="number">0px</span> <span class="number">0px</span> <span class="number">2px</span>; <span class="attribute">width</span>:<span class="number">196px</span>;}</span><br><span class="line"><span class="selector-id">#dialog_chat_contents</span> {<span class="attribute">width</span>:<span class="number">198px</span>;<span class="attribute">border-left</span>:<span class="number">1px</span> solid <span class="number">#e87a73</span>;<span class="attribute">border-right</span>:<span class="number">1px</span> solid <span class="number">#e87a73</span>;}</span><br><span class="line"><span class="selector-id">#chat_bottom</span> {<span class="attribute">width</span>:<span class="number">200px</span>;<span class="attribute">height</span>:<span class="number">10px</span>;<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">background</span>:<span class="built_in">url</span>(<span class="string">"../imgs/chat_bottom.gif"</span>) no-repeat;}</span><br><span class="line"><span class="selector-id">#chat_top</span>, <span class="selector-id">#chat_bottom</span> {}</span><br><span class="line"><span class="selector-id">#tempsaying</span>, <span class="selector-id">#hiddenfaces</span> {<span class="attribute">display</span>:none;}</span><br><span class="line"><span class="selector-id">#getmenu</span> {<span class="attribute">width</span>:<span class="number">95%</span>;<span class="attribute">height</span>:<span class="number">16px</span>;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span>;<span class="attribute">cursor</span>:pointer;<span class="attribute">background</span>:<span class="built_in">url</span>(<span class="string">"../imgs/menu.jpg"</span>) no-repeat top right;}</span><br><span class="line"><span class="selector-id">#addinput</span> {<span class="attribute">width</span>:<span class="number">240px</span>;<span class="attribute">height</span>:<span class="number">20px</span>;<span class="attribute">position</span>:absolute;<span class="attribute">top</span>:<span class="number">150px</span>;<span class="attribute">left</span>:-<span class="number">260px</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#888</span>;<span class="attribute">background-color</span>:<span class="number">#FFF</span>;<span class="attribute">padding-top</span>:<span class="number">2px</span>;<span class="attribute">overflow</span>:hidden;<span class="attribute">display</span>:none;}</span><br><span class="line"><span class="selector-id">#inp_l</span> {<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">width</span>:<span class="number">220px</span>;<span class="attribute">height</span>:<span class="number">20px</span>;}</span><br><span class="line"><span class="selector-id">#inp_r</span> {<span class="attribute">float</span><span class="selector-pseudo">:right</span>;<span class="attribute">width</span>:<span class="number">20px</span>;<span class="attribute">height</span>:<span class="number">20px</span>;<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">text-align</span>:center;<span class="attribute">cursor</span>:pointer;}</span><br><span class="line"><span class="selector-id">#talk</span> {<span class="attribute">border</span>:none;<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">width</span>:<span class="number">180px</span>;<span class="attribute">height</span>:<span class="number">16px</span>;}</span><br><span class="line"><span class="selector-id">#talkto</span> {<span class="attribute">float</span><span class="selector-pseudo">:left</span>;<span class="attribute">border</span>:none;<span class="attribute">width</span>:<span class="number">30px</span>;<span class="attribute">height</span>:<span class="number">16px</span>;<span class="attribute">background</span>:<span class="built_in">url</span>(<span class="string">"../imgs/ok.jpg"</span>);<span class="attribute">cursor</span>:pointer;}</span><br></pre></td></tr></table></figure><br>{blogroot}/source/weichuncai/js/common.js<br><figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="keyword">var</span> smjq = jQuery;</span><br><span class="line"><span class="keyword">var</span> _typei = <span class="number">0</span>;</span><br><span class="line"><span class="keyword">var</span> weichuncai_text = <span class="string">''</span>;</span><br><span class="line"><span class="title function_">smjq</span>(<span class="variable language_">document</span>).<span class="title function_">ready</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">var</span> getwidth = <span class="title function_">getCookie</span>(<span class="string">"historywidth"</span>);</span><br><span class="line"> <span class="keyword">var</span> getheight = <span class="title function_">getCookie</span>(<span class="string">"historyheight"</span>);</span><br><span class="line"> <span class="keyword">if</span>(getwidth != <span class="literal">null</span> && getheight != <span class="literal">null</span>){</span><br><span class="line"> <span class="keyword">var</span> width = getwidth;</span><br><span class="line"> <span class="keyword">var</span> height = getheight;</span><br><span class="line"> }<span class="keyword">else</span>{</span><br><span class="line"> <span class="keyword">var</span> width = <span class="variable language_">document</span>.<span class="property">documentElement</span>.<span class="property">clientWidth</span>- <span class="number">200</span> - imagewidth;</span><br><span class="line"> <span class="keyword">var</span> height = <span class="variable language_">document</span>.<span class="property">documentElement</span>.<span class="property">clientHeight</span>- <span class="number">180</span> - imageheight;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">var</span> cwidth = <span class="variable language_">document</span>.<span class="property">documentElement</span>.<span class="property">clientWidth</span>-<span class="number">100</span>;</span><br><span class="line"> <span class="keyword">var</span> cheight = <span class="variable language_">document</span>.<span class="property">documentElement</span>.<span class="property">clientHeight</span>-<span class="number">20</span>;</span><br><span class="line"> <span class="comment">//var height = document.body.clientHeight-200;</span></span><br><span class="line"> <span class="keyword">var</span> moveX = <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">var</span> moveY = <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">var</span> moveTop = <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">var</span> moveLeft = <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">var</span> moveable = <span class="literal">false</span>;</span><br><span class="line"> <span class="keyword">var</span> docMouseMoveEvent = <span class="variable language_">document</span>.<span class="property">onmousemove</span>;</span><br><span class="line"> <span class="keyword">var</span> docMouseUpEvent = <span class="variable language_">document</span>.<span class="property">onmouseup</span>;</span><br><span class="line"></span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"body"</span>).<span class="title function_">append</span>(<span class="string">'<div id="smchuncai" onfocus="this.blur();" style="color:#626262;z-index:999;"><div id="chuncaiface"></div><div id="dialog_chat"><div id="chat_top"></div><div id="dialog_chat_contents"><div id="dialog_chat_loading"></div><div id="tempsaying"></div><div id="showchuncaimenu"><ul class="wcc_mlist" id="shownotice">显示公告</ul><ul class="wcc_mlist" id="chatTochuncai">聊&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;天</ul><ul class="wcc_mlist" id="foods">吃 零 食</ul><ul class="wcc_mlist" id="aboutmanage">关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;于</ul><ul class="wcc_mlist" id="lifetimechuncai">生存时间</ul><ul class="wcc_mlist" id="closechuncai">关闭春菜</ul></div><div><ul id="chuncaisaying"></ul></div><div id="getmenu"> </div></div><div id="chat_bottom"></div></div></div>'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">append</span>(<span class="string">'<div id="addinput"><div id="inp_l"><input id="talk" type="text" name="mastersay" value="" /> <input id="talkto" type="button" value=" " /></div><div id="inp_r"> X </div></div>'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"body"</span>).<span class="title function_">append</span>(<span class="string">'<div id="callchuncai">召唤春菜</div>'</span>);</span><br><span class="line"> <span class="comment">//判断春菜是否处于隐藏状态</span></span><br><span class="line"> <span class="keyword">var</span> is_closechuncai = <span class="title function_">getCookie</span>(<span class="string">"is_closechuncai"</span>);</span><br><span class="line"> <span class="keyword">if</span>(is_closechuncai == <span class="string">'close'</span>){</span><br><span class="line"> <span class="title function_">closechuncai_init</span>();</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//设置初始状态</span></span><br><span class="line"> <span class="title function_">getdata</span>(<span class="string">"getnotice"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">1</span>);</span><br><span class="line"></span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">css</span>(<span class="string">'left'</span>, width+<span class="string">'px'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">css</span>(<span class="string">'top'</span>, height+<span class="string">'px'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">css</span>(<span class="string">'width'</span>, imagewidth+<span class="string">'px'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">css</span>(<span class="string">'height'</span>, imageheight+<span class="string">'px'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#callchuncai"</span>).<span class="title function_">attr</span>(<span class="string">"style"</span>, <span class="string">"top:"</span>+cheight+<span class="string">"px; left:"</span>+cwidth+<span class="string">"px; text-align:center;"</span>);</span><br><span class="line"></span><br><span class="line"> smcc = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"smchuncai"</span>);</span><br><span class="line"> smcc.<span class="property">onmousedown</span> = <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">var</span> ent = <span class="title function_">getEvent</span>();</span><br><span class="line"> moveable = <span class="literal">true</span>;</span><br><span class="line"> moveX = ent.<span class="property">clientX</span>;</span><br><span class="line"> moveY = ent.<span class="property">clientY</span>;</span><br><span class="line"> <span class="keyword">var</span> obj = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"smchuncai"</span>);</span><br><span class="line"> moveTop = <span class="built_in">parseInt</span>(obj.<span class="property">style</span>.<span class="property">top</span>);</span><br><span class="line"> moveLeft = <span class="built_in">parseInt</span>(obj.<span class="property">style</span>.<span class="property">left</span>);</span><br><span class="line"> <span class="keyword">if</span>(isFirefox=navigator.<span class="property">userAgent</span>.<span class="title function_">indexOf</span>(<span class="string">"Firefox"</span>)><span class="number">0</span>){</span><br><span class="line"> <span class="variable language_">window</span>.<span class="title function_">getSelection</span>().<span class="title function_">removeAllRanges</span>();</span><br><span class="line"> } </span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">onmousemove</span> = <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">if</span>(moveable){</span><br><span class="line"> <span class="keyword">var</span> ent = <span class="title function_">getEvent</span>();</span><br><span class="line"> <span class="keyword">var</span> x = moveLeft + ent.<span class="property">clientX</span> - moveX;</span><br><span class="line"> <span class="keyword">var</span> y = moveTop + ent.<span class="property">clientY</span> - moveY;</span><br><span class="line"> <span class="keyword">var</span> w = <span class="number">200</span>;</span><br><span class="line"> <span class="keyword">var</span> h = <span class="number">200</span>; <span class="comment">//w,h为浮层宽高</span></span><br><span class="line"> obj.<span class="property">style</span>.<span class="property">left</span> = x + <span class="string">"px"</span>;</span><br><span class="line"> obj.<span class="property">style</span>.<span class="property">top</span> = y + <span class="string">"px"</span>;</span><br><span class="line"> }</span><br><span class="line"> };</span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">onmouseup</span> = <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">if</span>(moveable){</span><br><span class="line"> <span class="keyword">var</span> historywidth = obj.<span class="property">style</span>.<span class="property">left</span>;</span><br><span class="line"> <span class="keyword">var</span> historyheight = obj.<span class="property">style</span>.<span class="property">top</span>;</span><br><span class="line"> historywidth = historywidth.<span class="title function_">replace</span>(<span class="string">'px'</span>, <span class="string">''</span>);</span><br><span class="line"> historyheight = historyheight.<span class="title function_">replace</span>(<span class="string">'px'</span>, <span class="string">''</span>);</span><br><span class="line"> <span class="title function_">setCookie</span>(<span class="string">"historywidth"</span>, historywidth, <span class="number">60</span>*<span class="number">60</span>*<span class="number">24</span>*<span class="number">30</span>*<span class="number">1000</span>);</span><br><span class="line"> <span class="title function_">setCookie</span>(<span class="string">"historyheight"</span>, historyheight, <span class="number">60</span>*<span class="number">60</span>*<span class="number">24</span>*<span class="number">30</span>*<span class="number">1000</span>);</span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">onmousemove</span> = docMouseMoveEvent;</span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">onmouseup</span> = docMouseUpEvent;</span><br><span class="line"> moveable = <span class="literal">false</span>; </span><br><span class="line"> moveX = <span class="number">0</span>;</span><br><span class="line"> moveY = <span class="number">0</span>;</span><br><span class="line"> moveTop = <span class="number">0</span>;</span><br><span class="line"> moveLeft = <span class="number">0</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> };</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#getmenu"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">chuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">1</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#shownotice"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">getdata</span>(<span class="string">"getnotice"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">1</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#closechuncai"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> <span class="title function_">closechuncai</span>();</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#callchuncai"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">2</span>);</span><br><span class="line"> <span class="title function_">callchuncai</span>();</span><br><span class="line"> <span class="title function_">setCookie</span>(<span class="string">"is_closechuncai"</span>, <span class="string">''</span>, <span class="number">60</span>*<span class="number">60</span>*<span class="number">24</span>*<span class="number">30</span>*<span class="number">1000</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#shownotice"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">1</span>);</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#lifetimechuncai"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">2</span>);</span><br><span class="line"> <span class="title function_">getdata</span>(<span class="string">'showlifetime'</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#chatTochuncai"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">showInput</span>();</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#inp_r"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">closeInput</span>();</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">'不聊天了吗?(→_→)'</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#talkto"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">getdata</span>(<span class="string">"talking"</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#aboutmanage"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#getmenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"你想了解我主人?跟我来吧~~~"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">2</span>);</span><br><span class="line"> <span class="built_in">setTimeout</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">href</span> = _about_path ;</span><br><span class="line"> }, <span class="number">2000</span>);</span><br><span class="line"> });</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#foods"</span>).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">getdata</span>(<span class="string">"foods"</span>);</span><br><span class="line"> });</span><br><span class="line"><span class="comment">/* smjq("#showchuncaimenu").hover(function(){</span></span><br><span class="line"><span class="comment"> },function(){</span></span><br><span class="line"><span class="comment"> smjq("#showchuncaimenu").slideUp('slow').show();</span></span><br><span class="line"><span class="comment"> });*/</span></span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">onmousemove</span> = <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">stoptime</span>();</span><br><span class="line"> tol = <span class="number">0</span>;</span><br><span class="line"> <span class="title function_">setTime</span>();</span><br><span class="line"> <span class="comment">//chuncaiSay("啊,野生的主人出现了! ~~~O口O");</span></span><br><span class="line"> }</span><br><span class="line"> <span class="title function_">talkSelf</span>(talktime);</span><br><span class="line"> <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"smchuncai"</span>).<span class="property">onmouseover</span> = <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">if</span>(talkobj){</span><br><span class="line"> <span class="built_in">clearTimeout</span>(talkobj);</span><br><span class="line"> }</span><br><span class="line"> talktime = <span class="number">0</span>;</span><br><span class="line"> <span class="title function_">talkSelf</span>(talktime);</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">getEvent</span>(<span class="params"></span>) {</span><br><span class="line"> <span class="keyword">return</span> <span class="variable language_">window</span>.<span class="property">event</span> || <span class="variable language_">arguments</span>.<span class="property">callee</span>.<span class="property">caller</span>.<span class="property">arguments</span>[<span class="number">0</span>];</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">var</span> eattimes = <span class="number">0</span>;</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">eatfood</span>(<span class="params">obj</span>){</span><br><span class="line"> <span class="keyword">var</span> gettimes = <span class="title function_">getCookie</span>(<span class="string">"eattimes"</span>);</span><br><span class="line"> <span class="keyword">if</span>(<span class="built_in">parseInt</span>(gettimes) > <span class="built_in">parseInt</span>(<span class="number">9</span>)){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"主人是个大混蛋!!"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> <span class="title function_">closechuncai_evil</span>();</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(<span class="built_in">parseInt</span>(gettimes) > <span class="built_in">parseInt</span>(<span class="number">7</span>)){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">".....................肚子要炸了,死也不要再吃了~~!!!TAT"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(<span class="built_in">parseInt</span>(gettimes) == <span class="built_in">parseInt</span>(<span class="number">5</span>)){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"我已经吃饱了,不要再吃啦......"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(<span class="built_in">parseInt</span>(gettimes) == <span class="built_in">parseInt</span>(<span class="number">3</span>)){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"多谢款待,我吃饱啦~~~ ╰( ̄▽ ̄)╭"</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">2</span>);</span><br><span class="line"> }<span class="keyword">else</span>{</span><br><span class="line"> <span class="keyword">var</span> id = obj.<span class="title function_">replace</span>(<span class="string">"f"</span>,<span class="string">''</span>);</span><br><span class="line"> <span class="title function_">getdata</span>(<span class="string">'eatsay'</span>, id);</span><br><span class="line"> }</span><br><span class="line"> eattimes++;</span><br><span class="line"> <span class="title function_">setCookie</span>(<span class="string">"eattimes"</span>, eattimes, <span class="number">60</span>*<span class="number">10</span>*<span class="number">1000</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">chuncaiMenu</span>(<span class="params"></span>){</span><br><span class="line"> <span class="comment">//smjq("#showchuncaimenu").slideDown('fast').show();</span></span><br><span class="line"> <span class="title function_">clearChuncaiSay</span>();</span><br><span class="line"> <span class="title function_">closeInput</span>();</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"准备做什么呢?"</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#showchuncaimenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#getmenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#chuncaisaying"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">closeChuncaiMenu</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">clearChuncaiSay</span>();</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#showchuncaimenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="comment">//smjq("#chuncaisaying").css("display", "block");</span></span><br><span class="line"> <span class="title function_">showNotice</span>();</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#getmenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">showNotice</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#chuncaisaying"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">closechuncai</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">stopTalkSelf</span>();</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"记得再叫我出来哦..."</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#showchuncaimenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="built_in">setTimeout</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">fadeOut</span>(<span class="number">1200</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#callchuncai"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);}, <span class="number">2000</span>);</span><br><span class="line"> <span class="comment">//保存关闭状态的春菜</span></span><br><span class="line"> <span class="title function_">setCookie</span>(<span class="string">"is_closechuncai"</span>, <span class="string">'close'</span>, <span class="number">60</span>*<span class="number">60</span>*<span class="number">24</span>*<span class="number">30</span>*<span class="number">1000</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">closechuncai_evil</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">stopTalkSelf</span>();</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#showchuncaimenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="built_in">setTimeout</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">fadeOut</span>(<span class="number">1200</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#callchuncai"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);}, <span class="number">2000</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">closechuncai_init</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">stopTalkSelf</span>();</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#showchuncaimenu"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="built_in">setTimeout</span>(<span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#callchuncai"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);}, <span class="number">30</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">callchuncai</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">talkSelf</span>(talktime);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#smchuncai"</span>).<span class="title function_">fadeIn</span>(<span class="string">'normal'</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#callchuncai"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"我回来啦~"</span>);</span><br><span class="line"> <span class="title function_">setCookie</span>(<span class="string">"is_closechuncai"</span>, <span class="string">''</span>, <span class="number">60</span>*<span class="number">60</span>*<span class="number">24</span>*<span class="number">30</span>*<span class="number">1000</span>);</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">chuncaiSay</span>(<span class="params">s</span>){</span><br><span class="line"> <span class="title function_">clearChuncaiSay</span>();</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#tempsaying"</span>).<span class="title function_">append</span>(s);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#tempsaying"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);</span><br><span class="line"> weichuncai_text = s;</span><br><span class="line"> <span class="title function_">typeWords</span>();</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">clearChuncaiSay</span>(<span class="params"></span>){</span><br><span class="line"> <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"tempsaying"</span>).<span class="property">innerHTML</span> = <span class="string">''</span>;</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">closeNotice</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#chuncaisaying"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">showInput</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"............?"</span>);</span><br><span class="line"> <span class="comment">//setFace(1);</span></span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#addinput"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"block"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">closeInput</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#addinput"</span>).<span class="title function_">css</span>(<span class="string">"display"</span>, <span class="string">"none"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">clearInput</span>(<span class="params"></span>){</span><br><span class="line"> <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"talk"</span>).<span class="property">value</span> = <span class="string">''</span>;</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">createFace</span>(<span class="params">a, b, c</span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"head"</span>).<span class="title function_">append</span>(<span class="string">'<div id="hiddenfaces"><img id="hf1" src="'</span>+a+<span class="string">'" /><img id="hf2" src="'</span>+b+<span class="string">'" /><img id="hf3" src="'</span>+c+<span class="string">'" /></div>'</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">1</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">setFace</span>(<span class="params">num</span>){</span><br><span class="line"> obj = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"hf"</span>+num).<span class="property">src</span>;</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#chuncaiface"</span>).<span class="title function_">attr</span>(<span class="string">"style"</span>, <span class="string">"background:url("</span>+obj+<span class="string">") no-repeat scroll 50% 0% transparent; width:"</span>+imagewidth+<span class="string">"px;height:"</span>+imageheight+<span class="string">"px;"</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">getdata</span>(<span class="params">el, id</span>){</span><br><span class="line"> smjq.<span class="title function_">ajax</span>({</span><br><span class="line"> <span class="attr">type</span>: <span class="string">'GET'</span>,</span><br><span class="line"> <span class="attr">url</span>: _weichuncai_jsonpath,</span><br><span class="line"> <span class="attr">cache</span>: <span class="string">'false'</span>,</span><br><span class="line"> <span class="attr">dataType</span>: <span class="string">'html'</span>,</span><br><span class="line"> <span class="attr">contentType</span>: <span class="string">'application/json; charset=utf8'</span>,</span><br><span class="line"> <span class="attr">beforeSend</span>: <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="comment">//smjq("#dialog_chat").fadeOut("normal");</span></span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#tempsaying"</span>).<span class="title function_">css</span>(<span class="string">'display'</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#dialog_chat_loading"</span>).<span class="title function_">fadeIn</span>(<span class="string">"normal"</span>);</span><br><span class="line"> },</span><br><span class="line"> <span class="attr">success</span>: <span class="keyword">function</span>(<span class="params">data</span>){</span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#dialog_chat_loading"</span>).<span class="title function_">css</span>(<span class="string">'display'</span>, <span class="string">"none"</span>);</span><br><span class="line"> <span class="comment">//smjq("#dialog_chat").fadeIn("normal");</span></span><br><span class="line"> <span class="title function_">smjq</span>(<span class="string">"#tempsaying"</span>).<span class="title function_">css</span>(<span class="string">'display'</span>, <span class="string">""</span>);</span><br><span class="line"> <span class="keyword">var</span> dat = <span class="built_in">eval</span>(<span class="string">"("</span>+data+<span class="string">")"</span>);</span><br><span class="line"> <span class="keyword">if</span>(el == <span class="string">'getnotice'</span>){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(dat.<span class="property">notice</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">1</span>);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(el == <span class="string">'showlifetime'</span>){</span><br><span class="line"> <span class="title class_">BirthDay</span>=<span class="keyword">new</span> <span class="title class_">Date</span>(dat.<span class="property">showlifetime</span>);<span class="comment">//建站日期</span></span><br><span class="line"> today=<span class="keyword">new</span> <span class="title class_">Date</span>();</span><br><span class="line"> timeold=(today.<span class="title function_">getTime</span>()-<span class="title class_">BirthDay</span>.<span class="title function_">getTime</span>());</span><br><span class="line"> sectimeold=timeold/<span class="number">1000</span></span><br><span class="line"> secondsold=<span class="title class_">Math</span>.<span class="title function_">floor</span>(sectimeold);</span><br><span class="line"> msPerDay=<span class="number">24</span>*<span class="number">60</span>*<span class="number">60</span>*<span class="number">1000</span></span><br><span class="line"> e_daysold=timeold/msPerDay</span><br><span class="line"> daysold=<span class="title class_">Math</span>.<span class="title function_">floor</span>(e_daysold);</span><br><span class="line"> e_hrsold=(daysold-e_daysold)*-<span class="number">24</span>;</span><br><span class="line"> hrsold=<span class="title class_">Math</span>.<span class="title function_">floor</span>(e_hrsold);</span><br><span class="line"> e_minsold=(hrsold-e_hrsold)*-<span class="number">60</span>;</span><br><span class="line"> minsold=<span class="title class_">Math</span>.<span class="title function_">floor</span>((hrsold-e_hrsold)*-<span class="number">60</span>);</span><br><span class="line"> seconds=<span class="title class_">Math</span>.<span class="title function_">floor</span>((minsold-e_minsold)*-<span class="number">60</span>);</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"我已经与主人 一起生存了 "</span>+daysold+<span class="string">" 天 "</span>+hrsold+<span class="string">" 小时 "</span>+minsold+<span class="string">" 分钟 "</span>+seconds+<span class="string">" 秒的快乐时光啦~*^_^*"</span>);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(el == <span class="string">'talking'</span>){</span><br><span class="line"> <span class="keyword">var</span> talkcon = <span class="title function_">smjq</span>(<span class="string">"#talk"</span>).<span class="title function_">val</span>();</span><br><span class="line"> <span class="keyword">var</span> i = <span class="title function_">in_array</span>(talkcon, dat.<span class="property">ques</span>);</span><br><span class="line"> <span class="keyword">var</span> types = <span class="title function_">typeof</span>(i);</span><br><span class="line"> <span class="keyword">if</span>(types != <span class="string">'boolean'</span>){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(dat.<span class="property">ans</span>[i]);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">2</span>);</span><br><span class="line"> }<span class="keyword">else</span>{</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">'.......................嗯?'</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="title function_">clearInput</span>();</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(el == <span class="string">'foods'</span>){</span><br><span class="line"> <span class="keyword">var</span> str=<span class="string">''</span>;</span><br><span class="line"> <span class="keyword">var</span> arr = dat.<span class="property">foods</span>;</span><br><span class="line"> <span class="keyword">var</span> preg = <span class="regexp">/function/</span>; </span><br><span class="line"> <span class="keyword">for</span>(<span class="keyword">var</span> i <span class="keyword">in</span> arr){</span><br><span class="line"> <span class="keyword">if</span>(arr[i] != <span class="string">''</span> && !preg.<span class="title function_">test</span>(arr[i]) ){</span><br><span class="line"> str +=<span class="string">'<ul id="f'</span>+i+<span class="string">'" class="eatfood" onclick="eatfood(this.id)">'</span>+arr[i]+<span class="string">'</ul>'</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(str);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(el = <span class="string">"eatsay"</span>){</span><br><span class="line"> <span class="keyword">var</span> str = dat.<span class="property">eatsay</span>[id];</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(str);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">2</span>);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(el = <span class="string">"talkself"</span>){</span><br><span class="line"> <span class="keyword">var</span> arr = dat.<span class="property">talkself</span>;</span><br><span class="line"> <span class="keyword">return</span> arr;</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> <span class="attr">error</span>: <span class="keyword">function</span>(<span class="params"></span>){</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">'好像出错了,是什么错误呢...请联系管理猿'</span>);</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">in_array</span>(<span class="params">str, arr</span>){</span><br><span class="line"> <span class="keyword">for</span>(<span class="keyword">var</span> i <span class="keyword">in</span> arr){</span><br><span class="line"> <span class="keyword">if</span>(arr[i] == str){</span><br><span class="line"> <span class="keyword">return</span> i;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">var</span> timenum;</span><br><span class="line"><span class="keyword">var</span> tol=<span class="number">0</span>;</span><br><span class="line"><span class="comment">//10分钟后页面没有响应就停止活动</span></span><br><span class="line"><span class="keyword">var</span> goal = <span class="number">10</span>*<span class="number">60</span>;</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">setTime</span>(<span class="params"></span>){</span><br><span class="line"> tol++;</span><br><span class="line"> <span class="comment">//document.body.innerHTML(tol);</span></span><br><span class="line"> timenum = <span class="variable language_">window</span>.<span class="built_in">setTimeout</span>(<span class="string">"setTime('"</span>+tol+<span class="string">"')"</span>, <span class="number">1000</span>);</span><br><span class="line"> <span class="keyword">if</span>(<span class="built_in">parseInt</span>(tol) == <span class="built_in">parseInt</span>(goal)){</span><br><span class="line"> <span class="title function_">stopTalkSelf</span>();</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">closeInput</span>();</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(<span class="string">"主人跑到哪里去了呢...."</span>);</span><br><span class="line"> <span class="title function_">setFace</span>(<span class="number">3</span>);</span><br><span class="line"> <span class="title function_">stoptime</span>();</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">stoptime</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">if</span>(timenum){</span><br><span class="line"> <span class="built_in">clearTimeout</span>(timenum);</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"><span class="keyword">var</span> talktime = <span class="number">0</span>;</span><br><span class="line"><span class="comment">//设置自言自语频率(单位:秒)</span></span><br><span class="line"><span class="keyword">var</span> talkself = <span class="number">60</span>;</span><br><span class="line"><span class="keyword">var</span> talkobj;</span><br><span class="line"><span class="keyword">var</span> tsi = <span class="number">0</span>;</span><br><span class="line"><span class="keyword">var</span> talkself_arr = [</span><br><span class="line"> [<span class="string">"白日依山尽,黄河入海流,欲穷千里目,更上.....一层楼?"</span>, <span class="string">"1"</span>],</span><br><span class="line"> [<span class="string">"我看见主人熊猫眼又加重了!"</span>, <span class="string">"3"</span>],</span><br><span class="line"> [<span class="string">"我是不是很厉害呀~~?"</span>, <span class="string">"2"</span>],</span><br><span class="line"> [<span class="string">"5555...昨天有个小孩子跟我抢棒棒糖吃....."</span>, <span class="string">"3"</span>],</span><br><span class="line"> [<span class="string">"昨天我好像看见主人又在众人之前卖萌了哦~"</span>, <span class="string">"2"</span>]</span><br><span class="line">];</span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">talkSelf</span>(<span class="params">talktime</span>){</span><br><span class="line"> talktime++;</span><br><span class="line"> <span class="keyword">var</span> yushu = talktime%talkself;</span><br><span class="line"> <span class="keyword">if</span>(<span class="built_in">parseInt</span>(yushu) == <span class="built_in">parseInt</span>(<span class="number">9</span>)){</span><br><span class="line"> <span class="title function_">closeChuncaiMenu</span>();</span><br><span class="line"> <span class="title function_">closeNotice</span>();</span><br><span class="line"> <span class="title function_">closeInput</span>();</span><br><span class="line"> tsi = <span class="title class_">Math</span>.<span class="title function_">floor</span>(<span class="title class_">Math</span>.<span class="title function_">random</span>() * talkself_arr.<span class="property">length</span> + <span class="number">1</span>)-<span class="number">1</span>;</span><br><span class="line"> <span class="title function_">chuncaiSay</span>(talkself_arr[tsi][<span class="number">0</span>]);</span><br><span class="line"> <span class="title function_">setFace</span>(talkself_arr[tsi][<span class="number">1</span>]);</span><br><span class="line"> }</span><br><span class="line"> talkobj = <span class="variable language_">window</span>.<span class="built_in">setTimeout</span>(<span class="string">"talkSelf("</span>+talktime+<span class="string">")"</span>, <span class="number">1000</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">stopTalkSelf</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">if</span>(talkobj){</span><br><span class="line"> <span class="built_in">clearTimeout</span>(talkobj);</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">arrayShuffle</span>(<span class="params">arr</span>){</span><br><span class="line"> <span class="keyword">var</span> result = [],</span><br><span class="line"> len = arr.<span class="property">length</span>;</span><br><span class="line"> <span class="keyword">while</span>(len--){</span><br><span class="line"> result[result.<span class="property">length</span>] = arr.<span class="title function_">splice</span>(<span class="title class_">Math</span>.<span class="title function_">floor</span>(<span class="title class_">Math</span>.<span class="title function_">random</span>()*(len+<span class="number">1</span>)),<span class="number">1</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> result;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">typeWords</span>(<span class="params"></span>) {</span><br><span class="line"> <span class="keyword">var</span> p = <span class="number">1</span>;</span><br><span class="line"> <span class="keyword">var</span> str = weichuncai_text.<span class="title function_">substr</span>(<span class="number">0</span>,_typei);</span><br><span class="line"> <span class="keyword">var</span> w = weichuncai_text.<span class="title function_">substr</span>(_typei,<span class="number">1</span>);</span><br><span class="line"> <span class="keyword">if</span>(w==<span class="string">"<"</span>){</span><br><span class="line"> str += weichuncai_text.<span class="title function_">substr</span>(_typei,weichuncai_text.<span class="title function_">substr</span>(_typei).<span class="title function_">indexOf</span>(<span class="string">">"</span>)+<span class="number">1</span>);</span><br><span class="line"> p= weichuncai_text.<span class="title function_">substr</span>(_typei).<span class="title function_">indexOf</span>(<span class="string">">"</span>)+<span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"> _typei+=p;</span><br><span class="line"> <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"tempsaying"</span>).<span class="property">innerHTML</span> = str;</span><br><span class="line"> txtst = <span class="built_in">setTimeout</span>(<span class="string">"typeWords()"</span>,<span class="number">20</span>);</span><br><span class="line"> <span class="keyword">if</span> (_typei> weichuncai_text.<span class="property">length</span>){</span><br><span class="line"> <span class="built_in">clearTimeout</span>(txtst);</span><br><span class="line"> _typei = <span class="number">0</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">setCookie</span>(<span class="params">name, val, ex</span>){</span><br><span class="line"> <span class="keyword">var</span> times = <span class="keyword">new</span> <span class="title class_">Date</span>();</span><br><span class="line"> times.<span class="title function_">setTime</span>(times.<span class="title function_">getTime</span>() + ex);</span><br><span class="line"> <span class="keyword">if</span>(ex == <span class="number">0</span>){</span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">cookie</span> = name+<span class="string">"="</span>+val+<span class="string">";"</span>;</span><br><span class="line"> }<span class="keyword">else</span>{</span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">cookie</span> = name+<span class="string">"="</span>+val+<span class="string">"; expires="</span>+times.<span class="title function_">toGMTString</span>();</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">getCookie</span>(<span class="params">name</span>){</span><br><span class="line"> <span class="keyword">var</span> arr = <span class="variable language_">document</span>.<span class="property">cookie</span>.<span class="title function_">match</span>(<span class="keyword">new</span> <span class="title class_">RegExp</span>(<span class="string">"(^| )"</span>+name+<span class="string">"=([^;]*)(;|$)"</span>)); </span><br><span class="line"> <span class="keyword">if</span>(arr != <span class="literal">null</span>) <span class="keyword">return</span> <span class="built_in">unescape</span>(arr[<span class="number">2</span>]); <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure><br>{blogroot}/source/weichuncai/js/chuncai.json(这个地方可以自行配置)<br><figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"notice"</span><span class="punctuation">:</span> <span class="string">"欢迎来到我的新家,没想到在2024我会被人注意到,真幸福~~"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"ques"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="string">"早上好"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"中午好"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"下午好"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"晚上好"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"晚安"</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"ans"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="string">"早上好~"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"中午好~"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"下午好~"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"晚上好~"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"晚安~"</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"foods"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="string">"金坷垃"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"咸梅干"</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"eatsay"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="string">"吃了金坷垃,一刀能秒一万八~!"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"吃咸梅干,变超人!哦耶~~~"</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showlifetime"</span><span class="punctuation">:</span><span class="string">"02-16-2024 15:30:00"</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure><br>{blogroot}/source/weichuncai/js/chuncai.json(这个地方可以自行配置)<br><figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="keyword">var</span> _about_path = <span class="string">"https://blog.sinzmise.top/about"</span>; <span class="comment">//你的关于页面地址</span></span><br><span class="line"><span class="keyword">var</span> _weichuncai_jsonpath = <span class="string">"/weichuncai/chuncai.json"</span>; <span class="comment">//chuncai.json的位置</span></span><br><span class="line"><span class="keyword">var</span> imagewidth = <span class="string">'85'</span>; <span class="comment">//人格长度</span></span><br><span class="line"><span class="keyword">var</span> imageheight = <span class="string">'152'</span>; <span class="comment">//人格高度</span></span><br><span class="line"><span class="comment">//设置人格的自言自语,前面的双引号是内容后面的双引号是人格表情,后面的1、2、3对应createFace设置的第几个表情</span></span><br><span class="line"><span class="keyword">var</span> talkself_arr = [</span><br><span class="line"> [<span class="string">"白日依山尽,黄河入海流,欲穷千里目,更上.....一层楼?"</span>, <span class="string">"1"</span>],</span><br><span class="line"> [<span class="string">"我看见主人熊猫眼又加重了!"</span>, <span class="string">"3"</span>],</span><br><span class="line"> [<span class="string">"我是不是很厉害呀~~?"</span>, <span class="string">"2"</span>],</span><br><span class="line"> [<span class="string">"5555...昨天有个小孩子跟我抢棒棒糖吃....."</span>, <span class="string">"3"</span>]</span><br><span class="line">];</span><br><span class="line"><span class="comment">//设置表情</span></span><br><span class="line"><span class="title function_">createFace</span>(</span><br><span class="line"> <span class="string">"https://dqapi.sininno.eu.org/weichuncai/skin/rakutori/face1.gif"</span>, </span><br><span class="line"> <span class="string">"https://dqapi.sininno.eu.org/weichuncai/skin/rakutori/face2.gif"</span>, </span><br><span class="line"> <span class="string">"https://dqapi.sininno.eu.org/weichuncai/skin/rakutori/face3.gif"</span></span><br><span class="line">);</span><br></pre></td></tr></table></figure><br>butterfly、anzhiyu主题引入:<br><figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="comment"># Inject</span></span><br><span class="line"><span class="comment"># Insert the code to head (before '</head>' tag) and the bottom (before '</body>' tag)</span></span><br><span class="line"><span class="comment"># 插入代码到头部 </head> 之前 和 底部 </body> 之前</span></span><br><span class="line"><span class="attr">inject:</span></span><br><span class="line"> <span class="attr">head:</span></span><br><span class="line"> <span class="comment"># jQuery(必须在之前引入)</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string"><script</span> <span class="string">src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.3/jquery.min.js"></script></span></span><br><span class="line"> <span class="attr">bottom:</span></span><br><span class="line"> <span class="comment"># 主体</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string"><link</span> <span class="string">rel="stylesheet"</span> <span class="string">type="text/css"</span> <span class="string">href="/weichuncai/css/style.css"></span></span><br><span class="line"> <span class="bullet">-</span> <span class="string"><script</span> <span class="string">src="/weichuncai/js/common.js"></script></span></span><br><span class="line"> <span class="bullet">-</span> <span class="string"><script</span> <span class="string">src="/weichuncai/wcc-config.js"></script></span></span><br></pre></td></tr></table></figure></p>
|
1180
|
-
<h1 id="后记"><a href="#后记" class="headerlink" title="后记"></a>后记</h1><p>我为什么会将伪春菜定义为桌面精灵而不是桌宠?<br>是因为相比于桌宠来说,伪春菜比桌宠的功能还多得多<br>因此我即使开着虚拟桌宠模拟器,我有时也会开着伪春菜<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240216/ssp_OgKZgUjISo.1rssdhcjowjk.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240216/ssp_OgKZgUjISo.1rssdhcjowjk.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="ssp_OgKZgUjISo"><br>(甚至我电脑卡的时候也会提醒我,虽然我电脑没有卡死QWQ)</p>
|
1181
|
-
<p>还有,我之前看<a href="https://steve02081504.github.io/2020/02/27/about-kikka/">关于Kikka</a>这篇文章,有一句话很吸引我:<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240216/msedge_h7th45Tk9U.47mkdav98180.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20240216/msedge_h7th45Tk9U.47mkdav98180.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_h7th45Tk9U"><br>也据此可以看出,在2020年,伪春菜这个圈子越来越难活下去<br>更何况现在是2024。。。。。。</p>
|
1182
|
-
<p>但不管怎么说,还是有人在用这个桌面精灵的,至少有我一个。。。。。。<br>后面我打算写个有关伪春菜的配置教程吧。。。。。。</p>
|
1193
|
+
<title>萌ICP备异次元之旅</title>
|
1194
|
+
<url>/posts/58203/</url>
|
1195
|
+
<content><![CDATA[<p>今天在修改我那萌备的时候,无意在导航栏上看到了“异次元”这玩意<br>看主页是类似于“开往”,只不过仅跳转到萌备详情页面而不是直接进入站点<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230724/msedge_OyAWChkztM.5m8n4321oak0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230724/msedge_OyAWChkztM.5m8n4321oak0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_OyAWChkztM"><br>又因为我站点已经加入了萌ICP备,所以我就将这玩意添加到底部列表里面了<br><span id="more"></span></p>
|
1196
|
+
<h1 id="添加方法"><a href="#添加方法" class="headerlink" title="添加方法"></a>添加方法</h1><p>如果没有你没有加入萌ICP备豪华套餐的话,点击这里加入:<a href="https://icp.gov.moe/join.php">加入萌备</a><br>如果你加入了,那么按照 <a href="https://moe.one/thread-254.htm">https://moe.one/thread-254.htm</a> 里的配色方案添加</p>
|
1183
1197
|
]]></content>
|
1184
1198
|
<categories>
|
1185
1199
|
<category>站点折腾</category>
|
1186
1200
|
</categories>
|
1187
1201
|
<tags>
|
1188
1202
|
<tag>站点折腾</tag>
|
1189
|
-
<tag
|
1203
|
+
<tag>站点底部魔改</tag>
|
1190
1204
|
</tags>
|
1191
1205
|
</entry>
|
1192
1206
|
<entry>
|
@@ -1204,20 +1218,6 @@ function loadkaixinmusic() {
|
|
1204
1218
|
<tag>自建部署</tag>
|
1205
1219
|
</tags>
|
1206
1220
|
</entry>
|
1207
|
-
<entry>
|
1208
|
-
<title>萌ICP备异次元之旅</title>
|
1209
|
-
<url>/posts/58203/</url>
|
1210
|
-
<content><![CDATA[<p>今天在修改我那萌备的时候,无意在导航栏上看到了“异次元”这玩意<br>看主页是类似于“开往”,只不过仅跳转到萌备详情页面而不是直接进入站点<br><img src="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230724/msedge_OyAWChkztM.5m8n4321oak0.webp" class="lazyload" data-srcset="https://jsd.cdn.storisinz.site/gh/SinzMise/picx-images-hosting@master/20230724/msedge_OyAWChkztM.5m8n4321oak0.webp" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="msedge_OyAWChkztM"><br>又因为我站点已经加入了萌ICP备,所以我就将这玩意添加到底部列表里面了<br><span id="more"></span></p>
|
1211
|
-
<h1 id="添加方法"><a href="#添加方法" class="headerlink" title="添加方法"></a>添加方法</h1><p>如果没有你没有加入萌ICP备豪华套餐的话,点击这里加入:<a href="https://icp.gov.moe/join.php">加入萌备</a><br>如果你加入了,那么按照 <a href="https://moe.one/thread-254.htm">https://moe.one/thread-254.htm</a> 里的配色方案添加</p>
|
1212
|
-
]]></content>
|
1213
|
-
<categories>
|
1214
|
-
<category>站点折腾</category>
|
1215
|
-
</categories>
|
1216
|
-
<tags>
|
1217
|
-
<tag>站点折腾</tag>
|
1218
|
-
<tag>站点底部魔改</tag>
|
1219
|
-
</tags>
|
1220
|
-
</entry>
|
1221
1221
|
<entry>
|
1222
1222
|
<title>马里奥制造1打百人团教程</title>
|
1223
1223
|
<url>/posts/10996/</url>
|