diff --git a/index.html b/index.html index 44d3112..c68dd9f 100644 --- a/index.html +++ b/index.html @@ -148,7 +148,7 @@ -
+
@@ -236,11 +236,11 @@
- +

0033 (0) 6 44 26 78 84

@@ -376,6 +376,7 @@ video_div.onmouseout = function() {this.children[0].load()}; } + var comment_header = "

" $('#iframeModal').on('show.bs.modal', function (event) { var modal = $(this); @@ -385,7 +386,6 @@ var youtube_id = button.data('youtubeid'); var vimeo_id = button.data('vimeoid'); var sketchfab_id = button.data('sketchfabid'); - var artstation_id = button.data('artstationid'); var comment = button.data('comment'); var options = button.data('options'); @@ -421,21 +421,8 @@ } - var modal_comment = modal.find('.modal-body .modal-comment')[0]; - if (comment) { - var comment_object = document.createElement('p'); - comment_object.innerText = comment; - modal_comment.appendChild(document.createElement('hr')); - modal_comment.appendChild(comment_object); - } - - if (artstation_id) { - var artstation_link = document.createElement('a'); - artstation_link.title = "More details on ArtStation"; - artstation_link.href = "https://www.artstation.com/artwork/" + artstation_id; - modal_comment.appendChild(document.createElement('hr')); - modal_comment.appendChild(artstation_link); + modal.find('.modal-body .modal-comment')[0].innerHTML = comment_header + comment + '

'; } });