Lịch sử phiên bản domain.cls - 6 phiên bản
domain.cls bởi Bruce Wen
Lịch sử phiên bản domain.cls - 6 phiên bản
Hãy cẩn thận với các phiên bản cũ! Các phiên bản này được hiển thị cho mục đích thử nghiệm và tham khảo.Bạn luôn luôn phải sử dụng phiên bản mới nhất của một tiện ích.
Phiên bản mới nhất
Phiên bản 1.6
Đã phát hành 22 Thg 02 2022 - 68,21 KBHoạt động với firefox 48.0 và lớn hơnTo support sub-domain like en.wikipedia.org, we need to use en_wikipedia as body class to distinguish other language version of wikipedia. Similar, google translate should have different body class from gmail.Mã nguồn được phát hành dưới dạng Mozilla Public License 2.0
Phiên bản cũ hơn
Phiên bản 1.5
Đã phát hành 22 Thg 02 2022 - 68,21 KBHoạt động với firefox 48.0 và lớn hơnBug fix:
If domain name consists of 2 or 3 labels, the code below won't work - it will return empty:
d_core = d_parts.slice(1, d_parts.length-1).join('_')
It's fixed as:
var d_core = d_parts[d_parts.length-2]
if (d_parts.length > 3){
d_core = d_parts.slice(1, d_parts.length-1).join('_')
}Mã nguồn được phát hành dưới dạng Mozilla Public License 2.0
Phiên bản 1.4
Đã phát hành 22 Thg 02 2022 - 68,17 KBHoạt động với firefox 48.0 và lớn hơnFix bug:
by using d_array.slice(start, end) - end is not included. That's different from node.js behavior.Mã nguồn được phát hành dưới dạng Mozilla Public License 2.0
Phiên bản 1.3
Đã phát hành 22 Thg 02 2022 - 68,17 KBHoạt động với firefox 48.0 và lớn hơnIf domain name consists of more than 3 labels, then use labels from 2nd to the one before last as the body class name. The dot will be replaced with underscore.
For example, if domain name is sandbox.gitlab.test.java.oracle.com, then use "gitlab_test_java_oracle" as body class.Mã nguồn được phát hành dưới dạng Mozilla Public License 2.0
Phiên bản 1.2
Đã phát hành 17 Thg 02 2022 - 8,84 KBHoạt động với firefox 48.0 và lớn hơnBy using domain name and top level domain are not necessary, and it will cause css misunderstanding the 'class' name as the dot '.' is special keyword for css class selector.
Thus, change to use domain name only as body class.Mã nguồn được phát hành dưới dạng Mozilla Public License 2.0
Phiên bản 1.1
Đã phát hành 16 Thg 02 2022 - 8,84 KBHoạt động với firefox 48.0 và lớn hơnFix domain name
Only choose last 2 parts in document.domain as domain nameMã nguồn được phát hành dưới dạng Mozilla Public License 2.0