💄 提交一下
This commit is contained in:
Binary file not shown.
@@ -1,6 +1,8 @@
|
|||||||
window.addEventListener('DOMContentLoaded', (_event) => {
|
window.addEventListener('DOMContentLoaded', (_event) => {
|
||||||
const style = document.createElement('style');
|
const style = document.createElement('style');
|
||||||
style.innerHTML = `
|
style.innerHTML = `
|
||||||
|
|
||||||
|
// mini twitter 代码存到 dist 下面,为了防止干扰,需要的时候 copy 过来即可
|
||||||
.panel.give_me .nav_view {
|
.panel.give_me .nav_view {
|
||||||
top: 154px !important;
|
top: 154px !important;
|
||||||
}
|
}
|
||||||
@@ -96,10 +98,13 @@ window.addEventListener('DOMContentLoaded', (_event) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const pakeLinks = document.links;
|
document.addEventListener('click', e => {
|
||||||
for (let linkIndex = 0; linkIndex < pakeLinks.length; linkIndex++) {
|
const origin = e.target.closest('a');
|
||||||
pakeLinks[linkIndex].target = '_self';
|
const href = origin.href;
|
||||||
}
|
if (href) {
|
||||||
|
origin.target = "_self"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -127,3 +132,4 @@ function zoomIn() {
|
|||||||
function zoomOut() {
|
function zoomOut() {
|
||||||
zoomCommon(htmlZoom => parseInt(htmlZoom) > 30 ? (parseInt(htmlZoom) - 10 +'%') : '30%');
|
zoomCommon(htmlZoom => parseInt(htmlZoom) > 30 ? (parseInt(htmlZoom) - 10 +'%') : '30%');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user