Indonesia president visits quake survivors, vows to rebuild

An earthquake survivor cooks breakfast at the ruin of her home in Pidie Jaya, Aceh province, Indonesia, Friday, Dec. 9, 2016. Humanitarian organizations descended on Indonesia's Aceh province Thursday as the local disaster agency called for urgent food supplies and officials raced to assess the full extent of damage from an earthquake that killed a large number of people. (AP Photo/Heri Juanda) (The Associated Press)

Earthquake survivor Badruddin who lost his wife and a daughter in the disaster cleans up rubble from the ruin of his house in Pidie Jaya, Aceh province, Indonesia, Friday, Dec. 9, 2016. Humanitarian organizations descended on Indonesia's Aceh province Thursday as the local disaster agency called for urgent food supplies and officials raced to assess the full extent of damage from an earthquake that killed a large number of people. (AP Photo/Heri Juanda) (The Associated Press)

An earthquake survivor sleeps on a table at a temporary shelter in Pidie Jaya, Aceh province, Indonesia, Friday, Dec. 9, 2016. Humanitarian organizations descended on Indonesia's Aceh province Thursday as the local disaster agency called for urgent food supplies and officials raced to assess the full extent of damage from an earthquake that killed a large number of people. (AP Photo/Heri Juanda) (The Associated Press)

Indonesia's president traveled to areas devastated by a magnitude 6.5 earthquake and vowed that torn-apart communities would be rebuilt.

Stopping Friday morning at a collapsed mosque in Tringgading not far from the quake's epicenter, Joko "Jokowi" Widodo gave money to people who had lost family members.

He told the crowd, "We will rebuild the mosque as soon as possible. We start tomorrow but we have to do it together."

More than 100 people were killed in the quake that hit the northeast of Aceh province on Sumatra before dawn Wednesday. Hundreds of people were injured and more than 10,000 buildings destroyed or heavily damaged.