-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.2.0 - Made Compatibility fixes for KO 3.5.0 and 3.5.1
- Loading branch information
Showing
11 changed files
with
224 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
<title>Seating Chart</title> | ||
<link rel="stylesheet" href="seatingChart.css" /> | ||
</head> | ||
<body> | ||
<div>Seating Assignments</div> | ||
<div class="note">Rules: no more than 4 students per table. Must have at least one student of each gender at a full table.</div> | ||
<div id="main" data-bind="foreach: tables"> | ||
<div class="table"> | ||
<span data-bind="text: students.id"></span> | ||
<div class="seats" data-bind="sortable: { data: students, allowDrop: $root.isTableFull }"> | ||
<div class="student" data-bind="text: name"></div> | ||
</div> | ||
<div class="count" data-bind="text: students().length + '/' + $root.maximumStudents, css: { ready: students().length < $root.maximumStudents }"></div> | ||
</div> | ||
</div> | ||
|
||
<div id="extra"> | ||
<div>Available Students</div> | ||
<div class="new" data-bind="sortable: availableStudents"> | ||
<div class="student" data-bind="text: name"></div> | ||
</div> | ||
</div> | ||
|
||
<div id="message" data-bind="flash: lastAction"></div> | ||
<div id="error" data-bind="flash: lastError"></div> | ||
|
||
<div id="master"> | ||
<div>Master List</div> | ||
<table> | ||
<tr> | ||
<th></th> | ||
<th>Seat One</th> | ||
<th>Seat Two</th> | ||
<th>Seat Three</th> | ||
<th>Seat Four</th> | ||
</tr> | ||
<tbody data-bind="foreach: tables"> | ||
<tr> | ||
<th data-bind="text: students.id"></th> | ||
<!-- ko foreach: students --> | ||
<td data-bind="text: name"></td> | ||
<!-- /ko --> | ||
</tr> | ||
</tbody> | ||
<tr> | ||
<th>Available</th> | ||
<!-- ko foreach: availableStudents --> | ||
<td data-bind="text: name"></td> | ||
<!-- /ko --> | ||
</tr> | ||
</table> | ||
</div> | ||
|
||
<script type='text/javascript' src='../ext/jquery-1.9.1.js'></script> | ||
<script type="text/javascript" src="../ext/jquery-ui.js"></script> | ||
<script type='text/javascript' src="../ext/knockout-3.4.0.js"></script> | ||
<script type='text/javascript' src="../build/knockout-sortable.min.js"></script> | ||
<script type='text/javascript' src="seatingChart.js"></script> | ||
</body> | ||
</html> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
<title>Seating Chart</title> | ||
<link rel="stylesheet" href="seatingChart.css" /> | ||
</head> | ||
<body> | ||
<div>Seating Assignments</div> | ||
<div class="note">Rules: no more than 4 students per table. Must have at least one student of each gender at a full table.</div> | ||
<div id="main" data-bind="foreach: tables"> | ||
<div class="table"> | ||
<span data-bind="text: students.id"></span> | ||
<div class="seats" data-bind="sortable: { data: students, allowDrop: $root.isTableFull }"> | ||
<div class="student" data-bind="text: name"></div> | ||
</div> | ||
<div class="count" data-bind="text: students().length + '/' + $root.maximumStudents, css: { ready: students().length < $root.maximumStudents }"></div> | ||
</div> | ||
</div> | ||
|
||
<div id="extra"> | ||
<div>Available Students</div> | ||
<div class="new" data-bind="sortable: availableStudents"> | ||
<div class="student" data-bind="text: name"></div> | ||
</div> | ||
</div> | ||
|
||
<div id="message" data-bind="flash: lastAction"></div> | ||
<div id="error" data-bind="flash: lastError"></div> | ||
|
||
<div id="master"> | ||
<div>Master List</div> | ||
<table> | ||
<tr> | ||
<th></th> | ||
<th>Seat One</th> | ||
<th>Seat Two</th> | ||
<th>Seat Three</th> | ||
<th>Seat Four</th> | ||
</tr> | ||
<tbody data-bind="foreach: tables"> | ||
<tr> | ||
<th data-bind="text: students.id"></th> | ||
<!-- ko foreach: students --> | ||
<td data-bind="text: name"></td> | ||
<!-- /ko --> | ||
</tr> | ||
</tbody> | ||
<tr> | ||
<th>Available</th> | ||
<!-- ko foreach: availableStudents --> | ||
<td data-bind="text: name"></td> | ||
<!-- /ko --> | ||
</tr> | ||
</table> | ||
</div> | ||
|
||
<script type='text/javascript' src='../ext/jquery-1.9.1.js'></script> | ||
<script type="text/javascript" src="../ext/jquery-ui.js"></script> | ||
<script type='text/javascript' src="../ext/knockout-3.5.1.js"></script> | ||
<script type='text/javascript' src="../build/knockout-sortable.min.js"></script> | ||
<script type='text/javascript' src="seatingChart.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.