all-in-one mkwsResults, then the redesigned application needs to
specify the locations where the termlists should appear in both
cases. In this case, wrap the wide-screen `mkwsTermlists` element in a
-`mkwsTermlistContainer1` element; and provide an
-`mkwsTermlistContainer2` element in the place where the narrow-screen
+`mkwsTermlist-Container-wide` element; and provide an
+`mkwsTermlist-Container-narrow` element in the place where the narrow-screen
termlists should appear.
var parent = $(".mkwsTermlists").parent();
if ($(window).width() <= width &&
- parent.hasClass("mkwsTermlistContainer1")) {
+ parent.hasClass("mkwsTermlist-Container-wide")) {
log("changing from wide to narrow: " + $(window).width());
- $(".mkwsTermlistContainer1").hide();
- $(".mkwsTermlistContainer2").show();
+ $(".mkwsTermlist-Container-wide").hide();
+ $(".mkwsTermlist-Container-narrow").show();
for (var tname in mkws.teams) {
- $(".mkwsTermlists.mkwsTeam_" + tname).appendTo($(".mkwsTermlistContainer2.mkwsTeam_" + tname));
+ $(".mkwsTermlists.mkwsTeam_" + tname).appendTo($(".mkwsTermlist-Container-narrow.mkwsTeam_" + tname));
for(var i = 0; i < list.length; i++) {
$("." + list[i] + ".mkwsTeam_" + tname).hide();
}
}
} else if ($(window).width() > width &&
- parent.hasClass("mkwsTermlistContainer2")) {
+ parent.hasClass("mkwsTermlist-Container-narrow")) {
log("changing from narrow to wide: " + $(window).width());
- $(".mkwsTermlistContainer1").show();
- $(".mkwsTermlistContainer2").hide();
+ $(".mkwsTermlist-Container-wide").show();
+ $(".mkwsTermlist-Container-narrow").hide();
for (var tname in mkws.teams) {
- $(".mkwsTermlists.mkwsTeam_" + tname).appendTo($(".mkwsTermlistContainer1.mkwsTeam_" + tname));
+ $(".mkwsTermlists.mkwsTeam_" + tname).appendTo($(".mkwsTermlist-Container-wide.mkwsTeam_" + tname));
for(var i = 0; i < list.length; i++) {
$("." + list[i] + ".mkwsTeam_" + tname).show();
}
$(this.node).html('\
<table width="100%" border="0" cellpadding="6" cellspacing="0">\
<tr>\
- <td class="mkwsTermlistContainer1 mkwsTeam_' + tname + '" width="250" valign="top">\
+ <td class="mkwsTermlist-Container-wide mkwsTeam_' + tname + '" width="250" valign="top">\
<div class="mkwsTermlists mkwsTeam_' + tname + '"></div>\
</td>\
<td class="mkwsMOTDContainer mkwsTeam_' + tname + '" valign="top">\
</tr>\
<tr>\
<td colspan="2">\
- <div class="mkwsTermlistContainer2 mkwsTeam_' + tname + '"></div>\
+ <div class="mkwsTermlist-Container-narrow mkwsTeam_' + tname + '"></div>\
</td>\
</tr>\
</table>');
// Not sure whether the following should have functionality:
// Select HTMLFormElement
-// TermlistContainer1 HTMLTableCellElement
-// TermlistContainer2 HTMLDivElement
+// Termlist-Container-wide HTMLTableCellElement
+// Termlist-Container-narrow HTMLDivElement
// Bytarget HTMLDivElement