Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Customizations for "QuizWiz : Math Whiz" #41

Open
martinmts opened this issue Jul 12, 2021 · 4 comments
Open

More Customizations for "QuizWiz : Math Whiz" #41

martinmts opened this issue Jul 12, 2021 · 4 comments

Comments

@martinmts
Copy link

Hi James,
Thanks again for developing and sharing the scripts. I'm using some of them regularly now.

I'm wondering if more customizations could be added to the "QuizWiz : Math Whiz" user script?

He are the settings offered:

  var config = {
    // Regrading methods may be 'disabled', 'enabled', or 'autorun'
    'methods' : {
      'unanswered' : 'autorun',
      'full_points' : 'autorun',
      'ma_allnone' : 'disabled',
      'ma_correct' : 'disabled',
      'ma_difference' : 'disabled',
      'fill_in_blanks' : 'disabled',
      'dropdowns' : 'disabled'
    },
    // Speed enhancements may be true or false
    'autoExpandComments' : true,
    'duplicateQuestionHeader' : true,
    'showButtonCounts' : true,
    'nextAfterUpdate' : false,
    'nextAfterComment' : false,
    'nextAfterRubric' : false,
    'nextRubricExpanded' : false
  };

It is very nice that it could handle multiple functions at one place. As I'm using it, I'm having two issues:

  1. I hope to be able to customize the size of the comment box, specifically, its height. The current setting is great for one-line comments. However, in some of my courses, I may need to paste the correct answer which has several lines.

image

I'd like to increase the height. I know that I can install the user script at https://github.com/jamesjonesmath/canvancement/tree/master/quizzes/comments and do customizations with this stand alone script. But since it is already integrated in "QuizWiz : Math Whiz", I thought I'd just mention it here.

  1. The current setting does not offer an option to remove the duplicated "Update Scores" button on the top of the grading page.

image

Let me explain why I need to remove this button:
I have another program to automate clicking "Update Scores".
In most of the quizzes, the last question is the proctor information question. It has a "0" point value, but I need to skim the question to see if the students has provided this information. I usually have enough time to skim the content while the page is being "updated". However, when the duplicated "Update Scores" button is present, this button, rather than the button at the bottom of the page, is clicked. As a result, the page immediately returns to the top and I don't have enough time to skim the content of the proctor info question.

Currently, I solved this problem by simulating an "end" keystroke to scroll back to the bottom of the web page. It is ok, but not ideal.

Is it possible to remove the "Update Scores" button?

Thanks!

@jamesjonesmath
Copy link
Owner

Adding a flag to removing the fudge point duplication was something I considered when I wrote the script. There were a few things I "forced" on people who wanted to use the script; that was one of them. I did not want to get rid of the update scores button because of the update scores and advance button that is right next to it and that would have no context without the update scores button. That is needed there so that the process of autorun is quick and you can just click on the button over and over to quickly move through an entire course. When I looked at it to see what lines would need commented out, the code that creates the update and advance button depends on the update button.

I do not want to expand the size of the box when typing. If you are copy/pasting six lines, it doesn't matter if only 3 show up and it causes less scrolling to have 3 than filling the width. Canvas has had a lot of trouble with boxes that they try to make autosize and so I'm not wanting to go down that path.

Right now, pretty much everything I have is in maintenance mode and I don't have much time to develop. Classic Quizzes is being deprecated, which means that the majority of this script will become useless next year.

There is a standalone version that you can install and then modify to meet your specific needs (both of them), but I'm not going to put these changes into the main system.

@martinmts
Copy link
Author

Thanks, James.
I'll try to make some stand alone user scripts so that I can edit them myself.
Can you point me to the necessary scripts for assigning either full points or 0 to essay/file upload questions?

I'm looking at this page: https://github.com/jamesjonesmath/canvancement/tree/master/quizzes/quizwiz/install
But all functions are placed in a single file, and I don't know which part is required for this purpose only.

I have the stand alone script for resizing the comment boxes, duplicating the questions headers. I only need the scripts for assigning either full points or 0 to essay/file upload questions now.

@jamesjonesmath
Copy link
Owner

You do not need to make the scripts standalone so that you can edit them. If you install the standalone version (qw-standalone.user.js), you're getting the full thing and then you can customize it as desired. If I ever update my end the userscript manager should show you the differences between mine and yours and allow you to edit or approve them.

The full_points section starts at about line 837 and should be fairly obvious when you look at the code. I just did a ctrl-f in the browser for full_points. However, there are parts of the code that are re-used, so copying the full_points into a separate file probably won't work. You really want to make edits to the full package and have one script rather than a bunch of them.

@martinmts
Copy link
Author

Thanks, James. I wanted to edit the full package. But I don't know how to remove the duplicated "Update Scores" button without breaking the script. That's why I wanted to copy only the needed sections and compile a new user script without those functions that I probably won't need.
Thank you very much for help. Your user script is excellent. I'll play more with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants