<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <title>Ukagaka by DrayChou</title> <link rel="stylesheet" href="stylesheets/styles.css"> <link rel="stylesheet" href="stylesheets/pygment_trac.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="javascripts/respond.js"></script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!--[if lt IE 8]> <link rel="stylesheet" href="stylesheets/ie.css"> <![endif]--> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> </head> <body> <div id="header"> <nav> <li class="fork"><a href="https://github.com/DrayChou/ukagaka">View On GitHub</a></li> <li class="downloads"><a href="https://github.com/DrayChou/ukagaka/zipball/master">ZIP</a></li> <li class="downloads"><a href="https://github.com/DrayChou/ukagaka/tarball/master">TAR</a></li> <li class="title">DOWNLOADS</li> </nav> </div><!-- end header --> <div class="wrapper"> <section> <div id="title"> <h1>Ukagaka</h1> <p>僞春菜</p> <hr> <span class="credits left">Project maintained by <a href="https://github.com/DrayChou">DrayChou</a></span> <span class="credits right">Hosted on GitHub Pages — Theme by <a href="https://twitter.com/michigangraham">mattgraham</a></span> </div> <article class="markdown-body entry-content" itemprop="mainContentOfPage"><h1> <a name="ukagaka" class="anchor" href="#ukagaka"><span class="octicon octicon-link"></span></a>ukagaka</h1> <p>來自 <a href="http://www.lmyoaoa.com/inn/archives/4504/">http://www.lmyoaoa.com/inn/archives/4504/</a> 的僞春菜</p> <p>原作者 <a href="http://www.lmyoaoa.com/inn/">油饼小明猪</a></p> <p>该项目原先为 php 的程序,在问过原作者的后,我把它拔下来,改成了纯静态的项目。</p> <h1> <a name="%E4%BF%AE%E6%94%B9%E5%86%85%E5%AE%B9%E5%A6%82%E4%B8%8B" class="anchor" href="#%E4%BF%AE%E6%94%B9%E5%86%85%E5%AE%B9%E5%A6%82%E4%B8%8B"><span class="octicon octicon-link"></span></a>修改内容如下:</h1> <ol> <li>封装成对象</li> <li>将原项目分开成 wcc 和 ghost 两部分,以方便以后添加 ghost</li> <li>封装进一个 js 文件中</li> </ol> </article> </section> </div> <!--[if !IE]><script>fixScale(document);</script><![endif]--> <link type="text/css" href="https://rawgithub.com/DrayChou/ukagaka/master/css/style.css" rel="stylesheet"> <script type="text/javascript" src="https://rawgithub.com/DrayChou/ukagaka/master/js/common.js"></script> <script type="text/javascript"> var http_base = "https://rawgit.com/DrayChou/ukagaka/master/"; WCC.init({ '_site_path': http_base, //站点地址,用这个地址来拼接引入 ghost '_weichuncai_path': http_base + "data.json", //请求的用户数据文件地址 'imagewidth': "240", 'imageheight': "240", 'ghost': "default", 'talkself_user': [ ["你喜欢我吗?快来陪我一起玩吧。", "2"], ["喔耶~加油!加油!加油!加油!", "2"], ["有发现春菜有什么bug,请大家回馈呀。", "3"], ["主人现在老是弃旧迎新,朋友们都好伤心啊..", "3"], ["哇啊啊啊啊啊啊啊啊啊...", "3"] ] }); </script> </body> </html>