The following code is in the javascript:
<img class=\"modal-loading\" src=\"~/Content/img/loading.gif\" />
The end result:
Good evening Did you ever try to take out the address? everything will depend on the directory that is img if you are in a sub directory of your web project just put Content / img / loading.gif