<P> The site of the mosque was originally a Sanskrit college building commissioned by Vigraharaja IV (alias Visaladeva), a king of the Shakambhari Chahamana (Chauhan) dynasty . The original building was square - shaped, with a tower - chhatri (dome - shaped pavilion) at each corner . A temple dedicated to Sarasvati was located on the western side . A tablet dated to 1153 CE was found at the site in the 19th century; based on this, it can be inferred that the original building must have been constructed sometime before 1153 CE . According to the local Jain tradition, the building was originally constructed by Seth Viramdeva Kala in 660 CE as a Jain shrine to celebrate Panch Kalyanaka . </P> <P> The relics in the modern building show both Hindu and Jain features . According to KDL Khan, the building materials were taken from Hindu and Jain temples . According to Caterina Mercone Maxwell and Marijke Rijsberman, the Sanskrit college was a Jain institution, and the building materials were taken from Hindu temples . ASI Director - General Alexander Cunningham hypothesized that the pillars used in the building were probably taken from 20--30 demolished Hindu temples, which featured at least 700 pillars in total . Based on the pillar inscriptions, he concluded that these original temples dated to 11th or 12th century CE . </P> <P> The original building was partially destroyed and converted into a mosque by Qutb - ud - Din - Aibak of Delhi in the late 12th century . According to a local legend, after defeating Vigraharaja's nephew Prithviraja III in the Second Battle of Tarain, Muhammad Ghori passed through Ajmer . There, he saw the magnificent temples, and ordered his slave general Qutb - ud - Din - Aibak to destroy them, and construct a mosque--all within 60 hours (that is, ​ 2 ⁄ days). The artisans could not build a complete mosque in 60 hours time, but constructed a brick screen wall where Ghori could offer prayers . By the end of the century, a complete mosque was built . </P> <P> The central mihrab in the mosque contains an inscription indicating the completion date of the mosque . It is dated Jumada II 595 AH (April 1199 CE). This makes the mosque one of the oldest in India, and the second mosque to be built by the Mamluks of Delhi (the first being the Quwwat - ul - Islam mosque). Another inscription, dated Dhu al - Hijjah 596 AH (September--October 1200 CE), names Abu Bakr ibn Ahmed Khalu Al - Hirawi as the supervisor of construction . This makes Adhai Din Ka Jhonpra one of the oldest mosques in India, and the oldest surviving monument in Ajmer . </P>

Who constructed the mosque called dhai din ka jhopra
find me the text answering this question