Permalink
Browse files

update readme and change to Chinese page

  • Loading branch information...
cedricporter committed May 14, 2014
1 parent 49b0fa0 commit 9bda8ddeb89532e13e1b112bc290f6f964a2f58e
Showing with 14 additions and 7 deletions.
  1. +5 −1 README.md
  2. +9 −6 templates/short.html
View
@@ -4,12 +4,16 @@ This is the source code of [http://163.gs](http://163.gs).
163.gs is written by Python with Tornado.
## Generate shorten url
## Generate shorten url interface
```
curl -d "url=http://EverET.org" http://163.gs/short/
```
Return short url if success which starts with `http://`. You can check whether the response is started with `http:` to determine if it is successful.
If fail, it returns error message.
## Install
Copy `etc/config.py.sample` to `etc/config.py` and modify it if necessary.
View
@@ -9,7 +9,7 @@
<meta name="author" content="Hua Liang">
<link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">
<title>163.gs短链接服务</title>
<title>163.gs短网址服务</title>
<!-- 最新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap.min.css">
@@ -64,19 +64,21 @@
<body>
<div class="container">
<form class="form-signin" role="form" id="applyForm">
<h2 class="form-signin-heading">Url Shorten</h2>
<input type="text" name="url" class="form-control" placeholder="paste url here" required autofocus>
<h2 class="form-signin-heading">163.gs短网址服务</h2>
<input type="text" name="url" class="form-control" placeholder="输入长网址" required autofocus>
<label class="checkbox"> </label>
<span class="help-block" name="ret_msg"></span>
<button class="generateBtn btn btn-lg btn-primary btn-block" type="button">Generate</button>
<button class="generateBtn btn btn-lg btn-primary btn-block" type="button">生成!</button>
<label class="checkbox"> </label>
<blockquote>
<p>Powered by <a href="http://EverET.org">Stupid ET</a>. <a href="https://github.com/cedricporter/url-shorten">Fork it</a>.</p>
<p><small>Powered by <a href="http://EverET.org">Stupid ET</a>. <a href="https://github.com/cedricporter/url-shorten">接口文档</a></small></p>
</blockquote>
</form>
</div> <!-- /container -->
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
@@ -125,3 +127,4 @@ <h2 class="form-signin-heading">Url Shorten</h2>
</body>
</html>

0 comments on commit 9bda8dd

Please sign in to comment.