├── .gitlab-ci.yml
├── .nojekyll
├── .vscode
└── settings.json
├── README.md
├── assets
├── 2PlayersExample.png
├── NewProject1.PNG
├── NewProject2.PNG
├── NewProject3.PNG
├── NewProject4.PNG
├── NewProject5.PNG
├── code.svg
├── customUIfin.png
├── emulator_config.png
├── favicon.ico
├── help.svg
├── linkedin.svg
├── logo.png
├── style.css
├── thumb_player.png
├── thumbnails_sprite.png
├── tizen_studio_install.png
└── tizen_tv_sdk_install.png
├── gitbook
├── book
│ └── anker.js
├── fonts
│ └── fontawesome
│ │ ├── FontAwesome.otf
│ │ ├── fontawesome-webfont.eot
│ │ ├── fontawesome-webfont.svg
│ │ ├── fontawesome-webfont.ttf
│ │ ├── fontawesome-webfont.woff
│ │ └── fontawesome-webfont.woff2
├── gitbook-plugin-copy-code-button
│ └── toggle.js
├── gitbook-plugin-fontsettings
│ ├── fontsettings.js
│ └── website.css
├── gitbook-plugin-highlight
│ ├── ebook.css
│ └── website.css
├── gitbook-plugin-hints
│ └── plugin-hints.css
├── gitbook-plugin-lunr
│ ├── lunr.min.js
│ └── search-lunr.js
├── gitbook-plugin-search
│ ├── lunr.min.js
│ ├── search-engine.js
│ ├── search.css
│ └── search.js
├── gitbook.js
├── images
│ ├── apple-touch-icon-precomposed-152.png
│ └── favicon.ico
├── style.css
└── theme.js
├── index.html
├── package-lock.json
├── ps4.md
├── ps4
├── api.md
├── getting_started.md
├── integrations.md
└── releases.md
├── ps5
├── api.md
├── css_customizations.md
├── getting_started.md
├── integrations.md
├── licenses.md
├── releases.md
└── timed_metadata.md
├── ps5_xbox_tizen_webos.md
└── sidebar.md
/.gitlab-ci.yml:
--------------------------------------------------------------------------------
1 | image: alpine:latest
2 |
3 | pages:
4 | stage: deploy
5 | script:
6 | - echo 'Nothing to do...'
7 | artifacts:
8 | paths:
9 | - public
10 | only:
11 | - master
12 |
--------------------------------------------------------------------------------
/.nojekyll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/.nojekyll
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "cSpell.words": [
3 | "Tizen"
4 | ]
5 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | IMA SDK for Client-Side Ad Insertion1 PAL SDK for Client-Side Ad Insertion1 IMA DAI SDK for Server-Side Ad Insertion1
4 |
5 | # NexPlayer SDK for Tizen, WebOS, Hisense, Xbox and PlayStation
6 |
7 | NexPlayer™ provides a media player for Smart TVs operating on Tizen, WebOS and Hisense and for consoles such as Xbox, PlayStation 4 and PlayStation 5. It includes support for HLS, DASH, and progressive download.
8 |
9 | The default UI is easily customizable to fit the user's personal preferences (e.g. icons, colors, etc).
10 |
11 |
1 These libraries are not supported in Xbox70 | 71 | ## Platform support 72 | 73 | NexPlayer supports several platforms and models: 74 | 75 |
Platform | 79 |Minimum model and year | 80 |Supported content | 81 |
---|---|---|
Samsung Tizen | 84 |Tizen 2.3 (2015) | 85 |DASH/HLS + PlayReady/Widevine | 86 |
LG WebOS | 89 |WebOS 3.0 (2016) | 90 |DASH/HLS + PlayReady/Widevine | 91 |
Hisense | 94 |Contact us | 95 |DASH/HLS + PlayReady/Widevine1 | 96 |
PlayStation 4 | 99 |Original (2013) | 100 |DASH + PlayReady2, HLS Clear | 101 |
PlayStation 5 | 104 |Standard/Digital (2020) | 105 |DASH/HLS + PlayReady | 106 |
Xbox One | 109 |Original (2013) | 110 |DASH/HLS + PlayReady | 111 |
Xbox Series S/X | 114 |Original (2020) | 115 |DASH/HLS + PlayReady | 116 |
1 Please, note that each Hisense device has its own restrictions regarding the DRM support.120 |
2 PS4 only supports security levels up to SL 2000121 | -------------------------------------------------------------------------------- /assets/2PlayersExample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/2PlayersExample.png -------------------------------------------------------------------------------- /assets/NewProject1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/NewProject1.PNG -------------------------------------------------------------------------------- /assets/NewProject2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/NewProject2.PNG -------------------------------------------------------------------------------- /assets/NewProject3.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/NewProject3.PNG -------------------------------------------------------------------------------- /assets/NewProject4.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/NewProject4.PNG -------------------------------------------------------------------------------- /assets/NewProject5.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/NewProject5.PNG -------------------------------------------------------------------------------- /assets/code.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/customUIfin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/customUIfin.png -------------------------------------------------------------------------------- /assets/emulator_config.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/emulator_config.png -------------------------------------------------------------------------------- /assets/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/favicon.ico -------------------------------------------------------------------------------- /assets/help.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/linkedin.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/logo.png -------------------------------------------------------------------------------- /assets/style.css: -------------------------------------------------------------------------------- 1 | article, 2 | aside, 3 | details, 4 | figcaption, 5 | figure, 6 | footer, 7 | header, 8 | hgroup, 9 | main, 10 | nav, 11 | section, 12 | summary { 13 | display: block 14 | } 15 | .app-sub-sidebar li::before { 16 | content: '' !important; 17 | } 18 | audio, 19 | canvas, 20 | video { 21 | display: inline-block 22 | } 23 | 24 | audio:not([controls]) { 25 | display: none; 26 | height: 0 27 | } 28 | 29 | [hidden] { 30 | display: none 31 | } 32 | 33 | html { 34 | font-family: sans-serif; 35 | -webkit-text-size-adjust: 100%; 36 | -ms-text-size-adjust: 100% 37 | } 38 | 39 | body { 40 | margin: 0 41 | } 42 | 43 | a:focus { 44 | outline: thin dotted 45 | } 46 | 47 | a:active, 48 | a:hover { 49 | outline: 0 50 | } 51 | 52 | h1 { 53 | font-size: 2em; 54 | margin: .67em 0 55 | } 56 | 57 | abbr[title] { 58 | border-bottom: 1px dotted 59 | } 60 | 61 | b, 62 | strong { 63 | font-weight: 700 64 | } 65 | 66 | dfn { 67 | font-style: italic 68 | } 69 | 70 | hr { 71 | -moz-box-sizing: content-box; 72 | box-sizing: content-box; 73 | height: 0 74 | } 75 | 76 | mark { 77 | background: #ff0; 78 | color: #000 79 | } 80 | 81 | code, 82 | kbd, 83 | pre, 84 | samp { 85 | font-family: monospace, serif; 86 | font-size: 1em 87 | } 88 | 89 | pre { 90 | white-space: pre-wrap 91 | } 92 | 93 | q { 94 | quotes: "\201C""\201D""\2018""\2019" 95 | } 96 | 97 | small { 98 | font-size: 80% 99 | } 100 | 101 | sub, 102 | sup { 103 | font-size: 75%; 104 | line-height: 0; 105 | position: relative; 106 | vertical-align: baseline 107 | } 108 | 109 | sup { 110 | top: -.5em 111 | } 112 | 113 | sub { 114 | bottom: -.25em 115 | } 116 | 117 | img { 118 | border: 0; 119 | margin: 10px; 120 | } 121 | 122 | img.icon { 123 | width:12px; 124 | height:auto; 125 | } 126 | 127 | svg:not(:root) { 128 | overflow: hidden 129 | } 130 | 131 | figure { 132 | margin: 0 133 | } 134 | 135 | fieldset { 136 | border: 1px solid silver; 137 | margin: 0 2px; 138 | padding: .35em .625em .75em 139 | } 140 | 141 | legend { 142 | border: 0; 143 | padding: 0 144 | } 145 | 146 | button, 147 | input, 148 | select, 149 | textarea { 150 | font-family: inherit; 151 | font-size: 100%; 152 | margin: 0 153 | } 154 | 155 | button, 156 | input { 157 | line-height: normal 158 | } 159 | 160 | button, 161 | select { 162 | text-transform: none 163 | } 164 | 165 | button, 166 | html input[type=button], 167 | input[type=reset], 168 | input[type=submit] { 169 | -webkit-appearance: button; 170 | cursor: pointer 171 | } 172 | 173 | button[disabled], 174 | html input[disabled] { 175 | cursor: default 176 | } 177 | 178 | input[type=checkbox], 179 | input[type=radio] { 180 | box-sizing: border-box; 181 | padding: 0 182 | } 183 | 184 | input[type=search] { 185 | -webkit-appearance: textfield; 186 | -moz-box-sizing: content-box; 187 | -webkit-box-sizing: content-box; 188 | box-sizing: content-box 189 | } 190 | 191 | input[type=search]::-webkit-search-cancel-button, 192 | input[type=search]::-webkit-search-decoration { 193 | -webkit-appearance: none 194 | } 195 | 196 | button::-moz-focus-inner, 197 | input::-moz-focus-inner { 198 | border: 0; 199 | padding: 0 200 | } 201 | 202 | textarea { 203 | overflow: auto; 204 | vertical-align: top 205 | } 206 | 207 | table { 208 | border-collapse: collapse; 209 | border-spacing: 0 210 | } 211 | 212 | .link-inherit { 213 | color: inherit 214 | } 215 | 216 | .link-inherit:focus, 217 | .link-inherit:hover { 218 | color: inherit 219 | } 220 | 221 | .hidden { 222 | display: none 223 | } 224 | 225 | .alert { 226 | padding: 5px; 227 | margin-bottom: 20px; 228 | color: #444; 229 | background: #eee; 230 | border-bottom: 5px solid #ddd; 231 | display:block; 232 | } 233 | 234 | .alert-success { 235 | background: #dff0d8; 236 | border-color: #d6e9c6; 237 | color: #3c763d 238 | } 239 | 240 | .alert-info { 241 | background: #d9edf7; 242 | border-color: #bce8f1; 243 | color: #31708f 244 | } 245 | 246 | .alert-danger { 247 | background: #f2dede; 248 | border-color: #ebccd1; 249 | color: #a94442 250 | } 251 | 252 | .alert-warning { 253 | background: #fcf8e3; 254 | border-color: #faebcc; 255 | color: #8a6d3b 256 | } 257 | 258 | .hints-icon { 259 | display: table-cell; 260 | padding-right: 15px; 261 | padding-left: 5px; 262 | } 263 | .hints-container { 264 | display: table-cell; 265 | } 266 | 267 | td::before{ 268 | content:' ' !important; 269 | position:absolute; 270 | } 271 | .hideText{ 272 | color: #ffffff; 273 | position: absolute; 274 | top: -100rem; 275 | 276 | } 277 | .blocks{ 278 | border: solid 0.5px #dbcfcf; 279 | } 280 | .titleBlocks{ 281 | color: #ffffff !important; 282 | background-color: #C80000; 283 | padding: 3%; 284 | margin-top: 0%; 285 | text-align: center; 286 | } 287 | .list{ 288 | margin-top: -1rem !important; 289 | margin-left: -1rem; 290 | list-style-type: none; 291 | } 292 | .listsContainer{ 293 | display: grid; 294 | grid-template-columns: 33% 33% 33%; 295 | grid-template-rows: 33% 33% 37%; 296 | column-gap: 1rem; 297 | row-gap: 1rem; 298 | 299 | } 300 | .listsContainer div:nth-child(3) { 301 | grid-column: 2; 302 | grid-row: 3 / 1; 303 | } 304 | .titles{ 305 | color: #ffffff; 306 | width: 250px; 307 | } 308 | .markdown-section h4 { 309 | margin: 0px 0 30px 0; 310 | } 311 | .markdown-section th { 312 | color:white; 313 | } 314 | .markdown-section thead { 315 | background: #C80000; 316 | } 317 | /*! normalize.css v2.1.0 | MIT License | git.io/normalize */ 318 | article, 319 | aside, 320 | details, 321 | figcaption, 322 | figure, 323 | footer, 324 | header, 325 | hgroup, 326 | main, 327 | nav, 328 | section, 329 | summary { 330 | display: block 331 | } 332 | 333 | audio, 334 | canvas, 335 | video { 336 | display: inline-block 337 | } 338 | 339 | audio:not([controls]) { 340 | display: none; 341 | height: 0 342 | } 343 | 344 | [hidden] { 345 | display: none 346 | } 347 | 348 | html { 349 | font-family: sans-serif; 350 | -webkit-text-size-adjust: 100%; 351 | -ms-text-size-adjust: 100% 352 | } 353 | 354 | body { 355 | margin: 0 356 | } 357 | 358 | a:focus { 359 | outline: thin dotted 360 | } 361 | 362 | a:active, 363 | a:hover { 364 | outline: 0 365 | } 366 | 367 | h1 { 368 | font-size: 2em; 369 | margin: .67em 0 370 | } 371 | 372 | abbr[title] { 373 | border-bottom: 1px dotted 374 | } 375 | 376 | b, 377 | strong { 378 | font-weight: 700 379 | } 380 | 381 | dfn { 382 | font-style: italic 383 | } 384 | 385 | hr { 386 | -moz-box-sizing: content-box; 387 | box-sizing: content-box; 388 | height: 0 389 | } 390 | 391 | mark { 392 | background: #ff0; 393 | color: #000 394 | } 395 | 396 | code, 397 | kbd, 398 | pre, 399 | samp { 400 | font-family: monospace, serif; 401 | font-size: 1em 402 | } 403 | 404 | pre { 405 | white-space: pre-wrap 406 | } 407 | 408 | q { 409 | quotes: "\201C""\201D""\2018""\2019" 410 | } 411 | 412 | small { 413 | font-size: 80% 414 | } 415 | 416 | sub, 417 | sup { 418 | font-size: 75%; 419 | line-height: 0; 420 | position: relative; 421 | vertical-align: baseline 422 | } 423 | 424 | sup { 425 | top: -.5em 426 | } 427 | 428 | sub { 429 | bottom: -.25em 430 | } 431 | 432 | img { 433 | border: 0; 434 | margin: 10px; 435 | } 436 | 437 | svg:not(:root) { 438 | overflow: hidden 439 | } 440 | 441 | figure { 442 | margin: 0 443 | } 444 | 445 | fieldset { 446 | border: 1px solid silver; 447 | margin: 0 2px; 448 | padding: .35em .625em .75em 449 | } 450 | 451 | legend { 452 | border: 0; 453 | padding: 0 454 | } 455 | 456 | button, 457 | input, 458 | select, 459 | textarea { 460 | font-family: inherit; 461 | font-size: 100%; 462 | margin: 0 463 | } 464 | 465 | button, 466 | input { 467 | line-height: normal 468 | } 469 | 470 | button, 471 | select { 472 | text-transform: none 473 | } 474 | 475 | button, 476 | html input[type=button], 477 | input[type=reset], 478 | input[type=submit] { 479 | -webkit-appearance: button; 480 | cursor: pointer 481 | } 482 | 483 | button[disabled], 484 | html input[disabled] { 485 | cursor: default 486 | } 487 | 488 | input[type=checkbox], 489 | input[type=radio] { 490 | box-sizing: border-box; 491 | padding: 0 492 | } 493 | 494 | input[type=search] { 495 | -webkit-appearance: textfield; 496 | -moz-box-sizing: content-box; 497 | -webkit-box-sizing: content-box; 498 | box-sizing: content-box 499 | } 500 | 501 | input[type=search]::-webkit-search-cancel-button, 502 | input[type=search]::-webkit-search-decoration { 503 | -webkit-appearance: none 504 | } 505 | 506 | button::-moz-focus-inner, 507 | input::-moz-focus-inner { 508 | border: 0; 509 | padding: 0 510 | } 511 | 512 | textarea { 513 | overflow: auto; 514 | vertical-align: top 515 | } 516 | 517 | table { 518 | border-collapse: collapse; 519 | border-spacing: 0; 520 | } 521 | 522 | .link-inherit { 523 | color: inherit 524 | } 525 | 526 | .link-inherit:focus, 527 | .link-inherit:hover { 528 | color: inherit 529 | } 530 | 531 | .hidden { 532 | display: none 533 | } 534 | 535 | .alert { 536 | padding: 5px; 537 | margin-bottom: 20px; 538 | color: #444; 539 | background: #eee; 540 | border-bottom: 5px solid #ddd; 541 | display:block; 542 | } 543 | 544 | .alert-success { 545 | background: #dff0d8; 546 | border-color: #d6e9c6; 547 | color: #3c763d 548 | } 549 | 550 | .alert-info { 551 | background: #d9edf7; 552 | border-color: #bce8f1; 553 | color: #31708f 554 | } 555 | 556 | .alert-danger { 557 | background: #f2dede; 558 | border-color: #ebccd1; 559 | color: #a94442 560 | } 561 | 562 | .alert-warning { 563 | background: #fcf8e3; 564 | border-color: #faebcc; 565 | color: #8a6d3b 566 | } 567 | 568 | .hints-icon { 569 | display: table-cell; 570 | padding-right: 15px; 571 | padding-left: 5px; 572 | } 573 | .hints-container { 574 | display: table-cell; 575 | } 576 | 577 | .app-sub-sidebar li::before { 578 | content: '' !important; 579 | } 580 | 581 | td::before{ 582 | content:' ' !important; 583 | position:absolute; 584 | } 585 | .hideText{ 586 | color: #ffffff; 587 | position: absolute; 588 | top: -100rem; 589 | 590 | } 591 | .blocks{ 592 | border: solid 0.5px #dbcfcf; 593 | } 594 | .titleBlocks{ 595 | color: #ffffff !important; 596 | background-color: #C80000; 597 | padding: 3%; 598 | margin-top: 0%; 599 | text-align: center; 600 | } 601 | .list{ 602 | margin-top: -1rem !important; 603 | margin-left: -1rem; 604 | list-style-type: none; 605 | } 606 | .listsContainer{ 607 | display: grid; 608 | grid-template-columns: 33% 33% 33%; 609 | grid-template-rows: 33% 33% 37%; 610 | column-gap: 1rem; 611 | row-gap: 1rem; 612 | 613 | } 614 | .listsContainer div:nth-child(3) { 615 | grid-column: 2; 616 | grid-row: 4 / 1; 617 | } 618 | 619 | .titles{ 620 | color: #ffffff; 621 | width: 450px; 622 | } 623 | 624 | .abstractTable { 625 | display: grid; 626 | grid-template-columns: 1fr 1fr 1fr; 627 | align-items: stretch; 628 | } 629 | 630 | .gridColumn { 631 | display: flex; 632 | flex-direction: column; 633 | justify-content: space-between; 634 | } 635 | 636 | .gridColumn .contentCell:last-of-type { 637 | border-bottom: solid 1px #ddd; 638 | } 639 | 640 | .gridColumn:last-of-type .contentCell { 641 | border-right: solid 1px #ddd; 642 | } 643 | 644 | .titleCell { 645 | background-color: rgb(200, 0, 0); 646 | border: 1px solid #ddd; 647 | border-right: none; 648 | color: #ffffff; 649 | font-weight: bold; 650 | padding: 6px 13px; 651 | text-align: center; 652 | } 653 | 654 | .contentCell { 655 | border-left: solid 1px #ddd; 656 | display: flex; 657 | flex-direction: column; 658 | height: 100%; 659 | justify-content: space-between; 660 | } 661 | 662 | .contentCell div { 663 | border-bottom: solid 1px #ddd; 664 | display: flex; 665 | flex-direction: column; 666 | height: inherit; 667 | justify-content: center; 668 | padding: 5px 10px; 669 | }.contentCell div:last-of-type { 670 | border-bottom: none; 671 | } 672 | 673 | .contentCell div:nth-child(2n) { 674 | background-color: #f8f8f8; 675 | } -------------------------------------------------------------------------------- /assets/thumb_player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/thumb_player.png -------------------------------------------------------------------------------- /assets/thumbnails_sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/thumbnails_sprite.png -------------------------------------------------------------------------------- /assets/tizen_studio_install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/tizen_studio_install.png -------------------------------------------------------------------------------- /assets/tizen_tv_sdk_install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/assets/tizen_tv_sdk_install.png -------------------------------------------------------------------------------- /gitbook/book/anker.js: -------------------------------------------------------------------------------- 1 | require(["gitbook"], function(gitbook) { 2 | gitbook.events.bind("page.change", function() { 3 | if (location.hash) { 4 | document.location = location.hash; 5 | } 6 | }); 7 | }); 8 | -------------------------------------------------------------------------------- /gitbook/fonts/fontawesome/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/gitbook/fonts/fontawesome/FontAwesome.otf -------------------------------------------------------------------------------- /gitbook/fonts/fontawesome/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/gitbook/fonts/fontawesome/fontawesome-webfont.eot -------------------------------------------------------------------------------- /gitbook/fonts/fontawesome/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/gitbook/fonts/fontawesome/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /gitbook/fonts/fontawesome/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/gitbook/fonts/fontawesome/fontawesome-webfont.woff -------------------------------------------------------------------------------- /gitbook/fonts/fontawesome/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/gitbook/fonts/fontawesome/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-copy-code-button/toggle.js: -------------------------------------------------------------------------------- 1 | require(["gitbook", "jQuery"], function(gitbook, $) { 2 | function selectElementText(el){ 3 | var range = document.createRange(); 4 | range.selectNodeContents(el); 5 | var selection = window.getSelection(); 6 | selection.removeAllRanges(); 7 | selection.addRange(range); 8 | } 9 | 10 | function getSelectedText() { 11 | var t = ''; 12 | if (window.getSelection) { 13 | t = window.getSelection(); 14 | } else if (document.getSelection) { 15 | t = document.getSelection(); 16 | } else if (document.selection) { 17 | t = document.selection.createRange().text; 18 | } 19 | return t; 20 | } 21 | 22 | function copyToClipboard(text) { 23 | if (window.clipboardData && window.clipboardData.setData) { 24 | // IE specific code path to prevent textarea being shown while dialog is visible. 25 | return clipboardData.setData("Text", text); 26 | 27 | } else if (document.queryCommandSupported && document.queryCommandSupported("copy")) { 28 | var textarea = document.createElement("textarea"); 29 | textarea.textContent = text; 30 | textarea.style.position = "fixed"; // Prevent scrolling to bottom of page in MS Edge. 31 | document.body.appendChild(textarea); 32 | textarea.select(); 33 | try { 34 | return document.execCommand("copy"); // Security exception may be thrown by some browsers. 35 | } catch (ex) { 36 | console.warn("Copy to clipboard failed.", ex); 37 | return false; 38 | } finally { 39 | document.body.removeChild(textarea); 40 | } 41 | } 42 | } 43 | 44 | function expand(chapter) { 45 | chapter.show(); 46 | if (chapter.parent().attr('class') != 'summary' 47 | && chapter.parent().attr('class') != 'book-summary' 48 | && chapter.length != 0 49 | ) { 50 | expand(chapter.parent()); 51 | } 52 | } 53 | 54 | gitbook.events.bind("page.change", function() { 55 | $("pre").each(function(){ 56 | $(this).css("position", "relative"); 57 | 58 | var $copyCodeButton = $(""); 59 | $copyCodeButton.css({"position": "absolute", "top": "5px", "right": "5px", "padding": "3px", "background-color":"#313E4E", "color":"white", "border-radius": "5px" , "-moz-border-radius": "5px", "-webkit-border-radius": "5px", "border": "2px solid #CCCCCC"}); 60 | $copyCodeButton.click(function(){ 61 | var $codeContainer = $(this).siblings("code"); 62 | if($codeContainer) { 63 | selectElementText($codeContainer.get(0)); 64 | var selectedText = getSelectedText(); 65 | 66 | var buttonNewText = ""; 67 | if(copyToClipboard(selectedText) == true){ 68 | buttonNewText = "Copied"; 69 | selectElementText($codeContainer.get(0)); 70 | } else { 71 | buttonNewText = "Unable to copy"; 72 | selectElementText($codeContainer.get(0)); 73 | } 74 | 75 | $(this).text(buttonNewText); 76 | var that = this; 77 | setTimeout(function(){ 78 | $(that).text("Copy"); 79 | }, 2000); 80 | } 81 | }); 82 | 83 | $(this).append($copyCodeButton); 84 | }); 85 | }); 86 | }); 87 | -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-fontsettings/fontsettings.js: -------------------------------------------------------------------------------- 1 | require(['gitbook', 'jquery'], function(gitbook, $) { 2 | // Configuration 3 | var MAX_SIZE = 4, 4 | MIN_SIZE = 0, 5 | BUTTON_ID; 6 | 7 | // Current fontsettings state 8 | var fontState; 9 | 10 | // Default themes 11 | var THEMES = [ 12 | { 13 | config: 'white', 14 | text: 'White', 15 | id: 0 16 | }, 17 | { 18 | config: 'sepia', 19 | text: 'Sepia', 20 | id: 1 21 | }, 22 | { 23 | config: 'night', 24 | text: 'Night', 25 | id: 2 26 | } 27 | ]; 28 | 29 | // Default font families 30 | var FAMILIES = [ 31 | { 32 | config: 'serif', 33 | text: 'Serif', 34 | id: 0 35 | }, 36 | { 37 | config: 'sans', 38 | text: 'Sans', 39 | id: 1 40 | } 41 | ]; 42 | 43 | // Return configured themes 44 | function getThemes() { 45 | return THEMES; 46 | } 47 | 48 | // Modify configured themes 49 | function setThemes(themes) { 50 | THEMES = themes; 51 | updateButtons(); 52 | } 53 | 54 | // Return configured font families 55 | function getFamilies() { 56 | return FAMILIES; 57 | } 58 | 59 | // Modify configured font families 60 | function setFamilies(families) { 61 | FAMILIES = families; 62 | updateButtons(); 63 | } 64 | 65 | // Save current font settings 66 | function saveFontSettings() { 67 | gitbook.storage.set('fontState', fontState); 68 | update(); 69 | } 70 | 71 | // Increase font size 72 | function enlargeFontSize(e) { 73 | e.preventDefault(); 74 | if (fontState.size >= MAX_SIZE) return; 75 | 76 | fontState.size++; 77 | saveFontSettings(); 78 | } 79 | 80 | // Decrease font size 81 | function reduceFontSize(e) { 82 | e.preventDefault(); 83 | if (fontState.size <= MIN_SIZE) return; 84 | 85 | fontState.size--; 86 | saveFontSettings(); 87 | } 88 | 89 | // Change font family 90 | function changeFontFamily(configName, e) { 91 | if (e && e instanceof Event) { 92 | e.preventDefault(); 93 | } 94 | 95 | var familyId = getFontFamilyId(configName); 96 | fontState.family = familyId; 97 | saveFontSettings(); 98 | } 99 | 100 | // Change type of color theme 101 | function changeColorTheme(configName, e) { 102 | if (e && e instanceof Event) { 103 | e.preventDefault(); 104 | } 105 | 106 | var $book = gitbook.state.$book; 107 | 108 | // Remove currently applied color theme 109 | if (fontState.theme !== 0) 110 | $book.removeClass('color-theme-'+fontState.theme); 111 | 112 | // Set new color theme 113 | var themeId = getThemeId(configName); 114 | fontState.theme = themeId; 115 | if (fontState.theme !== 0) 116 | $book.addClass('color-theme-'+fontState.theme); 117 | 118 | saveFontSettings(); 119 | } 120 | 121 | // Return the correct id for a font-family config key 122 | // Default to first font-family 123 | function getFontFamilyId(configName) { 124 | // Search for plugin configured font family 125 | var configFamily = $.grep(FAMILIES, function(family) { 126 | return family.config == configName; 127 | })[0]; 128 | // Fallback to default font family 129 | return (!!configFamily)? configFamily.id : 0; 130 | } 131 | 132 | // Return the correct id for a theme config key 133 | // Default to first theme 134 | function getThemeId(configName) { 135 | // Search for plugin configured theme 136 | var configTheme = $.grep(THEMES, function(theme) { 137 | return theme.config == configName; 138 | })[0]; 139 | // Fallback to default theme 140 | return (!!configTheme)? configTheme.id : 0; 141 | } 142 | 143 | function update() { 144 | var $book = gitbook.state.$book; 145 | 146 | $('.font-settings .font-family-list li').removeClass('active'); 147 | $('.font-settings .font-family-list li:nth-child('+(fontState.family+1)+')').addClass('active'); 148 | 149 | $book[0].className = $book[0].className.replace(/\bfont-\S+/g, ''); 150 | $book.addClass('font-size-'+fontState.size); 151 | $book.addClass('font-family-'+fontState.family); 152 | 153 | if(fontState.theme !== 0) { 154 | $book[0].className = $book[0].className.replace(/\bcolor-theme-\S+/g, ''); 155 | $book.addClass('color-theme-'+fontState.theme); 156 | } 157 | } 158 | 159 | function init(config) { 160 | // Search for plugin configured font family 161 | var configFamily = getFontFamilyId(config.family), 162 | configTheme = getThemeId(config.theme); 163 | 164 | // Instantiate font state object 165 | fontState = gitbook.storage.get('fontState', { 166 | size: config.size || 2, 167 | family: configFamily, 168 | theme: configTheme 169 | }); 170 | 171 | update(); 172 | } 173 | 174 | function updateButtons() { 175 | // Remove existing fontsettings buttons 176 | if (!!BUTTON_ID) { 177 | gitbook.toolbar.removeButton(BUTTON_ID); 178 | } 179 | 180 | // Create buttons in toolbar 181 | BUTTON_ID = gitbook.toolbar.createButton({ 182 | icon: 'fa fa-font', 183 | label: 'Font Settings', 184 | className: 'font-settings', 185 | dropdown: [ 186 | [ 187 | { 188 | text: 'A', 189 | className: 'font-reduce', 190 | onClick: reduceFontSize 191 | }, 192 | { 193 | text: 'A', 194 | className: 'font-enlarge', 195 | onClick: enlargeFontSize 196 | } 197 | ], 198 | $.map(FAMILIES, function(family) { 199 | family.onClick = function(e) { 200 | return changeFontFamily(family.config, e); 201 | }; 202 | 203 | return family; 204 | }), 205 | $.map(THEMES, function(theme) { 206 | theme.onClick = function(e) { 207 | return changeColorTheme(theme.config, e); 208 | }; 209 | 210 | return theme; 211 | }) 212 | ] 213 | }); 214 | } 215 | 216 | // Init configuration at start 217 | gitbook.events.bind('start', function(e, config) { 218 | var opts = config.fontsettings; 219 | 220 | // Generate buttons at start 221 | updateButtons(); 222 | 223 | // Init current settings 224 | init(opts); 225 | }); 226 | 227 | // Expose API 228 | gitbook.fontsettings = { 229 | enlargeFontSize: enlargeFontSize, 230 | reduceFontSize: reduceFontSize, 231 | setTheme: changeColorTheme, 232 | setFamily: changeFontFamily, 233 | getThemes: getThemes, 234 | setThemes: setThemes, 235 | getFamilies: getFamilies, 236 | setFamilies: setFamilies 237 | }; 238 | }); 239 | 240 | 241 | -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-fontsettings/website.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Theme 1 3 | */ 4 | .color-theme-1 .dropdown-menu { 5 | background-color: #111111; 6 | border-color: #7e888b; 7 | } 8 | .color-theme-1 .dropdown-menu .dropdown-caret .caret-inner { 9 | border-bottom: 9px solid #111111; 10 | } 11 | .color-theme-1 .dropdown-menu .buttons { 12 | border-color: #7e888b; 13 | } 14 | .color-theme-1 .dropdown-menu .button { 15 | color: #afa790; 16 | } 17 | .color-theme-1 .dropdown-menu .button:hover { 18 | color: #73553c; 19 | } 20 | /* 21 | * Theme 2 22 | */ 23 | .color-theme-2 .dropdown-menu { 24 | background-color: #2d3143; 25 | border-color: #272a3a; 26 | } 27 | .color-theme-2 .dropdown-menu .dropdown-caret .caret-inner { 28 | border-bottom: 9px solid #2d3143; 29 | } 30 | .color-theme-2 .dropdown-menu .buttons { 31 | border-color: #272a3a; 32 | } 33 | .color-theme-2 .dropdown-menu .button { 34 | color: #62677f; 35 | } 36 | .color-theme-2 .dropdown-menu .button:hover { 37 | color: #f4f4f5; 38 | } 39 | .book .book-header .font-settings .font-enlarge { 40 | line-height: 30px; 41 | font-size: 1.4em; 42 | } 43 | .book .book-header .font-settings .font-reduce { 44 | line-height: 30px; 45 | font-size: 1em; 46 | } 47 | .book.color-theme-1 .book-body { 48 | color: #704214; 49 | background: #f3eacb; 50 | } 51 | .book.color-theme-1 .book-body .page-wrapper .page-inner section { 52 | background: #f3eacb; 53 | } 54 | .book.color-theme-2 .book-body { 55 | color: #bdcadb; 56 | background: #1c1f2b; 57 | } 58 | .book.color-theme-2 .book-body .page-wrapper .page-inner section { 59 | background: #1c1f2b; 60 | } 61 | .book.font-size-0 .book-body .page-inner section { 62 | font-size: 1.2rem; 63 | } 64 | .book.font-size-1 .book-body .page-inner section { 65 | font-size: 1.4rem; 66 | } 67 | .book.font-size-2 .book-body .page-inner section { 68 | font-size: 1.6rem; 69 | } 70 | .book.font-size-3 .book-body .page-inner section { 71 | font-size: 2.2rem; 72 | } 73 | .book.font-size-4 .book-body .page-inner section { 74 | font-size: 4rem; 75 | } 76 | .book.font-family-0 { 77 | font-family: Georgia, serif; 78 | } 79 | .book.font-family-1 { 80 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 81 | } 82 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal { 83 | color: #704214; 84 | } 85 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal a { 86 | color: inherit; 87 | } 88 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h1, 89 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h2, 90 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h3, 91 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h4, 92 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h5, 93 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h6 { 94 | color: inherit; 95 | } 96 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h1, 97 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h2 { 98 | border-color: inherit; 99 | } 100 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h6 { 101 | color: inherit; 102 | } 103 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal hr { 104 | background-color: inherit; 105 | } 106 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal blockquote { 107 | border-color: inherit; 108 | } 109 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre, 110 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code { 111 | background: #fdf6e3; 112 | color: #657b83; 113 | border-color: #f8df9c; 114 | } 115 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal .highlight { 116 | background-color: inherit; 117 | } 118 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table th, 119 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table td { 120 | border-color: #f5d06c; 121 | } 122 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table tr { 123 | color: inherit; 124 | background-color: #fdf6e3; 125 | border-color: #444444; 126 | } 127 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table tr:nth-child(2n) { 128 | background-color: #fbeecb; 129 | } 130 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal { 131 | color: #bdcadb; 132 | } 133 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal a { 134 | color: #3eb1d0; 135 | } 136 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h1, 137 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h2, 138 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h3, 139 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h4, 140 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h5, 141 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h6 { 142 | color: #fffffa; 143 | } 144 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h1, 145 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h2 { 146 | border-color: #373b4e; 147 | } 148 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h6 { 149 | color: #373b4e; 150 | } 151 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal hr { 152 | background-color: #373b4e; 153 | } 154 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal blockquote { 155 | border-color: #373b4e; 156 | } 157 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre, 158 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code { 159 | color: #9dbed8; 160 | background: #2d3143; 161 | border-color: #2d3143; 162 | } 163 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal .highlight { 164 | background-color: #282a39; 165 | } 166 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table th, 167 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table td { 168 | border-color: #3b3f54; 169 | } 170 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table tr { 171 | color: #b6c2d2; 172 | background-color: #2d3143; 173 | border-color: #3b3f54; 174 | } 175 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table tr:nth-child(2n) { 176 | background-color: #35394b; 177 | } 178 | .book.color-theme-1 .book-header { 179 | color: #afa790; 180 | background: transparent; 181 | } 182 | .book.color-theme-1 .book-header .btn { 183 | color: #afa790; 184 | } 185 | .book.color-theme-1 .book-header .btn:hover { 186 | color: #73553c; 187 | background: none; 188 | } 189 | .book.color-theme-1 .book-header h1 { 190 | color: #704214; 191 | } 192 | .book.color-theme-2 .book-header { 193 | color: #7e888b; 194 | background: transparent; 195 | } 196 | .book.color-theme-2 .book-header .btn { 197 | color: #3b3f54; 198 | } 199 | .book.color-theme-2 .book-header .btn:hover { 200 | color: #fffff5; 201 | background: none; 202 | } 203 | .book.color-theme-2 .book-header h1 { 204 | color: #bdcadb; 205 | } 206 | .book.color-theme-1 .book-body .navigation { 207 | color: #afa790; 208 | } 209 | .book.color-theme-1 .book-body .navigation:hover { 210 | color: #73553c; 211 | } 212 | .book.color-theme-2 .book-body .navigation { 213 | color: #383f52; 214 | } 215 | .book.color-theme-2 .book-body .navigation:hover { 216 | color: #fffff5; 217 | } 218 | /* 219 | * Theme 1 220 | */ 221 | .book.color-theme-1 .book-summary { 222 | color: #afa790; 223 | background: #111111; 224 | border-right: 1px solid rgba(0, 0, 0, 0.07); 225 | } 226 | .book.color-theme-1 .book-summary .book-search { 227 | background: transparent; 228 | } 229 | .book.color-theme-1 .book-summary .book-search input, 230 | .book.color-theme-1 .book-summary .book-search input:focus { 231 | border: 1px solid transparent; 232 | } 233 | .book.color-theme-1 .book-summary ul.summary li.divider { 234 | background: #7e888b; 235 | box-shadow: none; 236 | } 237 | .book.color-theme-1 .book-summary ul.summary li i.fa-check { 238 | color: #33cc33; 239 | } 240 | .book.color-theme-1 .book-summary ul.summary li.done > a { 241 | color: #877f6a; 242 | } 243 | .book.color-theme-1 .book-summary ul.summary li a, 244 | .book.color-theme-1 .book-summary ul.summary li span { 245 | color: #877f6a; 246 | background: transparent; 247 | font-weight: normal; 248 | } 249 | .book.color-theme-1 .book-summary ul.summary li.active > a, 250 | .book.color-theme-1 .book-summary ul.summary li a:hover { 251 | color: #704214; 252 | background: transparent; 253 | font-weight: normal; 254 | } 255 | /* 256 | * Theme 2 257 | */ 258 | .book.color-theme-2 .book-summary { 259 | color: #bcc1d2; 260 | background: #2d3143; 261 | border-right: none; 262 | } 263 | .book.color-theme-2 .book-summary .book-search { 264 | background: transparent; 265 | } 266 | .book.color-theme-2 .book-summary .book-search input, 267 | .book.color-theme-2 .book-summary .book-search input:focus { 268 | border: 1px solid transparent; 269 | } 270 | .book.color-theme-2 .book-summary ul.summary li.divider { 271 | background: #272a3a; 272 | box-shadow: none; 273 | } 274 | .book.color-theme-2 .book-summary ul.summary li i.fa-check { 275 | color: #33cc33; 276 | } 277 | .book.color-theme-2 .book-summary ul.summary li.done > a { 278 | color: #62687f; 279 | } 280 | .book.color-theme-2 .book-summary ul.summary li a, 281 | .book.color-theme-2 .book-summary ul.summary li span { 282 | color: #c1c6d7; 283 | background: transparent; 284 | font-weight: 600; 285 | } 286 | .book.color-theme-2 .book-summary ul.summary li.active > a, 287 | .book.color-theme-2 .book-summary ul.summary li a:hover { 288 | color: #f4f4f5; 289 | background: #252737; 290 | font-weight: 600; 291 | } 292 | -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-highlight/ebook.css: -------------------------------------------------------------------------------- 1 | pre, 2 | code { 3 | /* http://jmblog.github.io/color-themes-for-highlightjs */ 4 | /* Tomorrow Comment */ 5 | /* Tomorrow Red */ 6 | /* Tomorrow Orange */ 7 | /* Tomorrow Yellow */ 8 | /* Tomorrow Green */ 9 | /* Tomorrow Aqua */ 10 | /* Tomorrow Blue */ 11 | /* Tomorrow Purple */ 12 | } 13 | pre .hljs-comment, 14 | code .hljs-comment, 15 | pre .hljs-title, 16 | code .hljs-title { 17 | color: #8e908c; 18 | } 19 | pre .hljs-variable, 20 | code .hljs-variable, 21 | pre .hljs-attribute, 22 | code .hljs-attribute, 23 | pre .hljs-tag, 24 | code .hljs-tag, 25 | pre .hljs-regexp, 26 | code .hljs-regexp, 27 | pre .hljs-deletion, 28 | code .hljs-deletion, 29 | pre .ruby .hljs-constant, 30 | code .ruby .hljs-constant, 31 | pre .xml .hljs-tag .hljs-title, 32 | code .xml .hljs-tag .hljs-title, 33 | pre .xml .hljs-pi, 34 | code .xml .hljs-pi, 35 | pre .xml .hljs-doctype, 36 | code .xml .hljs-doctype, 37 | pre .html .hljs-doctype, 38 | code .html .hljs-doctype, 39 | pre .css .hljs-id, 40 | code .css .hljs-id, 41 | pre .css .hljs-class, 42 | code .css .hljs-class, 43 | pre .css .hljs-pseudo, 44 | code .css .hljs-pseudo { 45 | color: #c82829; 46 | } 47 | pre .hljs-number, 48 | code .hljs-number, 49 | pre .hljs-preprocessor, 50 | code .hljs-preprocessor, 51 | pre .hljs-pragma, 52 | code .hljs-pragma, 53 | pre .hljs-built_in, 54 | code .hljs-built_in, 55 | pre .hljs-literal, 56 | code .hljs-literal, 57 | pre .hljs-params, 58 | code .hljs-params, 59 | pre .hljs-constant, 60 | code .hljs-constant { 61 | color: #f5871f; 62 | } 63 | pre .ruby .hljs-class .hljs-title, 64 | code .ruby .hljs-class .hljs-title, 65 | pre .css .hljs-rules .hljs-attribute, 66 | code .css .hljs-rules .hljs-attribute { 67 | color: #eab700; 68 | } 69 | pre .hljs-string, 70 | code .hljs-string, 71 | pre .hljs-value, 72 | code .hljs-value, 73 | pre .hljs-inheritance, 74 | code .hljs-inheritance, 75 | pre .hljs-header, 76 | code .hljs-header, 77 | pre .hljs-addition, 78 | code .hljs-addition, 79 | pre .ruby .hljs-symbol, 80 | code .ruby .hljs-symbol, 81 | pre .xml .hljs-cdata, 82 | code .xml .hljs-cdata { 83 | color: #718c00; 84 | } 85 | pre .css .hljs-hexcolor, 86 | code .css .hljs-hexcolor { 87 | color: #3e999f; 88 | } 89 | pre .hljs-function, 90 | code .hljs-function, 91 | pre .python .hljs-decorator, 92 | code .python .hljs-decorator, 93 | pre .python .hljs-title, 94 | code .python .hljs-title, 95 | pre .ruby .hljs-function .hljs-title, 96 | code .ruby .hljs-function .hljs-title, 97 | pre .ruby .hljs-title .hljs-keyword, 98 | code .ruby .hljs-title .hljs-keyword, 99 | pre .perl .hljs-sub, 100 | code .perl .hljs-sub, 101 | pre .javascript .hljs-title, 102 | code .javascript .hljs-title, 103 | pre .coffeescript .hljs-title, 104 | code .coffeescript .hljs-title { 105 | color: #4271ae; 106 | } 107 | pre .hljs-keyword, 108 | code .hljs-keyword, 109 | pre .javascript .hljs-function, 110 | code .javascript .hljs-function { 111 | color: #8959a8; 112 | } 113 | pre .hljs, 114 | code .hljs { 115 | display: block; 116 | background: white; 117 | color: #4d4d4c; 118 | padding: 0.5em; 119 | } 120 | pre .coffeescript .javascript, 121 | code .coffeescript .javascript, 122 | pre .javascript .xml, 123 | code .javascript .xml, 124 | pre .tex .hljs-formula, 125 | code .tex .hljs-formula, 126 | pre .xml .javascript, 127 | code .xml .javascript, 128 | pre .xml .vbscript, 129 | code .xml .vbscript, 130 | pre .xml .css, 131 | code .xml .css, 132 | pre .xml .hljs-cdata, 133 | code .xml .hljs-cdata { 134 | opacity: 0.5; 135 | } 136 | -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-hints/plugin-hints.css: -------------------------------------------------------------------------------- 1 | .hints-icon { 2 | display: table-cell; 3 | padding-right: 15px; 4 | padding-left: 5px; 5 | } 6 | 7 | .hints-container { 8 | display: table-cell; 9 | } 10 | -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-lunr/lunr.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 0.5.12 3 | * Copyright (C) 2015 Oliver Nightingale 4 | * MIT Licensed 5 | * @license 6 | */ 7 | !function(){var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.5.12",t.utils={},t.utils.warn=function(t){return function(e){t.console&&console.warn&&console.warn(e)}}(this),t.EventEmitter=function(){this.events={}},t.EventEmitter.prototype.addListener=function(){var t=Array.prototype.slice.call(arguments),e=t.pop(),n=t;if("function"!=typeof e)throw new TypeError("last argument must be a function");n.forEach(function(t){this.hasHandler(t)||(this.events[t]=[]),this.events[t].push(e)},this)},t.EventEmitter.prototype.removeListener=function(t,e){if(this.hasHandler(t)){var n=this.events[t].indexOf(e);this.events[t].splice(n,1),this.events[t].length||delete this.events[t]}},t.EventEmitter.prototype.emit=function(t){if(this.hasHandler(t)){var e=Array.prototype.slice.call(arguments,1);this.events[t].forEach(function(t){t.apply(void 0,e)})}},t.EventEmitter.prototype.hasHandler=function(t){return t in this.events},t.tokenizer=function(t){return arguments.length&&null!=t&&void 0!=t?Array.isArray(t)?t.map(function(t){return t.toLowerCase()}):t.toString().trim().toLowerCase().split(/[\s\-]+/):[]},t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions={},t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(e){var i=t.Pipeline.registeredFunctions[e];if(!i)throw new Error("Cannot load un-registered function: "+e);n.add(i)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){t.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._stack.indexOf(e);if(-1==i)throw new Error("Cannot find existingFn");i+=1,this._stack.splice(i,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._stack.indexOf(e);if(-1==i)throw new Error("Cannot find existingFn");this._stack.splice(i,0,n)},t.Pipeline.prototype.remove=function(t){var e=this._stack.indexOf(t);-1!=e&&this._stack.splice(e,1)},t.Pipeline.prototype.run=function(t){for(var e=[],n=t.length,i=this._stack.length,o=0;n>o;o++){for(var r=t[o],s=0;i>s&&(r=this._stack[s](r,o,t),void 0!==r);s++);void 0!==r&&e.push(r)}return e},t.Pipeline.prototype.reset=function(){this._stack=[]},t.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},t.Vector.Node=function(t,e,n){this.idx=t,this.val=e,this.next=n},t.Vector.prototype.insert=function(e,n){this._magnitude=void 0;var i=this.list;if(!i)return this.list=new t.Vector.Node(e,n,i),this.length++;if(e
').html(content); 65 | 66 | $link.appendTo($title); 67 | $title.appendTo($li); 68 | $content.appendTo($li); 69 | $li.appendTo($searchList); 70 | }); 71 | } 72 | 73 | function launchSearch(q) { 74 | // Add class for loading 75 | $body.addClass('with-search'); 76 | $body.addClass('search-loading'); 77 | 78 | // Launch search query 79 | throttle(gitbook.search.query(q, 0, MAX_RESULTS) 80 | .then(function(results) { 81 | displayResults(results); 82 | }) 83 | .always(function() { 84 | $body.removeClass('search-loading'); 85 | }), 1000); 86 | } 87 | 88 | function closeSearch() { 89 | $body.removeClass('with-search'); 90 | $bookSearchResults.removeClass('open'); 91 | } 92 | 93 | function launchSearchFromQueryString() { 94 | var q = getParameterByName('q'); 95 | if (q && q.length > 0) { 96 | // Update search input 97 | $searchInput.val(q); 98 | 99 | // Launch search 100 | launchSearch(q); 101 | } 102 | } 103 | 104 | function bindSearch() { 105 | // Bind DOM 106 | $searchInput = $('#book-search-input input'); 107 | $bookSearchResults = $('#book-search-results'); 108 | $searchList = $bookSearchResults.find('.search-results-list'); 109 | $searchTitle = $bookSearchResults.find('.search-results-title'); 110 | $searchResultsCount = $searchTitle.find('.search-results-count'); 111 | $searchQuery = $searchTitle.find('.search-query'); 112 | 113 | // Launch query based on input content 114 | function handleUpdate() { 115 | var q = $searchInput.val(); 116 | 117 | if (q.length == 0) { 118 | closeSearch(); 119 | } 120 | else { 121 | launchSearch(q); 122 | } 123 | } 124 | 125 | // Detect true content change in search input 126 | // Workaround for IE < 9 127 | var propertyChangeUnbound = false; 128 | $searchInput.on('propertychange', function(e) { 129 | if (e.originalEvent.propertyName == 'value') { 130 | handleUpdate(); 131 | } 132 | }); 133 | 134 | // HTML5 (IE9 & others) 135 | $searchInput.on('input', function(e) { 136 | // Unbind propertychange event for IE9+ 137 | if (!propertyChangeUnbound) { 138 | $(this).unbind('propertychange'); 139 | propertyChangeUnbound = true; 140 | } 141 | 142 | handleUpdate(); 143 | }); 144 | 145 | // Push to history on blur 146 | $searchInput.on('blur', function(e) { 147 | // Update history state 148 | if (usePushState) { 149 | var uri = updateQueryString('q', $(this).val()); 150 | history.pushState({ path: uri }, null, uri); 151 | } 152 | }); 153 | } 154 | 155 | gitbook.events.on('page.change', function() { 156 | bindSearch(); 157 | closeSearch(); 158 | 159 | // Launch search based on query parameter 160 | if (gitbook.search.isInitialized()) { 161 | launchSearchFromQueryString(); 162 | } 163 | }); 164 | 165 | gitbook.events.on('search.ready', function() { 166 | bindSearch(); 167 | 168 | // Launch search from query param at start 169 | launchSearchFromQueryString(); 170 | }); 171 | 172 | function getParameterByName(name) { 173 | var url = window.location.href; 174 | name = name.replace(/[\[\]]/g, '\\$&'); 175 | var regex = new RegExp('[?&]' + name + '(=([^]*)|&|#|$)', 'i'), 176 | results = regex.exec(url); 177 | if (!results) return null; 178 | if (!results[2]) return ''; 179 | return decodeURIComponent(results[2].replace(/\+/g, ' ')); 180 | } 181 | 182 | function updateQueryString(key, value) { 183 | value = encodeURIComponent(value); 184 | 185 | var url = window.location.href; 186 | var re = new RegExp('([?&])' + key + '=.*?(&|#|$)(.*)', 'gi'), 187 | hash; 188 | 189 | if (re.test(url)) { 190 | if (typeof value !== 'undefined' && value !== null) 191 | return url.replace(re, '$1' + key + '=' + value + '$2$3'); 192 | else { 193 | hash = url.split('#'); 194 | url = hash[0].replace(re, '$1$3').replace(/(&|\?)$/, ''); 195 | if (typeof hash[1] !== 'undefined' && hash[1] !== null) 196 | url += '#' + hash[1]; 197 | return url; 198 | } 199 | } 200 | else { 201 | if (typeof value !== 'undefined' && value !== null) { 202 | var separator = url.indexOf('?') !== -1 ? '&' : '?'; 203 | hash = url.split('#'); 204 | url = hash[0] + separator + key + '=' + value; 205 | if (typeof hash[1] !== 'undefined' && hash[1] !== null) 206 | url += '#' + hash[1]; 207 | return url; 208 | } 209 | else 210 | return url; 211 | } 212 | } 213 | }); 214 | -------------------------------------------------------------------------------- /gitbook/images/apple-touch-icon-precomposed-152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/gitbook/images/apple-touch-icon-precomposed-152.png -------------------------------------------------------------------------------- /gitbook/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NexPlayer/TizenWebOS/7a61f883c89888bc7e9eb08d2ec15b22b983d973/gitbook/images/favicon.ico -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |