v2016引用...
v2016 主要是加大字体和隐藏sider那段
开关侧栏:
function() { if ($('.fullscreen i').hasClass('icon-stop')) { $('#sidebar').css('display', 'none'); $('#content').animate({ width: '100%' }, "slow"); $('.fullscreen i').removeClass('icon-stop'); $('.fullscreen i').addClass('icon-pause'); } else { $('#sidebar').css('display', 'block'); $('#content').animate({ width: '640px' }, "slow"); $('.fullscreen i').removeClass('icon-pause'); $('.fullscreen i').addClass('icon-stop'); } }
文字缩放:
function() { if (fontSize == 13) { fontSize += 2; $('.post-context').css('font-size', fontSize + 'px'); $('.size').css({ "box-shadow": "inset 0px 0px 10px #cccccc", "font-weight": "bold" }); } else if (fontSize == 15) { fontSize -= 3; $('.post-context').css('font-size', fontSize + 'px'); $('.size').css({ "box-shadow": "inset 0px 0px 10px #cccccc", "font-weight": "bold" }); } else { fontSize = 13; $('.post-context').css('font-size', fontSize + 'px'); $('.size').css({ "box-shadow": "none", "font-weight": "300" }); } }
火狐检查元素就能定位代码所在地址。