quiz_proctor_engine 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3681ec25172313e49aa0433bc50bdb14446a0ee
4
- data.tar.gz: 2a64e79cd524518e47d9c81a8fc925f61ab8b5cf
3
+ metadata.gz: 4737b4de039b7359eebd9a5ebec62acdca9a946d
4
+ data.tar.gz: f44e1b250c80a6026466e0080a6ebd6b0fb1547c
5
5
  SHA512:
6
- metadata.gz: 15a3f3972c288262b3a2a5c79fe06c8d2698ff0ab61228fb05d5e354dde5e7419b2ea6a50372fbd554c309cca2c2295435a5ba5a6cd0b1fdd2737e3185774756
7
- data.tar.gz: 1d30491becdf1c2d5eb3f6cb4be956b8bc55551ffccbb6f34dbba329d9cba365bafcda85354cee0db0e05c26c193adefe78f563e3916dfe53d6ebbd928d55e7d
6
+ metadata.gz: fe5ef548b4996d973dd6002aa04c407912e46c84fec27a5ee4b705ae6177598bb9d7d77bdd535c18a3cc94a5c241e2585300c4bb08583e14d2802022cd1d1beb
7
+ data.tar.gz: 6a71acf9ab70b61ee6e250636f4835632d7e5b2079a947338da11a14e7ac4c9030f5c23ea71074808ba21db387be751ee7ada77230a5c9ee7459a7c1a81c3550
@@ -24,6 +24,6 @@ module Concerns::ProctorQuizzes
24
24
 
25
25
  def choose_layout
26
26
  # require "byebug"; byebug
27
- session[:is_proctored] ? "borderless_lti" : "application"
27
+ session[:is_proctored] ? "quiz_proctor" : "application"
28
28
  end
29
29
  end
@@ -0,0 +1,60 @@
1
+ <!--
2
+ Copyright (C) 2017 Atomic Jolt
3
+
4
+ This program is free software: you can redistribute it and/or modify
5
+ it under the terms of the GNU Affero General Public License as published by
6
+ the Free Software Foundation, either version 3 of the License, or
7
+ (at your option) any later version.
8
+
9
+ This program is distributed in the hope that it will be useful,
10
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ GNU Affero General Public License for more details.
13
+
14
+ You should have received a copy of the GNU Affero General Public License
15
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
16
+ -->
17
+
18
+ <% content_for :head, include_common_stylesheets %>
19
+
20
+ <style>
21
+ body {
22
+ padding: 20px;
23
+ }
24
+ </style>
25
+
26
+ <%= render :partial => "layouts/head" %>
27
+ <%= yield %>
28
+ <%= render :partial => 'layouts/foot', :locals => { :include_common_bundle => true } %>
29
+ <script type="text/javascript">
30
+
31
+ (function(){
32
+ removePreviousAndNext(0, false, false);
33
+ })();
34
+
35
+ function removePreviousAndNext(tries, nextAlreadyRemoved, previousAlreadyRemoved){
36
+
37
+ if(tries > 100 || (nextAlreadyRemoved && previousAlreadyRemoved)) {
38
+ return
39
+ };
40
+
41
+ var previous = document.getElementsByClassName("Button module-sequence-footer-button--previous")[0];
42
+ var next = document.getElementsByClassName("Button module-sequence-footer-button--next")[0];
43
+ var nextRemoved = nextAlreadyRemoved;
44
+ var previousRemoved = previousAlreadyRemoved;
45
+ if(next){
46
+ nextRemoved = true;
47
+ $(next).css({display: 'none'});
48
+ }
49
+ if(previous){
50
+ previousRemoved = true;
51
+ $(previous).css({display: 'none'});
52
+ }
53
+
54
+ setTimeout(function(){
55
+ removePreviousAndNext(tries + 1, nextRemoved, previousRemoved);
56
+ }, 100);
57
+
58
+ }
59
+
60
+ </script>
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module QuizProctorEngine
17
- VERSION = "1.1.1".freeze
17
+ VERSION = "1.1.2".freeze
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quiz_proctor_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - dittonjs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-16 00:00:00.000000000 Z
11
+ date: 2017-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -41,6 +41,7 @@ files:
41
41
  - app/controllers/concerns/whitelist.rb
42
42
  - app/controllers/proctor_login_controller.rb
43
43
  - app/controllers/proctored_exams_controller.rb
44
+ - app/views/layouts/quiz_proctor.erb
44
45
  - app/views/proctored_exams/show.erb
45
46
  - app/views/quiz_proctor_engine/_plugin_settings.erb
46
47
  - config/initializers/whitelist.rb