diff --git a/index.html b/index.html
index 224843d..30296b5 100644
--- a/index.html
+++ b/index.html
@@ -120,7 +120,7 @@
-
+
@@ -175,8 +175,8 @@
-
-
+
@@ -194,8 +194,8 @@
-
-
+
@@ -213,8 +213,8 @@
-
-
+
@@ -293,6 +293,8 @@
video_div.onmouseout = function() {this.children[0].load()};
}
+ var comment_header = "
"
+
$('#youtubeModal').on('show.bs.modal', function (event) {
masthead_video_mute(true);
var button = $(event.relatedTarget);
@@ -308,7 +310,10 @@
}
modal.find('.modal-body iframe')[0].src = youtube_url;
- modal.find('.modal-body p')[0].innerHTML = comment;
+
+ if (comment) {
+ modal.find('.modal-body .modal-comment')[0].innerHTML = comment_header + comment + '
';
+ }
});
$('#youtubeModal').on('hidden.bs.modal', function () {
$(this).find('.modal-body iframe')[0].src = "";
@@ -322,7 +327,10 @@
var comment = button.data('comment');
var modal = $(this);
modal.find('.modal-body iframe')[0].src = 'https://player.vimeo.com/video/' + vimeo_id;
- modal.find('.modal-body p')[0].innerHTML = comment;
+
+ if (comment) {
+ modal.find('.modal-body .modal-comment')[0].innerHTML = comment_header + comment + '
';
+ }
});
$('#vimeoModal').on('hidden.bs.modal', function () {
$(this).find('.modal-body iframe')[0].src = "";
@@ -336,7 +344,10 @@
var comment = button.data('comment');
var modal = $(this);
modal.find('.modal-body iframe')[0].src = 'https://sketchfab.com/models/' + sketchfab_id + '/embed?autostart=1';
- modal.find('.modal-body p')[0].innerHTML = comment;
+
+ if (comment) {
+ modal.find('.modal-body .modal-comment')[0].innerHTML = comment_header + comment + '';
+ }
});
$('#sketchFabModal').on('hidden.bs.modal', function () {
$(this).find('.modal-body iframe')[0].src = "";