File: styles/prosilver/template/styleswitcher.js
Unmodified
Added
Modified
Removed
Line 1 | Line 1 |
---|
|
|
function fontsizeup()
| function fontsizeup(event)
|
{
|
{
|
| // Skip tabs; 9 being the ASCII code for a tab if (event && getKeyCode(event) == 9) { return true; }
|
var active = getActiveStyleSheet();
switch (active)
| var active = getActiveStyleSheet();
switch (active)
|
Line 29 | Line 35 |
---|
setActiveStyleSheet('A'); break; }
|
setActiveStyleSheet('A'); break; }
|
| return false;
|
}
|
}
|
function fontsizedown()
| function fontsizedown(event)
|
{
|
{
|
active = getActiveStyleSheet();
| // Skip tabs if (event && getKeyCode(event) == 9) { return true; }
var active = getActiveStyleSheet();
|
switch (active) {
| switch (active) {
|
Line 60 | Line 74 |
---|
setActiveStyleSheet('A--'); break; }
|
setActiveStyleSheet('A--'); break; }
|
| return false; }
function getKeyCode(event) { // IE doesn't fire the onkeypress event for tabs // Reference: http://www.quirksmode.org/js/keys.html
var code = (event.keyCode) ? event.keyCode : 0;
// Probably using FF if (!code && event.charCode) { code = event.charCode; }
return code;
|
}
function setActiveStyleSheet(title)
| }
function setActiveStyleSheet(title)
|
Line 112 | Line 144 |
---|
expires = ''; }
|
expires = ''; }
|
document.cookie = name + '=' + value + expires + '; path=/';
| document.cookie = name + '=' + value + expires + style_cookie_settings;
|
}
function readCookie(name)
| }
function readCookie(name)
|