4747curl_setopt ($ chCURLOPT_RETURNTRANSFER , 1 );
4848$ responsejson_decode (curl_exec ($ ch
4949$ photosproperty_exists ($ response'data ' ) ? $ responsedata  : array ();
50- $ next_min_idproperty_exists ($ response'pagination ' ) ? $ responsepagination ->next_min_id  : NULL ;
51- $ next_max_idproperty_exists ($ response'pagination ' ) ? $ responsepagination ->next_max_id  : NULL ;
5250
5351/* 
5452
@@ -99,7 +97,7 @@ class="button"
9997            </p>
10098        </div>
10199
102-         <ul id="photos" data-next-min-ID=" <?= $ next_max_id ?> " >
100+         <ul id="photos">
103101
104102        <?php  //foreach ($photos as $photo):  ?> 
105103            <li class="loading">Loading…</li>
@@ -174,10 +172,10 @@ class="login button">Login →</a>
174172                var new_photos = response.data,
175173                    pagination = response.pagination,
176174                    delay = 0,
177-                     anim_speed = 200;    
175+                     anim_speed = 200;
178176
179177                // Removes the loading LI if present
180-                 $("#photos").find('.loading').hide(400).delay(400).remove();              
178+                 $("#photos").find('.loading').hide(400).delay(400).remove();
181179
182180                // Resets the new photo count
183181                newcount = 0;
@@ -189,7 +187,9 @@ class="login button">Login →</a>
189187                    var photoCont = $("#photos"),
190188                        photo = new_photos[x],
191189                        caption = (photo.caption!==null) ? photo.caption.text : '';
192-     
190+ 
191+ //TODO: Make the captions show up and fix delay
192+ 
193193                    $('<img />', {
194194                        src: photo.images.thumbnail.url,
195195                        alt: caption,
0 commit comments