Skip to content

Commit

Permalink
update extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
mip-platform committed Jun 27, 2017
1 parent 288c444 commit cab67f8
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 2 deletions.
16 changes: 16 additions & 0 deletions mip-233-up2now/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

# mip-233-up2now

将目标时间更新至最新

标题|内容
----|----
类型|业务,广告
支持布局|N/S
所需脚本|https://mipcache.bdstatic.com/static/v1/mip-233-up2now/mip-233-up2now.js

## 示例

``` html
<mip-233-up2now><p><span class="article_channel">课程推广</span><i class="time">06-13</i></p></mip-233-up2now>
```
20 changes: 20 additions & 0 deletions mip-233-up2now/mip-233-up2now.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* @file 将目标时间更新至最新
* @author 233 程序部
*/
define(function (require) {
var $ = require('zepto');
var customElem = require('customElement').create();
// build 方法,元素插入到文档时执行,仅会执行一次
customElem.prototype.build = function () {
var element = this.element;
var date = new Date();
var month = date.getMonth() + 1;
var day = date.getDate();
if (month < 10) {
month = '0' + month;
}
$(element).find('.time').html(month + '-' + day);
};
return customElem;
});
10 changes: 10 additions & 0 deletions mip-233-up2now/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "mip-233-up2now",
"version": "1.0.0",
"description":"将目标时间更新至最新",
"author": {
"name": "up2now",
"email": "[email protected]",
"url": "www.233.com"
}
}
2 changes: 1 addition & 1 deletion mip-233-yytx/mip-233-yytx.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ define(function (require) {
$.ajax({
type: 'post',
scriptCharset: 'utf-8',
url: 'http://www.23113.com/search/nine-20150423/json/bespeak.asp?Act=bespeak',
url: 'http://www.233.com/search/nine-20150423/json/bespeak.asp?Act=bespeak',
data: {
domain: domain,
fullname: escape(fullname),
Expand Down
2 changes: 1 addition & 1 deletion mip-233-yytx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mip-233-yytx",
"version": "1.0.0",
"version": "1.0.1",
"description":"预约提醒插件",
"author": {
"name": "233预约提醒",
Expand Down

0 comments on commit cab67f8

Please sign in to comment.