¶¶Òõap

Skip to content
Police wearing riot gear walk toward a man with his hands raised Monday, Aug. 11, 2014, in Ferguson, Mo. Authorities have made several arrests in Ferguson, where crowds have looted and burned stores, vandalized vehicles and taunted police after a vigil for an unarmed black man who was killed by police. (AP Photo/Jeff Roberson)
Police wearing riot gear walk toward a man with his hands raised Monday, Aug. 11, 2014, in Ferguson, Mo. Authorities have made several arrests in Ferguson, where crowds have looted and burned stores, vandalized vehicles and taunted police after a vigil for an unarmed black man who was killed by police. (AP Photo/Jeff Roberson)
AuthorAuthor
PUBLISHED: | UPDATED:
Getting your player ready...

Police wearing riot gear walk toward a man with his hands raised Monday, Aug. 11, 2014, in Ferguson, Mo. Authorities have made several arrests in Ferguson, where crowds have looted and burned stores, vandalized vehicles and taunted police after a vigil for an unarmed black man who was killed by police.

Displaced Iraqis from the Yazidi community gather for humanitarian aid at the Iraq-Syria border at Feeshkhabour border point. Kurdish authorities at the border believe some 45,000 Yazidis passed the river crossing in the past week and thousands more are still stranded in the mountains.

//

{{#ImageElementCollection}}
<div id="images">
{{#ImageElement}}
<div class="imagewrap">
<div class="imagecontainer">
<a name="photo{{position}}"><img src="{{fullUrl}}" alt="Description of {} {{caption}}" /></a>
</div>
<div class="caption"><div class="linkage"><p><a href="#photo{{position}}">{{position}}</a></p></div><p>{{#if caption}} {{caption}} {{/if}}<a class="hashy" href="#photo{{position}}">#</a></p></div>
</div>
{{/ImageElement}}
</div>
{{/ImageElementCollection}}

////

//

(function($){
var noCache = Date(), // Prevent IE caching of JSON
positionCounter = 0,
url,
json = _JSONHelper; // CUSTOM CODE found in js/JSON_helper.js

// COUNTER FOR HANDLEBARS (PAGINATION)
Handlebars.registerHelper(‘position’, function() {
// More than one position per loop
if (url !== this.fullUrl) {
url = this.fullUrl;
return positionCounter++;
}
else {
return positionCounter;
}
});

// get data from json object
$.getJSON(json, { "noCache": noCache }, function(data) {
// build the carousel
template = Handlebars.compile($(‘#longformTemp’).html());
html = template(data);
$(‘.photo-gallery’).html(html);
});
})(jQuery);

////

More in News