From 4846ecdabe86d5084b6b733ed57ccba8af1b62c3 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Thu, 3 Oct 2024 13:31:14 -0700 Subject: [PATCH] Set title on embedded iframes, add robots.txt --- llab/script/curriculum.js | 5 +++-- robots.txt | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 robots.txt diff --git a/llab/script/curriculum.js b/llab/script/curriculum.js index 42b648614..8352fc07e 100755 --- a/llab/script/curriculum.js +++ b/llab/script/curriculum.js @@ -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')); @@ -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); } diff --git a/robots.txt b/robots.txt new file mode 100644 index 000000000..fa61b0290 --- /dev/null +++ b/robots.txt @@ -0,0 +1,3 @@ +# This restricts what search engines and other tools can crawl. +User-agent: * +Disallow: /old/