Modern Dict Pack

For which dictionary?

I only got LDOCE. Please share its css? Thanks

2 个赞

挺漂亮的啊,还是厉害。

2 个赞

I did a lot of modifications to the original mdx, maybe you need the whole zip for css to work perfectly.
Anyway, please find all other files attached below except mdx (too big to upload).

LDOCE.zip (784.7 KB)

3 个赞

Thank you very much. But how can I get mdx file? Because it’s my favorite dictionary.
Can you please share it with google drive or any other sharing resource? Thanks again

3 个赞

These files don’t work.

1 个赞

This link is GDrive.

Besides, click the biggest “body” to activate buttons.

1 个赞

Thank you very much

1 个赞

什么叫专业,这就叫专业:+1::+1:

1 个赞

文件中这一行正则,使返回顶部失效;

document.body.innerHTML = document.body.innerHTML.replace(/\(([\u4E00-\u9FFF]*)\)/g, '($1)');

解决办法:

第一种:注释该行

第二种:末尾添加代码

(function () {
	'use strict';
    //返回顶部
	document.getElementById('topbtn').onclick=()=>{
    document.body.scrollTop = 0;
    document.documentElement.scrollTop = 0;
    };
  //隐藏 来源

 })();

另外,添加了【隐藏】按钮,用于显示/隐藏 词典来源

    //隐藏 来源
    var book_btn= document.createElement("button");
    book_btn.textContent = "隐藏";
    book_btn.style="position: fixed;right: 2rem;bottom: 4rem;padding: 0;width: 2.5rem;height: 2.5rem;    border: none;    border-radius: 2.5rem;    background-color: #789;    box-shadow: 0 1px 2px rgb(0 0 0 / 20%);    color: #fff;    cursor: pointer;"
    document.body.appendChild(book_btn);
	var is_click_book = true;
    book_btn.addEventListener("click", function () {
        let laiyuan = document.getElementsByClassName("pg_book");
        if (is_click_book) {
            for (var i = 0; i < laiyuan.length; i++) {
                laiyuan[i].style.display = "none";
            }
            book_btn.textContent = "显示";
        } else {
            for (var j = 0; j < laiyuan.length; j++) {
                laiyuan[j].style.display = "inline-block";
            }
            book_btn.textContent = "隐藏";
        }
        is_click_book = !is_click_book;
    });

1 个赞

感谢!
我完全不懂JS,所以是临时搜索了正则替换粗暴修改的,谢谢修正。

请问能否补一下档
LDOCE mdx

I don’t have it. Sorry

thanks for your reply

COCA_COLL.css (1.6 KB)
COCA太多内容被隐藏,复原css。

tab version:

4 个赞

这个tab怎么做的?样式很好看

Mdict Editor Tool v2.0.35 -- 多功能个性化词典制作工具 - 词库制作交流区 - Dictionary-Making - 掌上百科 - PDAWIKI - Powered by Discuz! 启发自己弄的python程序。

新界面和javascript是karx大师做的。

macOS系统好做吗?

mdx + mdd 对系统无要求,有app即可