├── .gitignore ├── .DS_Store ├── img ├── .DS_Store ├── icon │ ├── phone@2x.png │ ├── wifi@2x.png │ ├── chip │ │ ├── A4@2x.png │ │ ├── A5@2x.png │ │ ├── A6@2x.png │ │ ├── A7@2x.png │ │ ├── A8@2x.png │ │ ├── A9@2x.png │ │ ├── A10@2x.png │ │ ├── A11@2x.png │ │ ├── A12@2x.png │ │ ├── A13@2x.png │ │ ├── A14@2x.png │ │ ├── other@2x.png │ │ ├── A10-active@2x.png │ │ ├── A11-active@2x.png │ │ ├── A12-active@2x.png │ │ ├── A13-active@2x.png │ │ ├── A14-active@2x.png │ │ ├── A4-active@2x.png │ │ ├── A5-active@2x.png │ │ ├── A6-active@2x.png │ │ ├── A7-active@2x.png │ │ ├── A8-active@2x.png │ │ ├── A9-active@2x.png │ │ └── other-active@2x.png │ ├── phone-active@2x.png │ └── wifi-active@2x.png ├── apple-watch@2x.png ├── apple-watch │ ├── aw-1.jpg │ ├── aw-S1.jpg │ ├── aw-S2.jpg │ ├── aw-S3.jpg │ ├── aw-S4.jpg │ ├── aw-S5.jpg │ ├── aw-S6.jpg │ ├── aw-S7.jpg │ ├── aw-S8.jpg │ ├── aw-SE1.jpg │ ├── aw-SE2.jpg │ └── aw-Ultra.jpg ├── apple-watch-black@2x.png ├── links │ ├── apple-watch@2x.png │ ├── chip_white@2x.png │ ├── ipad_white@2x.png │ ├── airpods_white@2x.png │ ├── heart_active@1x.png │ ├── heart_inactive@1x.png │ ├── iphone_white@2x.png │ └── heart_inactive_dark@1x.png ├── watch_nav_se_light__be5frpk4lqwi_large.svg ├── watch-info.svg └── screen-info.svg ├── font ├── Galvji.ttf ├── PTSans-Narrow.ttf ├── ImpactPureNumber.ttf └── LLPixel_only_Letter.ttf ├── design_files ├── design_file.ai └── watch.svg ├── scss ├── _changelog.scss ├── _font.scss ├── _gutter.scss ├── _filter-list.scss ├── _reset.scss ├── _utility.scss ├── layout.scss ├── _help.scss ├── _svg-image.scss ├── _variables.scss ├── _label.scss ├── _about.scss ├── AppleWatch.scss ├── _dark.scss └── AppleWatch.css ├── README.md ├── js └── qr.js ├── LICENSE └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | .sass-cache 2 | *.map 3 | .idea -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/.DS_Store -------------------------------------------------------------------------------- /img/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/.DS_Store -------------------------------------------------------------------------------- /font/Galvji.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/font/Galvji.ttf -------------------------------------------------------------------------------- /img/icon/phone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/phone@2x.png -------------------------------------------------------------------------------- /img/icon/wifi@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/wifi@2x.png -------------------------------------------------------------------------------- /font/PTSans-Narrow.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/font/PTSans-Narrow.ttf -------------------------------------------------------------------------------- /img/apple-watch@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A4@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A4@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A5@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A6@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A6@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A7@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A7@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A8@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A8@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A9@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A9@2x.png -------------------------------------------------------------------------------- /font/ImpactPureNumber.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/font/ImpactPureNumber.ttf -------------------------------------------------------------------------------- /img/apple-watch/aw-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch/aw-1.jpg -------------------------------------------------------------------------------- /img/apple-watch/aw-S1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch/aw-S1.jpg -------------------------------------------------------------------------------- /img/apple-watch/aw-S2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch/aw-S2.jpg -------------------------------------------------------------------------------- /img/apple-watch/aw-S3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch/aw-S3.jpg -------------------------------------------------------------------------------- /img/apple-watch/aw-S4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch/aw-S4.jpg -------------------------------------------------------------------------------- /img/apple-watch/aw-S5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch/aw-S5.jpg -------------------------------------------------------------------------------- /img/apple-watch/aw-S6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch/aw-S6.jpg -------------------------------------------------------------------------------- /img/apple-watch/aw-S7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch/aw-S7.jpg -------------------------------------------------------------------------------- /img/apple-watch/aw-S8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch/aw-S8.jpg -------------------------------------------------------------------------------- /img/apple-watch/aw-SE1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch/aw-SE1.jpg -------------------------------------------------------------------------------- /img/apple-watch/aw-SE2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch/aw-SE2.jpg -------------------------------------------------------------------------------- /img/icon/chip/A10@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A10@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A11@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A11@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A12@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A12@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A13@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A13@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A14@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A14@2x.png -------------------------------------------------------------------------------- /img/icon/chip/other@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/other@2x.png -------------------------------------------------------------------------------- /design_files/design_file.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/design_files/design_file.ai -------------------------------------------------------------------------------- /font/LLPixel_only_Letter.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/font/LLPixel_only_Letter.ttf -------------------------------------------------------------------------------- /img/apple-watch-black@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch-black@2x.png -------------------------------------------------------------------------------- /img/apple-watch/aw-Ultra.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/apple-watch/aw-Ultra.jpg -------------------------------------------------------------------------------- /img/icon/phone-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/phone-active@2x.png -------------------------------------------------------------------------------- /img/icon/wifi-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/wifi-active@2x.png -------------------------------------------------------------------------------- /img/links/apple-watch@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/links/apple-watch@2x.png -------------------------------------------------------------------------------- /img/links/chip_white@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/links/chip_white@2x.png -------------------------------------------------------------------------------- /img/links/ipad_white@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/links/ipad_white@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A10-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A10-active@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A11-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A11-active@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A12-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A12-active@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A13-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A13-active@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A14-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A14-active@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A4-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A4-active@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A5-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A5-active@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A6-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A6-active@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A7-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A7-active@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A8-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A8-active@2x.png -------------------------------------------------------------------------------- /img/icon/chip/A9-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/A9-active@2x.png -------------------------------------------------------------------------------- /img/links/airpods_white@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/links/airpods_white@2x.png -------------------------------------------------------------------------------- /img/links/heart_active@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/links/heart_active@1x.png -------------------------------------------------------------------------------- /img/links/heart_inactive@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/links/heart_inactive@1x.png -------------------------------------------------------------------------------- /img/links/iphone_white@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/links/iphone_white@2x.png -------------------------------------------------------------------------------- /img/icon/chip/other-active@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/icon/chip/other-active@2x.png -------------------------------------------------------------------------------- /img/links/heart_inactive_dark@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KyleBing/apple-watch/HEAD/img/links/heart_inactive_dark@1x.png -------------------------------------------------------------------------------- /scss/_changelog.scss: -------------------------------------------------------------------------------- 1 | .change-log-list{ 2 | .change-log{ 3 | .title{ 4 | 5 | } 6 | .list{ 7 | 8 | 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /scss/_font.scss: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: "Impact"; 3 | src: url("../font/ImpactPureNumber.ttf"); 4 | } 5 | 6 | @font-face { 7 | font-family: "LLPixel"; 8 | src: url("../font/LLPixel_only_Letter.ttf"); 9 | } 10 | 11 | @font-face { 12 | font-family: "Galvji"; 13 | src: url("../font/Galvji.ttf"); 14 | } 15 | 16 | 17 | .impact{ 18 | font-family: 'Impact', sans-serif !important; 19 | } 20 | -------------------------------------------------------------------------------- /scss/_gutter.scss: -------------------------------------------------------------------------------- 1 | $timer: 5px; 2 | // common 3 | @for $item from 1 through 7 { 4 | .mt-#{$item}{margin-top: $timer * $item !important;} 5 | .mb-#{$item}{margin-bottom: $timer * $item !important;} 6 | .ml-#{$item}{margin-left: $timer * $item !important;} 7 | .mr-#{$item}{margin-right: $timer * $item !important;} 8 | .m-#{$item}{margin: $timer * $item !important;} 9 | 10 | .pt-#{$item}{padding-top: $timer * $item !important;} 11 | .pb-#{$item}{padding-bottom: $timer * $item !important;} 12 | .pl-#{$item}{padding-left: $timer * $item !important;} 13 | .pr-#{$item}{padding-right: $timer * $item !important;} 14 | .p-#{$item}{padding: $timer * $item !important;} 15 | } 16 | -------------------------------------------------------------------------------- /design_files/watch.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /img/watch_nav_se_light__be5frpk4lqwi_large.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /scss/_filter-list.scss: -------------------------------------------------------------------------------- 1 | .filter-list{ 2 | padding: 10px 30px 5px; 3 | background-color: transparentize(#6a7282, 0.9); 4 | display: flex; 5 | justify-content: center; 6 | .apple-watch-tag-list{ 7 | @include border-radius(10px); 8 | max-width: 1440px; 9 | display: flex; 10 | justify-content: center; 11 | flex-flow: row wrap; 12 | padding: 10px; 13 | .apple-watch-tag{ 14 | border: 1px solid $color-border; 15 | font-family: "Galvji"; 16 | background-color: white; 17 | white-space: nowrap; 18 | margin-bottom: 5px; 19 | font-size: 13px; 20 | cursor: pointer; 21 | padding: 3px 8px; 22 | margin-right: 5px; 23 | line-height: 1.3; 24 | @include border-radius(3px); 25 | color: $text-main; 26 | &:hover{ 27 | background-color: $bg-highlight; 28 | } 29 | &.active{ 30 | background-color: #6a7282; 31 | border-color: transparent; 32 | color: white; 33 | } 34 | } 35 | } 36 | } 37 | 38 | @media (max-width: 768px){ 39 | .filter-list{ 40 | .apple-watch-tag-list{ 41 | .apple-watch-tag{ 42 | font-size: 14px; 43 | padding: 5px 10px; 44 | @include border-radius(6px); 45 | } 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Apple Watch 信息 4 | 5 | > 数据来源: wikipedia 6 | 7 | ## 线上地址 8 | - iPhone: [http://kylebing.cn/tools/iphone](http://kylebing.cn/tools/iphone) 9 | - iPad: [http://kylebing.cn/tools/ipad](http://kylebing.cn/tools/ipad) 10 | - Apple Chip: [http://kylebing.cn/tools/apple-chip](http://kylebing.cn/tools/apple-chip) 11 | - AirPods: [http://kylebing.cn/tools/airpods](http://kylebing.cn/tools/airpods) 12 | - AppleWatch: [http://kylebing.cn/tools/apple-watch](http://kylebing.cn/tools/apple-watch) 13 | 14 | 15 | ## github 地址 16 | - iPhone: [https://github.com/KyleBing/iphone](https://github.com/KyleBing/iphone) 17 | - iPad: [https://github.com/KyleBing/ipad](https://github.com/KyleBing/ipad) 18 | - Apple Chip: [https://github.com/KyleBing/apple-chip](https://github.com/KyleBing/apple-chip) 19 | - AirPods: [https://github.com/KyleBing/airpods](https://github.com/KyleBing/airpods) 20 | - AppleWatch: [https://github.com/KyleBing/apple-watch](https://github.com/KyleBing/apple-watch) 21 | 22 | 23 | ## 预览 24 | 25 | Screenshot 2023-03-30 at 20 08 50 26 | 27 | 28 | 29 | ## 修改说明 30 | 在每次修改 `css` 和 `js` 文件之后,很更新 `index.html` 中引入文件位置的后缀,以实现消除浏览器缓存的目的。 31 | 32 | ```html 33 | 34 | 35 | ``` 36 | -------------------------------------------------------------------------------- /scss/_reset.scss: -------------------------------------------------------------------------------- 1 | 2 | * { 3 | padding: 0; 4 | margin: 0; 5 | border: 0; 6 | font-family: inherit; 7 | -webkit-box-sizing: border-box; 8 | -moz-box-sizing: border-box; 9 | box-sizing: border-box; 10 | } 11 | 12 | body { 13 | width: 100%; 14 | margin: 0 auto; 15 | font-family: "PingFang SC", "Microsoft Yahei UI", "Microsoft Yahei", "Helvetica", sans-serif; 16 | } 17 | 18 | a { 19 | text-decoration: none; 20 | color: $text-main; 21 | } 22 | 23 | table { 24 | border-collapse: collapse; 25 | } 26 | 27 | input, 28 | textarea { 29 | //-webkit-appearance: none !important; 30 | } 31 | 32 | code, 33 | kbd, 34 | pre, 35 | samp, 36 | tt { 37 | font-family: "Courier New", Courier, monospace; 38 | } 39 | 40 | :focus, 41 | :active { 42 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 43 | outline: none; 44 | } 45 | 46 | ::-webkit-scrollbar { 47 | z-index: 50; 48 | width: 3px; 49 | height: 3px; 50 | } 51 | 52 | ::-webkit-scrollbar-track { 53 | border-bottom: 1px solid $bg-highlight; 54 | border-right: 1px solid $bg-highlight; 55 | background-color: rgba(0, 0, 0, 0); 56 | } 57 | 58 | ::-webkit-scrollbar-thumb { 59 | -webkit-border-radius: 5px; 60 | -moz-border-radius: 5px; 61 | border-radius: 5px; 62 | background-color: #eee; 63 | transition: all .2s; 64 | height: 3px; 65 | } 66 | 67 | :hover::-webkit-scrollbar-thumb { 68 | background-color: #dfdfdf; 69 | transition: all .2s; 70 | } 71 | 72 | ::-webkit-scrollbar-button { 73 | display: none; 74 | } 75 | 76 | ::-webkit-scrollbar-corner { 77 | display: none; 78 | } 79 | -------------------------------------------------------------------------------- /scss/_utility.scss: -------------------------------------------------------------------------------- 1 | // box-shadow 2 | @mixin box-shadow($value){ 3 | -webkit-box-shadow: $value; 4 | -moz-box-shadow: $value; 5 | box-shadow: $value; 6 | } 7 | 8 | 9 | // border-radius 10 | @mixin border-radius($corner...){ 11 | -webkit-border-radius: $corner; 12 | -moz-border-radius: $corner; 13 | border-radius: $corner; 14 | } 15 | 16 | // unable to select 17 | @mixin unselectable(){ 18 | -webkit-user-select: none; 19 | -moz-user-select: none; 20 | -ms-user-select: none; 21 | user-select: none; 22 | } 23 | 24 | @mixin clearfix(){ 25 | &:after{ 26 | content: ''; 27 | display: block; 28 | clear: both; 29 | visibility: hidden; 30 | } 31 | } 32 | 33 | @mixin transform($value){ 34 | -webkit-transform: $value; 35 | -moz-transform: $value; 36 | -ms-transform: $value; 37 | -o-transform: $value; 38 | transform: $value; 39 | } 40 | 41 | 42 | @mixin transition($value...){ 43 | -webkit-transition: $value; 44 | -moz-transition: $value; 45 | -ms-transition: $value; 46 | -o-transition: $value; 47 | transition: $value; 48 | } 49 | 50 | @mixin animation($value){ 51 | animation: $value; 52 | -webkit-animation: $value; 53 | } 54 | 55 | 56 | 57 | @mixin linear-gradient($direct, $colors){ 58 | background: linear-gradient($direct, $colors); 59 | background: -webkit-linear-gradient($direct, $colors); 60 | background: -moz-linear-gradient($direct, $colors); 61 | } 62 | 63 | @mixin backdrop-filter($value){ 64 | backdrop-filter: $value ; 65 | -webkit-backdrop-filter: $value; 66 | } 67 | 68 | // 1像素 69 | @mixin divider-1px(){ 70 | content:''; 71 | height: 1px; 72 | display: block; 73 | width: 100%; 74 | position: absolute; 75 | background-color: $color-border; 76 | @include transform(scaleY(.5)) 77 | } 78 | 79 | 80 | -------------------------------------------------------------------------------- /scss/layout.scss: -------------------------------------------------------------------------------- 1 | .container{ 2 | margin: 0 auto; 3 | max-width: 1920px; 4 | background-color: white; 5 | @media (max-width: 450px){ 6 | body{ 7 | background-color: $color-border; 8 | } 9 | .iphone{ 10 | overflow: hidden; 11 | @include border-radius(15px); 12 | background-color: white; 13 | margin-bottom: 20px; 14 | padding: 0; 15 | border: 1px solid $color-border; 16 | } 17 | .title-content{ 18 | border-bottom: none; 19 | border-bottom: 1px solid $color-border; 20 | background-color: white; 21 | padding: 15px; 22 | justify-content: center; 23 | .title{ 24 | font-size: 1.5rem; 25 | font-weight: bold; 26 | } 27 | .slogan{ 28 | display: none; 29 | } 30 | } 31 | .ref-content{ 32 | padding: 15px; 33 | flex-flow: column nowrap; 34 | > *{ 35 | margin-right: 0; 36 | border-bottom: 1px solid $color-border; 37 | &:last-child{ 38 | border-bottom: none; 39 | } 40 | } 41 | } 42 | .main{ 43 | padding-bottom: 20px; 44 | .image{ 45 | padding: 0 20px; 46 | margin: 0; 47 | .img-frame{ 48 | img{ 49 | height: 100px; 50 | } 51 | } 52 | } 53 | .main-ref{ 54 | padding: 0; 55 | &-item{ 56 | margin-bottom: 10px; 57 | } 58 | } 59 | } 60 | .screen{ 61 | padding: 20px; 62 | } 63 | 64 | .detail{ 65 | width: 100%; 66 | overflow-x: auto; 67 | padding: 20px 0; 68 | flex-flow: column nowrap; 69 | &-list{ 70 | margin-right: 0; 71 | width: 100%; 72 | } 73 | } 74 | 75 | background-color: transparent; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /scss/_help.scss: -------------------------------------------------------------------------------- 1 | // HELP INFO 2 | .help-container{ 3 | top: 0; 4 | left: 0; 5 | height: 100%; 6 | width: 100%; 7 | display: flex; 8 | justify-content: center; 9 | align-items: center; 10 | background-color: white; 11 | overflow-y: auto; 12 | position: fixed; 13 | z-index: 10000; 14 | } 15 | 16 | .help{ 17 | width: 100%; 18 | flex-flow: column nowrap; 19 | display: flex; 20 | justify-content: center; 21 | align-items: center; 22 | 23 | } 24 | 25 | .help-header{ 26 | border-bottom: 1px solid $color-border; 27 | h3{ 28 | padding-bottom: 20px; 29 | width: 200px; 30 | text-align: center; 31 | font-size: $fz-huge; 32 | } 33 | } 34 | 35 | .help-body{ 36 | display: flex; 37 | justify-content: center; 38 | padding: 30px; 39 | .qr-item{ 40 | display: flex; 41 | justify-content: center; 42 | flex-flow: column nowrap; 43 | align-items: center; 44 | margin-right: 80px; 45 | &:last-child{ 46 | margin-right: 0; 47 | } 48 | .img-container{ 49 | margin-bottom: 20px; 50 | @include border-radius(10px); 51 | overflow: hidden; 52 | img { 53 | display: block; 54 | width: 150px; 55 | height: 150px; 56 | } 57 | } 58 | p{ 59 | white-space: nowrap; 60 | text-overflow: ellipsis; 61 | overflow: hidden; 62 | font-size: $fz-sm; 63 | color: $text-subtitle; 64 | text-align: center; 65 | } 66 | } 67 | } 68 | 69 | .help-footer{ 70 | 71 | } 72 | .operation-btn{ 73 | cursor: pointer; 74 | padding: 8px 15px; 75 | @include border-radius(55px); 76 | background-color: $magenta; 77 | color: white; 78 | } 79 | 80 | 81 | @media (max-width: 768px){ 82 | .help-body{ 83 | align-items: center; 84 | justify-content: center; 85 | flex-flow: column nowrap; 86 | .qr-item{ 87 | margin-right: 0; 88 | margin-bottom: 30px; 89 | &:last-child{ 90 | margin-top: 0; 91 | } 92 | } 93 | } 94 | } 95 | 96 | -------------------------------------------------------------------------------- /img/watch-info.svg: -------------------------------------------------------------------------------- 1 | 2 | watch-info 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19 | 21 | 22 | 23 | 24 | 38 25 | 40 26 | 7.4 27 | 28 | 35.6 29 | g 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /scss/_svg-image.scss: -------------------------------------------------------------------------------- 1 | $color-stroke: #333; 2 | 3 | .svg-screen { 4 | display: flex; 5 | width: 100%; 6 | justify-content: flex-start; 7 | margin-left: 60px; 8 | svg { 9 | margin-right: 45px; 10 | width: 106px; 11 | } 12 | } 13 | 14 | .svg-size { 15 | display: flex; 16 | justify-content: flex-start; 17 | width: 100%; 18 | margin-top: 20px; 19 | svg { 20 | width: 200px; 21 | } 22 | } 23 | 24 | 25 | .svg-screen { 26 | .cls-1 { 27 | fill: #fff; 28 | } 29 | 30 | .cls-2 { 31 | fill: #666; 32 | } 33 | 34 | .cls-3, .cls-9 { 35 | fill: none; 36 | } 37 | 38 | .cls-4 { 39 | fill: #e6e6e6; 40 | } 41 | 42 | .cls-5 { 43 | fill: #ccc; 44 | } 45 | 46 | .cls-6 { 47 | fill: #b3b3b3; 48 | } 49 | 50 | .cls-7 { 51 | fill: #999; 52 | } 53 | 54 | .cls-8 { 55 | fill: #f2f2f2; 56 | } 57 | 58 | .cls-9 { 59 | stroke: $color-stroke; 60 | stroke-miterlimit: 10; 61 | stroke-width: 0.5px; 62 | } 63 | 64 | .cls-10 { 65 | fill: #000000; 66 | } 67 | 68 | .cls-11 { 69 | font-size: 12px; 70 | font-family: Galvji; 71 | } 72 | 73 | .cls-12, .cls-13 { 74 | font-size: 10px; 75 | font-family: MicrosoftYaHeiUI, 76 | Microsoft YaHei UI; 77 | } 78 | 79 | .cls-13 { 80 | fill: #39b54a; 81 | } 82 | 83 | .cls-14 { 84 | letter-spacing: -0.11em; 85 | } 86 | } 87 | 88 | // ========================================= 89 | .svg-size { 90 | display: flex; 91 | width: 100%; 92 | margin-bottom: 10px; 93 | 94 | &:last-child { 95 | margin-bottom: 0; 96 | } 97 | 98 | 99 | 100 | .cls-1 { 101 | fill: #e6e6e6; 102 | } 103 | 104 | .cls-2 { 105 | fill: #fff; 106 | } 107 | 108 | .cls-3 { 109 | fill: #666; 110 | } 111 | 112 | .cls-4 { 113 | fill: none; 114 | stroke: $color-stroke; 115 | stroke-miterlimit: 10; 116 | stroke-width: 0.5px; 117 | } 118 | 119 | .cls-5 { 120 | fill: #000000; 121 | } 122 | 123 | .cls-6 { 124 | fill: #fff; 125 | } 126 | 127 | .cls-7, .cls-9 { 128 | font-size: 12px; 129 | font-family: 'Galvji', sans-serif; 130 | } 131 | 132 | .cls-8 { 133 | font-size: 20px; 134 | } 135 | 136 | .cls-9 { 137 | fill: #39b54a; 138 | } 139 | 140 | } 141 | -------------------------------------------------------------------------------- /scss/_variables.scss: -------------------------------------------------------------------------------- 1 | // Colors 2 | $green : #00b56b; 3 | $blue : #007AFF; 4 | $purple : #5856D6; 5 | $magenta : #FF2D70; 6 | $pink : #ff63d8; 7 | $red : #FF3B30; 8 | $orange : #FF9500; 9 | $yellow : #FFCC00; 10 | $gray : #8E8E93; 11 | $cyan: #04bbdc; 12 | 13 | $color-main: $magenta; 14 | $bg-highlight : #eeeeee; 15 | $font-size: 0.9rem; 16 | 17 | $color-border-about: #aaa; 18 | $color-border: #dadada; 19 | $color-border-title: #ccc; 20 | $use-shadow: false; 21 | 22 | $text-main: #404040; 23 | $text-second: #9e9e9e; 24 | $text-sup: #888; 25 | $text-value: #505257; 26 | $bg-storage: #505257; 27 | 28 | // label 29 | $label-corner: 15px; 30 | $label-transparent-rate: 0.2; 31 | $label-padding: 3px; 32 | $label-padding-lr: 8px; 33 | $label-font-size: 0.8rem; 34 | $label-font-size-sm: 0.7rem; 35 | 36 | $fz-huge : 36px; 37 | $fz-big : 24px; 38 | $fz-title: 25px; 39 | $fz-main : 14px; 40 | $fz-sm : 12px; 41 | $fz-tiny : 10px; 42 | 43 | 44 | $text-main : #333; 45 | $text-subtitle : #666; 46 | $text-comment : #999; 47 | 48 | .gradient{ 49 | background-image: linear-gradient(to bottom right, #363d40, #6a7282); 50 | } 51 | 52 | .gradient-blue{ 53 | color: white !important; 54 | background-image: linear-gradient(to bottom right, #618BFA, #1CB2F7); 55 | } 56 | .gradient-purple{ 57 | color: white !important; 58 | background-image: linear-gradient(to bottom right, #C621FF, #FE3EBA); 59 | } 60 | 61 | 62 | $gradient-violet: #8876fe; 63 | $gradient-plum: #8d1287; 64 | $gradient-indigo: #622aff; 65 | $gradient-azure: #027fff; 66 | $gradient-tomato: #f63e54; 67 | $gradient-persimmon: #e94b1b; 68 | $gradient-pumpkin: #e2620c; 69 | $gradient-orange: #e66702; 70 | $gradient-green: #0c9d46; 71 | $gradient-sea-green: #099b9d; 72 | $gradient-teal: #049cb7; 73 | $gradient-aqua: #039e8f; 74 | $gradient-sapphire: #3d44c3; 75 | $gradient-ultramarine: #0d1387; 76 | $gradient-magenta: #dd04d1; 77 | $gradient-tangelo: #ff3e17; 78 | $gradient-cobalt: #5451fb; 79 | 80 | 81 | $gradient-bg-blue: linear-gradient(135deg,#1c7df3,#1abcfa); 82 | $gradient-bg-green: linear-gradient(135deg, $gradient-teal,#3dd9bd); 83 | $gradient-bg-purple: linear-gradient(135deg,#0D1387,#867AF6); 84 | $gradient-bg-red: linear-gradient(135deg,$gradient-tomato,$gradient-tangelo); 85 | $gradient-bg-body: linear-gradient(180deg,#e2e2e2,#e5e5e5); 86 | -------------------------------------------------------------------------------- /scss/_label.scss: -------------------------------------------------------------------------------- 1 | // HEADER 2 | .section-header{ 3 | padding: 5px 3px; 4 | display: flex; 5 | margin-bottom: 10px; 6 | align-items: flex-end; 7 | font-size: $fz-main + 2; 8 | .section-title{ 9 | font-weight: bold; 10 | } 11 | .section-subtitle{ 12 | font-family: 'Galvji', sans-serif; 13 | margin-left: 10px; 14 | color: $text-subtitle; 15 | } 16 | } 17 | 18 | // ITEM 19 | .sensor-info-item{ 20 | @include border-radius(3px); 21 | padding: 3px 5px; 22 | display: flex; 23 | font-size: $fz-main; 24 | color: $text-main; 25 | .label{ 26 | color: $text-subtitle; 27 | width: 100px; 28 | } 29 | .value{ 30 | flex-grow: 1; 31 | &.value-inline{ 32 | display: flex; 33 | justify-content: flex-start; 34 | align-items: center; 35 | } 36 | font-family: Galvji, sans-serif; 37 | .unit{ 38 | color: $green; 39 | } 40 | } 41 | &:hover{ 42 | background-color: $bg-highlight; 43 | .label{ 44 | 45 | } 46 | } 47 | } 48 | 49 | .value-item-second{ 50 | width: 100%; 51 | display: flex; 52 | font-size: $fz-main; 53 | align-items: flex-start; 54 | line-height: 20px; 55 | background-color: transparentize(black, 0.95); 56 | .label-second{ 57 | width: 60px; 58 | font-weight: bold; 59 | } 60 | .value-second{ 61 | flex-grow: 1; 62 | 63 | } 64 | } 65 | 66 | 67 | // 充电 ITEM 68 | $height-charging-bar: 24px; 69 | .charging-container{ 70 | display: flex; 71 | flex-flow: column nowrap; 72 | } 73 | .charging-item { 74 | font-size: $fz-sm; 75 | margin-bottom: 5px; 76 | width: 200px; 77 | height: $height-charging-bar; 78 | color: white; 79 | font-family: Galvji, sans-serif; 80 | &:last-child{ 81 | margin-bottom: 0; 82 | } 83 | .bar{ 84 | position: relative; 85 | height: $height-charging-bar; 86 | .time{ 87 | line-height: $height-charging-bar; 88 | right: 10px; 89 | position: absolute; 90 | } 91 | .percentage{ 92 | left: 10px; 93 | line-height: $height-charging-bar; 94 | position: absolute; 95 | } 96 | } 97 | &.orange{ 98 | .bar{ 99 | border-color: $orange; 100 | background-color: transparentize($orange, 0.1); 101 | } 102 | } 103 | &.green{ 104 | background-color: transparentize($green, 0.1); 105 | } 106 | } 107 | 108 | .tag{ 109 | font-size: $fz-sm; 110 | margin-right: 5px; 111 | line-height: 1; 112 | background-color: white; 113 | border: 1px solid $color-border; 114 | padding: 2px 5px; 115 | @include border-radius(3px); 116 | } 117 | -------------------------------------------------------------------------------- /img/screen-info.svg: -------------------------------------------------------------------------------- 1 | 2 | screen-info 3 | 4 | 5 | 6 | 7 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 368 35 | 430 36 | 1000 37 | nit 38 | 363 39 | ppi 40 | 3D 41 | T 42 | ouch 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /scss/_about.scss: -------------------------------------------------------------------------------- 1 | 2 | // 关于 3 | .about{ 4 | font-family: 'Galvji', sans-serif; 5 | color: white; 6 | display: flex; 7 | align-items: center; 8 | justify-content: space-between; 9 | font-size: 0.8rem; 10 | padding: 15px 35px; 11 | background-color: white; 12 | a{ 13 | &:hover{ 14 | text-decoration: underline; 15 | } 16 | color: white; 17 | } 18 | @media (max-width: 768px){ 19 | align-items: stretch; 20 | padding: 35px 25px 25px; 21 | flex-flow: column nowrap; 22 | } 23 | } 24 | 25 | .about-header{ 26 | display: flex; 27 | justify-content: space-between; 28 | .icon{ 29 | display: flex; 30 | justify-content: center; 31 | align-items: center; 32 | padding-left: 30px; 33 | img{ 34 | height: 50px; 35 | } 36 | } 37 | .content{ 38 | flex-grow: 1; 39 | display: flex; 40 | flex-flow: row nowrap; 41 | margin-left: 30px; 42 | justify-content: flex-start; 43 | align-items: center; 44 | .title{ 45 | font-size: $fz-title; 46 | } 47 | } 48 | 49 | @media (max-width: 768px){ 50 | margin-bottom: 20px; 51 | .icon{ 52 | display: none; 53 | } 54 | .content{ 55 | flex-flow: column nowrap; 56 | margin-left: 0; 57 | .thumbs-up{ 58 | padding: 15px 0; 59 | } 60 | .title{ 61 | width: 100%; 62 | text-align: center; 63 | } 64 | } 65 | } 66 | } 67 | .copyright-group{ 68 | display: flex; 69 | justify-content: space-between; 70 | @media (max-width: 768px){ 71 | flex-flow: column nowrap; 72 | justify-content: center; 73 | align-items: center; 74 | } 75 | } 76 | .author-info{ 77 | cursor: pointer; 78 | font-family: "Galvji"; 79 | margin-left: 30px; 80 | padding: 10px 15px; 81 | justify-content: space-between; 82 | line-height: 1.4; 83 | font-size: 11px; 84 | letter-spacing: 0.5px; 85 | @include border-radius(5px); 86 | p{ 87 | &:last-child{ 88 | margin-bottom: 0; 89 | } 90 | } 91 | @media (max-width: 768px){ 92 | padding: 15px 20px; 93 | @include border-radius(5px); 94 | background-color: rgba(255,255,255,0.05); 95 | border: none; 96 | margin: 0 0 10px; 97 | } 98 | 99 | .link{ 100 | &:hover{ 101 | color: white !important; 102 | } 103 | &:active{ 104 | transform: translateY(2px); 105 | } 106 | } 107 | } 108 | 109 | .share-links{ 110 | display: flex; 111 | justify-content: center; 112 | flex-flow: row nowrap; 113 | .link-item{ 114 | width: 70px; 115 | display: flex; 116 | flex-flow: column nowrap; 117 | justify-content: center; 118 | align-items: center; 119 | @include border-radius(10px); 120 | img{ 121 | display: block; 122 | height: 40px; 123 | } 124 | &[href]:hover{ 125 | background-color: transparentize(black, 0.8); 126 | } 127 | } 128 | @media (max-width: 768px){ 129 | .link-item{ 130 | padding: 10px 0; 131 | } 132 | margin-bottom: 30px; 133 | } 134 | } 135 | 136 | 137 | .thumbs-up{ 138 | width: 120px !important; 139 | display: flex; 140 | justify-content: center; 141 | align-items: center; 142 | flex-flow: row nowrap!important; 143 | @include transform(translateY(2px)); 144 | cursor: pointer; 145 | img{ 146 | height: 30px !important; 147 | } 148 | .multiply{ 149 | padding: 0 4px; 150 | } 151 | h3{ 152 | font-weight: normal; 153 | font-size: 12px; 154 | text-align: center; 155 | } 156 | } 157 | 158 | @media (max-width: 768px){ 159 | .search-bar{ 160 | display: none; 161 | } 162 | } 163 | -------------------------------------------------------------------------------- /scss/AppleWatch.scss: -------------------------------------------------------------------------------- 1 | @import "variables"; 2 | @import "reset"; 3 | @import "utility"; 4 | @import "font"; 5 | @import "gutter"; 6 | @import "font"; 7 | @import "about"; 8 | @import "layout"; 9 | @import "changelog"; 10 | @import "filter-list"; 11 | @import "help"; 12 | @import "svg-image"; 13 | 14 | body{ 15 | background-color: $bg-highlight; 16 | font-family: "PingFang SC", "Microsoft Yahei UI", "Microsoft Yahei", "Helvetica", sans-serif; 17 | } 18 | 19 | .announcement{ 20 | border-bottom: 1px solid $color-border; 21 | padding: 40px; 22 | width: 100%; 23 | text-align: center; 24 | a{ 25 | color: $gray; 26 | &:hover{ 27 | color: $color-main; 28 | } 29 | } 30 | } 31 | 32 | footer{ 33 | padding: 10px 0 40px; 34 | font-size: 12px; 35 | text-align: center; 36 | color: $gray; 37 | 38 | } 39 | 40 | .apple-watch-list{ 41 | margin: 0 auto; 42 | max-width: 1800px; 43 | padding: 30px 30px 50px 30px; 44 | @media (max-width: 768px){ 45 | padding: 20px 10px; 46 | } 47 | } 48 | 49 | .apple-watch{ 50 | padding: 80px 0; 51 | display: flex; 52 | flex-flow: row nowrap; 53 | justify-content: space-between; 54 | border-bottom: 1px solid $color-border; 55 | } 56 | 57 | // 主要信息 58 | section.main-info{ 59 | margin-right: 30px; 60 | @include border-radius(20px); 61 | padding: 10px; 62 | background-color: white; 63 | flex-shrink: 0; 64 | width: 400px; 65 | display: flex; 66 | height: 100%; 67 | flex-flow: column nowrap; 68 | align-items: center; 69 | .main-pic{ 70 | img{ 71 | width: 300px; 72 | display: block; 73 | } 74 | } 75 | 76 | .title{ 77 | font-family: 'Galvji', sans-serif; 78 | margin-top: 20px; 79 | font-weight: bold; 80 | font-size: $fz-title; 81 | &.is-new{ 82 | -webkit-background-clip: text; 83 | background-clip: text; 84 | -webkit-text-fill-color: transparent; 85 | //background-image: linear-gradient(to top right, #ff31d1, #00ceff); 86 | background-image: linear-gradient(90deg,#2ca2b4,#5598de 24%,#7f87ff 45%,#f65aad 76%,#ec3d43); 87 | } 88 | } 89 | .date{ 90 | margin-top: 5px; 91 | font-family: "Galvji"; 92 | color: $text-subtitle; 93 | display: flex; 94 | justify-content: center; 95 | flex-flow: row nowrap; 96 | font-size: $fz-main + 3; 97 | } 98 | } 99 | 100 | // 主信息 101 | section.reference-info{ 102 | flex-shrink: 0; 103 | flex-grow: 2; 104 | display: flex; 105 | flex-flow: column nowrap; 106 | align-items: flex-start; 107 | } 108 | 109 | // 传感器 110 | section.sensor-info{ 111 | flex-shrink: 0; 112 | flex-grow: 1; 113 | } 114 | 115 | // 小尺寸 116 | section.size-small{ 117 | flex-shrink: 0; 118 | flex-grow: 1; 119 | } 120 | 121 | // 大尺寸 122 | section.size-large{ 123 | flex-shrink: 0; 124 | flex-grow: 1; 125 | } 126 | 127 | @media (max-width: 768px) { 128 | .apple-watch-list{ 129 | padding: 0; 130 | } 131 | .apple-watch{ 132 | padding: 0; 133 | flex-flow: column nowrap; 134 | } 135 | section{ 136 | padding: 20px; 137 | width: 100%; 138 | &.main-info{ 139 | width: 100%; 140 | .main-pic{ 141 | img{ 142 | width: 250px; 143 | } 144 | } 145 | .title { 146 | font-size: $fz-title - 3; 147 | &.is-new { 148 | } 149 | } 150 | .date{ 151 | font-size: $fz-main; 152 | } 153 | } 154 | &.size-small{ 155 | background-color: white; 156 | } 157 | &.size-large{ 158 | background-color: white; 159 | } 160 | } 161 | } 162 | 163 | 164 | @import "label"; 165 | @import "dark"; 166 | -------------------------------------------------------------------------------- /scss/_dark.scss: -------------------------------------------------------------------------------- 1 | $dark-bg: lighten(black, 15%); 2 | $dark-bg-highlight: lighten(black, 28%); 3 | $dark-bg-light: lighten(black, 24%); 4 | 5 | 6 | $dark-text: lighten(black, 65%); 7 | $dark-text-title: lighten(black, 75%); 8 | $dark-text-subtitle: lighten(black, 45%); 9 | 10 | $dark-border: lighten(black, 30%); 11 | $dark-border-light: lighten(black, 60%); 12 | 13 | 14 | @media (prefers-color-scheme: dark) { 15 | body{ 16 | background-color: $dark-bg; 17 | } 18 | .container{ 19 | background-color: $dark-bg; 20 | } 21 | 22 | .announcement{ 23 | color: $dark-text; 24 | border-color: $dark-border; 25 | a{ 26 | color: $gray; 27 | &:hover{ 28 | color: $color-main; 29 | } 30 | } 31 | } 32 | 33 | // LABEL 34 | .rate{ 35 | background-color: transparent !important; 36 | } 37 | 38 | .apple-watch{ 39 | border-bottom-color: $dark-border; 40 | } 41 | 42 | 43 | .gradient-blue{ 44 | color: darken(white, 15%) !important; 45 | background-image: linear-gradient(to bottom right, darken(#618BFA, 25%), darken(#1CB2F7, 25%)); 46 | } 47 | .gradient-purple{ 48 | color: darken(white, 15%) !important; 49 | background-image: linear-gradient(to bottom right, darken(#C621FF, 25%), darken(#FE3EBA, 25%)); 50 | } 51 | 52 | 53 | // SVG 54 | rect{ 55 | fill: transparent; 56 | &#apple-watch-outside{ 57 | stroke: $dark-border-light; 58 | fill: $dark-bg 59 | } 60 | &#apple-watch-inside{ 61 | stroke: $dark-border-light; 62 | fill: $dark-bg-highlight 63 | } 64 | &#apple-watch-inch{ 65 | stroke: $dark-border-light; 66 | fill: $dark-bg-highlight 67 | } 68 | &#apple-watch-line{ 69 | fill: $orange 70 | } 71 | } 72 | text, tspan{ 73 | fill: $dark-text-title 74 | } 75 | 76 | .filter-list{ 77 | .apple-watch-tag-list{ 78 | .apple-watch-tag{ 79 | border-color: $dark-border; 80 | color: $dark-text; 81 | background-color: $dark-bg; 82 | &:hover{ 83 | background-color: $dark-bg-highlight; 84 | } 85 | &.active{ 86 | } 87 | } 88 | } 89 | } 90 | 91 | 92 | // SCROLL BAR 93 | ::-webkit-scrollbar { 94 | z-index: 50; 95 | width: 8px; 96 | height: 10px; 97 | } 98 | 99 | ::-webkit-scrollbar-track { 100 | border: none; 101 | background-color: rgba(0, 0, 0, 0); 102 | } 103 | 104 | ::-webkit-scrollbar-thumb { 105 | border-color: transparent; 106 | background-color: transparent; 107 | } 108 | 109 | :hover::-webkit-scrollbar-thumb { 110 | //border: 1px solid $dark-border; 111 | background-color: $dark-bg-highlight; 112 | } 113 | 114 | 115 | // Labels 116 | // HEADER 117 | .section-header{ 118 | .section-title{ 119 | color: $dark-text-title; 120 | } 121 | .section-subtitle{ 122 | color: $dark-text-subtitle; 123 | } 124 | } 125 | 126 | // ITEM 127 | .sensor-info-item{ 128 | color: $dark-text-title; 129 | .label{ 130 | color: $dark-text-subtitle; 131 | } 132 | .value{ 133 | &.value-inline{ 134 | } 135 | .unit{ 136 | color: $green; 137 | } 138 | } 139 | &:hover{ 140 | background-color: $dark-bg-highlight; 141 | .label{ 142 | 143 | } 144 | } 145 | } 146 | 147 | .value-item-second{ 148 | font-size: $fz-main; 149 | background-color: transparentize(white, 0.95); 150 | .label-second{ 151 | } 152 | .value-second{ 153 | } 154 | } 155 | 156 | 157 | // 充电 ITEM 158 | $height-charging-bar: 24px; 159 | .charging-container{ 160 | } 161 | .charging-item { 162 | color: white; 163 | &:last-child{ 164 | } 165 | .bar{ 166 | .time{ 167 | } 168 | .percentage{ 169 | } 170 | } 171 | &.orange{ 172 | .bar{ 173 | border-color: $orange; 174 | background-color: transparentize($orange, 0.1); 175 | } 176 | } 177 | &.green{ 178 | background-color: transparentize($green, 0.1); 179 | } 180 | } 181 | 182 | .tag{ 183 | background-color: $dark-bg; 184 | border: 1px solid $dark-border; 185 | } 186 | 187 | 188 | .svg-size{ 189 | .cls-6 { 190 | fill: transparent; 191 | } 192 | } 193 | 194 | } 195 | -------------------------------------------------------------------------------- /scss/AppleWatch.css: -------------------------------------------------------------------------------- 1 | .gradient { 2 | background-image: linear-gradient(to bottom right, #363d40, #6a7282); 3 | } 4 | 5 | .gradient-blue { 6 | color: white !important; 7 | background-image: linear-gradient(to bottom right, #618BFA, #1CB2F7); 8 | } 9 | 10 | .gradient-purple { 11 | color: white !important; 12 | background-image: linear-gradient(to bottom right, #C621FF, #FE3EBA); 13 | } 14 | 15 | * { 16 | padding: 0; 17 | margin: 0; 18 | border: 0; 19 | font-family: inherit; 20 | -webkit-box-sizing: border-box; 21 | -moz-box-sizing: border-box; 22 | box-sizing: border-box; 23 | } 24 | 25 | body { 26 | width: 100%; 27 | margin: 0 auto; 28 | font-family: "PingFang SC", "Microsoft Yahei UI", "Microsoft Yahei", "Helvetica", sans-serif; 29 | } 30 | 31 | a { 32 | text-decoration: none; 33 | color: #333; 34 | } 35 | 36 | table { 37 | border-collapse: collapse; 38 | } 39 | 40 | code, 41 | kbd, 42 | pre, 43 | samp, 44 | tt { 45 | font-family: "Courier New", Courier, monospace; 46 | } 47 | 48 | :focus, 49 | :active { 50 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 51 | outline: none; 52 | } 53 | 54 | ::-webkit-scrollbar { 55 | z-index: 50; 56 | width: 3px; 57 | height: 3px; 58 | } 59 | 60 | ::-webkit-scrollbar-track { 61 | border-bottom: 1px solid #eeeeee; 62 | border-right: 1px solid #eeeeee; 63 | background-color: rgba(0, 0, 0, 0); 64 | } 65 | 66 | ::-webkit-scrollbar-thumb { 67 | -webkit-border-radius: 5px; 68 | -moz-border-radius: 5px; 69 | border-radius: 5px; 70 | background-color: #eee; 71 | transition: all 0.2s; 72 | height: 3px; 73 | } 74 | 75 | :hover::-webkit-scrollbar-thumb { 76 | background-color: #dfdfdf; 77 | transition: all 0.2s; 78 | } 79 | 80 | ::-webkit-scrollbar-button { 81 | display: none; 82 | } 83 | 84 | ::-webkit-scrollbar-corner { 85 | display: none; 86 | } 87 | 88 | @font-face { 89 | font-family: "Impact"; 90 | src: url("../font/ImpactPureNumber.ttf"); 91 | } 92 | @font-face { 93 | font-family: "LLPixel"; 94 | src: url("../font/LLPixel_only_Letter.ttf"); 95 | } 96 | @font-face { 97 | font-family: "Galvji"; 98 | src: url("../font/Galvji.ttf"); 99 | } 100 | .impact { 101 | font-family: "Impact", sans-serif !important; 102 | } 103 | 104 | .mt-1 { 105 | margin-top: 5px !important; 106 | } 107 | 108 | .mb-1 { 109 | margin-bottom: 5px !important; 110 | } 111 | 112 | .ml-1 { 113 | margin-left: 5px !important; 114 | } 115 | 116 | .mr-1 { 117 | margin-right: 5px !important; 118 | } 119 | 120 | .m-1 { 121 | margin: 5px !important; 122 | } 123 | 124 | .pt-1 { 125 | padding-top: 5px !important; 126 | } 127 | 128 | .pb-1 { 129 | padding-bottom: 5px !important; 130 | } 131 | 132 | .pl-1 { 133 | padding-left: 5px !important; 134 | } 135 | 136 | .pr-1 { 137 | padding-right: 5px !important; 138 | } 139 | 140 | .p-1 { 141 | padding: 5px !important; 142 | } 143 | 144 | .mt-2 { 145 | margin-top: 10px !important; 146 | } 147 | 148 | .mb-2 { 149 | margin-bottom: 10px !important; 150 | } 151 | 152 | .ml-2 { 153 | margin-left: 10px !important; 154 | } 155 | 156 | .mr-2 { 157 | margin-right: 10px !important; 158 | } 159 | 160 | .m-2 { 161 | margin: 10px !important; 162 | } 163 | 164 | .pt-2 { 165 | padding-top: 10px !important; 166 | } 167 | 168 | .pb-2 { 169 | padding-bottom: 10px !important; 170 | } 171 | 172 | .pl-2 { 173 | padding-left: 10px !important; 174 | } 175 | 176 | .pr-2 { 177 | padding-right: 10px !important; 178 | } 179 | 180 | .p-2 { 181 | padding: 10px !important; 182 | } 183 | 184 | .mt-3 { 185 | margin-top: 15px !important; 186 | } 187 | 188 | .mb-3 { 189 | margin-bottom: 15px !important; 190 | } 191 | 192 | .ml-3 { 193 | margin-left: 15px !important; 194 | } 195 | 196 | .mr-3 { 197 | margin-right: 15px !important; 198 | } 199 | 200 | .m-3 { 201 | margin: 15px !important; 202 | } 203 | 204 | .pt-3 { 205 | padding-top: 15px !important; 206 | } 207 | 208 | .pb-3 { 209 | padding-bottom: 15px !important; 210 | } 211 | 212 | .pl-3 { 213 | padding-left: 15px !important; 214 | } 215 | 216 | .pr-3 { 217 | padding-right: 15px !important; 218 | } 219 | 220 | .p-3 { 221 | padding: 15px !important; 222 | } 223 | 224 | .mt-4 { 225 | margin-top: 20px !important; 226 | } 227 | 228 | .mb-4 { 229 | margin-bottom: 20px !important; 230 | } 231 | 232 | .ml-4 { 233 | margin-left: 20px !important; 234 | } 235 | 236 | .mr-4 { 237 | margin-right: 20px !important; 238 | } 239 | 240 | .m-4 { 241 | margin: 20px !important; 242 | } 243 | 244 | .pt-4 { 245 | padding-top: 20px !important; 246 | } 247 | 248 | .pb-4 { 249 | padding-bottom: 20px !important; 250 | } 251 | 252 | .pl-4 { 253 | padding-left: 20px !important; 254 | } 255 | 256 | .pr-4 { 257 | padding-right: 20px !important; 258 | } 259 | 260 | .p-4 { 261 | padding: 20px !important; 262 | } 263 | 264 | .mt-5 { 265 | margin-top: 25px !important; 266 | } 267 | 268 | .mb-5 { 269 | margin-bottom: 25px !important; 270 | } 271 | 272 | .ml-5 { 273 | margin-left: 25px !important; 274 | } 275 | 276 | .mr-5 { 277 | margin-right: 25px !important; 278 | } 279 | 280 | .m-5 { 281 | margin: 25px !important; 282 | } 283 | 284 | .pt-5 { 285 | padding-top: 25px !important; 286 | } 287 | 288 | .pb-5 { 289 | padding-bottom: 25px !important; 290 | } 291 | 292 | .pl-5 { 293 | padding-left: 25px !important; 294 | } 295 | 296 | .pr-5 { 297 | padding-right: 25px !important; 298 | } 299 | 300 | .p-5 { 301 | padding: 25px !important; 302 | } 303 | 304 | .mt-6 { 305 | margin-top: 30px !important; 306 | } 307 | 308 | .mb-6 { 309 | margin-bottom: 30px !important; 310 | } 311 | 312 | .ml-6 { 313 | margin-left: 30px !important; 314 | } 315 | 316 | .mr-6 { 317 | margin-right: 30px !important; 318 | } 319 | 320 | .m-6 { 321 | margin: 30px !important; 322 | } 323 | 324 | .pt-6 { 325 | padding-top: 30px !important; 326 | } 327 | 328 | .pb-6 { 329 | padding-bottom: 30px !important; 330 | } 331 | 332 | .pl-6 { 333 | padding-left: 30px !important; 334 | } 335 | 336 | .pr-6 { 337 | padding-right: 30px !important; 338 | } 339 | 340 | .p-6 { 341 | padding: 30px !important; 342 | } 343 | 344 | .mt-7 { 345 | margin-top: 35px !important; 346 | } 347 | 348 | .mb-7 { 349 | margin-bottom: 35px !important; 350 | } 351 | 352 | .ml-7 { 353 | margin-left: 35px !important; 354 | } 355 | 356 | .mr-7 { 357 | margin-right: 35px !important; 358 | } 359 | 360 | .m-7 { 361 | margin: 35px !important; 362 | } 363 | 364 | .pt-7 { 365 | padding-top: 35px !important; 366 | } 367 | 368 | .pb-7 { 369 | padding-bottom: 35px !important; 370 | } 371 | 372 | .pl-7 { 373 | padding-left: 35px !important; 374 | } 375 | 376 | .pr-7 { 377 | padding-right: 35px !important; 378 | } 379 | 380 | .p-7 { 381 | padding: 35px !important; 382 | } 383 | 384 | @font-face { 385 | font-family: "Impact"; 386 | src: url("../font/ImpactPureNumber.ttf"); 387 | } 388 | @font-face { 389 | font-family: "LLPixel"; 390 | src: url("../font/LLPixel_only_Letter.ttf"); 391 | } 392 | @font-face { 393 | font-family: "Galvji"; 394 | src: url("../font/Galvji.ttf"); 395 | } 396 | .impact { 397 | font-family: "Impact", sans-serif !important; 398 | } 399 | 400 | .about { 401 | font-family: "Galvji", sans-serif; 402 | color: white; 403 | display: flex; 404 | align-items: center; 405 | justify-content: space-between; 406 | font-size: 0.8rem; 407 | padding: 15px 35px; 408 | background-color: white; 409 | } 410 | .about a { 411 | color: white; 412 | } 413 | .about a:hover { 414 | text-decoration: underline; 415 | } 416 | @media (max-width: 768px) { 417 | .about { 418 | align-items: stretch; 419 | padding: 35px 25px 25px; 420 | flex-flow: column nowrap; 421 | } 422 | } 423 | 424 | .about-header { 425 | display: flex; 426 | justify-content: space-between; 427 | } 428 | .about-header .icon { 429 | display: flex; 430 | justify-content: center; 431 | align-items: center; 432 | padding-left: 30px; 433 | } 434 | .about-header .icon img { 435 | height: 50px; 436 | } 437 | .about-header .content { 438 | flex-grow: 1; 439 | display: flex; 440 | flex-flow: row nowrap; 441 | margin-left: 30px; 442 | justify-content: flex-start; 443 | align-items: center; 444 | } 445 | .about-header .content .title { 446 | font-size: 25px; 447 | } 448 | @media (max-width: 768px) { 449 | .about-header { 450 | margin-bottom: 20px; 451 | } 452 | .about-header .icon { 453 | display: none; 454 | } 455 | .about-header .content { 456 | flex-flow: column nowrap; 457 | margin-left: 0; 458 | } 459 | .about-header .content .thumbs-up { 460 | padding: 15px 0; 461 | } 462 | .about-header .content .title { 463 | width: 100%; 464 | text-align: center; 465 | } 466 | } 467 | 468 | .copyright-group { 469 | display: flex; 470 | justify-content: space-between; 471 | } 472 | @media (max-width: 768px) { 473 | .copyright-group { 474 | flex-flow: column nowrap; 475 | justify-content: center; 476 | align-items: center; 477 | } 478 | } 479 | 480 | .author-info { 481 | cursor: pointer; 482 | font-family: "Galvji"; 483 | margin-left: 30px; 484 | padding: 10px 15px; 485 | justify-content: space-between; 486 | line-height: 1.4; 487 | font-size: 11px; 488 | letter-spacing: 0.5px; 489 | -webkit-border-radius: 5px; 490 | -moz-border-radius: 5px; 491 | border-radius: 5px; 492 | } 493 | .author-info p:last-child { 494 | margin-bottom: 0; 495 | } 496 | @media (max-width: 768px) { 497 | .author-info { 498 | padding: 15px 20px; 499 | -webkit-border-radius: 5px; 500 | -moz-border-radius: 5px; 501 | border-radius: 5px; 502 | background-color: rgba(255, 255, 255, 0.05); 503 | border: none; 504 | margin: 0 0 10px; 505 | } 506 | } 507 | .author-info .link:hover { 508 | color: white !important; 509 | } 510 | .author-info .link:active { 511 | transform: translateY(2px); 512 | } 513 | 514 | .share-links { 515 | display: flex; 516 | justify-content: center; 517 | flex-flow: row nowrap; 518 | } 519 | .share-links .link-item { 520 | width: 70px; 521 | display: flex; 522 | flex-flow: column nowrap; 523 | justify-content: center; 524 | align-items: center; 525 | -webkit-border-radius: 10px; 526 | -moz-border-radius: 10px; 527 | border-radius: 10px; 528 | } 529 | .share-links .link-item img { 530 | display: block; 531 | height: 40px; 532 | } 533 | .share-links .link-item[href]:hover { 534 | background-color: rgba(0, 0, 0, 0.2); 535 | } 536 | @media (max-width: 768px) { 537 | .share-links { 538 | margin-bottom: 30px; 539 | } 540 | .share-links .link-item { 541 | padding: 10px 0; 542 | } 543 | } 544 | 545 | .thumbs-up { 546 | width: 120px !important; 547 | display: flex; 548 | justify-content: center; 549 | align-items: center; 550 | flex-flow: row nowrap !important; 551 | -webkit-transform: translateY(2px); 552 | -moz-transform: translateY(2px); 553 | -ms-transform: translateY(2px); 554 | -o-transform: translateY(2px); 555 | transform: translateY(2px); 556 | cursor: pointer; 557 | } 558 | .thumbs-up img { 559 | height: 30px !important; 560 | } 561 | .thumbs-up .multiply { 562 | padding: 0 4px; 563 | } 564 | .thumbs-up h3 { 565 | font-weight: normal; 566 | font-size: 12px; 567 | text-align: center; 568 | } 569 | 570 | @media (max-width: 768px) { 571 | .search-bar { 572 | display: none; 573 | } 574 | } 575 | .container { 576 | margin: 0 auto; 577 | max-width: 1920px; 578 | background-color: white; 579 | } 580 | @media (max-width: 450px) { 581 | .container { 582 | background-color: transparent; 583 | } 584 | .container body { 585 | background-color: #dadada; 586 | } 587 | .container .iphone { 588 | overflow: hidden; 589 | -webkit-border-radius: 15px; 590 | -moz-border-radius: 15px; 591 | border-radius: 15px; 592 | background-color: white; 593 | margin-bottom: 20px; 594 | padding: 0; 595 | border: 1px solid #dadada; 596 | } 597 | .container .title-content { 598 | border-bottom: none; 599 | border-bottom: 1px solid #dadada; 600 | background-color: white; 601 | padding: 15px; 602 | justify-content: center; 603 | } 604 | .container .title-content .title { 605 | font-size: 1.5rem; 606 | font-weight: bold; 607 | } 608 | .container .title-content .slogan { 609 | display: none; 610 | } 611 | .container .ref-content { 612 | padding: 15px; 613 | flex-flow: column nowrap; 614 | } 615 | .container .ref-content > * { 616 | margin-right: 0; 617 | border-bottom: 1px solid #dadada; 618 | } 619 | .container .ref-content > *:last-child { 620 | border-bottom: none; 621 | } 622 | .container .main { 623 | padding-bottom: 20px; 624 | } 625 | .container .main .image { 626 | padding: 0 20px; 627 | margin: 0; 628 | } 629 | .container .main .image .img-frame img { 630 | height: 100px; 631 | } 632 | .container .main .main-ref { 633 | padding: 0; 634 | } 635 | .container .main .main-ref-item { 636 | margin-bottom: 10px; 637 | } 638 | .container .screen { 639 | padding: 20px; 640 | } 641 | .container .detail { 642 | width: 100%; 643 | overflow-x: auto; 644 | padding: 20px 0; 645 | flex-flow: column nowrap; 646 | } 647 | .container .detail-list { 648 | margin-right: 0; 649 | width: 100%; 650 | } 651 | } 652 | 653 | .filter-list { 654 | padding: 10px 30px 5px; 655 | background-color: rgba(106, 114, 130, 0.1); 656 | display: flex; 657 | justify-content: center; 658 | } 659 | .filter-list .apple-watch-tag-list { 660 | -webkit-border-radius: 10px; 661 | -moz-border-radius: 10px; 662 | border-radius: 10px; 663 | max-width: 1440px; 664 | display: flex; 665 | justify-content: center; 666 | flex-flow: row wrap; 667 | padding: 10px; 668 | } 669 | .filter-list .apple-watch-tag-list .apple-watch-tag { 670 | border: 1px solid #dadada; 671 | font-family: "Galvji"; 672 | background-color: white; 673 | white-space: nowrap; 674 | margin-bottom: 5px; 675 | font-size: 13px; 676 | cursor: pointer; 677 | padding: 3px 8px; 678 | margin-right: 5px; 679 | line-height: 1.3; 680 | -webkit-border-radius: 3px; 681 | -moz-border-radius: 3px; 682 | border-radius: 3px; 683 | color: #333; 684 | } 685 | .filter-list .apple-watch-tag-list .apple-watch-tag:hover { 686 | background-color: #eeeeee; 687 | } 688 | .filter-list .apple-watch-tag-list .apple-watch-tag.active { 689 | background-color: #6a7282; 690 | border-color: transparent; 691 | color: white; 692 | } 693 | 694 | @media (max-width: 768px) { 695 | .filter-list .apple-watch-tag-list .apple-watch-tag { 696 | font-size: 14px; 697 | padding: 5px 10px; 698 | -webkit-border-radius: 6px; 699 | -moz-border-radius: 6px; 700 | border-radius: 6px; 701 | } 702 | } 703 | .help-container { 704 | top: 0; 705 | left: 0; 706 | height: 100%; 707 | width: 100%; 708 | display: flex; 709 | justify-content: center; 710 | align-items: center; 711 | background-color: white; 712 | overflow-y: auto; 713 | position: fixed; 714 | z-index: 10000; 715 | } 716 | 717 | .help { 718 | width: 100%; 719 | flex-flow: column nowrap; 720 | display: flex; 721 | justify-content: center; 722 | align-items: center; 723 | } 724 | 725 | .help-header { 726 | border-bottom: 1px solid #dadada; 727 | } 728 | .help-header h3 { 729 | padding-bottom: 20px; 730 | width: 200px; 731 | text-align: center; 732 | font-size: 36px; 733 | } 734 | 735 | .help-body { 736 | display: flex; 737 | justify-content: center; 738 | padding: 30px; 739 | } 740 | .help-body .qr-item { 741 | display: flex; 742 | justify-content: center; 743 | flex-flow: column nowrap; 744 | align-items: center; 745 | margin-right: 80px; 746 | } 747 | .help-body .qr-item:last-child { 748 | margin-right: 0; 749 | } 750 | .help-body .qr-item .img-container { 751 | margin-bottom: 20px; 752 | -webkit-border-radius: 10px; 753 | -moz-border-radius: 10px; 754 | border-radius: 10px; 755 | overflow: hidden; 756 | } 757 | .help-body .qr-item .img-container img { 758 | display: block; 759 | width: 150px; 760 | height: 150px; 761 | } 762 | .help-body .qr-item p { 763 | white-space: nowrap; 764 | text-overflow: ellipsis; 765 | overflow: hidden; 766 | font-size: 12px; 767 | color: #666; 768 | text-align: center; 769 | } 770 | 771 | .operation-btn { 772 | cursor: pointer; 773 | padding: 8px 15px; 774 | -webkit-border-radius: 55px; 775 | -moz-border-radius: 55px; 776 | border-radius: 55px; 777 | background-color: #FF2D70; 778 | color: white; 779 | } 780 | 781 | @media (max-width: 768px) { 782 | .help-body { 783 | align-items: center; 784 | justify-content: center; 785 | flex-flow: column nowrap; 786 | } 787 | .help-body .qr-item { 788 | margin-right: 0; 789 | margin-bottom: 30px; 790 | } 791 | .help-body .qr-item:last-child { 792 | margin-top: 0; 793 | } 794 | } 795 | .svg-screen { 796 | display: flex; 797 | width: 100%; 798 | justify-content: flex-start; 799 | margin-left: 60px; 800 | } 801 | .svg-screen svg { 802 | margin-right: 45px; 803 | width: 106px; 804 | } 805 | 806 | .svg-size { 807 | display: flex; 808 | justify-content: flex-start; 809 | width: 100%; 810 | margin-top: 20px; 811 | } 812 | .svg-size svg { 813 | width: 200px; 814 | } 815 | 816 | .svg-screen .cls-1 { 817 | fill: #fff; 818 | } 819 | .svg-screen .cls-2 { 820 | fill: #666; 821 | } 822 | .svg-screen .cls-3, .svg-screen .cls-9 { 823 | fill: none; 824 | } 825 | .svg-screen .cls-4 { 826 | fill: #e6e6e6; 827 | } 828 | .svg-screen .cls-5 { 829 | fill: #ccc; 830 | } 831 | .svg-screen .cls-6 { 832 | fill: #b3b3b3; 833 | } 834 | .svg-screen .cls-7 { 835 | fill: #999; 836 | } 837 | .svg-screen .cls-8 { 838 | fill: #f2f2f2; 839 | } 840 | .svg-screen .cls-9 { 841 | stroke: #333; 842 | stroke-miterlimit: 10; 843 | stroke-width: 0.5px; 844 | } 845 | .svg-screen .cls-10 { 846 | fill: #000000; 847 | } 848 | .svg-screen .cls-11 { 849 | font-size: 12px; 850 | font-family: Galvji; 851 | } 852 | .svg-screen .cls-12, .svg-screen .cls-13 { 853 | font-size: 10px; 854 | font-family: MicrosoftYaHeiUI, Microsoft YaHei UI; 855 | } 856 | .svg-screen .cls-13 { 857 | fill: #39b54a; 858 | } 859 | .svg-screen .cls-14 { 860 | letter-spacing: -0.11em; 861 | } 862 | 863 | .svg-size { 864 | display: flex; 865 | width: 100%; 866 | margin-bottom: 10px; 867 | } 868 | .svg-size:last-child { 869 | margin-bottom: 0; 870 | } 871 | .svg-size .cls-1 { 872 | fill: #e6e6e6; 873 | } 874 | .svg-size .cls-2 { 875 | fill: #fff; 876 | } 877 | .svg-size .cls-3 { 878 | fill: #666; 879 | } 880 | .svg-size .cls-4 { 881 | fill: none; 882 | stroke: #333; 883 | stroke-miterlimit: 10; 884 | stroke-width: 0.5px; 885 | } 886 | .svg-size .cls-5 { 887 | fill: #000000; 888 | } 889 | .svg-size .cls-6 { 890 | fill: #fff; 891 | } 892 | .svg-size .cls-7, .svg-size .cls-9 { 893 | font-size: 12px; 894 | font-family: "Galvji", sans-serif; 895 | } 896 | .svg-size .cls-8 { 897 | font-size: 20px; 898 | } 899 | .svg-size .cls-9 { 900 | fill: #39b54a; 901 | } 902 | 903 | body { 904 | background-color: #eeeeee; 905 | font-family: "PingFang SC", "Microsoft Yahei UI", "Microsoft Yahei", "Helvetica", sans-serif; 906 | } 907 | 908 | .announcement { 909 | border-bottom: 1px solid #dadada; 910 | padding: 40px; 911 | width: 100%; 912 | text-align: center; 913 | } 914 | .announcement a { 915 | color: #8E8E93; 916 | } 917 | .announcement a:hover { 918 | color: #FF2D70; 919 | } 920 | 921 | footer { 922 | padding: 10px 0 40px; 923 | font-size: 12px; 924 | text-align: center; 925 | color: #8E8E93; 926 | } 927 | 928 | .apple-watch-list { 929 | margin: 0 auto; 930 | max-width: 1800px; 931 | padding: 30px 30px 50px 30px; 932 | } 933 | @media (max-width: 768px) { 934 | .apple-watch-list { 935 | padding: 20px 10px; 936 | } 937 | } 938 | 939 | .apple-watch { 940 | padding: 80px 0; 941 | display: flex; 942 | flex-flow: row nowrap; 943 | justify-content: space-between; 944 | border-bottom: 1px solid #dadada; 945 | } 946 | 947 | section.main-info { 948 | margin-right: 30px; 949 | -webkit-border-radius: 20px; 950 | -moz-border-radius: 20px; 951 | border-radius: 20px; 952 | padding: 10px; 953 | background-color: white; 954 | flex-shrink: 0; 955 | width: 400px; 956 | display: flex; 957 | height: 100%; 958 | flex-flow: column nowrap; 959 | align-items: center; 960 | } 961 | section.main-info .main-pic img { 962 | width: 300px; 963 | display: block; 964 | } 965 | section.main-info .title { 966 | font-family: "Galvji", sans-serif; 967 | margin-top: 20px; 968 | font-weight: bold; 969 | font-size: 25px; 970 | } 971 | section.main-info .title.is-new { 972 | -webkit-background-clip: text; 973 | background-clip: text; 974 | -webkit-text-fill-color: transparent; 975 | background-image: linear-gradient(90deg, #2ca2b4, #5598de 24%, #7f87ff 45%, #f65aad 76%, #ec3d43); 976 | } 977 | section.main-info .date { 978 | margin-top: 5px; 979 | font-family: "Galvji"; 980 | color: #666; 981 | display: flex; 982 | justify-content: center; 983 | flex-flow: row nowrap; 984 | font-size: 17px; 985 | } 986 | 987 | section.reference-info { 988 | flex-shrink: 0; 989 | flex-grow: 2; 990 | display: flex; 991 | flex-flow: column nowrap; 992 | align-items: flex-start; 993 | } 994 | 995 | section.sensor-info { 996 | flex-shrink: 0; 997 | flex-grow: 1; 998 | } 999 | 1000 | section.size-small { 1001 | flex-shrink: 0; 1002 | flex-grow: 1; 1003 | } 1004 | 1005 | section.size-large { 1006 | flex-shrink: 0; 1007 | flex-grow: 1; 1008 | } 1009 | 1010 | @media (max-width: 768px) { 1011 | .apple-watch-list { 1012 | padding: 0; 1013 | } 1014 | 1015 | .apple-watch { 1016 | padding: 0; 1017 | flex-flow: column nowrap; 1018 | } 1019 | 1020 | section { 1021 | padding: 20px; 1022 | width: 100%; 1023 | } 1024 | section.main-info { 1025 | width: 100%; 1026 | } 1027 | section.main-info .main-pic img { 1028 | width: 250px; 1029 | } 1030 | section.main-info .title { 1031 | font-size: 22px; 1032 | } 1033 | section.main-info .date { 1034 | font-size: 14px; 1035 | } 1036 | section.size-small { 1037 | background-color: white; 1038 | } 1039 | section.size-large { 1040 | background-color: white; 1041 | } 1042 | } 1043 | .section-header { 1044 | padding: 5px 3px; 1045 | display: flex; 1046 | margin-bottom: 10px; 1047 | align-items: flex-end; 1048 | font-size: 16px; 1049 | } 1050 | .section-header .section-title { 1051 | font-weight: bold; 1052 | } 1053 | .section-header .section-subtitle { 1054 | font-family: "Galvji", sans-serif; 1055 | margin-left: 10px; 1056 | color: #666; 1057 | } 1058 | 1059 | .sensor-info-item { 1060 | -webkit-border-radius: 3px; 1061 | -moz-border-radius: 3px; 1062 | border-radius: 3px; 1063 | padding: 3px 5px; 1064 | display: flex; 1065 | font-size: 14px; 1066 | color: #333; 1067 | } 1068 | .sensor-info-item .label { 1069 | color: #666; 1070 | width: 100px; 1071 | } 1072 | .sensor-info-item .value { 1073 | flex-grow: 1; 1074 | font-family: Galvji, sans-serif; 1075 | } 1076 | .sensor-info-item .value.value-inline { 1077 | display: flex; 1078 | justify-content: flex-start; 1079 | align-items: center; 1080 | } 1081 | .sensor-info-item .value .unit { 1082 | color: #00b56b; 1083 | } 1084 | .sensor-info-item:hover { 1085 | background-color: #eeeeee; 1086 | } 1087 | .value-item-second { 1088 | width: 100%; 1089 | display: flex; 1090 | font-size: 14px; 1091 | align-items: flex-start; 1092 | line-height: 20px; 1093 | background-color: rgba(0, 0, 0, 0.05); 1094 | } 1095 | .value-item-second .label-second { 1096 | width: 60px; 1097 | font-weight: bold; 1098 | } 1099 | .value-item-second .value-second { 1100 | flex-grow: 1; 1101 | } 1102 | 1103 | .charging-container { 1104 | display: flex; 1105 | flex-flow: column nowrap; 1106 | } 1107 | 1108 | .charging-item { 1109 | font-size: 12px; 1110 | margin-bottom: 5px; 1111 | width: 200px; 1112 | height: 24px; 1113 | color: white; 1114 | font-family: Galvji, sans-serif; 1115 | } 1116 | .charging-item:last-child { 1117 | margin-bottom: 0; 1118 | } 1119 | .charging-item .bar { 1120 | position: relative; 1121 | height: 24px; 1122 | } 1123 | .charging-item .bar .time { 1124 | line-height: 24px; 1125 | right: 10px; 1126 | position: absolute; 1127 | } 1128 | .charging-item .bar .percentage { 1129 | left: 10px; 1130 | line-height: 24px; 1131 | position: absolute; 1132 | } 1133 | .charging-item.orange .bar { 1134 | border-color: #FF9500; 1135 | background-color: rgba(255, 149, 0, 0.9); 1136 | } 1137 | .charging-item.green { 1138 | background-color: rgba(0, 181, 107, 0.9); 1139 | } 1140 | 1141 | .tag { 1142 | font-size: 12px; 1143 | margin-right: 5px; 1144 | line-height: 1; 1145 | background-color: white; 1146 | border: 1px solid #dadada; 1147 | padding: 2px 5px; 1148 | -webkit-border-radius: 3px; 1149 | -moz-border-radius: 3px; 1150 | border-radius: 3px; 1151 | } 1152 | 1153 | @media (prefers-color-scheme: dark) { 1154 | body { 1155 | background-color: #262626; 1156 | } 1157 | 1158 | .container { 1159 | background-color: #262626; 1160 | } 1161 | 1162 | .announcement { 1163 | color: #a6a6a6; 1164 | border-color: #4d4d4d; 1165 | } 1166 | .announcement a { 1167 | color: #8E8E93; 1168 | } 1169 | .announcement a:hover { 1170 | color: #FF2D70; 1171 | } 1172 | 1173 | .rate { 1174 | background-color: transparent !important; 1175 | } 1176 | 1177 | .apple-watch { 1178 | border-bottom-color: #4d4d4d; 1179 | } 1180 | 1181 | .gradient-blue { 1182 | color: #d9d9d9 !important; 1183 | background-image: linear-gradient(to bottom right, #073fd5, #05638e); 1184 | } 1185 | 1186 | .gradient-purple { 1187 | color: #d9d9d9 !important; 1188 | background-image: linear-gradient(to bottom right, #7700a1, #bc0179); 1189 | } 1190 | 1191 | rect { 1192 | fill: transparent; 1193 | } 1194 | rect#apple-watch-outside { 1195 | stroke: #999999; 1196 | fill: #262626; 1197 | } 1198 | rect#apple-watch-inside { 1199 | stroke: #999999; 1200 | fill: #474747; 1201 | } 1202 | rect#apple-watch-inch { 1203 | stroke: #999999; 1204 | fill: #474747; 1205 | } 1206 | rect#apple-watch-line { 1207 | fill: #FF9500; 1208 | } 1209 | 1210 | text, tspan { 1211 | fill: #bfbfbf; 1212 | } 1213 | 1214 | .filter-list .apple-watch-tag-list .apple-watch-tag { 1215 | border-color: #4d4d4d; 1216 | color: #a6a6a6; 1217 | background-color: #262626; 1218 | } 1219 | .filter-list .apple-watch-tag-list .apple-watch-tag:hover { 1220 | background-color: #474747; 1221 | } 1222 | ::-webkit-scrollbar { 1223 | z-index: 50; 1224 | width: 8px; 1225 | height: 10px; 1226 | } 1227 | 1228 | ::-webkit-scrollbar-track { 1229 | border: none; 1230 | background-color: rgba(0, 0, 0, 0); 1231 | } 1232 | 1233 | ::-webkit-scrollbar-thumb { 1234 | border-color: transparent; 1235 | background-color: transparent; 1236 | } 1237 | 1238 | :hover::-webkit-scrollbar-thumb { 1239 | background-color: #474747; 1240 | } 1241 | 1242 | .section-header .section-title { 1243 | color: #bfbfbf; 1244 | } 1245 | .section-header .section-subtitle { 1246 | color: #737373; 1247 | } 1248 | 1249 | .sensor-info-item { 1250 | color: #bfbfbf; 1251 | } 1252 | .sensor-info-item .label { 1253 | color: #737373; 1254 | } 1255 | .sensor-info-item .value .unit { 1256 | color: #00b56b; 1257 | } 1258 | .sensor-info-item:hover { 1259 | background-color: #474747; 1260 | } 1261 | .value-item-second { 1262 | font-size: 14px; 1263 | background-color: rgba(255, 255, 255, 0.05); 1264 | } 1265 | .charging-item { 1266 | color: white; 1267 | } 1268 | .charging-item.orange .bar { 1269 | border-color: #FF9500; 1270 | background-color: rgba(255, 149, 0, 0.9); 1271 | } 1272 | .charging-item.green { 1273 | background-color: rgba(0, 181, 107, 0.9); 1274 | } 1275 | 1276 | .tag { 1277 | background-color: #262626; 1278 | border: 1px solid #4d4d4d; 1279 | } 1280 | 1281 | .svg-size .cls-6 { 1282 | fill: transparent; 1283 | } 1284 | } 1285 | 1286 | /*# sourceMappingURL=AppleWatch.css.map */ 1287 | -------------------------------------------------------------------------------- /js/qr.js: -------------------------------------------------------------------------------- 1 | /* qr.js -- QR code generator in Javascript (revision 2011-01-19) 2 | * Written by Kang Seonghoon . 3 | * 4 | * This source code is in the public domain; if your jurisdiction does not 5 | * recognize the public domain the terms of Creative Commons CC0 license 6 | * apply. In the other words, you can always do what you want. 7 | */ 8 | (function(root, name, definition) { 9 | if (typeof define === 'function' && define.amd) { 10 | define([], definition); 11 | } else if (typeof module === 'object' && module.exports) { 12 | module.exports = definition(); 13 | } else { 14 | root[name] = definition(); 15 | } 16 | })(this, 'QRCode', function() { 17 | /* Quick overview: QR code composed of 2D array of modules (a rectangular 18 | * area that conveys one bit of information); some modules are fixed to help 19 | * the recognition of the code, and remaining data modules are further divided 20 | * into 8-bit code words which are augumented by Reed-Solomon error correcting 21 | * codes (ECC). There could be multiple ECCs, in the case the code is so large 22 | * that it is helpful to split the raw data into several chunks. 23 | * 24 | * The number of modules is determined by the code's "version", ranging from 1 25 | * (21x21) to 40 (177x177). How many ECC bits are used is determined by the 26 | * ECC level (L/M/Q/H). The number and size (and thus the order of generator 27 | * polynomial) of ECCs depend to the version and ECC level. 28 | */ 29 | 30 | // per-version information (cf. JIS X 0510:2004 pp. 30--36, 71) 31 | // 32 | // [0]: the degree of generator polynomial by ECC levels 33 | // [1]: # of code blocks by ECC levels 34 | // [2]: left-top positions of alignment patterns 35 | // 36 | // the number in this table (in particular, [0]) does not exactly match with 37 | // the numbers in the specficiation. see augumenteccs below for the reason. 38 | var VERSIONS = [ 39 | null, 40 | [[10, 7,17,13], [ 1, 1, 1, 1], []], 41 | [[16,10,28,22], [ 1, 1, 1, 1], [4,16]], 42 | [[26,15,22,18], [ 1, 1, 2, 2], [4,20]], 43 | [[18,20,16,26], [ 2, 1, 4, 2], [4,24]], 44 | [[24,26,22,18], [ 2, 1, 4, 4], [4,28]], 45 | [[16,18,28,24], [ 4, 2, 4, 4], [4,32]], 46 | [[18,20,26,18], [ 4, 2, 5, 6], [4,20,36]], 47 | [[22,24,26,22], [ 4, 2, 6, 6], [4,22,40]], 48 | [[22,30,24,20], [ 5, 2, 8, 8], [4,24,44]], 49 | [[26,18,28,24], [ 5, 4, 8, 8], [4,26,48]], 50 | [[30,20,24,28], [ 5, 4,11, 8], [4,28,52]], 51 | [[22,24,28,26], [ 8, 4,11,10], [4,30,56]], 52 | [[22,26,22,24], [ 9, 4,16,12], [4,32,60]], 53 | [[24,30,24,20], [ 9, 4,16,16], [4,24,44,64]], 54 | [[24,22,24,30], [10, 6,18,12], [4,24,46,68]], 55 | [[28,24,30,24], [10, 6,16,17], [4,24,48,72]], 56 | [[28,28,28,28], [11, 6,19,16], [4,28,52,76]], 57 | [[26,30,28,28], [13, 6,21,18], [4,28,54,80]], 58 | [[26,28,26,26], [14, 7,25,21], [4,28,56,84]], 59 | [[26,28,28,30], [16, 8,25,20], [4,32,60,88]], 60 | [[26,28,30,28], [17, 8,25,23], [4,26,48,70,92]], 61 | [[28,28,24,30], [17, 9,34,23], [4,24,48,72,96]], 62 | [[28,30,30,30], [18, 9,30,25], [4,28,52,76,100]], 63 | [[28,30,30,30], [20,10,32,27], [4,26,52,78,104]], 64 | [[28,26,30,30], [21,12,35,29], [4,30,56,82,108]], 65 | [[28,28,30,28], [23,12,37,34], [4,28,56,84,112]], 66 | [[28,30,30,30], [25,12,40,34], [4,32,60,88,116]], 67 | [[28,30,30,30], [26,13,42,35], [4,24,48,72,96,120]], 68 | [[28,30,30,30], [28,14,45,38], [4,28,52,76,100,124]], 69 | [[28,30,30,30], [29,15,48,40], [4,24,50,76,102,128]], 70 | [[28,30,30,30], [31,16,51,43], [4,28,54,80,106,132]], 71 | [[28,30,30,30], [33,17,54,45], [4,32,58,84,110,136]], 72 | [[28,30,30,30], [35,18,57,48], [4,28,56,84,112,140]], 73 | [[28,30,30,30], [37,19,60,51], [4,32,60,88,116,144]], 74 | [[28,30,30,30], [38,19,63,53], [4,28,52,76,100,124,148]], 75 | [[28,30,30,30], [40,20,66,56], [4,22,48,74,100,126,152]], 76 | [[28,30,30,30], [43,21,70,59], [4,26,52,78,104,130,156]], 77 | [[28,30,30,30], [45,22,74,62], [4,30,56,82,108,134,160]], 78 | [[28,30,30,30], [47,24,77,65], [4,24,52,80,108,136,164]], 79 | [[28,30,30,30], [49,25,81,68], [4,28,56,84,112,140,168]]]; 80 | 81 | // mode constants (cf. Table 2 in JIS X 0510:2004 p. 16) 82 | var MODE_TERMINATOR = 0; 83 | var MODE_NUMERIC = 1, MODE_ALPHANUMERIC = 2, MODE_OCTET = 4, MODE_KANJI = 8; 84 | 85 | // validation regexps 86 | var NUMERIC_REGEXP = /^\d*$/; 87 | var ALPHANUMERIC_REGEXP = /^[A-Za-z0-9 $%*+\-./:]*$/; 88 | var ALPHANUMERIC_OUT_REGEXP = /^[A-Z0-9 $%*+\-./:]*$/; 89 | 90 | // ECC levels (cf. Table 22 in JIS X 0510:2004 p. 45) 91 | var ECCLEVEL_L = 1, ECCLEVEL_M = 0, ECCLEVEL_Q = 3, ECCLEVEL_H = 2; 92 | 93 | // GF(2^8)-to-integer mapping with a reducing polynomial x^8+x^4+x^3+x^2+1 94 | // invariant: GF256_MAP[GF256_INVMAP[i]] == i for all i in [1,256) 95 | var GF256_MAP = [], GF256_INVMAP = [-1]; 96 | for (var i = 0, v = 1; i < 255; ++i) { 97 | GF256_MAP.push(v); 98 | GF256_INVMAP[v] = i; 99 | v = (v * 2) ^ (v >= 128 ? 0x11d : 0); 100 | } 101 | 102 | // generator polynomials up to degree 30 103 | // (should match with polynomials in JIS X 0510:2004 Appendix A) 104 | // 105 | // generator polynomial of degree K is product of (x-\alpha^0), (x-\alpha^1), 106 | // ..., (x-\alpha^(K-1)). by convention, we omit the K-th coefficient (always 1) 107 | // from the result; also other coefficients are written in terms of the exponent 108 | // to \alpha to avoid the redundant calculation. (see also calculateecc below.) 109 | var GF256_GENPOLY = [[]]; 110 | for (var i = 0; i < 30; ++i) { 111 | var prevpoly = GF256_GENPOLY[i], poly = []; 112 | for (var j = 0; j <= i; ++j) { 113 | var a = (j < i ? GF256_MAP[prevpoly[j]] : 0); 114 | var b = GF256_MAP[(i + (prevpoly[j-1] || 0)) % 255]; 115 | poly.push(GF256_INVMAP[a ^ b]); 116 | } 117 | GF256_GENPOLY.push(poly); 118 | } 119 | 120 | // alphanumeric character mapping (cf. Table 5 in JIS X 0510:2004 p. 19) 121 | var ALPHANUMERIC_MAP = {}; 122 | for (var i = 0; i < 45; ++i) { 123 | ALPHANUMERIC_MAP['0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:'.charAt(i)] = i; 124 | } 125 | 126 | // mask functions in terms of row # and column # 127 | // (cf. Table 20 in JIS X 0510:2004 p. 42) 128 | var MASKFUNCS = [ 129 | function(i,j) { return (i+j) % 2 == 0; }, 130 | function(i,j) { return i % 2 == 0; }, 131 | function(i,j) { return j % 3 == 0; }, 132 | function(i,j) { return (i+j) % 3 == 0; }, 133 | function(i,j) { return (((i/2)|0) + ((j/3)|0)) % 2 == 0; }, 134 | function(i,j) { return (i*j) % 2 + (i*j) % 3 == 0; }, 135 | function(i,j) { return ((i*j) % 2 + (i*j) % 3) % 2 == 0; }, 136 | function(i,j) { return ((i+j) % 2 + (i*j) % 3) % 2 == 0; }]; 137 | 138 | // returns true when the version information has to be embeded. 139 | var needsverinfo = function(ver) { return ver > 6; }; 140 | 141 | // returns the size of entire QR code for given version. 142 | var getsizebyver = function(ver) { return 4 * ver + 17; }; 143 | 144 | // returns the number of bits available for code words in this version. 145 | var nfullbits = function(ver) { 146 | /* 147 | * |<--------------- n --------------->| 148 | * | |<----- n-17 ---->| | 149 | * +-------+ ///+-------+ ---- 150 | * | | ///| | ^ 151 | * | 9x9 | @@@@@ ///| 9x8 | | 152 | * | | # # # @5x5@ # # # | | | 153 | * +-------+ @@@@@ +-------+ | 154 | * # ---| 155 | * ^ | 156 | * # | 157 | * @@@@@ @@@@@ @@@@@ | n 158 | * @5x5@ @5x5@ @5x5@ n-17 159 | * @@@@@ @@@@@ @@@@@ | | 160 | * # | | 161 | * ////// v | 162 | * //////# ---| 163 | * +-------+ @@@@@ @@@@@ | 164 | * | | @5x5@ @5x5@ | 165 | * | 8x9 | @@@@@ @@@@@ | 166 | * | | v 167 | * +-------+ ---- 168 | * 169 | * when the entire code has n^2 modules and there are m^2-3 alignment 170 | * patterns, we have: 171 | * - 225 (= 9x9 + 9x8 + 8x9) modules for finder patterns and 172 | * format information; 173 | * - 2n-34 (= 2(n-17)) modules for timing patterns; 174 | * - 36 (= 3x6 + 6x3) modules for version information, if any; 175 | * - 25m^2-75 (= (m^2-3)(5x5)) modules for alignment patterns 176 | * if any, but 10m-20 (= 2(m-2)x5) of them overlaps with 177 | * timing patterns. 178 | */ 179 | var v = VERSIONS[ver]; 180 | var nbits = 16*ver*ver + 128*ver + 64; // finder, timing and format info. 181 | if (needsverinfo(ver)) nbits -= 36; // version information 182 | if (v[2].length) { // alignment patterns 183 | nbits -= 25 * v[2].length * v[2].length - 10 * v[2].length - 55; 184 | } 185 | return nbits; 186 | }; 187 | 188 | // returns the number of bits available for data portions (i.e. excludes ECC 189 | // bits but includes mode and length bits) in this version and ECC level. 190 | var ndatabits = function(ver, ecclevel) { 191 | var nbits = nfullbits(ver) & ~7; // no sub-octet code words 192 | var v = VERSIONS[ver]; 193 | nbits -= 8 * v[0][ecclevel] * v[1][ecclevel]; // ecc bits 194 | return nbits; 195 | } 196 | 197 | // returns the number of bits required for the length of data. 198 | // (cf. Table 3 in JIS X 0510:2004 p. 16) 199 | var ndatalenbits = function(ver, mode) { 200 | switch (mode) { 201 | case MODE_NUMERIC: return (ver < 10 ? 10 : ver < 27 ? 12 : 14); 202 | case MODE_ALPHANUMERIC: return (ver < 10 ? 9 : ver < 27 ? 11 : 13); 203 | case MODE_OCTET: return (ver < 10 ? 8 : 16); 204 | case MODE_KANJI: return (ver < 10 ? 8 : ver < 27 ? 10 : 12); 205 | } 206 | }; 207 | 208 | // returns the maximum length of data possible in given configuration. 209 | var getmaxdatalen = function(ver, mode, ecclevel) { 210 | var nbits = ndatabits(ver, ecclevel) - 4 - ndatalenbits(ver, mode); // 4 for mode bits 211 | switch (mode) { 212 | case MODE_NUMERIC: 213 | return ((nbits/10) | 0) * 3 + (nbits%10 < 4 ? 0 : nbits%10 < 7 ? 1 : 2); 214 | case MODE_ALPHANUMERIC: 215 | return ((nbits/11) | 0) * 2 + (nbits%11 < 6 ? 0 : 1); 216 | case MODE_OCTET: 217 | return (nbits/8) | 0; 218 | case MODE_KANJI: 219 | return (nbits/13) | 0; 220 | } 221 | }; 222 | 223 | // checks if the given data can be encoded in given mode, and returns 224 | // the converted data for the further processing if possible. otherwise 225 | // returns null. 226 | // 227 | // this function does not check the length of data; it is a duty of 228 | // encode function below (as it depends on the version and ECC level too). 229 | var validatedata = function(mode, data) { 230 | switch (mode) { 231 | case MODE_NUMERIC: 232 | if (!data.match(NUMERIC_REGEXP)) return null; 233 | return data; 234 | 235 | case MODE_ALPHANUMERIC: 236 | if (!data.match(ALPHANUMERIC_REGEXP)) return null; 237 | return data.toUpperCase(); 238 | 239 | case MODE_OCTET: 240 | if (typeof data === 'string') { // encode as utf-8 string 241 | var newdata = []; 242 | for (var i = 0; i < data.length; ++i) { 243 | var ch = data.charCodeAt(i); 244 | if (ch < 0x80) { 245 | newdata.push(ch); 246 | } else if (ch < 0x800) { 247 | newdata.push(0xc0 | (ch >> 6), 248 | 0x80 | (ch & 0x3f)); 249 | } else if (ch < 0x10000) { 250 | newdata.push(0xe0 | (ch >> 12), 251 | 0x80 | ((ch >> 6) & 0x3f), 252 | 0x80 | (ch & 0x3f)); 253 | } else { 254 | newdata.push(0xf0 | (ch >> 18), 255 | 0x80 | ((ch >> 12) & 0x3f), 256 | 0x80 | ((ch >> 6) & 0x3f), 257 | 0x80 | (ch & 0x3f)); 258 | } 259 | } 260 | return newdata; 261 | } else { 262 | return data; 263 | } 264 | } 265 | }; 266 | 267 | // returns the code words (sans ECC bits) for given data and configurations. 268 | // requires data to be preprocessed by validatedata. no length check is 269 | // performed, and everything has to be checked before calling this function. 270 | var encode = function(ver, mode, data, maxbuflen) { 271 | var buf = []; 272 | var bits = 0, remaining = 8; 273 | var datalen = data.length; 274 | 275 | // this function is intentionally no-op when n=0. 276 | var pack = function(x, n) { 277 | if (n >= remaining) { 278 | buf.push(bits | (x >> (n -= remaining))); 279 | while (n >= 8) buf.push((x >> (n -= 8)) & 255); 280 | bits = 0; 281 | remaining = 8; 282 | } 283 | if (n > 0) bits |= (x & ((1 << n) - 1)) << (remaining -= n); 284 | }; 285 | 286 | var nlenbits = ndatalenbits(ver, mode); 287 | pack(mode, 4); 288 | pack(datalen, nlenbits); 289 | 290 | switch (mode) { 291 | case MODE_NUMERIC: 292 | for (var i = 2; i < datalen; i += 3) { 293 | pack(parseInt(data.substring(i-2,i+1), 10), 10); 294 | } 295 | pack(parseInt(data.substring(i-2), 10), [0,4,7][datalen%3]); 296 | break; 297 | 298 | case MODE_ALPHANUMERIC: 299 | for (var i = 1; i < datalen; i += 2) { 300 | pack(ALPHANUMERIC_MAP[data.charAt(i-1)] * 45 + 301 | ALPHANUMERIC_MAP[data.charAt(i)], 11); 302 | } 303 | if (datalen % 2 == 1) { 304 | pack(ALPHANUMERIC_MAP[data.charAt(i-1)], 6); 305 | } 306 | break; 307 | 308 | case MODE_OCTET: 309 | for (var i = 0; i < datalen; ++i) { 310 | pack(data[i], 8); 311 | } 312 | break; 313 | }; 314 | 315 | // final bits. it is possible that adding terminator causes the buffer 316 | // to overflow, but then the buffer truncated to the maximum size will 317 | // be valid as the truncated terminator mode bits and padding is 318 | // identical in appearance (cf. JIS X 0510:2004 sec 8.4.8). 319 | pack(MODE_TERMINATOR, 4); 320 | if (remaining < 8) buf.push(bits); 321 | 322 | // the padding to fill up the remaining space. we should not add any 323 | // words when the overflow already occurred. 324 | while (buf.length + 1 < maxbuflen) buf.push(0xec, 0x11); 325 | if (buf.length < maxbuflen) buf.push(0xec); 326 | return buf; 327 | }; 328 | 329 | // calculates ECC code words for given code words and generator polynomial. 330 | // 331 | // this is quite similar to CRC calculation as both Reed-Solomon and CRC use 332 | // the certain kind of cyclic codes, which is effectively the division of 333 | // zero-augumented polynomial by the generator polynomial. the only difference 334 | // is that Reed-Solomon uses GF(2^8), instead of CRC's GF(2), and Reed-Solomon 335 | // uses the different generator polynomial than CRC's. 336 | var calculateecc = function(poly, genpoly) { 337 | var modulus = poly.slice(0); 338 | var polylen = poly.length, genpolylen = genpoly.length; 339 | for (var i = 0; i < genpolylen; ++i) modulus.push(0); 340 | for (var i = 0; i < polylen; ) { 341 | var quotient = GF256_INVMAP[modulus[i++]]; 342 | if (quotient >= 0) { 343 | for (var j = 0; j < genpolylen; ++j) { 344 | modulus[i+j] ^= GF256_MAP[(quotient + genpoly[j]) % 255]; 345 | } 346 | } 347 | } 348 | return modulus.slice(polylen); 349 | }; 350 | 351 | // auguments ECC code words to given code words. the resulting words are 352 | // ready to be encoded in the matrix. 353 | // 354 | // the much of actual augumenting procedure follows JIS X 0510:2004 sec 8.7. 355 | // the code is simplified using the fact that the size of each code & ECC 356 | // blocks is almost same; for example, when we have 4 blocks and 46 data words 357 | // the number of code words in those blocks are 11, 11, 12, 12 respectively. 358 | var augumenteccs = function(poly, nblocks, genpoly) { 359 | var subsizes = []; 360 | var subsize = (poly.length / nblocks) | 0, subsize0 = 0; 361 | var pivot = nblocks - poly.length % nblocks; 362 | for (var i = 0; i < pivot; ++i) { 363 | subsizes.push(subsize0); 364 | subsize0 += subsize; 365 | } 366 | for (var i = pivot; i < nblocks; ++i) { 367 | subsizes.push(subsize0); 368 | subsize0 += subsize+1; 369 | } 370 | subsizes.push(subsize0); 371 | 372 | var eccs = []; 373 | for (var i = 0; i < nblocks; ++i) { 374 | eccs.push(calculateecc(poly.slice(subsizes[i], subsizes[i+1]), genpoly)); 375 | } 376 | 377 | var result = []; 378 | var nitemsperblock = (poly.length / nblocks) | 0; 379 | for (var i = 0; i < nitemsperblock; ++i) { 380 | for (var j = 0; j < nblocks; ++j) { 381 | result.push(poly[subsizes[j] + i]); 382 | } 383 | } 384 | for (var j = pivot; j < nblocks; ++j) { 385 | result.push(poly[subsizes[j+1] - 1]); 386 | } 387 | for (var i = 0; i < genpoly.length; ++i) { 388 | for (var j = 0; j < nblocks; ++j) { 389 | result.push(eccs[j][i]); 390 | } 391 | } 392 | return result; 393 | }; 394 | 395 | // auguments BCH(p+q,q) code to the polynomial over GF(2), given the proper 396 | // genpoly. the both input and output are in binary numbers, and unlike 397 | // calculateecc genpoly should include the 1 bit for the highest degree. 398 | // 399 | // actual polynomials used for this procedure are as follows: 400 | // - p=10, q=5, genpoly=x^10+x^8+x^5+x^4+x^2+x+1 (JIS X 0510:2004 Appendix C) 401 | // - p=18, q=6, genpoly=x^12+x^11+x^10+x^9+x^8+x^5+x^2+1 (ibid. Appendix D) 402 | var augumentbch = function(poly, p, genpoly, q) { 403 | var modulus = poly << q; 404 | for (var i = p - 1; i >= 0; --i) { 405 | if ((modulus >> (q+i)) & 1) modulus ^= genpoly << i; 406 | } 407 | return (poly << q) | modulus; 408 | }; 409 | 410 | // creates the base matrix for given version. it returns two matrices, one of 411 | // them is the actual one and the another represents the "reserved" portion 412 | // (e.g. finder and timing patterns) of the matrix. 413 | // 414 | // some entries in the matrix may be undefined, rather than 0 or 1. this is 415 | // intentional (no initialization needed!), and putdata below will fill 416 | // the remaining ones. 417 | var makebasematrix = function(ver) { 418 | var v = VERSIONS[ver], n = getsizebyver(ver); 419 | var matrix = [], reserved = []; 420 | for (var i = 0; i < n; ++i) { 421 | matrix.push([]); 422 | reserved.push([]); 423 | } 424 | 425 | var blit = function(y, x, h, w, bits) { 426 | for (var i = 0; i < h; ++i) { 427 | for (var j = 0; j < w; ++j) { 428 | matrix[y+i][x+j] = (bits[i] >> j) & 1; 429 | reserved[y+i][x+j] = 1; 430 | } 431 | } 432 | }; 433 | 434 | // finder patterns and a part of timing patterns 435 | // will also mark the format information area (not yet written) as reserved. 436 | blit(0, 0, 9, 9, [0x7f, 0x41, 0x5d, 0x5d, 0x5d, 0x41, 0x17f, 0x00, 0x40]); 437 | blit(n-8, 0, 8, 9, [0x100, 0x7f, 0x41, 0x5d, 0x5d, 0x5d, 0x41, 0x7f]); 438 | blit(0, n-8, 9, 8, [0xfe, 0x82, 0xba, 0xba, 0xba, 0x82, 0xfe, 0x00, 0x00]); 439 | 440 | // the rest of timing patterns 441 | for (var i = 9; i < n-8; ++i) { 442 | matrix[6][i] = matrix[i][6] = ~i & 1; 443 | reserved[6][i] = reserved[i][6] = 1; 444 | } 445 | 446 | // alignment patterns 447 | var aligns = v[2], m = aligns.length; 448 | for (var i = 0; i < m; ++i) { 449 | var minj = (i==0 || i==m-1 ? 1 : 0), maxj = (i==0 ? m-1 : m); 450 | for (var j = minj; j < maxj; ++j) { 451 | blit(aligns[i], aligns[j], 5, 5, [0x1f, 0x11, 0x15, 0x11, 0x1f]); 452 | } 453 | } 454 | 455 | // version information 456 | if (needsverinfo(ver)) { 457 | var code = augumentbch(ver, 6, 0x1f25, 12); 458 | var k = 0; 459 | for (var i = 0; i < 6; ++i) { 460 | for (var j = 0; j < 3; ++j) { 461 | matrix[i][(n-11)+j] = matrix[(n-11)+j][i] = (code >> k++) & 1; 462 | reserved[i][(n-11)+j] = reserved[(n-11)+j][i] = 1; 463 | } 464 | } 465 | } 466 | 467 | return {matrix: matrix, reserved: reserved}; 468 | }; 469 | 470 | // fills the data portion (i.e. unmarked in reserved) of the matrix with given 471 | // code words. the size of code words should be no more than available bits, 472 | // and remaining bits are padded to 0 (cf. JIS X 0510:2004 sec 8.7.3). 473 | var putdata = function(matrix, reserved, buf) { 474 | var n = matrix.length; 475 | var k = 0, dir = -1; 476 | for (var i = n-1; i >= 0; i -= 2) { 477 | if (i == 6) --i; // skip the entire timing pattern column 478 | var jj = (dir < 0 ? n-1 : 0); 479 | for (var j = 0; j < n; ++j) { 480 | for (var ii = i; ii > i-2; --ii) { 481 | if (!reserved[jj][ii]) { 482 | // may overflow, but (undefined >> x) 483 | // is 0 so it will auto-pad to zero. 484 | matrix[jj][ii] = (buf[k >> 3] >> (~k&7)) & 1; 485 | ++k; 486 | } 487 | } 488 | jj += dir; 489 | } 490 | dir = -dir; 491 | } 492 | return matrix; 493 | }; 494 | 495 | // XOR-masks the data portion of the matrix. repeating the call with the same 496 | // arguments will revert the prior call (convenient in the matrix evaluation). 497 | var maskdata = function(matrix, reserved, mask) { 498 | var maskf = MASKFUNCS[mask]; 499 | var n = matrix.length; 500 | for (var i = 0; i < n; ++i) { 501 | for (var j = 0; j < n; ++j) { 502 | if (!reserved[i][j]) matrix[i][j] ^= maskf(i,j); 503 | } 504 | } 505 | return matrix; 506 | } 507 | 508 | // puts the format information. 509 | var putformatinfo = function(matrix, reserved, ecclevel, mask) { 510 | var n = matrix.length; 511 | var code = augumentbch((ecclevel << 3) | mask, 5, 0x537, 10) ^ 0x5412; 512 | for (var i = 0; i < 15; ++i) { 513 | var r = [0,1,2,3,4,5,7,8,n-7,n-6,n-5,n-4,n-3,n-2,n-1][i]; 514 | var c = [n-1,n-2,n-3,n-4,n-5,n-6,n-7,n-8,7,5,4,3,2,1,0][i]; 515 | matrix[r][8] = matrix[8][c] = (code >> i) & 1; 516 | // we don't have to mark those bits reserved; always done 517 | // in makebasematrix above. 518 | } 519 | return matrix; 520 | }; 521 | 522 | // evaluates the resulting matrix and returns the score (lower is better). 523 | // (cf. JIS X 0510:2004 sec 8.8.2) 524 | // 525 | // the evaluation procedure tries to avoid the problematic patterns naturally 526 | // occuring from the original matrix. for example, it penaltizes the patterns 527 | // which just look like the finder pattern which will confuse the decoder. 528 | // we choose the mask which results in the lowest score among 8 possible ones. 529 | // 530 | // note: zxing seems to use the same procedure and in many cases its choice 531 | // agrees to ours, but sometimes it does not. practically it doesn't matter. 532 | var evaluatematrix = function(matrix) { 533 | // N1+(k-5) points for each consecutive row of k same-colored modules, 534 | // where k >= 5. no overlapping row counts. 535 | var PENALTY_CONSECUTIVE = 3; 536 | // N2 points for each 2x2 block of same-colored modules. 537 | // overlapping block does count. 538 | var PENALTY_TWOBYTWO = 3; 539 | // N3 points for each pattern with >4W:1B:1W:3B:1W:1B or 540 | // 1B:1W:3B:1W:1B:>4W, or their multiples (e.g. highly unlikely, 541 | // but 13W:3B:3W:9B:3W:3B counts). 542 | var PENALTY_FINDERLIKE = 40; 543 | // N4*k points for every (5*k)% deviation from 50% black density. 544 | // i.e. k=1 for 55~60% and 40~45%, k=2 for 60~65% and 35~40%, etc. 545 | var PENALTY_DENSITY = 10; 546 | 547 | var evaluategroup = function(groups) { // assumes [W,B,W,B,W,...,B,W] 548 | var score = 0; 549 | for (var i = 0; i < groups.length; ++i) { 550 | if (groups[i] >= 5) score += PENALTY_CONSECUTIVE + (groups[i]-5); 551 | } 552 | for (var i = 5; i < groups.length; i += 2) { 553 | var p = groups[i]; 554 | if (groups[i-1] == p && groups[i-2] == 3*p && groups[i-3] == p && 555 | groups[i-4] == p && (groups[i-5] >= 4*p || groups[i+1] >= 4*p)) { 556 | // this part differs from zxing... 557 | score += PENALTY_FINDERLIKE; 558 | } 559 | } 560 | return score; 561 | }; 562 | 563 | var n = matrix.length; 564 | var score = 0, nblacks = 0; 565 | for (var i = 0; i < n; ++i) { 566 | var row = matrix[i]; 567 | var groups; 568 | 569 | // evaluate the current row 570 | groups = [0]; // the first empty group of white 571 | for (var j = 0; j < n; ) { 572 | var k; 573 | for (k = 0; j < n && row[j]; ++k) ++j; 574 | groups.push(k); 575 | for (k = 0; j < n && !row[j]; ++k) ++j; 576 | groups.push(k); 577 | } 578 | score += evaluategroup(groups); 579 | 580 | // evaluate the current column 581 | groups = [0]; 582 | for (var j = 0; j < n; ) { 583 | var k; 584 | for (k = 0; j < n && matrix[j][i]; ++k) ++j; 585 | groups.push(k); 586 | for (k = 0; j < n && !matrix[j][i]; ++k) ++j; 587 | groups.push(k); 588 | } 589 | score += evaluategroup(groups); 590 | 591 | // check the 2x2 box and calculate the density 592 | var nextrow = matrix[i+1] || []; 593 | nblacks += row[0]; 594 | for (var j = 1; j < n; ++j) { 595 | var p = row[j]; 596 | nblacks += p; 597 | // at least comparison with next row should be strict... 598 | if (row[j-1] == p && nextrow[j] === p && nextrow[j-1] === p) { 599 | score += PENALTY_TWOBYTWO; 600 | } 601 | } 602 | } 603 | 604 | score += PENALTY_DENSITY * ((Math.abs(nblacks / n / n - 0.5) / 0.05) | 0); 605 | return score; 606 | }; 607 | 608 | // returns the fully encoded QR code matrix which contains given data. 609 | // it also chooses the best mask automatically when mask is -1. 610 | var generate = function(data, ver, mode, ecclevel, mask) { 611 | var v = VERSIONS[ver]; 612 | var buf = encode(ver, mode, data, ndatabits(ver, ecclevel) >> 3); 613 | buf = augumenteccs(buf, v[1][ecclevel], GF256_GENPOLY[v[0][ecclevel]]); 614 | 615 | var result = makebasematrix(ver); 616 | var matrix = result.matrix, reserved = result.reserved; 617 | putdata(matrix, reserved, buf); 618 | 619 | if (mask < 0) { 620 | // find the best mask 621 | maskdata(matrix, reserved, 0); 622 | putformatinfo(matrix, reserved, ecclevel, 0); 623 | var bestmask = 0, bestscore = evaluatematrix(matrix); 624 | maskdata(matrix, reserved, 0); 625 | for (mask = 1; mask < 8; ++mask) { 626 | maskdata(matrix, reserved, mask); 627 | putformatinfo(matrix, reserved, ecclevel, mask); 628 | var score = evaluatematrix(matrix); 629 | if (bestscore > score) { 630 | bestscore = score; 631 | bestmask = mask; 632 | } 633 | maskdata(matrix, reserved, mask); 634 | } 635 | mask = bestmask; 636 | } 637 | 638 | maskdata(matrix, reserved, mask); 639 | putformatinfo(matrix, reserved, ecclevel, mask); 640 | return matrix; 641 | }; 642 | 643 | // the public interface is trivial; the options available are as follows: 644 | // 645 | // - version: an integer in [1,40]. when omitted (or -1) the smallest possible 646 | // version is chosen. 647 | // - mode: one of 'numeric', 'alphanumeric', 'octet'. when omitted the smallest 648 | // possible mode is chosen. 649 | // - ecclevel: one of 'L', 'M', 'Q', 'H'. defaults to 'L'. 650 | // - mask: an integer in [0,7]. when omitted (or -1) the best mask is chosen. 651 | // 652 | // for generate{HTML,PNG}: 653 | // 654 | // - modulesize: a number. this is a size of each modules in pixels, and 655 | // defaults to 5px. 656 | // - margin: a number. this is a size of margin in *modules*, and defaults to 657 | // 4 (white modules). the specficiation mandates the margin no less than 4 658 | // modules, so it is better not to alter this value unless you know what 659 | // you're doing. 660 | var QRCode = { 661 | 'generate': function(data, options) { 662 | var MODES = {'numeric': MODE_NUMERIC, 'alphanumeric': MODE_ALPHANUMERIC, 663 | 'octet': MODE_OCTET}; 664 | var ECCLEVELS = {'L': ECCLEVEL_L, 'M': ECCLEVEL_M, 'Q': ECCLEVEL_Q, 665 | 'H': ECCLEVEL_H}; 666 | 667 | options = options || {}; 668 | var ver = options.version || -1; 669 | var ecclevel = ECCLEVELS[(options.ecclevel || 'L').toUpperCase()]; 670 | var mode = options.mode ? MODES[options.mode.toLowerCase()] : -1; 671 | var mask = 'mask' in options ? options.mask : -1; 672 | 673 | if (mode < 0) { 674 | if (typeof data === 'string') { 675 | if (data.match(NUMERIC_REGEXP)) { 676 | mode = MODE_NUMERIC; 677 | } else if (data.match(ALPHANUMERIC_OUT_REGEXP)) { 678 | // while encode supports case-insensitive 679 | // encoding, we restrict the data to be 680 | // uppercased when auto-selecting the mode. 681 | mode = MODE_ALPHANUMERIC; 682 | } else { 683 | mode = MODE_OCTET; 684 | } 685 | } else { 686 | mode = MODE_OCTET; 687 | } 688 | } else if (!(mode == MODE_NUMERIC || mode == MODE_ALPHANUMERIC || 689 | mode == MODE_OCTET)) { 690 | throw 'invalid or unsupported mode'; 691 | } 692 | 693 | data = validatedata(mode, data); 694 | if (data === null) throw 'invalid data format'; 695 | 696 | if (ecclevel < 0 || ecclevel > 3) throw 'invalid ECC level'; 697 | 698 | if (ver < 0) { 699 | for (ver = 1; ver <= 40; ++ver) { 700 | if (data.length <= getmaxdatalen(ver, mode, ecclevel)) break; 701 | } 702 | if (ver > 40) throw 'too large data'; 703 | } else if (ver < 1 || ver > 40) { 704 | throw 'invalid version'; 705 | } 706 | 707 | if (mask != -1 && (mask < 0 || mask > 8)) throw 'invalid mask'; 708 | 709 | return generate(data, ver, mode, ecclevel, mask); 710 | }, 711 | 712 | 'generateHTML': function(data, options) { 713 | options = options || {}; 714 | var matrix = QRCode['generate'](data, options); 715 | var modsize = Math.max(options.modulesize || 5, 0.5); 716 | var margin = Math.max(options.margin !== null ? options.margin : 4, 0.0); 717 | 718 | var e = document.createElement('div'); 719 | var n = matrix.length; 720 | var html = ['']; 722 | for (var i = 0; i < n; ++i) { 723 | html.push(''); 724 | for (var j = 0; j < n; ++j) { 725 | html.push(''); 727 | } 728 | html.push(''); 729 | } 730 | e.className = 'qrcode'; 731 | e.innerHTML = html.join('') + '
'; 732 | return e; 733 | }, 734 | 735 | 'generateSVG': function(data, options) { 736 | options = options || {}; 737 | var matrix = QRCode['generate'](data, options); 738 | var n = matrix.length; 739 | var modsize = Math.max(options.modulesize || 5, 0.5); 740 | var margin = Math.max(options.margin? options.margin : 4, 0.0); 741 | var size = modsize * (n + 2 * margin); 742 | 743 | var common = ' class= "fg"'+' width="'+modsize+'" height="'+modsize+'"/>'; 744 | 745 | var e = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); 746 | e.setAttribute('viewBox', '0 0 '+size+' '+size); 747 | e.setAttribute('style', 'shape-rendering:crispEdges'); 748 | 749 | var svg = [ 750 | '', 751 | '', 753 | ]; 754 | 755 | var yo = margin * modsize; 756 | for (var y = 0; y < n; ++y) { 757 | var xo = margin * modsize; 758 | for (var x = 0; x < n; ++x) { 759 | if (matrix[y][x]) 760 | svg.push(' 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | AppleWatch 所有机型参数大全 8 | 9 | 10 | 11 | 12 | 13 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
31 |
32 |
33 | for 知乎链接图标抓取 34 | 35 |
36 |
37 |

Apple Watch 参数大全

38 |
39 | heart 40 | heart 41 |

×

42 |

{{thumbsUpCount}}

43 |
44 |
45 |
46 | 47 | 72 |
73 | 74 | 75 |
76 |
77 |
{{item.name_short}}
81 |
82 |
83 | 84 |
85 |

AppleWatch 信息将不再更新,有需要的可以自行去 github 更新,我不想花精力动它了。

86 |

之前用过一段时间它,后来就卖掉了,一天一充的不能称为手表。

87 |

《推荐一款运动手表:高驰 Apex2,和我的手表手环历程》

88 |
89 | 90 | 91 |
92 | 93 |
94 | 95 |
96 |
97 | apple watch image 98 |
99 |
{{appleWatch.name}}
100 |
101 | {{appleWatch.dateRelease}} 102 | ~ 103 | {{appleWatch.dateUnsupported}} 104 |
105 |
106 | 107 | 108 |
109 |
110 |
主要参数
111 |
112 |
113 |
114 |
CPU
115 |
{{appleWatch.cpu.name}} 116 |
{{appleWatch.cpu.bit}}
× {{appleWatch.cpu.coreCount}} 117 |
118 |
119 |
120 |
内存
121 |
{{appleWatch.memory.size}}
{{appleWatch.memory.type}}
122 |
123 |
124 |
存储空间
125 |
126 |
128 |
{{item.name}} :
129 |
{{item.value}}GB
130 |
131 |
132 |
133 | {{appleWatch.storage}}GB 134 |
135 |
136 | 137 |
138 |
系统
139 |
{{appleWatch.OS.from}} ~ {{appleWatch.OS.to}}
140 |
141 | 142 |
143 |
屏幕类型
144 |
{{appleWatch.screen.type}}
145 |
146 |
147 |
WiFi
148 |
{{appleWatch.wifi}}
149 |
150 |
151 |
eSIM
152 |
{{appleWatch.cellular || '-'}}
153 |
154 |
155 |
蓝牙
156 |
{{appleWatch.bluetooth}}
157 |
158 |
159 |
卫星导航
160 |
{{appleWatch.sensorGPS.join('、')}}
161 |
-
162 |
163 |
164 |
防水
165 |
{{appleWatch.waterResistance}}
水下{{appleWatch.waterResistanceThickness}}m
166 |
167 |
168 |
防尘
169 |
{{appleWatch.dustResistance || '-'}}
170 |
171 |
172 |
充电时长
173 |
174 |
175 |
177 |
178 |
{{item.name}}
179 |
{{item.value}}
180 |
181 |
182 |
183 |
184 |
185 | 186 |
187 |
配对条件
188 |
189 |
191 |
{{item.name}} :
192 |
{{item.value}}
193 |
194 |
195 |
196 |
197 |
型号
198 |
199 |
201 |
{{item.name}} :
202 |
203 |
205 |
{{model.name}} :
206 |
207 |
209 |
{{size.name}} :
210 |
{{size.value}}
211 |
212 |
213 |
{{model.value}}
214 | 215 |
216 |
217 |
{{item.value}}
218 |
219 |
220 |
221 |
222 | 223 | 224 |
225 |
226 |
传感器参数
227 |
228 |
229 | 230 |
231 |
加速度
232 |
{{appleWatch.sensorAccelerometer}}
233 |
{{appleWatch.sensorAccelerometer}}g
234 |
235 |
236 |
宽频芯片
237 |
{{appleWatch.ultraWideBand || '-'}}
238 |
239 |
240 |
心率检测
241 |
{{appleWatch.sensorHeart}} 代
242 |
243 |
244 |
陀螺仪
245 |
{{appleWatch.sensorGyroscope?'✓':'-'}}
246 |
247 |
248 |
光线感应
249 |
{{appleWatch.sensorAmbient?'✓':'-'}}
250 |
251 |
252 |
Siri
253 |
{{appleWatch.heySiri?'✓':'-'}}
254 |
255 |
256 |
指南针
257 |
{{appleWatch.sensorCompass?'✓':'-'}}
258 |
259 |
260 |
ECG支持
261 |
{{appleWatch.sensorECG?'✓':'-'}}
262 |
263 |
264 |
血氧检测
265 |
{{appleWatch.sensorBloodOxygen?'✓':'-'}}
266 |
267 |
268 |
温度检测
269 |
{{appleWatch.sensorTemperature?'✓':'-'}}
270 |
271 | 272 | 273 |
274 | 275 | 276 |
277 |
278 |
小尺寸
279 |
{{appleWatch.sizeSmall.screenSize}}
280 |
281 |
282 |
电池容量
283 |
284 |
286 |
{{item.name}} :
287 |
{{item.value}} mah
288 |
289 |
290 |
291 | {{appleWatch.sizeSmall.battery}} mah 292 |
293 |
294 |
295 |
电池电压
296 |
297 |
299 |
{{item.name}} :
300 |
{{item.value}} v
301 |
302 |
303 |
304 | {{appleWatch.sizeSmall.batteryVoltage}} v 305 |
306 |
307 | 308 |
309 | 310 | screen-info 311 | 312 | 313 | 314 | 315 | 317 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | {{ appleWatch.sizeSmall.pixelHeight}} 343 | {{appleWatch.sizeSmall.pixelWidth}} 344 | {{appleWatch.screen.brightness}} 345 | nit 346 | {{appleWatch.screen.pixelDensity}} 347 | ppi 348 | 3D 349 | T 350 | ouch 351 | 352 | 353 | 354 | 355 | 356 |
357 | 358 |
359 | 360 | watch-info 361 | 362 | 363 | 364 | 365 | 366 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 377 | 379 | 380 | 381 | 382 | {{item.height}} 383 | {{item.width}} 384 | {{item.thickness.toFixed(1)}} 385 | {{item.type}} 386 | {{item.weight.toFixed(1)}} 387 | g 388 | 389 | 390 | 391 | 392 |
393 |
394 | 395 | 396 |
397 |
398 |
大尺寸
399 |
{{appleWatch.sizeLarge.screenSize}}
400 |
401 | 402 |
403 |
电池容量
404 |
405 |
407 |
{{item.name}} :
408 |
{{item.value}} mah
409 |
410 |
411 |
412 | {{appleWatch.sizeLarge.battery}} mah 413 |
414 |
415 |
416 |
电池电压
417 |
418 |
420 |
{{item.name}} :
421 |
{{item.value}} v
422 |
423 |
424 |
425 | {{appleWatch.sizeLarge.batteryVoltage}} v 426 |
427 |
428 | 429 |
430 | 431 | screen-info 432 | 433 | 434 | 435 | 436 | 438 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | {{ appleWatch.sizeLarge.pixelHeight}} 464 | {{appleWatch.sizeLarge.pixelWidth}} 465 | {{appleWatch.screen.brightness}} 466 | nit 467 | {{appleWatch.screen.pixelDensity}} 468 | ppi 469 | 3D 470 | T 471 | ouch 472 | 473 | 474 | 475 | 476 | 477 | 478 |
479 | 480 |
481 | 482 | watch-info 483 | 484 | 485 | 486 | 487 | 488 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 499 | 501 | 502 | 503 | 504 | {{item.height}} 505 | {{item.width}} 506 | {{item.thickness.toFixed(1)}} 507 | {{item.type}} 508 | {{item.weight.toFixed(1)}} 509 | g 510 | 511 | 512 | 513 | 514 |
515 | 516 |
517 | 518 |
519 |
520 | 521 | 522 | 523 |
524 |
525 |
526 |

扫一扫

527 |
528 |
529 |
530 |
531 | qr 532 |
533 |

当前页

534 |
535 |
536 |
537 | qr 538 |
539 |

QQ群

540 |
541 |
542 | 545 |
546 |
547 | 548 | 549 | 555 | 556 |
557 | 558 | 559 | 569 | 570 | 571 | 572 | 573 | --------------------------------------------------------------------------------