Score
0
Watch 34 Star 104 Fork 28

lt1726 / 网页宠物插件JavaScript

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
博客宠物插件,网页宠物,可以与主人对话,讲笑话,喂食物,拖拽(pc和移动端)等 spread retract

http://lutao1726.oschina.io

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Purpose

我的博客小插件

Function

  • 隐藏插件
  • 增加图灵api
  • 随机讲故事或笑话
  • 移动端适配

Example

我的博客1: http://www.cnblogs.com/lt1726/

我的博客2: http://lutao1726.gitee.io/

Use-Method

参照index.html中的调用方法即可

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Demo</title>
</head>

<body>
    <script type="text/javascript" src="lib/jquery.js"></script>
    <script type="text/javascript" src="dist/chuncai.js"></script>
    <script type="text/javascript">
        $.chuncai();
    </script>
</body>

</html>

Issue

  • 目前用的是我的账号,图灵api调用次数只有1000次/每天,有兴趣的可以改为自己的账号,位置在app.js中
    tuling: {
            key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
            userid: "xxxxx"
    },

修改成自己的账号后,重新打包即可

Package

* 安装node.js
* 安装webpack
* webpack --config webpack.config.js 即可

Comments ( 14 )

Sign in for post a comment

JavaScript
1
https://gitee.com/lutao1726/WeiChunCaiChaJian.git
git@gitee.com:lutao1726/WeiChunCaiChaJian.git
lutao1726
WeiChunCaiChaJian
网页宠物插件
master

Help Search