Permalink
Browse files

草稿功能

  • Loading branch information...
1 parent 2b89d0d commit 6c27cd72149111859c696c714acc8068b889ca29 System Administrator committed Sep 17, 2014
Showing with 2,034 additions and 412 deletions.
  1. +20 −2 assets/css/Markdown.Editor.css
  2. +10 −0 assets/css/articles.less
  3. +12 −3 assets/css/card.less
  4. +1 −2 assets/css/job.less
  5. +7 −4 assets/css/main.css
  6. +179 −0 assets/index.html
  7. +266 −265 assets/js/Markdown.Editor.js
  8. BIN assets/zhongqiu6/images/2_bg.jpg
  9. BIN assets/zhongqiu6/images/2_car.png
  10. BIN assets/zhongqiu6/images/2_car_left.png
  11. BIN assets/zhongqiu6/images/2_car_right.png
  12. BIN assets/zhongqiu6/images/2_earth.png
  13. BIN assets/zhongqiu6/images/2_text-bg.png
  14. BIN assets/zhongqiu6/images/2_text.png
  15. BIN assets/zhongqiu6/images/3_1.png
  16. BIN assets/zhongqiu6/images/3_10.png
  17. BIN assets/zhongqiu6/images/3_11.png
  18. BIN assets/zhongqiu6/images/3_12.png
  19. BIN assets/zhongqiu6/images/3_2.png
  20. BIN assets/zhongqiu6/images/3_3.png
  21. BIN assets/zhongqiu6/images/3_4.png
  22. BIN assets/zhongqiu6/images/3_5.png
  23. BIN assets/zhongqiu6/images/3_6.png
  24. BIN assets/zhongqiu6/images/3_7.png
  25. BIN assets/zhongqiu6/images/3_8.png
  26. BIN assets/zhongqiu6/images/3_9.png
  27. BIN assets/zhongqiu6/images/3_bg.jpg
  28. BIN assets/zhongqiu6/images/3_car.png
  29. BIN assets/zhongqiu6/images/3_moon.png
  30. BIN assets/zhongqiu6/images/arrow.png
  31. BIN assets/zhongqiu6/images/bg.jpg
  32. BIN assets/zhongqiu6/images/car-light.png
  33. BIN assets/zhongqiu6/images/car.png
  34. BIN assets/zhongqiu6/images/logo.png
  35. BIN assets/zhongqiu6/images/moon.png
  36. BIN assets/zhongqiu6/images/shot.png.png
  37. BIN assets/zhongqiu6/images/text-bg.png
  38. BIN assets/zhongqiu6/images/topic_1.jpg
  39. BIN assets/zhongqiu6/images/topic_2.jpg
  40. BIN assets/zhongqiu6/images/topic_3.jpg
  41. BIN assets/zhongqiu6/images/word.png
  42. +374 −0 assets/zhongqiu6/index.html
  43. +401 −0 assets/zhongqiu6/index_2.html
  44. +394 −0 assets/zhongqiu6/index_3.html
  45. +47 −0 assets/zhongqiu6/success.html
  46. +10 −15 controllers/article.coffee
  47. +1 −0 data.json
  48. +13 −0 filters/article/all-notpublish.coffee
  49. +1 −1 filters/article/all-publish-articles.coffee
  50. +0 −1 functions/article/article.coffee
  51. BIN static/images/bg.png
  52. BIN static/images/car.png
  53. BIN static/images/logo.png
  54. BIN static/images/moon.png
  55. BIN static/images/text-bg.png
  56. BIN static/images/word.png
  57. +174 −0 static/index.html
  58. +103 −52 views/article/add-article.jade
  59. +8 −54 views/article/articles-list.jade
  60. +13 −13 views/card/cards.jade
@@ -66,14 +66,32 @@
}
#fullscreen-exit {
position: fixed;
- right:20px;
+ right:0px;
top:10px;
font-size: 18px;
color:#777;
- width:30px;
+ width:90px;
height:30px;
z-index:100000001;
}
+#fullscreen-exit a{
+ display: inline-block;
+ margin-right: 10px;
+}
+#save-article {
+ position: fixed;
+ right:70px;
+ top:10px;
+ font-size: 18px;
+ color:#777;
+ width:120px;
+ height:30px;
+ z-index:100000001;
+}
+#save-article a{
+ display: inline-block;
+ margin-right: 10px;
+}
#fullscreen-editor .btn-toolbar .btn i{color:#444;background: none;}
#fullscreen-editor #wmd-preview{
border:1px solid #ddd;
@@ -2,6 +2,16 @@
#articles
{
+ .nopublish_articles{
+ .t{
+ color:#333;
+ line-height: 30px;
+ font-size: 13px;
+ }
+ a{
+ margin-right: 20px;
+ }
+ }
.invite-user-dropdown{
width:362px;
border:1px solid #ddd;
View
@@ -51,21 +51,27 @@
vertical-align: top;
margin-top:10px;
padding:15px;
- height:140px;
+ height:40px;
overflow: hidden;
font-size:12px;
color:#666;
margin-right:10px;
box-shadow: 1px 1px 2px #ddd;
position: relative;
+ border:1px solid #fff;
+}
+.f2er-list .card:hover{
+ background: #f3f3f3;
+ border:1px solid #fff;
}
.f2er-list .card span{
word-wrap: normal;
word-break: break-all;
}
.f2er-list .card .head_pic{
- width:50px;
- height:50px;
+ width:35px;
+ height:35px;
+ margin-right: 5px;
img{
border-radius: 50px;
border:2px solid #fff;
@@ -93,6 +99,9 @@ float:left;
.infos{
float:left;
width:310px;
+margin-top: -3px;
+font-size: 14px;
+line-height: 25px;
}
.left{
float:left;
View
@@ -106,10 +106,9 @@ margin-top: 20px;
vertical-align: top;
line-height: 30px;
font-size: 14px;
- width:200px;
+ width:300px;
.key{
color:#999;
-
}
.value{
color: #333;
View
@@ -479,6 +479,8 @@ body{background:url(../images/bg-repeat.png);background:#e5e5e5;}
#read article.post .entry-title .item{font-size:12px;margin-right:20px;}#read article.post .entry-title .item .index{color:#aaa;}
#read article.post .entry-title .item .value{color:#888;}
#read article.post .entry-content{padding:20px 0;color:#404040;font-size:13px;}
+#articles .nopublish_articles .t{color:#333;line-height:30px;font-size:13px;}
+#articles .nopublish_articles a{margin-right:20px;}
#articles .invite-user-dropdown{width:362px;border:1px solid #ddd;background:#fff;position:absolute;left:-25px;z-index:10000;top:30px;}#articles .invite-user-dropdown li{list-style:none;line-height:20px;font-size:13px;padding:5px;cursor:pointer;}
#articles .invite-user-dropdown li:hover{background:#5bb793;color:#fff;}
#articles .editor-add .editors .editor{width:260px;float:left;border:1px solid #eee;background:#f7f7f7;padding:10px;margin-right:10px;margin-bottom:10px;}#articles .editor-add .editors .editor .head-pic{float:left;width:50px;overflow:hidden;height:50px;border-radius:60px;}#articles .editor-add .editors .editor .head-pic img{width:50px;height:50px;display:block;border-radius:60px;}
@@ -628,16 +630,17 @@ body{background:url(../images/bg-repeat.png);background:#e5e5e5;}
#cards .f2er-list .sns .blog{background:url(http://htmljs.b0.upaiyun.com/images/icon-blog.png) no-repeat center center;height:15px;width:15px;display:inline-block;text-indent:-1000px;overflow:hidden;}
#cards .f2er-list .sns .github{background:url(http://htmljs.b0.upaiyun.com/images/github.png) no-repeat center center;height:15px;width:15px;display:inline-block;text-indent:-1000px;overflow:hidden;}
#cards .f2er-list .sns .weibo{background:url(http://htmljs.b0.upaiyun.com/images/icon-weibo.png?d) no-repeat center center;height:15px;width:15px;display:inline-block;text-indent:-1000px;overflow:hidden;}
-#cards .f2er-list .card{width:465px;background:#fff;list-style:none;margin:0;display:inline-block;vertical-align:top;margin-top:10px;padding:15px;height:140px;overflow:hidden;font-size:12px;color:#666;margin-right:10px;box-shadow:1px 1px 2px #ddd;position:relative;}
+#cards .f2er-list .card{width:465px;background:#fff;list-style:none;margin:0;display:inline-block;vertical-align:top;margin-top:10px;padding:15px;height:40px;overflow:hidden;font-size:12px;color:#666;margin-right:10px;box-shadow:1px 1px 2px #ddd;position:relative;border:1px solid #fff;}
+#cards .f2er-list .card:hover{background:#f3f3f3;border:1px solid #fff;}
#cards .f2er-list .card span{word-wrap:normal;word-break:break-all;}
-#cards .f2er-list .card .head_pic{width:50px;height:50px;}#cards .f2er-list .card .head_pic img{border-radius:50px;border:2px solid #fff;box-shadow:0px 0px 4px #aaa;}
+#cards .f2er-list .card .head_pic{width:35px;height:35px;margin-right:5px;}#cards .f2er-list .card .head_pic img{border-radius:50px;border:2px solid #fff;box-shadow:0px 0px 4px #aaa;}
#cards .f2er-list .card .key{margin-left:10px;color:#666;}
#cards .f2er-list .card .value{color:#999;}
#cards .f2er-list .card .shanchang .key{float:left;}
#cards .f2er-list .card .shanchang .value{float:left;color:#999;width:260px;}
#cards .f2er-list .card .more{margin-left:10px;}
#cards .main{width:1000px;}
-#cards .infos{float:left;width:310px;}
+#cards .infos{float:left;width:310px;margin-top:-3px;font-size:14px;line-height:25px;}
#cards .left{float:left;width:800px;margin-right:-220px;}
#cards .right{float:left;width:200px;margin-left:-200px;padding-top:10px;}#cards .right .module{margin-left:10px;background:#fff;padding:20px;margin-bottom:10px;}#cards .right .module .item{border-bottom:1px solid #eee;padding:5px 0;}#cards .right .module .item a{color:#6fb79b;}
#card #bdshare,#me #bdshare{float:none;}
@@ -852,7 +855,7 @@ body{background:url(../images/bg-repeat.png);background:#e5e5e5;}
#jobs .job-list .job .con .item .value{color:#999;}
#jobs .job-list .job .con .count em{color:#999;margin-right:10px;}
#jobs .job-list .job .user .nick{float:left;font-size:14px;line-height:50px;margin:10px;}
-#job .job-base-info .item{display:inline-block;vertical-align:top;line-height:30px;font-size:14px;width:200px;}#job .job-base-info .item .key{color:#999;}
+#job .job-base-info .item{display:inline-block;vertical-align:top;line-height:30px;font-size:14px;width:300px;}#job .job-base-info .item .key{color:#999;}
#job .job-base-info .item .value{color:#333;margin-left:10px;}
#job .right .module.count span{font-size:12px;color:#999;padding-right:10px;}
#job .right .module.count a{font-size:12px;padding-right:10px;}
View
@@ -0,0 +1,179 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <link rel="Shortcut Icon" href="http://htmljs.b0.upaiyun.com//images/logo.ico?123">
+ <link href="http://htmljs.b0.upaiyun.com//images/logo.ico?123" rel="shortcut icon" type="image/x-icon">
+
+ <script src="http://htmljs.b0.upaiyun.com//js/jquery.js"></script>
+ <link href="http://htmljs.b0.upaiyun.com//images/icon.png" rel="apple-touch-icon"/>
+ <style>
+
+ html,body{
+ width:100%;
+ height:100%;
+ margin:0;
+ padding:0;
+ }
+ .bg{
+ width:100%;
+ height:100%;
+ background: url(./images/bg.png);
+ background-size: 100%;
+ }
+ .moon{
+ width:350px;
+ height:350px;
+ background: url(./images/moon.png);
+ position: absolute;
+ right:-100px;
+ top:20px;
+ background-size: 100%;
+ }
+ .moon-text{
+ width:70px;
+ height:232px;
+ background: url(./images/word.png);
+ position: absolute;
+ background-repeat: no-repeat;
+ right:20px;
+ top:70px;
+ background-size: 100%;
+ }
+ .logo{
+ width:96px;
+ height:86px;
+ background: url(./images/logo.png);
+ position: absolute;
+ background-repeat: no-repeat;
+ left:0px;
+ top:50px;
+ background-size: 100%;
+ }
+ .editor{
+ width:170px;
+ height:260px;
+ background: url(./images/text-bg.png);
+ position: absolute;
+ background-repeat: no-repeat;
+ left:50px;
+ top:150px;
+ background-size: 100%;
+ }
+ .car{
+ width:100%;
+ height:250px;
+ background: url(./images/car.png);
+ position: absolute;
+ background-repeat: no-repeat;
+ left:0;
+ bottom:0px;
+ background-size: 100%;
+ }
+ .main-text{
+ width:130px;
+ padding:20px;
+ height:170px;
+ font-size: 14px;
+ color:#9f7b53;
+ background: none;
+ border:none;
+ }
+ .name-text{
+ width:150px;
+ height:30px;
+ padding:0 10px;
+ text-align: right;
+ font-size: 14px;
+ color:#9f7b53;
+ background: none;
+ border:none;
+ }
+ </style>
+ </head>
+ <body id="index">
+ <div class="bg"></div>
+ <div class="logo"></div>
+ <div class="moon"></div>
+ <div class="moon-text"></div>
+ <div class="editor"><textarea class="main-text"></textarea>
+ <input type="text" class="name-text"/></div>
+ <div class="car"></div>
+ <script>
+ function getQueryString(name)
+{
+ // 如果链接没有参数,或者链接中不存在我们要获取的参数,直接返回空
+ if(location.href.indexOf("?")==-1 || location.href.indexOf(name+'=')==-1)
+ {
+ return '';
+ }
+
+ // 获取链接中参数部分
+ var queryString = location.href.substring(location.href.indexOf("?")+1);
+
+ // 分离参数对 ?key=value&key2=value2
+ var parameters = queryString.split("&");
+
+ var pos, paraName, paraValue;
+ for(var i=0; i<parameters.length; i++)
+ {
+ // 获取等号位置
+ pos = parameters[i].indexOf('=');
+ if(pos == -1) { continue; }
+
+ // 获取name 和 value
+ paraName = parameters[i].substring(0, pos);
+ paraValue = parameters[i].substring(pos + 1);
+
+ // 如果查询的name等于当前name,就返回当前值,同时,将链接中的+号还原成空格
+ if(paraName == name)
+ {
+ return unescape(paraValue.replace(/\+/g, " "));
+ }
+ }
+ return '';
+};
+ var main_text=getQueryString("main");
+ var name_text=getQueryString("name");
+ $(".main-text").val(main_text)
+ $(".name-text").val(name_text)
+ $(".main-text").on("change",function(){
+ main_text = this.value;
+ })
+ $(".name-text").on("change",function(){
+ name_text = this.value;
+ })
+ try{
+ document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
+ WeixinJSBridge.on('menu:share:timeline', function(argv){
+ WeixinJSBridge.invoke('shareTimeline',{
+ "img_url":"",
+ "img_width":"114",
+ "img_height":"114",
+ "link":window.location.href.replace(/\?.*$/,"")+"?name="+name_text+"&main="+main_text,
+ "desc":"",
+ "title":name_text+" 给你送来的中秋祝福"
+ }, function(res){});
+ });
+ WeixinJSBridge.on('menu:share:appmessage', function(argv){
+ WeixinJSBridge.invoke('sendAppMessage',{
+ "img_url":"",
+ "img_width":"114",
+ "img_height":"114",
+ "link":window.location.href.replace(/\?.*$/,"")+"?name="+name_text+"&main="+main_text,
+ "desc":"",
+ "title":name_text+" 给你送来的中秋祝福"
+ }, function(res){});
+ });
+ });
+ }catch(e){
+
+ }
+ </script>
+ <script type="text/javascript">
+var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
+document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F194b0e45c7c9214c485ba8ce9e7e3fa6' type='text/javascript'%3E%3C/script%3E"));
+</script>
+
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit 6c27cd7

Please sign in to comment.