|
|
@ -33,16 +33,16 @@ |
|
|
|
} |
|
|
|
var operations = { |
|
|
|
'not-first-page': function (elt) { |
|
|
|
elt.style.visibility = (vars.page === vars.frompage) ? "hidden" : "visible"; |
|
|
|
elt.style.visibility = (vars.sitepage === vars.frompage) ? "hidden" : "visible"; |
|
|
|
}, |
|
|
|
'not-last-page': function (elt) { |
|
|
|
elt.style.visibility = (vars.page === vars.topage) ? "hidden" : "visible"; |
|
|
|
elt.style.visibility = (vars.sitepage === vars.sitepages) ? "hidden" : "visible"; |
|
|
|
}, |
|
|
|
'first-page': function (elt) { |
|
|
|
elt.style.visibility = (vars.page === vars.frompage) ? "visible" : "hidden"; |
|
|
|
elt.style.visibility = (vars.sitepage === vars.frompage) ? "visible" : "hidden"; |
|
|
|
}, |
|
|
|
'last-page': function (elt) { |
|
|
|
elt.style.visibility = (vars.page === vars.topage) ? "visible" : "hidden"; |
|
|
|
elt.style.visibility = (vars.sitepage === vars.sitepages) ? "visible" : "hidden"; |
|
|
|
}, |
|
|
|
}; |
|
|
|
for (var klass in operations) { |
|
|
|