From aad3da5cfb644044bfd175345c040e83a2423b36 Mon Sep 17 00:00:00 2001 From: hanjiyun Date: Mon, 14 Dec 2015 17:57:28 +0800 Subject: [PATCH 1/3] feat(install): add bower support --- bower.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 bower.json diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..fb86ba2 --- /dev/null +++ b/bower.json @@ -0,0 +1,17 @@ +{ + "name": "jieyou_lazyload", + "main": "lazyload.js", + "version": "1.4.1", + "homepage": "https://github.com/jieyou/lazyload", + "authors": [ + "jieyou " + ], + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ] +} From 2ed1d56727cf4626b00b55a0b64340eb1725da8e Mon Sep 17 00:00:00 2001 From: hanjiyun Date: Mon, 14 Dec 2015 17:59:53 +0800 Subject: [PATCH 2/3] update README --- README.textile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.textile b/README.textile index 7df4823..860ddb7 100644 --- a/README.textile +++ b/README.textile @@ -27,6 +27,11 @@ h3. Basic +或者用 Bower (http://bower.io/) 安装: +``` +bower install jieyou_lazyload +``` + 你必须改写你的HTML代码。真实图像的URL必须被放入到`data-original`属性中。给所有需要延迟加载图片一个特殊的class是一个好主意。这样你就可以很容易地控制哪些图片会被插件绑定到。请注意,你的图片应该有宽度和高度属性,或者通过CSS来控制图片的宽度和高度,或者通过某些手段来确保它有正确的宽度和宽度。
@@ -669,4 +674,4 @@ h4. The removal of skip_invisible attribute
 
 h2. License
 
-All code licensed under the "MIT License":http://www.opensource.org/licenses/mit-license.php. All images licensed under "Creative Commons Attribution 3.0 Unported License":http://creativecommons.org/licenses/by/3.0/deed.en_US. In other words you are basically free to do whatever you want. Just don't remove my name from the source.
\ No newline at end of file
+All code licensed under the "MIT License":http://www.opensource.org/licenses/mit-license.php. All images licensed under "Creative Commons Attribution 3.0 Unported License":http://creativecommons.org/licenses/by/3.0/deed.en_US. In other words you are basically free to do whatever you want. Just don't remove my name from the source.

From b74bb57e5f8a2cccfbdf145d9349ce0c549edbcb Mon Sep 17 00:00:00 2001
From: hanjiyun 
Date: Mon, 14 Dec 2015 18:01:28 +0800
Subject: [PATCH 3/3] update README

---
 README.textile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.textile b/README.textile
index 860ddb7..51304bf 100644
--- a/README.textile
+++ b/README.textile
@@ -28,9 +28,10 @@ h3. Basic
 
或者用 Bower (http://bower.io/) 安装: -``` + +
 bower install jieyou_lazyload
-```
+
你必须改写你的HTML代码。真实图像的URL必须被放入到`data-original`属性中。给所有需要延迟加载图片一个特殊的class是一个好主意。这样你就可以很容易地控制哪些图片会被插件绑定到。请注意,你的图片应该有宽度和高度属性,或者通过CSS来控制图片的宽度和高度,或者通过某些手段来确保它有正确的宽度和宽度。