projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ff74c45
)
Rename targetWidth -> threshhold.
author
Mike Taylor
<mike@indexdata.com>
Wed, 30 Apr 2014 15:53:31 +0000
(16:53 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 30 Apr 2014 15:53:31 +0000
(16:53 +0100)
src/mkws-core.js
patch
|
blob
|
history
diff --git
a/src/mkws-core.js
b/src/mkws-core.js
index
0e65f27
..
ab536f5
100644
(file)
--- a/
src/mkws-core.js
+++ b/
src/mkws-core.js
@@
-332,18
+332,18
@@
mkws.pagerNext = function(tname) {
function resizePage() {
var list = ["mkwsSwitch", "mkwsLang"];
function resizePage() {
var list = ["mkwsSwitch", "mkwsLang"];
- var targetWidth = mkws.config.responsive_design_width;
+ var threshhold = mkws.config.responsive_design_width;
var width = $(window).width();
if (mkws.width === undefined) {
// No state change, since we have no previous state
var width = $(window).width();
if (mkws.width === undefined) {
// No state change, since we have no previous state
- } else if (mkws.width > targetWidth && width <= targetWidth) {
+ } else if (mkws.width > threshhold && width <= threshhold) {
log("wide -> narrow");
log("wide -> narrow");
- } else if (mkws.width <= targetWidth && width > targetWidth) {
+ } else if (mkws.width <= threshhold && width > threshhold) {
log("narrow -> wide");
}
log("narrow -> wide");
}
- if (mkws.width > targetWidth && width <= targetWidth) {
+ if (mkws.width > threshhold && width <= threshhold) {
log("changing from wide to narrow: " + width);
$(".mkwsTermlist-Container-wide").hide();
$(".mkwsTermlist-Container-narrow").show();
log("changing from wide to narrow: " + width);
$(".mkwsTermlist-Container-wide").hide();
$(".mkwsTermlist-Container-narrow").show();
@@
-354,7
+354,7
@@
mkws.pagerNext = function(tname) {
$("." + list[i] + ".mkwsTeam_" + tname).hide();
}
}
$("." + list[i] + ".mkwsTeam_" + tname).hide();
}
}
- } else if (mkws.width <= targetWidth && width > targetWidth) {
+ } else if (mkws.width <= threshhold && width > threshhold) {
log("changing from narrow to wide: " + width);
$(".mkwsTermlist-Container-wide").show();
$(".mkwsTermlist-Container-narrow").hide();
log("changing from narrow to wide: " + width);
$(".mkwsTermlist-Container-wide").show();
$(".mkwsTermlist-Container-narrow").hide();