|
@@ -6,9 +6,10 @@ function isInSight(el) {
|
|
return bound.top <= clientHeight + 100;
|
|
return bound.top <= clientHeight + 100;
|
|
}
|
|
}
|
|
|
|
|
|
-var index = 0;
|
|
|
|
|
|
+
|
|
|
|
|
|
function checkImgs() {
|
|
function checkImgs() {
|
|
|
|
+ var index = 0;
|
|
var imgs = document.querySelectorAll('.my-photo');
|
|
var imgs = document.querySelectorAll('.my-photo');
|
|
for (var i = index; i < imgs.length; i++) {
|
|
for (var i = index; i < imgs.length; i++) {
|
|
if (isInSight(imgs[i])) {
|
|
if (isInSight(imgs[i])) {
|