<commit_before>Template.bookinglist.helpers({
	width: "700px"
});
Template.bookinglist.height = function() {return Session.get("height");}
Template.bookinglist.rendered = render;
// Template.bookinglist.autorun = render;
// console.log("Starting query build.")
// var theDate = Session.get("date");
// console.log(theDate);
// startDate = moment(theDate).startOf("day").toDate();
// console.log(startDate);
// endDate = moment(theDate).endOf("day").toDate();
// console.log(endDate);
// queryPointer = collections.apptList.find({date: {$gte: startDate, $lt: endDate}})
// console.log(queryPointer.fetch());
// moment();
//appointmentList.find({date: Session.get("date")})
function render(comp){
// 	Session.set("height", 1200);
	///////////////////////////////////////////////
	///////////QUERY THE DATA
	///////////////////////////////////////////////
	///////////////////////////////////////////////
	///////////RENDER
	///////////////////////////////////////////////
	Session.get("height");
	this.autorun = Deps.autorun(function() {
		var pxPerMinute = Math.ceil(Session.get("height")/((Session.get("endTime").getHours() -
						Session.get("startTime").getHours())*60));//Basis of our pixel counting.
		console.log("Px Per Minute: " + pxPerMinute);
		canvas = document.getElementById('bookinglistcanvas');
		var ctx = canvas.getContext('2d');
		var lineCounter = (pxPerMinute * Session.get("appntlength"));
		var textCounter = moment(Session.get("startTime"));
		while (true) {//first, draw the guidelines.
			ctx.beginPath();
			ctx.moveTo(0,lineCounter);
			ctx.lineTo(canvas.width,lineCounter);
			ctx.stroke();
			var text = textCounter.format("HH:mm A");
			var textPoint = lineCounter - (pxPerMinute*Session.get("appntlength"))*0.4;
			ctx.fillText(text, 0, textPoint);
			lineCounter += (pxPerMinute * Session.get("appntlength"));
			textCounter = textCounter.add(Session.get("appntlength"), "minutes");
			if (lineCounter >= canvas.height){break;}
		}
	})
// 	console.log(comp)
	
// 	for (var booking in queryPointer.fetch())
// 	{
// 		console.log(booking);
// 	};
}<commit_msg>First bash at html appointments screen.<commit_after>Template.bookinglist.helpers({
	width: "700px"
});
Template.bookinglist.height = function() {return Session.get("height");}
Template.bookinglist.rendered = render;
// Template.bookinglist.autorun = render;
// console.log("Starting query build.")
// var theDate = Session.get("date");
// console.log(theDate);
// startDate = moment(theDate).startOf("day").toDate();
// console.log(startDate);
// endDate = moment(theDate).endOf("day").toDate();
// console.log(endDate);
// queryPointer = collections.apptList.find({date: {$gte: startDate, $lt: endDate}})
// console.log(queryPointer.fetch());
// moment();
//appointmentList.find({date: Session.get("date")})
function render(comp){
// 	Session.set("height", 1200);
	///////////////////////////////////////////////
	///////////QUERY THE DATA
	///////////////////////////////////////////////
	///////////////////////////////////////////////
	///////////RENDER
	///////////////////////////////////////////////
	Session.get("height");
	this.autorun = Deps.autorun(function() {

	})
// 	console.log(comp)
// 	for (var booking in queryPointer.fetch())
// 	{
// 		console.log(booking);
// 	};
}
{'fraction_non_alphanumeric': 0.2976517230863068, 'fraction_numerical': 0.006404391582799634, 'mean_word_length': 2.5344827586206895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7037616', 'n_tokens_mistral': 1030, 'n_tokens_neox': 980, 'n_words': 163}