@@ -764,7 +764,7 @@ try {
764764 buttonGrid . className = "button-grid inputs" ;
765765 buttonGrid . setAttribute ( "data-swapy-item" , `segmentReorder-${ s . id } ` ) ;
766766 buttonGrid . innerHTML = `<button square data-select tooltip="Select Segment"><i class="bi bi-circle"></i><i class="bi bi-circle-fill"></i></button><div class="input-group small"><div class="space" id="question-container"><input type="text" autocomplete="off" id="segment-number-input" value="${ s . number } " placeholder="${ s . number } " /></div></div><div class="input-group"><div class="space" id="question-container"><input type="text" autocomplete="off" id="segment-name-input" value="${ s . name } " placeholder="${ s . name } " /></div></div><div class="input-group mediuml"><div class="space" id="question-container"><input type="date" id="segment-due-date" value="${ s . due || '' } "></div></div><button square data-remove-segment-input tooltip="Remove Segment"><i class="bi bi-trash"></i></button><button square data-archive-segment tooltip="Archive Segment"><i class="bi bi-archive"></i></button><button square data-edit-segment tooltip="Edit Segment"><i class="bi bi-pencil"></i></button><div class="drag" data-swapy-handle><i class="bi bi-grip-vertical"></i></div>` ;
767- if ( window . innerWidth >= 1400 ) {
767+ if ( window . innerWidth >= 1000 ) {
768768 buttonGrid . addEventListener ( 'mouseenter' , ( ) => {
769769 island ( buttonGrid , c . sort ( ( a , b ) => a . order - b . order ) , 'segment' , {
770770 sourceId : String ( s . id ) ,
@@ -912,7 +912,7 @@ try {
912912 </div>
913913 </div>
914914 <button square data-restore-item tooltip="Restore Item"><i class="bi bi-arrow-counterclockwise"></i></button>` ;
915- if ( window . innerWidth >= 1400 ) {
915+ if ( window . innerWidth >= 1000 ) {
916916 buttonGrid . addEventListener ( 'mouseenter' , ( ) => {
917917 island ( buttonGrid , segments . sort ( ( a , b ) => a . order - b . order ) , 'segment' , {
918918 sourceId : String ( segment . id ) ,
@@ -1434,7 +1434,7 @@ try {
14341434 segmentsString += `<option value="${ s . id } "${ ( allSegmentsQuestionIsIn [ 0 ] && ( allSegmentsQuestionIsIn [ 0 ] . id === s . id ) ) ? ' selected' : '' } >${ s . number } </option>` ;
14351435 } ) ;
14361436 buttonGrid . innerHTML = `<button square data-select tooltip="Select Question"><i class="bi bi-circle"></i><i class="bi bi-circle-fill"></i></button><div class="input-group small"><div class="space" id="question-container"><input type="text" autocomplete="off" id="question-id-input" value="${ q . id } " disabled /></div></div><div class="input-group small"><div class="space" id="question-container"><input type="text" autocomplete="off" id="question-number-input" value="${ q . number } " placeholder="${ q . number } " /></div></div><div class="input-group small ${ isStem ? 'hidden' : '' } "><div class="space" id="question-container"><select id="question-segment-input">${ segmentsString } </select></div></div><div class="input-group"><div class="space" id="question-container"><input type="text" autocomplete="off" id="question-text-input" value="${ q . question } " placeholder="${ q . question } " /></div></div>${ ! isStem ? `<button square data-toggle-latex tooltip="Toggle LaTeX Title"><i class="bi bi-${ q . latex ? 'calculator-fill' : 'cursor-text' } "></i></button>` : '' } <button square data-remove-question-input tooltip="Remove Question"><i class="bi bi-trash"></i></button><button square data-archive-question-input tooltip="Archive Question"><i class="bi bi-archive"></i></button><button square data-toggle-question tooltip="Expand Question"><i class="bi bi-caret-down-fill"></i><i class="bi bi-caret-up-fill"></i></button>` ;
1437- if ( window . innerWidth >= 1400 ) {
1437+ if ( window . innerWidth >= 1000 ) {
14381438 buttonGrid . addEventListener ( 'mouseenter' , ( ) => {
14391439 var question = q ;
14401440 island ( buttonGrid , filteredQuestions , 'question' , {
@@ -1671,7 +1671,7 @@ try {
16711671 </div>
16721672 </div>
16731673 <button square data-restore-item tooltip="Restore Item"><i class="bi bi-arrow-counterclockwise"></i></button>` ;
1674- if ( window . innerWidth >= 1400 ) {
1674+ if ( window . innerWidth >= 1000 ) {
16751675 buttonGrid . addEventListener ( 'mouseenter' , ( ) => {
16761676 island ( buttonGrid , filteredQuestions , 'question' , {
16771677 sourceId : String ( question . id ) ,
@@ -2187,7 +2187,7 @@ try {
21872187 buttonGrid . className = "button-grid inputs" ;
21882188 buttonGrid . id = `response-${ r . id } ` ;
21892189 buttonGrid . innerHTML = `<button square data-select tooltip="Select Item"><i class="bi bi-circle"></i><i class="bi bi-circle-fill"></i></button><input type="text" autocomplete="off" class="small" id="response-id-input" value="${ r . id } " disabled hidden />${ ( String ( r . flagged ) === '1' ) ? `<button square data-unflag-response tooltip="Unflag Response"><i class="bi bi-flag-fill"></i></button>` : `<button square data-flag-response tooltip="Flag Response"><i class="bi bi-flag"></i></button>` } <input type="text" autocomplete="off" class="small" id="response-segment-input" value="${ segments . find ( s => ( String ( s . id ) === String ( r . segment ) ) && ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : true ) ) ? ( segments . find ( s => ( String ( s . id ) === String ( r . segment ) ) && ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : true ) ) . number || r . segment ) : ( segments . find ( s => ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : false ) && JSON . parse ( s . question_ids || [ ] ) ?. find ( q => String ( q . id ) === String ( r . question_id ) ) ) ?. number || '-' ) } " mockDisabled data-segment="${ segments . find ( s => ( String ( s . id ) === String ( r . segment ) ) && ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : true ) ) ? ( segments . find ( s => ( String ( s . id ) === String ( r . segment ) ) && ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : true ) ) . id || r . segment ) : ( segments . find ( s => ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : false ) && JSON . parse ( s . question_ids || [ ] ) ?. find ( q => String ( q . id ) === String ( r . question_id ) ) ) ?. id || '-' ) } " /><input type="text" autocomplete="off" class="small" id="response-question-input" value="${ questions . find ( q => String ( q . id ) === String ( r . question_id ) ) ?. number } " mockDisabled data-segment="${ segments . find ( s => ( String ( s . id ) === String ( r . segment ) ) && ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : true ) ) ? ( segments . find ( s => ( String ( s . id ) === String ( r . segment ) ) && ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : true ) ) . id || r . segment ) : ( segments . find ( s => ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : false ) && JSON . parse ( s . question_ids || [ ] ) ?. find ( q => String ( q . id ) === String ( r . question_id ) ) ) ?. id || '-' ) } " data-question="${ questions . find ( q => String ( q . id ) === String ( r . question_id ) ) ?. number } " data-question-id="${ questions . find ( q => String ( q . id ) === String ( r . question_id ) ) ?. id } " /><input type="text" autocomplete="off" class="small" id="response-question-id-input" value="${ questions . find ( q => String ( q . id ) === String ( r . question_id ) ) . id } " disabled hidden /><input type="text" autocomplete="off" class="small${ ( ( ( r . status === 'Invalid Format' ) || ( r . status === 'Unknown, Recorded' ) ) && document . querySelector ( '.awaitingResponses .section' ) && ( answers . find ( a => a . id === questions . find ( q => String ( q . id ) === String ( r . question_id ) ) . id ) . correct_answers . length > 0 ) ) ? ' hideonhover' : '' } " id="response-seat-code-input" value="${ r . seatCode } " disabled data-seat-code /><input type="text" autocomplete="off" class="small" id="response-time-taken-input" value="${ timeTaken } " disabled data-time-taken${ ( typeof timeDifference != 'undefined' ) ? ` time="${ timeDifference } "` : '' } /><input type="text" autocomplete="off" class="small" id="response-time-taken-input" value="${ timeTakenToRevise } " disabled data-time-taken${ ( typeof timeDifference != 'undefined' ) ? ` time="${ timeDifference } "` : '' } /><!--<input type="text" autocomplete="off" class="small" id="response-time-taken-input" value="${ result } " disabled data-time-taken />--><textarea autocomplete="off" rows="1" id="response-response-input" value="${ escapeHTML ( responseString ) } " ${ isMatrix ? 'mockDisabled' : 'disabled' } >${ escapeHTML ( responseString ) } </textarea>${ ( r . status === 'Incorrect' ) ? `<button square data-edit-reason tooltip="Edit Reason"><i class="bi bi-reply${ ( r . reason ) ? '-fill' : '' } "></i></button>` : '' } <input type="text" autocomplete="off" class="smedium${ ( ( ( r . status === 'Invalid Format' ) || ( r . status === 'Unknown, Recorded' ) ) && document . querySelector ( '.awaitingResponses .section' ) && ( answers . find ( a => a . id === questions . find ( q => String ( q . id ) === String ( r . question_id ) ) . id ) . correct_answers . length > 0 ) ) ? ' hideonhover' : '' } " id="response-timestamp-input" value="${ date . getMonth ( ) + 1 } /${ date . getDate ( ) } ${ hours % 12 || 12 } :${ minutes < 10 ? '0' + minutes : minutes } ${ hours >= 12 ? 'PM' : 'AM' } " disabled />${ ( ( ( r . status === 'Invalid Format' ) || ( r . status === 'Unknown, Recorded' ) ) && document . querySelector ( '.awaitingResponses .section' ) && ( answers . find ( a => a . id === questions . find ( q => String ( q . id ) === String ( r . question_id ) ) . id ) . correct_answers . length > 0 ) ) ? `<textarea autocomplete="off" rows="1" class="showonhover" id="response-correct-responses-input" value="${ correctResponsesString } " disabled>${ correctResponsesString } </textarea>` : '' } <button square id="mark-correct-button"${ ( r . status === 'Correct' ) ? ' disabled' : '' } tooltip="Mark Correct"><i class="bi bi-check-circle${ ( r . status === 'Correct' ) ? '-fill' : '' } "></i></button><button square id="mark-incorrect-button"${ ( r . status === 'Incorrect' ) ? ' disabled' : '' } tooltip="Mark Incorrect"><i class="bi bi-x-circle${ ( r . status === 'Incorrect' ) ? '-fill' : '' } "></i></button>` ;
2190- if ( window . innerWidth >= 1400 ) {
2190+ if ( window . innerWidth >= 1000 ) {
21912191 buttonGrid . addEventListener ( 'mouseenter' , ( ) => {
21922192 var question = questions . find ( q => String ( q . id ) === String ( r . question_id ) ) ;
21932193 island ( buttonGrid , buttonGrid . parentElement . children , 'response' , {
@@ -2308,7 +2308,7 @@ try {
23082308 ${ ( total . length - registered . length ) ? `<div class="barcount other" style="width: calc(${ ( total . length - registered . length ) / total . length } * 100%)">${ total . length - registered . length } Unregistered Student${ ( ( total . length - registered . length ) > 1 ) ? 's' : '' } </div>` : '' }
23092309 ${ ( currentCourseRosters . length > 1 ) ? `</div>` : '' } ` ;
23102310 document . querySelector ( '.seat-code-reports' ) . appendChild ( courseRosterProgress ) ;
2311- if ( window . innerWidth >= 1400 ) {
2311+ if ( window . innerWidth >= 1000 ) {
23122312 courseRosterProgress . addEventListener ( 'mouseenter' , ( ) => {
23132313 island ( courseRosterProgress , currentCourseRosters , 'roster' , {
23142314 sourceId : String ( currentCourseRoster . period ) ,
@@ -2417,7 +2417,7 @@ try {
24172417 var buttonGrid = document . createElement ( 'div' ) ;
24182418 buttonGrid . className = "button-grid inputs" ;
24192419 buttonGrid . innerHTML = `<input type="text" autocomplete="off" class="small" id="response-id-input" value="${ r . single_response } " disabled hidden /><input type="text" autocomplete="off" class="small" id="response-segment-input" value="${ segments . find ( s => ( String ( s . id ) === String ( r . segment ) ) && ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : true ) ) ? ( segments . find ( s => ( String ( s . id ) === String ( r . segment ) ) && ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : true ) ) . number || r . segment ) : ( segments . find ( s => ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : false ) && JSON . parse ( s . question_ids || [ ] ) ?. find ( q => String ( q . id ) === String ( r . question_id ) ) ) ?. number || '-' ) } " mockDisabled data-segment="${ segments . find ( s => ( String ( s . id ) === String ( r . segment ) ) && ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : true ) ) ? ( segments . find ( s => ( String ( s . id ) === String ( r . segment ) ) && ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : true ) ) . id || r . segment ) : ( segments . find ( s => ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : false ) && JSON . parse ( s . question_ids || [ ] ) ?. find ( q => String ( q . id ) === String ( r . question_id ) ) ) ?. id || '-' ) } " /><input type="text" autocomplete="off" class="small" id="response-question-input" value="${ questions . find ( q => String ( q . id ) === String ( r . question_id ) ) ?. number } " mockDisabled data-segment="${ segments . find ( s => ( String ( s . id ) === String ( r . segment ) ) && ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : true ) ) ? ( segments . find ( s => ( String ( s . id ) === String ( r . segment ) ) && ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : true ) ) . id || r . segment ) : ( segments . find ( s => ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) ? ( String ( s . course ) === String ( courses . find ( course => String ( course . id ) === document . getElementById ( "course-period-input" ) ?. value ) . id ) ) : false ) && JSON . parse ( s . question_ids || [ ] ) ?. find ( q => String ( q . id ) === String ( r . question_id ) ) ) ?. id || '-' ) } " data-question="${ questions . find ( q => String ( q . id ) === String ( r . question_id ) ) ?. number } " data-question-id="${ questions . find ( q => String ( q . id ) === String ( r . question_id ) ) ?. id } " /><input type="text" autocomplete="off" class="small" id="response-question-id-input" value="${ questions . find ( q => String ( q . id ) === String ( r . question_id ) ) . id } " disabled hidden /><textarea autocomplete="off" rows="1" id="response-response-input" value="${ escapeHTML ( responseString ) } " ${ isMatrix ? 'mockDisabled' : 'disabled' } >${ escapeHTML ( responseString ) } </textarea><input type="text" autocomplete="off" class="small" id="response-count-input" value="${ r . count } " disabled /><button square id="mark-correct-button"${ ( r . status === 'Correct' ) ? ' disabled' : '' } tooltip="Mark Correct"><i class="bi bi-check-circle${ ( r . status === 'Correct' ) ? '-fill' : '' } "></i></button><button square id="mark-incorrect-button"${ ( r . status === 'Incorrect' ) ? ' disabled' : '' } tooltip="Mark Incorrect"><i class="bi bi-x-circle${ ( r . status === 'Incorrect' ) ? '-fill' : '' } "></i></button>` ;
2420- if ( window . innerWidth >= 1400 ) {
2420+ if ( window . innerWidth >= 1000 ) {
24212421 buttonGrid . addEventListener ( 'mouseenter' , ( ) => {
24222422 var question = questions . find ( q => String ( q . id ) === String ( r . question_id ) ) ;
24232423 island ( buttonGrid , buttonGrid . parentElement . children , 'response' , {
@@ -3588,7 +3588,7 @@ try {
35883588 </div>
35893589 <button class="space" id="edit-existing-question-button" square tooltip="Edit Question"><i class="bi bi-pencil"></i></button>
35903590 <button class="space" id="remove-existing-question-button" square tooltip="Remove Question"><i class="bi bi-trash"></i></button>` ;
3591- if ( window . innerWidth >= 1400 ) {
3591+ if ( window . innerWidth >= 1000 ) {
35923592 inner . addEventListener ( 'mouseenter' , ( ) => {
35933593 var question = addingQuestion ;
35943594 island ( inner , null , 'question' , {
@@ -3634,7 +3634,7 @@ try {
36343634 </div>
36353635 <button class="space" id="edit-existing-question-button" square tooltip="Edit Question"><i class="bi bi-pencil"></i></button>
36363636 <button class="space" id="remove-existing-question-button" square tooltip="Remove Question"><i class="bi bi-trash"></i></button>` ;
3637- if ( window . innerWidth >= 1400 ) {
3637+ if ( window . innerWidth >= 1000 ) {
36383638 inner . addEventListener ( 'mouseenter' , ( ) => {
36393639 var question = addingQuestion ;
36403640 island ( inner , null , 'question' , {
@@ -3681,7 +3681,7 @@ try {
36813681 </div>
36823682 <button class="space" id="edit-existing-question-button" square tooltip="Edit Question"><i class="bi bi-pencil"></i></button>
36833683 <button class="space" id="remove-existing-question-button" square tooltip="Remove Question"><i class="bi bi-trash"></i></button>` ;
3684- if ( window . innerWidth >= 1400 ) {
3684+ if ( window . innerWidth >= 1000 ) {
36853685 inner . addEventListener ( 'mouseenter' , ( ) => {
36863686 var question = questions . find ( q => String ( q . id ) === String ( questionId ) ) ;
36873687 island ( inner , null , 'question' , {
0 commit comments