Skip to content

Commit

Permalink
changes of text and some styling
Browse files Browse the repository at this point in the history
  • Loading branch information
hasnain-naveed committed Aug 31, 2015
1 parent 53968f7 commit 8f88daf
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 41 deletions.
11 changes: 0 additions & 11 deletions edx_proctoring/templates/proctoring/seq_proctored_exam_footer.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
{% load i18n %}
<div class="faq-proctoring-exam">
<h4> {% trans "See Also" %} </h4>
<p>
<a class="footer-link" href="{{link_urls.faq}}" target="_blank">
{% blocktrans %}
Frequently asked questions about proctoring and earning college credit
{% endblocktrans %}
</a>
<a class="footer-link" href="{{link_urls.online_proctoring_rules}}" target="_blank">
{% blocktrans %}
Online proctoring rules
{% endblocktrans %}
</a>
<a class="footer-link" href="{{link_urls.tech_requirements}}" target="_blank">
{% blocktrans %}
Technical Requirements for taking a proctored exam
{% endblocktrans %}
</a>
</p>
</div>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load i18n %}
<div class="sequence proctored-exam instructions message-top-bar" data-exam-id="{{exam_id}}" data-exam-started-poll-url="{{exam_started_poll_url}}">
<div class="sequence proctored-exam instructions message-left-bar" data-exam-id="{{exam_id}}" data-exam-started-poll-url="{{exam_started_poll_url}}">
<h3>
{% blocktrans %}
You Have Chosen To Take a Proctored Exam
Expand Down Expand Up @@ -27,7 +27,7 @@ <h3>
{% endblocktrans %}
</p>
<p>
<span class="proctored-exam-code" role="application">{{exam_code}}</span>&nbsp;<button class='proctored-exam-select-code'>Select exam code</button>
<span class="proctored-exam-code" role="application">{{exam_code}}</span>
</p>
<p>
{% blocktrans %}
Expand Down Expand Up @@ -93,31 +93,6 @@ <h3>
}
);

$('.proctored-exam-select-code').click(function() {
selectText($('.proctored-exam-code'));
$(event.currentTarget).blur();
});

function selectText(textToBeSelected) {
// this selects all the text in an element
// http://stackoverflow.com/questions/12243898/how-to-select-all-text-in-contenteditable-div
var doc = document,
range, selection,
element = textToBeSelected[0];

if (doc.body.createTextRange) {
range = doc.body.createTextRange();
range.moveToElementText(element);
range.select();
} else if (window.getSelection) {
selection = window.getSelection();
range = doc.createRange();
range.selectNodeContents(element);
selection.removeAllRanges();
selection.addRange(range);
}
}

$(document).ready(function(){
_waiting_for_proctored_interval = setInterval(
poll_exam_started,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load i18n %}
<div class="sequence proctored-exam success-top-bar instructions" data-exam-id="{{exam_id}}" data-exam-started-poll-url="{{exam_started_poll_url}}">
<div class="sequence proctored-exam success-left-bar instructions" data-exam-id="{{exam_id}}" data-exam-started-poll-url="{{exam_started_poll_url}}">
<h3>
{% blocktrans %}
Your Proctoring Installation and Set Up is Complete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ <h3>
{% endblocktrans %}
</p>

<i class="fa fa-arrow-circle-right start-timed-exam" data-ajax-url="{{enter_exam_endpoint}}" data-exam-id="{{exam_id}}" data-attempt-proctored=true data-start-immediately=false></i>
<i class="fa practice-exam fa-arrow-circle-right start-timed-exam" data-ajax-url="{{enter_exam_endpoint}}" data-exam-id="{{exam_id}}" data-attempt-proctored=true data-start-immediately=false></i>
</button>
</div>
{% include 'proctoring/seq_proctored_exam_footer.html' %}
{% include 'proctoring/seq_proctored_practice_exam_footer.html' %}

<script type="text/javascript">
$('.start-timed-exam').click(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% load i18n %}
<div class="faq-proctoring-exam">
<p>
<a class="footer-link" href="{{link_urls.about_proctored_exams}}" target="_blank">
{% blocktrans %}
About Proctored Exams
{% endblocktrans %}
</a>
</p>
</div>

0 comments on commit 8f88daf

Please sign in to comment.