Commit a72a6a7e authored by Vanessa's avatar Vanessa

test

parent 1708b2e3
......@@ -22,8 +22,8 @@
*/
var timeline = {
$articles: $(".articles"),
layoutArticleList: function () {
timeline.colH = [0, 20];
_COLH: [0, 20],
_layoutArticleList: function () {
timeline.$articles.find("article").each(function () {
var $it = $(this),
isLeft = timeline.colH[1] > timeline.colH[0],
......@@ -44,11 +44,12 @@ var timeline = {
});
timeline.$articles.height(timeline.colH[0] > timeline.colH[1] ? timeline.colH[0] : timeline.colH[1]);
timeline.colH = timeline._COLH;
},
initArticleList: function () {
_initArticleList: function () {
$(window).resize(function () {
timeline.layoutArticleList();
timeline._layoutArticleList();
});
$(window).resize();
$(window).resize();
......@@ -64,7 +65,7 @@ var timeline = {
});
if ($(".articles").length === 1) {
timeline.initArticleList();
timeline._initArticleList();
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment