+ commented code

This commit is contained in:
tmshv committed 2016-02-27 16:16:57 +03:00
1 parent fee8ab9c7a
commit 16a76fd793
1 file changed
+25
+25
View File
@@ -11,6 +11,31 @@ export default function (app) {
.success(collective => {
this.members = collective;
});
//let rangelen = r => r[1] - r[0];
//let interpolate = (r, i) => (i - r[0]) / rangelen(r);
//let extrapolate = (r, i) => r[0] + rangelen(r) * i;
//
//let mapValue = (from, to) =>
// i => extrapolate(
// to, interpolate(
// from, i
// ));
//
//let mapImageScroll = mapValue([0, 400], [0, -100]);
//
//$(window).scroll(() => {
// let scroll = $(window).scrollTop();
//
// let v = mapImageScroll(scroll);
// console.log(v);
//
// this.$apply(() => {
// this.imageStyle = {
// top: v
// };
// });
//});
}
});
};