Skip to content

Commit

Permalink
Set title on embedded iframes, add robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Oct 3, 2024
1 parent ca6444c commit 4846ecd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions llab/script/curriculum.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ llab.addFrame = function() {
var source = llab.getQueryParameter("src");

var frame = $(document.createElement("iframe")).attr(
{'src': source, 'class': 'content-embed'}
{'src': source, 'class': 'content-embed', 'title': 'Embedded video content'}
);

let content = $(document.createElement('div'));
Expand Down Expand Up @@ -626,7 +626,8 @@ llab.addFeedback = function(title, topic, course) {
'id': 'feedback-frame',
'width': "300",
'height': "230",
'src': surveyURL
'src': surveyURL,
'title': 'Page feedback survey'
});
$('#fdbk').append(frame);
}
Expand Down
3 changes: 3 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This restricts what search engines and other tools can crawl.
User-agent: *
Disallow: /old/

0 comments on commit 4846ecd

Please sign in to comment.