path
stringlengths
5
312
repo_name
stringlengths
5
116
content
stringlengths
2
1.04M
third_party/polymer2/bower_components/paper-item/paper-item-body.html
catapult-project/catapult
<!-- @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt --> <link rel="import" href="../polymer/polymer.html"> <link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> <link rel="import" href="../paper-styles/default-theme.html"> <link rel="import" href="../paper-styles/typography.html"> <!-- Use `<paper-item-body>` in a `<paper-item>` or `<paper-icon-item>` to make two- or three- line items. It is a flex item that is a vertical flexbox. <paper-item> <paper-item-body two-line> <div>Show your status</div> <div secondary>Your status is visible to everyone</div> </paper-item-body> </paper-item> The child elements with the `secondary` attribute is given secondary text styling. ### Styling The following custom properties and mixins are available for styling: Custom property | Description | Default ----------------|-------------|---------- `--paper-item-body-two-line-min-height` | Minimum height of a two-line item | `72px` `--paper-item-body-three-line-min-height` | Minimum height of a three-line item | `88px` `--paper-item-body-secondary-color` | Foreground color for the `secondary` area | `--secondary-text-color` `--paper-item-body-secondary` | Mixin applied to the `secondary` area | `{}` --> <dom-module id="paper-item-body"> <template> <style> :host { overflow: hidden; /* needed for text-overflow: ellipsis to work on ff */ @apply --layout-vertical; @apply --layout-center-justified; @apply --layout-flex; } :host([two-line]) { min-height: var(--paper-item-body-two-line-min-height, 72px); } :host([three-line]) { min-height: var(--paper-item-body-three-line-min-height, 88px); } :host > ::slotted(*) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } :host > ::slotted([secondary]) { @apply --paper-font-body1; color: var(--paper-item-body-secondary-color, var(--secondary-text-color)); @apply --paper-item-body-secondary; } </style> <slot></slot> </template> <script> Polymer({ is: 'paper-item-body' }); </script> </dom-module>
ajax/libs/mini.css/2.3.3/mini-lite.css
him2him2/cdnjs
@charset "UTF-8"; /* Flavor name: Lite (mini-lite) Author: Angelos Chalaris (chalarangelo@gmail.com) Maintainers: Angelos Chalaris mini.css version: v2.3.3 */ /* Browsers resets and base typography. */ html { font-size: 16px; } html, * { font-family: -apple-system, BlinkMacSystemFont,"Segoe UI","Roboto", "Droid Sans","Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.5; -webkit-text-size-adjust: 100%; } * { font-size: 1rem; } body { margin: 0; color: #212121; background: #f8f8f8; } article, aside, section, figcaption, figure, main, details, menu { display: block; } summary { display: list-item; } abbr[title] { border-bottom: none; text-decoration: underline; } audio, video { display: inline-block; } svg:not(:root) { overflow: hidden; } input { overflow: visible; } img { max-width: 100%; height: auto; } dfn { font-style: italic; } h1, h2, h3, h4, h5, h6 { line-height: 1.2em; margin: 0.75rem 0.5rem; font-weight: 500; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { color: #424242; display: block; margin-top: -0.25rem; } h1 { font-size: 2rem; } h2 { font-size: 1.6875rem; } h3 { font-size: 1.4375rem; } h4 { font-size: 1.1875rem; } h5 { font-size: 1rem; } h6 { font-size: 0.8125rem; } p { margin: 0.5rem; } ol, ul { margin: 0.5rem; padding-left: 1rem; } b, strong { font-weight: 700; } hr { box-sizing: content-box; border: 0; overflow: visible; line-height: 1.25em; margin: 0.5rem; height: 0; border-top: 0.0625rem solid #8c8c8c; } blockquote { display: block; position: relative; font-style: italic; background: #eeeeee; margin: 0.5rem; padding: 0.5rem 0.5rem 1.5rem; border-radius: 0 2px 2px 0; } blockquote:after { position: absolute; font-style: normal; font-size: 0.875rem; color: #505050; left: 0.625rem; bottom: 0; content: "— " attr(cite); } code, kbd, pre, samp { font-family: monospace, monospace; } code { border-radius: 0.125rem; background: #e6e6e6; padding: 0.125rem 0.25rem; } pre { overflow: auto; border-radius: 0 0.125rem 0.125rem 0; background: #e6e6e6; padding: 0.75rem; margin: 0.5rem; } kbd { border-radius: 0.125rem; background: #0c0c0c; color: #fafafa; padding: 0.125rem 0.25rem; } small, sup, sub { font-size: 0.75em; } sup { top: -0.5em; } sub { bottom: -0.25em; } sup, sub { line-height: 0; position: relative; vertical-align: baseline; } a { color: #0277bd; text-decoration: underline; opacity: 1; transition: opacity 0.3s; } a:visited { color: #01579b; } a:hover, a:focus { opacity: 0.75; } figcaption { font-size: 0.8125rem; color: #424242; } /* Definitions for the grid system. */ .container { margin: 0 auto; padding: 0 0.75rem; } .row { box-sizing: border-box; display: -webkit-box; -webkit-box-flex: 0; -webkit-box-orient: horizontal; -webkit-box-direction: normal; display: -webkit-flex; display: flex; -webkit-flex: 0 1 auto; flex: 0 1 auto; -webkit-flex-flow: row wrap; flex-flow: row wrap; } .col-sm, [class^='col-sm-'], [class^='col-sm-offset-'], .row[class*='cols-sm-'] > * { box-sizing: border-box; -webkit-box-flex: 0; -webkit-flex: 0 0 auto; flex: 0 0 auto; padding: 0 0.25rem; } .col-sm, .row.cols-sm > * { -webkit-box-flex: 1; max-width: 100%; -webkit-flex-grow: 1; flex-grow: 1; -webkit-flex-basis: 0; flex-basis: 0; } .col-sm-1, .row.cols-sm-1 > * { max-width: 8.33333%; -webkit-flex-basis: 8.33333%; flex-basis: 8.33333%; } .col-sm-2, .row.cols-sm-2 > * { max-width: 16.66667%; -webkit-flex-basis: 16.66667%; flex-basis: 16.66667%; } .col-sm-3, .row.cols-sm-3 > * { max-width: 25%; -webkit-flex-basis: 25%; flex-basis: 25%; } .col-sm-4, .row.cols-sm-4 > * { max-width: 33.33333%; -webkit-flex-basis: 33.33333%; flex-basis: 33.33333%; } .col-sm-5, .row.cols-sm-5 > * { max-width: 41.66667%; -webkit-flex-basis: 41.66667%; flex-basis: 41.66667%; } .col-sm-6, .row.cols-sm-6 > * { max-width: 50%; -webkit-flex-basis: 50%; flex-basis: 50%; } .col-sm-7, .row.cols-sm-7 > * { max-width: 58.33333%; -webkit-flex-basis: 58.33333%; flex-basis: 58.33333%; } .col-sm-8, .row.cols-sm-8 > * { max-width: 66.66667%; -webkit-flex-basis: 66.66667%; flex-basis: 66.66667%; } .col-sm-9, .row.cols-sm-9 > * { max-width: 75%; -webkit-flex-basis: 75%; flex-basis: 75%; } .col-sm-10, .row.cols-sm-10 > * { max-width: 83.33333%; -webkit-flex-basis: 83.33333%; flex-basis: 83.33333%; } .col-sm-11, .row.cols-sm-11 > * { max-width: 91.66667%; -webkit-flex-basis: 91.66667%; flex-basis: 91.66667%; } .col-sm-12, .row.cols-sm-12 > * { max-width: 100%; -webkit-flex-basis: 100%; flex-basis: 100%; } .col-sm-offset-0 { margin-left: 0; } .col-sm-offset-1 { margin-left: 8.33333%; } .col-sm-offset-2 { margin-left: 16.66667%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-4 { margin-left: 33.33333%; } .col-sm-offset-5 { margin-left: 41.66667%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-7 { margin-left: 58.33333%; } .col-sm-offset-8 { margin-left: 66.66667%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-10 { margin-left: 83.33333%; } .col-sm-offset-11 { margin-left: 91.66667%; } .col-sm-normal { -webkit-order: initial; order: initial; } .col-sm-first { -webkit-order: -999; order: -999; } .col-sm-last { -webkit-order: 999; order: 999; } @media screen and (min-width: 768px) { .col-md, [class^='col-md-'], [class^='col-md-offset-'], .row[class*='cols-md-'] > * { box-sizing: border-box; -webkit-box-flex: 0; -webkit-flex: 0 0 auto; flex: 0 0 auto; padding: 0 0.25rem; } .col-md, .row.cols-md > * { -webkit-box-flex: 1; max-width: 100%; -webkit-flex-grow: 1; flex-grow: 1; -webkit-flex-basis: 0; flex-basis: 0; } .col-md-1, .row.cols-md-1 > * { max-width: 8.33333%; -webkit-flex-basis: 8.33333%; flex-basis: 8.33333%; } .col-md-2, .row.cols-md-2 > * { max-width: 16.66667%; -webkit-flex-basis: 16.66667%; flex-basis: 16.66667%; } .col-md-3, .row.cols-md-3 > * { max-width: 25%; -webkit-flex-basis: 25%; flex-basis: 25%; } .col-md-4, .row.cols-md-4 > * { max-width: 33.33333%; -webkit-flex-basis: 33.33333%; flex-basis: 33.33333%; } .col-md-5, .row.cols-md-5 > * { max-width: 41.66667%; -webkit-flex-basis: 41.66667%; flex-basis: 41.66667%; } .col-md-6, .row.cols-md-6 > * { max-width: 50%; -webkit-flex-basis: 50%; flex-basis: 50%; } .col-md-7, .row.cols-md-7 > * { max-width: 58.33333%; -webkit-flex-basis: 58.33333%; flex-basis: 58.33333%; } .col-md-8, .row.cols-md-8 > * { max-width: 66.66667%; -webkit-flex-basis: 66.66667%; flex-basis: 66.66667%; } .col-md-9, .row.cols-md-9 > * { max-width: 75%; -webkit-flex-basis: 75%; flex-basis: 75%; } .col-md-10, .row.cols-md-10 > * { max-width: 83.33333%; -webkit-flex-basis: 83.33333%; flex-basis: 83.33333%; } .col-md-11, .row.cols-md-11 > * { max-width: 91.66667%; -webkit-flex-basis: 91.66667%; flex-basis: 91.66667%; } .col-md-12, .row.cols-md-12 > * { max-width: 100%; -webkit-flex-basis: 100%; flex-basis: 100%; } .col-md-offset-0 { margin-left: 0; } .col-md-offset-1 { margin-left: 8.33333%; } .col-md-offset-2 { margin-left: 16.66667%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-4 { margin-left: 33.33333%; } .col-md-offset-5 { margin-left: 41.66667%; } .col-md-offset-6 { margin-left: 50%; } .col-md-offset-7 { margin-left: 58.33333%; } .col-md-offset-8 { margin-left: 66.66667%; } .col-md-offset-9 { margin-left: 75%; } .col-md-offset-10 { margin-left: 83.33333%; } .col-md-offset-11 { margin-left: 91.66667%; } .col-md-normal { -webkit-order: initial; order: initial; } .col-md-first { -webkit-order: -999; order: -999; } .col-md-last { -webkit-order: 999; order: 999; } } @media screen and (min-width: 1280px) { .col-lg, [class^='col-lg-'], [class^='col-lg-offset-'], .row[class*='cols-lg-'] > * { box-sizing: border-box; -webkit-box-flex: 0; -webkit-flex: 0 0 auto; flex: 0 0 auto; padding: 0 0.25rem; } .col-lg, .row.cols-lg > * { -webkit-box-flex: 1; max-width: 100%; -webkit-flex-grow: 1; flex-grow: 1; -webkit-flex-basis: 0; flex-basis: 0; } .col-lg-1, .row.cols-lg-1 > * { max-width: 8.33333%; -webkit-flex-basis: 8.33333%; flex-basis: 8.33333%; } .col-lg-2, .row.cols-lg-2 > * { max-width: 16.66667%; -webkit-flex-basis: 16.66667%; flex-basis: 16.66667%; } .col-lg-3, .row.cols-lg-3 > * { max-width: 25%; -webkit-flex-basis: 25%; flex-basis: 25%; } .col-lg-4, .row.cols-lg-4 > * { max-width: 33.33333%; -webkit-flex-basis: 33.33333%; flex-basis: 33.33333%; } .col-lg-5, .row.cols-lg-5 > * { max-width: 41.66667%; -webkit-flex-basis: 41.66667%; flex-basis: 41.66667%; } .col-lg-6, .row.cols-lg-6 > * { max-width: 50%; -webkit-flex-basis: 50%; flex-basis: 50%; } .col-lg-7, .row.cols-lg-7 > * { max-width: 58.33333%; -webkit-flex-basis: 58.33333%; flex-basis: 58.33333%; } .col-lg-8, .row.cols-lg-8 > * { max-width: 66.66667%; -webkit-flex-basis: 66.66667%; flex-basis: 66.66667%; } .col-lg-9, .row.cols-lg-9 > * { max-width: 75%; -webkit-flex-basis: 75%; flex-basis: 75%; } .col-lg-10, .row.cols-lg-10 > * { max-width: 83.33333%; -webkit-flex-basis: 83.33333%; flex-basis: 83.33333%; } .col-lg-11, .row.cols-lg-11 > * { max-width: 91.66667%; -webkit-flex-basis: 91.66667%; flex-basis: 91.66667%; } .col-lg-12, .row.cols-lg-12 > * { max-width: 100%; -webkit-flex-basis: 100%; flex-basis: 100%; } .col-lg-offset-0 { margin-left: 0; } .col-lg-offset-1 { margin-left: 8.33333%; } .col-lg-offset-2 { margin-left: 16.66667%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-4 { margin-left: 33.33333%; } .col-lg-offset-5 { margin-left: 41.66667%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-7 { margin-left: 58.33333%; } .col-lg-offset-8 { margin-left: 66.66667%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-10 { margin-left: 83.33333%; } .col-lg-offset-11 { margin-left: 91.66667%; } .col-lg-normal { -webkit-order: initial; order: initial; } .col-lg-first { -webkit-order: -999; order: -999; } .col-lg-last { -webkit-order: 999; order: 999; } } /* Definitions for forms and input elements. */ form { background: #eeeeee; border: 0.0625rem solid #c9c9c9; margin: 0.5rem; padding: 0.75rem 0.5rem 1.125rem; } fieldset { border: 0.0625rem solid #d0d0d0; border-radius: 0.125rem; margin: 0.125rem; padding: 0.5rem; } legend { box-sizing: border-box; display: table; max-width: 100%; white-space: normal; font-weight: 700; font-size: 0.875rem; padding: 0.125rem 0.25rem; } label { padding: 0.25rem 0.5rem; } .input-group { display: inline-block; } [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; } textarea { overflow: auto; } [type="search"] { -webkit-appearance: textfield; outline-offset: -2px; } [type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } input:not([type]), [type="text"], [type="email"], [type="number"], [type="search"], [type="password"], [type="url"], [type="tel"], textarea, select { box-sizing: border-box; background: #fafafa; color: #212121; border: 0.0625rem solid #c9c9c9; border-radius: 0.125rem; margin: 0.25rem; padding: 0.5rem 0.75rem; } input:not([type="button"]):not([type="submit"]):not([type="reset"]):hover, input:not([type="button"]):not([type="submit"]):not([type="reset"]):focus, textarea:hover, textarea:focus, select:hover, select:focus { border-color: #0288d1; box-shadow: none; } input:not([type="button"]):not([type="submit"]):not([type="reset"]):invalid, input:not([type="button"]):not([type="submit"]):not([type="reset"]):focus:invalid, textarea:invalid, textarea:focus:invalid, select:invalid, select:focus:invalid { border-color: #d32f2f; box-shadow: none; } input:not([type="button"]):not([type="submit"]):not([type="reset"])[readonly], textarea[readonly], select[readonly] { background: #e5e5e5; border-color: #c9c9c9; } ::-webkit-input-placeholder { opacity: 1; color: #616161; } ::-moz-placeholder { opacity: 1; color: #616161; } ::-ms-placeholder { opacity: 1; color: #616161; } ::placeholder { opacity: 1; color: #616161; } button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; } button, html [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; } button { overflow: visible; text-transform: none; } button, [type="button"], [type="submit"], [type="reset"], a.button, label.button, .button, a[role="button"], label[role="button"], [role="button"] { display: inline-block; background: rgba(220, 220, 220, 0.75); color: #212121; border: 0; border-radius: 0.125rem; padding: 0.5rem 0.75rem; margin: 0.5rem; text-decoration: none; transition: background 0.3s; cursor: pointer; } button:hover, button:focus, [type="button"]:hover, [type="button"]:focus, [type="submit"]:hover, [type="submit"]:focus, [type="reset"]:hover, [type="reset"]:focus, a.button:hover, a.button:focus, label.button:hover, label.button:focus, .button:hover, .button:focus, a[role="button"]:hover, a[role="button"]:focus, label[role="button"]:hover, label[role="button"]:focus, [role="button"]:hover, [role="button"]:focus { background: gainsboro; opacity: 1; } input:disabled, input[disabled], textarea:disabled, textarea[disabled], select:disabled, select[disabled], button:disabled, button[disabled], .button:disabled, .button[disabled], [role="button"]:disabled, [role="button"][disabled] { cursor: not-allowed; opacity: 0.75; } input[type="file"] { border: 0; height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; clip: rect(0 0 0 0); -webkit-clip-path: inset(100%); clip-path: inset(100%); } [type="checkbox"], [type="radio"] { height: 1px; width: 1px; margin: -1px; overflow: hidden; position: absolute; clip: rect(0 0 0 0); -webkit-clip-path: inset(100%); clip-path: inset(100%); } .input-group [type="checkbox"] + label, .input-group [type="radio"] + label { position: relative; margin-left: 1.25rem; cursor: pointer; } .input-group [type="checkbox"] + label:before, .input-group [type="radio"] + label:before { display: inline-block; position: absolute; bottom: 0.375rem; left: 0; width: 1rem; height: 1rem; content: ''; border: 0.0625rem solid #bdbdbd; border-radius: 0.125rem; background: #fafafa; color: #212121; margin-left: -1.25rem; } .input-group [type="checkbox"] + label:hover:before, .input-group [type="checkbox"] + label:focus:before, .input-group [type="radio"] + label:hover:before, .input-group [type="radio"] + label:focus:before { border-color: #0288d1; } .input-group [type="checkbox"]:focus + label:before, .input-group [type="radio"]:focus + label:before { border-color: #0288d1; } .input-group [type="radio"] + label:before, .input-group [type="radio"] + label:after { border-radius: 50%; } .input-group [type="checkbox"][disabled] + label, .input-group [type="radio"][disabled] + label, .input-group [type="checkbox"]:disabled + label, .input-group [type="radio"]:disabled + label { cursor: not-allowed; } .input-group [type="checkbox"][disabled] + label:before, .input-group [type="checkbox"][disabled] + label:after, .input-group [type="radio"][disabled] + label:before, .input-group [type="radio"][disabled] + label:after, .input-group [type="checkbox"]:disabled + label:before, .input-group [type="checkbox"]:disabled + label:after, .input-group [type="radio"]:disabled + label:before, .input-group [type="radio"]:disabled + label:after { opacity: 0.75; } .input-group [type="checkbox"]:checked + label:after, .input-group [type="radio"]:checked + label:after { position: absolute; background: #212121; content: ''; margin-left: -1.25rem; bottom: 0.625rem; left: 0.25rem; width: 0.625rem; height: 0.625rem; } /* Custom elements for forms and input elements. */ button.primary, [type="button"].primary, [type="submit"].primary, [type="reset"].primary, .button.primary, [role="button"].primary { background: rgba(2, 119, 189, 0.9); color: #fafafa; } button.primary:hover, button.primary:focus, [type="button"].primary:hover, [type="button"].primary:focus, [type="submit"].primary:hover, [type="submit"].primary:focus, [type="reset"].primary:hover, [type="reset"].primary:focus, .button.primary:hover, .button.primary:focus, [role="button"].primary:hover, [role="button"].primary:focus { background: #0277bd; } button.secondary, [type="button"].secondary, [type="submit"].secondary, [type="reset"].secondary, .button.secondary, [role="button"].secondary { background: rgba(198, 40, 40, 0.9); color: #fafafa; } button.secondary:hover, button.secondary:focus, [type="button"].secondary:hover, [type="button"].secondary:focus, [type="submit"].secondary:hover, [type="submit"].secondary:focus, [type="reset"].secondary:hover, [type="reset"].secondary:focus, .button.secondary:hover, .button.secondary:focus, [role="button"].secondary:hover, [role="button"].secondary:focus { background: #c62828; } button.tertiary, [type="button"].tertiary, [type="submit"].tertiary, [type="reset"].tertiary, .button.tertiary, [role="button"].tertiary { background: rgba(95, 145, 51, 0.9); color: #fafafa; } button.tertiary:hover, button.tertiary:focus, [type="button"].tertiary:hover, [type="button"].tertiary:focus, [type="submit"].tertiary:hover, [type="submit"].tertiary:focus, [type="reset"].tertiary:hover, [type="reset"].tertiary:focus, .button.tertiary:hover, .button.tertiary:focus, [role="button"].tertiary:hover, [role="button"].tertiary:focus { background: #5f9133; } button.small, [type="button"].small, [type="submit"].small, [type="reset"].small, .button.small, [role="button"].small { border-radius: 0.0625rem; padding: 0.25rem 0.375rem; } button.large, [type="button"].large, [type="submit"].large, [type="reset"].large, .button.large, [role="button"].large { border-radius: 0.25rem; padding: 0.75rem 1.125rem; } /* Definitions for navigation elements. */ header { display: block; height: 2.75rem; background: #12171a; color: #f5f5f5; padding: 0.125rem 0.5rem; white-space: nowrap; overflow-x: auto; overflow-y: hidden; } header .logo { color: #f5f5f5; font-size: 1.75rem; line-height: 1.3125em; margin: 0.0625rem 0.375rem 0.0625rem 0.0625rem; transition: opacity 0.3s; } header button, header [type="button"], header a.button, header label.button, header .button, header a[role="button"], header label[role="button"], header [role="button"] { background: #12171a; color: #f5f5f5; vertical-align: top; margin: 0.125rem 0; } header button:hover, header button:focus, header [type="button"]:hover, header [type="button"]:focus, header a.button:hover, header a.button:focus, header label.button:hover, header label.button:focus, header .button:hover, header .button:focus, header a[role="button"]:hover, header a[role="button"]:focus, header label[role="button"]:hover, header label[role="button"]:focus, header [role="button"]:hover, header [role="button"]:focus { background: #20292e; } header .logo, header a.button, header a[role="button"] { text-decoration: none; } header.row { box-sizing: content-box; } footer { display: block; background: #192024; color: #f5f5f5; margin: 1rem 0 0; padding: 1.5rem 0.5rem 0.75rem; font-size: 0.875rem; } footer a, footer a:visited { color: #0288d1; } header.sticky, footer.sticky { position: -webkit-sticky; position: sticky; z-index: 1101; } header.sticky { top: 0; } footer.sticky { bottom: 0; } /* Definitions for the responsive table component. */ table { border-collapse: separate; border-spacing: 0; border: 0.0625rem solid #c9c9c9; margin: 0 auto; } table caption { font-size: 1.5rem; margin: 0.5rem; } table tr { padding: 0.5rem; } table th, table td { padding: 0.625rem; border-left: 0.0625rem solid #c9c9c9; border-top: 0.0625rem solid #c9c9c9; } table td { background: #fafafa; } table thead th { border-top: 0; } table th { background: #e6e6e6; } table th:first-child, table td:first-child { border-left: 0; } @media screen and (max-width: 767px) { table:not(.preset) { border-collapse: collapse; border: 0; width: 100%; } table:not(.preset) thead, table:not(.preset) th { border: 0; height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; clip: rect(0 0 0 0); -webkit-clip-path: inset(100%); clip-path: inset(100%); } table:not(.preset) tr { display: block; border: 0.0625rem solid #c9c9c9; background: #fafafa; margin-bottom: 0.625rem; } table:not(.preset) td { display: block; border: 0; border-bottom: 0.0625rem solid #c9c9c9; text-align: right; } table:not(.preset) td:before { content: attr(data-label); float: left; font-weight: 700; } table:not(.preset) td:last-child { border-bottom: 0; } } /* Definitions for cards and containers. */ .card { display: -webkit-box; -webkit-box-orient: vertical; -webkit-box-pack: justify; -webkit-box-align: center; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-self: center; align-self: center; position: relative; width: 100%; background: #fafafa; border: 0.0625rem solid #acacac; margin: 0.5rem; overflow: hidden; } .card > .section { box-sizing: border-box; margin: 0; border: 0; border-radius: 0; border-bottom: 0.0625rem solid #c9c9c9; padding: 0.5rem; width: 100%; } .card > .section.media { height: 200px; padding: 0; -o-object-fit: cover; object-fit: cover; } .card > .section:last-child { border-bottom: 0; } @media screen and (min-width: 320px) { .card { max-width: 320px; } } /* Custom elements for cards and containers. */ .card.fluid { max-width: 100%; width: auto; } .card > .section.dark { background: #e0e0e0; } .card > .section.double-padded { padding: 0.75rem; } /* Definitions for contextual background elements, toasts and tooltips. */ mark { background: #0277bd; color: #fafafa; font-size: 0.9375em; line-height: 1em; border-radius: 0.125rem; padding: 0.125em 0.25em; } mark.inline-block { display: inline-block; } /* Custom contextual background elements and alerts. */ mark.secondary { background: #e53935; } mark.tertiary { background: #689f38; } mark.tag { border-radius: 200px; padding: 0.25em 0.5em; } mark.inline-block { font-size: 1em; line-height: 1.375em; padding: 0.375em; } /* Definitions for progress elements and spinners. */ progress { display: block; vertical-align: baseline; -webkit-appearance: none; -moz-appearance: none; appearance: none; height: 0.625rem; width: 90%; width: calc(100% - 1rem); margin: 0.5rem 0.5rem; border: 0; border-radius: 0.125rem; background: #e0e0e0; color: #0277bd; } progress::-webkit-progress-value { background: #0277bd; border-top-left-radius: 0.125rem; border-bottom-left-radius: 0.125rem; } progress::-webkit-progress-bar { background: #e0e0e0; } progress::-moz-progress-bar { background: #0277bd; border-top-left-radius: 0.125rem; border-bottom-left-radius: 0.125rem; } progress[value="1000"]::-webkit-progress-value { border-radius: 0.125rem; } progress[value="1000"]::-moz-progress-bar { border-radius: 0.125rem; } /* Custom elements for progress elements and spinners. */ progress.inline { display: inline-block; vertical-align: middle; width: 60%; } progress.secondary { color: #e53935; } progress.secondary::-webkit-progress-value { background: #e53935; } progress.secondary::-moz-progress-bar { background: #e53935; } progress.tertiary { color: #689f38; } progress.tertiary::-webkit-progress-value { background: #689f38; } progress.tertiary::-moz-progress-bar { background: #689f38; } /* Definitions for utilities and helper classes. */ .hidden { display: none !important; } .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; border: 0 !important; padding: 0 !important; clip: rect(0 0 0 0) !important; -webkit-clip-path: inset(100%) !important; clip-path: inset(100%) !important; overflow: hidden !important; } /* Custom elements for utilities and helper classes. */ .bordered { border: 1px solid rgba(0, 0, 0, 0.25) !important; } .rounded { border-radius: 0.125rem !important; } .circular { border-radius: 50% !important; } .responsive-margin { margin: 0.25rem !important; } @media screen and (min-width: 768px) { .responsive-margin { margin: 0.375rem !important; } } @media screen and (min-width: 1280px) { .responsive-margin { margin: 0.5rem !important; } } .responsive-padding { padding: 0.125rem 0.25rem !important; } @media screen and (min-width: 768px) { .responsive-padding { padding: 0.25rem 0.375rem !important; } } @media screen and (min-width: 1280px) { .responsive-padding { padding: 0.375rem 0.5rem !important; } } @media screen and (max-width: 767px) { .hidden-sm { display: none !important; } } @media screen and (min-width: 768px) and (max-width: 1279px) { .hidden-md { display: none !important; } } @media screen and (min-width: 1280px) { .hidden-lg { display: none !important; } } @media screen and (max-width: 767px) { .visually-hidden-sm { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; border: 0 !important; padding: 0 !important; clip: rect(0 0 0 0) !important; -webkit-clip-path: inset(100%) !important; clip-path: inset(100%) !important; overflow: hidden !important; } } @media screen and (min-width: 768px) and (max-width: 1279px) { .visually-hidden-md { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; border: 0 !important; padding: 0 !important; clip: rect(0 0 0 0) !important; -webkit-clip-path: inset(100%) !important; clip-path: inset(100%) !important; overflow: hidden !important; } } @media screen and (min-width: 1280px) { .visually-hidden-lg { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; border: 0 !important; padding: 0 !important; clip: rect(0 0 0 0) !important; -webkit-clip-path: inset(100%) !important; clip-path: inset(100%) !important; overflow: hidden !important; } }
test/unit/utils-elements.html
mgiuffrida/polymer
<!-- @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt --> <link rel="import" href="../../polymer.html"> <dom-module id="x-content"> <template> <content></content> </template> <script> Polymer({ is: 'x-content' }); </script> </dom-module> <dom-module id="x-content-multi"> <template> <content select="div"></content> <content select="span"></content> </template> <script> Polymer({ is: 'x-content-multi' }); </script> </dom-module> <dom-module id="x-compose"> <template> <x-content id="content"> <div class="a">a</div> <content select=".b"></content> <div class="c">c</div> <content></content> <div class="e">e</div> </x-content> </template> <script> Polymer({ is: 'x-compose' }); </script> </dom-module> <dom-module id="x-content-mixed"> <template> <content></content> <x-content id="localChild"></x-content> </template> </dom-module> <script> Polymer({ is: 'x-content-mixed', get localChild () { return this.$.localChild; } }); </script>
third_party/blink/web_tests/external/wpt/html/canvas/element/manual/wide-gamut-canvas/canvas-display-p3-drawImage-ImageBitmap-image.html
scheib/chromium
<!DOCTYPE HTML> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="canvas-display-p3.js"></script> <script> // Test that drawing ImageBitmaps with different image source bit depths and // color profiles into sRGB and Display P3 canvases works, by reading pixels // with getImageData() as sRGB and Display P3 values. for (let [filename, expectedPixels] of Object.entries(imageTests)) { for (let contextColorSpace of ["srgb", "display-p3"]) { for (let imageDataColorSpace of ["srgb", "display-p3"]) { for (let cropSource of [false, true]) { async_test(function(t) { let image = new Image(); image.onload = t.step_func(function() { let canvas = document.createElement("canvas"); canvas.width = 2; canvas.height = 2; let ctx = canvas.getContext("2d", { colorSpace: contextColorSpace }); let imageBitmapPromise; if (cropSource) imageBitmapPromise = createImageBitmap(image, 1, 1, 1, 1); else imageBitmapPromise = createImageBitmap(image); imageBitmapPromise.then(t.step_func_done(function(imageBitmap) { ctx.drawImage(imageBitmap, 0, 0); let imageData = ctx.getImageData(0, 0, 1, 1, { colorSpace: imageDataColorSpace }); let expected = expectedPixels[`${contextColorSpace} ${imageDataColorSpace}`]; assert_true(pixelsApproximatelyEqual(imageData.data, expected), `Actual pixel value ${[...imageData.data]} is approximately equal to ${expected}.`); })); }); image.src = `resources/${filename}`; }, `${filename}, Context ${contextColorSpace}, ImageData ${imageDataColorSpace}, cropSource=${cropSource}`); } } } } </script>
webapp/lazyplanner/ext-4.0.0/examples/form/fieldcontainer.html
bibryam/lazyplanner
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>FieldContainer Example</title> <!-- ExtJS --> <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" /> <script type="text/javascript" src="../../bootstrap.js"></script> <!-- Shared --> <link rel="stylesheet" type="text/css" href="../shared/example.css" /> <!-- Example --> <script type="text/javascript" src="fieldcontainer.js"></script> </head> <body id="docbody"> <h1>FieldContainer Example</h1> <p>Several form fields can be placed onto the same row with a FieldContainer.</p> <p>The FieldContainer's child items are arranged like in any other container, using the <code>layout</code> configuration property. In this example, each FieldContainer is set to use an HBox layout - <a href="http://www.sencha.com/deploy/dev/docs/?class=Ext.layout.HBoxLayout">see the HBox docs for details</a> or the <a href="../layout/hbox.html">HBox layout example</a>.</p> <p>FieldContainers can be configured with the combineErrors option, which combines errors from the sub fields and presents them at the container level.</p> <p>In this example the Date Range, Phone and Full Name items have this option enabled, and the Time worked item does not. The <a href="http://www.sencha.com/deploy/dev/docs/?class=Ext.form.Labelable&member=msgTarget">msgTarget</a> config option is fully supported, so errors can be rendered to any of the supported locations.</p> <p>The js is not minified so it is readable. See <a href="fieldcontainer.js">fieldcontainer.js</a>.</p> </body> </html>
www/tinymce/js/tinymce/plugins/imagemanager/examples.html
lulubau/framework-master
<html> <head> <title>MCImageManager Example</title> <script type="text/javascript" src="js/mcimagemanager.js"></script> <style> body, input { font-family: Arial, Verdana; font-size: 11px; } h3 { font-size: 14px; } p { margin: 0; padding: 0; margin-bottom: 3px; } </style> </head> <body> <h3>Simple example</h3> <p>This is the most simple form of integration.</p> <form name="example1"> <input type="text" name="url" value="Select file" size="80"> <a href="javascript:mcImageManager.open('example1','url');">[MCImageManager]</a> </form> <h3>Relative URL example</h3> <p>This example will output the selected files as relative to the current document.</p> <form name="example2"> <input type="text" name="url" value="" size="80" /> <a href="javascript:mcImageManager.open('example2','url','','',{relative_urls : true});">[MCImageManager]</a> </form> <h3>Absolute URL with document_base_url option</h3> <p>This example will output the selected files as absolute URLs but with a different domain prefix.</p> <form name="example7"> <input type="text" name="url" value="" size="80" /> <a href="javascript:mcImageManager.open('example7','url','','',{document_base_url : 'http://tinymce.moxiecode.com/', remember_last_path : 1});">[MCImageManager]</a> </form> <h3>Absolute URL without host</h3> <p>This example will output the selected files as absolute URLs but without the protocol and host name parts.</p> <form name="example3"> <input type="text" name="url" value="" size="80" /> <a href="javascript:mcImageManager.open('example3','url','','',{remove_script_host : true});">[MCImageManager]</a> </form> <h3>Specify default path</h3> <p>This example shows how the default path can be specified with JavaScript, it also disables the remember last path feature.</p> <form name="example4"> <input type="text" name="url" value="" size="80" /> <a href="javascript:mcImageManager.open('example4','url','','',{path : 'files/moreimages', remember_last_path : false});">[MCImageManager]</a> </form> <h3>Specify rootpath</h3> <p>This example shows how the rootpath can be specified with JavaScript.</p> <form name="example5"> <input type="text" name="url" value="" size="80" /> <a href="javascript:mcImageManager.open('example5','url','','',{rootpath : 'files/moreimages'});">[MCImageManager]</a> </form> <h3>Custom JavaScript insert script</h3> <p>This example shows how one could implement a custom insertion JavaScript.</p> <script type="text/javascript"> function insertURL(url, data) { alert("A URL was intercepted: " + url + "\nsize: " + data.custom.width + "," + data.custom.height); document.forms['example6'].url.value = url; } </script> <form name="example6"> <input type="text" name="url" value="" size="80" /> <a href="javascript:mcImageManager.open('example6','url','','insertURL');">[MCImageManager]</a> </form> <h3>Custom filter script</h3> <p>This example shows you how to change/filter data passed back.</p> <script type="text/javascript"> function filterURL(file) { alert("Data was intercepted: URL: " + file.url + "\nsize: " + file.custom.width + "," + file.custom.height); file.url = file.url.toUpperCase(); } </script> <form name="example8"> <input type="text" name="url" value="" size="80" /> <a href="javascript:mcImageManager.open('example8','url','','',{insert_filter : filterURL});">[MCImageManager]</a> </form> <h3>Filtered file list example</h3> <p>This is the most simple form of integration.</p> <p><a href="javascript:mcImageManager.browse({extensions:'jpg', exclude_file_pattern:'/^dog/'});">[MCImageManager]</a></p> </body> </html>
third_party/blink/web_tests/external/wpt/css/css-paint-api/one-custom-property-animation.https.html
scheib/chromium
<!DOCTYPE html> <html class="reftest-wait"> <link rel="help" href="https://drafts.css-houdini.org/css-paint-api/"> <link rel="match" href="one-custom-property-animation-ref.html"> <style> .container { width: 100px; height: 100px; } @keyframes expand { 0% { --foo: 0; } 100% { --foo: 100; } } .animate { background-image: paint(geometry); /* Use a long animation that start at 50% progress where the slope of the selected timing function is zero. By setting up the animation in this way, we accommodate lengthy delays in running the test without a potential drift in the animated property value. This is important for avoiding flakes, especially on debug builds. The screenshots are taken as soon as the animation is ready, thus the long animation duration has no bearing on the actual duration of the test. */ animation: expand 1000000s cubic-bezier(0,1,1,0) -500000s; } #canvas-geometry { background-color: blue; } </style> <script src="/common/reftest-wait.js"></script> <script src="/common/worklet-reftest.js"></script> <body> <div id="canvas-geometry" class="container"></div> <script id="code" type="text/worklet"> registerPaint('geometry', class { static get inputProperties() { return ['--foo']; } paint(ctx, geom, properties) { let fooValue = parseFloat(properties.get('--foo').toString()); ctx.fillStyle = 'green'; ctx.fillRect(0, 0, fooValue, fooValue); } }); </script> <script> CSS.registerProperty({ name: '--foo', syntax: '<number>', initialValue: '0', inherits: false }); </script> <script> var blob = new Blob([document.getElementById('code').textContent], {type: 'text/javascript'}); CSS.paintWorklet.addModule(URL.createObjectURL(blob)).then(function() { document.getElementById('canvas-geometry').classList.add('animate'); const animations = document.getAnimations(); // Wait for the animation to start before completing the test. document.getAnimations()[0].ready.then(() => { takeScreenshot(); }); }); </script> </body> </html>
uDrive/uDrive.Site/Umbraco/Views/components/notifications/umb-notifications.html
msinnott22/uDrive
<div class="umb-notifications" id="umb-notifications-wrapper" ng-cloak> <ul class="umb-notifications__notifications"> <li ng-repeat="notification in notifications" class="alert alert-block alert-{{notification.type}} umb-notifications__notification animated -half-second fadeIn" ng-class="{'-no-border -extra-padding': notification.type === 'form'}"> <a class='close -align-right' ng-click="removeNotification($index)" prevent-default href>&times;</a> <div ng-if="notification.view"> <div ng-include="notification.view"></div> </div> <div ng-if="notification.headline"> <a ng-href="{{notification.url}}" target="_blank"> <strong>{{notification.headline}}</strong> <span ng-bind-html="notification.message"></span> </a> </div> </li> </ul> </div>
xampp/apache/manual/mod/mod_proxy_fcgi.html
Dokaponteam/ITF_Project
# GENERATED FROM XML -- DO NOT EDIT URI: mod_proxy_fcgi.html.en Content-Language: en Content-type: text/html; charset=ISO-8859-1 URI: mod_proxy_fcgi.html.fr Content-Language: fr Content-type: text/html; charset=ISO-8859-1
chapter5/simple-angularjs-service/index.html
JethroTseng/angularjs-up-and-running
<!-- File: chapter5/simple-angularjs-service/index.html --> <html ng-app="notesApp"> <body ng-controller="MainCtrl as mainCtrl"> <h1>Hello Controllers!</h1> <button ng-click="mainCtrl.open('first')"> Open First </button> <button ng-click="mainCtrl.open('second')"> Open Second </button> <div ng-switch on="mainCtrl.tab"> <div ng-switch-when="first"> <div ng-controller="SubCtrl as ctrl"> <h3>First tab</h3> <ul> <li ng-repeat="item in ctrl.list()"> <span ng-bind="item.label"></span> </li> </ul> <button ng-click="ctrl.add()"> Add More Items </button> </div> </div> <div ng-switch-when="second"> <div ng-controller="SubCtrl as ctrl"> <h3>Second tab</h3> <ul> <li ng-repeat="item in ctrl.list()"> <span ng-bind="item.label"></span> </li> </ul> <button ng-click="ctrl.add()"> Add More Items </button> </div> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.11/angular.js"> </script> <script src="app.js"></script> </body> </html>
src/main/webapp/help/common/help-deployedArtifactIncludePattern.html
DimaNevelev/jenkins-artifactory-plugin
<div> Comma or space-separated list of <a href="http://ant.apache.org/manual/dirtasks.html#patterns" target="_blank">Ant-style patterns</a> of files that will be included in publishing. Include patterns are applied on the published file path before any exclude patterns. </div>
home/images/3/mydiary.css
mikelee009/cmlove
.main .right .rightTitle {width:630px;height:25px;line-height:25px;background:#fe4385;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;} .main .right .rightTitle h4 {float:left;color:#fff;} .main .right .rightTitle a {float:right;display:block;width:86px;color:#fff;position:relative;font-size:14px;font-weight:bold} .main .right .rightTitle a:link,a:visited,a:active {text-decoration:none} .main .right .rightTitle a:hover {text-decoration:underline;color:#000} .main .right .rightContent {width:630px;background:#fff;color:#666;padding:15px 0px 30px 0px;;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;text-align:center;} .main .right .rightContent .pageshow {width:560px;height:35px;text-align:center;border-top:#ddd 1px solid;line-height:35px;margin:0 15px 15px 15px;padding:15px;position:relative;color:#333;} .main .right .rightContent .nodata {width:300px;margin:100px;padding:40px 0 40px 0;background:#fff;position:relative;} .main .right .rightContent .Tdataline{width:600px;height:30px;line-height:30px;text-align:center;border-bottom:#ddd 1px solid;margin:0 0 15px 0;position:relative;} .main .right .rightContent .Tdataline .TdatalineL{float:left;width:330px;padding:0 0 0 70px;text-align:left} .main .right .rightContent .Tdataline .TdatalineC{float:left;width:60px} .main .right .rightContent .Tdataline .TdatalineR{float:left;width:140px} .main .right .rightContent .dataline{width:600px;height:30px;position:relative} .main .right .rightContent .dataline .datalineL{float:left;width:400px;text-align:left;font-size:14px} .main .right .rightContent .dataline .datalineL img{margin:0 10px 0 10px} .main .right .rightContent .dataline .datalineC{float:left;width:60px;} .main .right .rightContent .dataline .datalineR{float:left;width:140px;}
venv/bin/libs/numeric/ublas/doc/html/structboost_1_1numeric_1_1ublas_1_1iterator__restrict__traits_3_01dense__random__access__iteratodc161542be457382732ec49a83757970.html
NixaSoftware/CVis
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>ublas: boost::numeric::ublas::iterator_restrict_traits&lt; dense_random_access_iterator_tag, sparse_bidirectional_iterator_tag &gt; Struct Template Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main&nbsp;Page</span></a></li> <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li> <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li> </ul> </div> <div class="navpath"><b>boost</b>::<b>numeric</b>::<b>ublas</b>::<a class="el" href="structboost_1_1numeric_1_1ublas_1_1iterator__restrict__traits_3_01dense__random__access__iteratodc161542be457382732ec49a83757970.html">iterator_restrict_traits&lt; dense_random_access_iterator_tag, sparse_bidirectional_iterator_tag &gt;</a> </div> </div> <div class="contents"> <h1>boost::numeric::ublas::iterator_restrict_traits&lt; dense_random_access_iterator_tag, sparse_bidirectional_iterator_tag &gt; Struct Template Reference</h1><!-- doxytag: class="boost::numeric::ublas::iterator_restrict_traits&lt; dense_random_access_iterator_tag, sparse_bidirectional_iterator_tag &gt;" --> <p><a href="structboost_1_1numeric_1_1ublas_1_1iterator__restrict__traits_3_01dense__random__access__iteratofc8d54de2397ba5bfaca6b9ce2edc4fc.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a36fd7f262800a37a5665734c96b5ed8e"></a><!-- doxytag: member="boost::numeric::ublas::iterator_restrict_traits&lt; dense_random_access_iterator_tag, sparse_bidirectional_iterator_tag &gt;::iterator_category" ref="a36fd7f262800a37a5665734c96b5ed8e" args="" --> typedef <br class="typebreak"/> <a class="el" href="structboost_1_1numeric_1_1ublas_1_1sparse__bidirectional__iterator__tag.html">sparse_bidirectional_iterator_tag</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>iterator_category</b></td></tr> </table> <h3>template&lt;&gt;<br/> struct boost::numeric::ublas::iterator_restrict_traits&lt; dense_random_access_iterator_tag, sparse_bidirectional_iterator_tag &gt;</h3> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Jul 4 20:31:07 2010 for ublas by&nbsp; <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>
third_party/blink/web_tests/external/wpt/websockets/interfaces/WebSocket/url/006.html
scheib/chromium
<!doctype html> <title>WebSockets: defineProperty setter for url</title> <script src=/resources/testharness.js></script> <script src=/resources/testharnessreport.js></script> <script src=../../../constants.sub.js></script> <meta name="variant" content=""> <meta name="variant" content="?wss"> <div id=log></div> <script> test(function() { window.setter_ran = false; Object.defineProperty(WebSocket.prototype, 'url', { set: function(v) { window[v] = true; } }); var ws = new WebSocket('ws://example.invalid/'); ws.url = 'setter_ran'; assert_true(setter_ran); }); </script>
ajax/libs/angular-fontselect/0.6.6/angular-fontselect.css
BenjaminVanRyseghem/cdnjs
/*! * angular-fontselect v0.6.6 * https://github.com/Jimdo/angular-fontselect * * A fontselect directive for AngularJS * * Copyright 2014, Jimdo, Hannes Diercks <hannes.diercks@jimdo.com> * Released under the MIT license */ .jdfs-main { width: 150px; height: 50px; position: relative; display: inline-flex; font-size: 16px; background: white; } .jdfs-main *, .jdfs-main *:after, .jdfs-main *:before { box-sizing: border-box; } .jdfs-window { top: 100%; left: 0; z-index: 3000; position: absolute; padding: .5em 0; height: 0; border-radius: 4px; width: 500px; display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; flex-direction: row; align-items: flex-start; } .jdfs-toggle { margin: 0; background: transparent; } .jdfs-toggle, .jdfs-search { width: 100%; height: 100%; border: none; } .jdfs-search { padding: 1em; } .jdfs-fontlistcon { padding: .5em; overflow: hidden; border-radius: 4px 0 0 4px; background: #d6d6d6; width: 60%; flex: 1 0; } .jdfs-fontlist { border-radius: 2px; background: white; padding: 0; margin: 0; } .jdfs-fontlist li { padding: 0; margin: 0; list-style-type: none; } .jdfs-fontlist label { padding: .5em 1em; display: block; width: 100%; } .jdfs-fontlist input { display: none; } .jdfs-fontpagination { border: none; background: white; } .jdfs-filter { border-radius: 0 4px 4px 0; padding: .5em; width: 14em; background: #d6d6d6; } .jdfs-filter h4 { margin: 0 0 .5em; } .jdfs-close { position: absolute; right: 1em; top: 1.45em; } .jdfs-filter .jdfs-styles, .jdfs-filter .jdfs-providers, .jdfs-filter .jdfs-subsets { margin-top: 1em; } .jdfs-filter .jdfs-styles:first-child, .jdfs-filter .jdfs-providers:first-child, .jdfs-filter .jdfs-subsets:first-child { margin-top: 0; } .jdfs-styles { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; justify-content: space-between; flex-wrap: wrap; } .jdfs-styles h4 { flex: 100%; } .jdfs-filterbtn { border-radius: 2px; margin: 0 .3rem .3rem 0; width: 5em; padding: 1em 0; flex: 1 1 45%; font-size: .7em; line-height: 1.2; vertical-align: middle; display: inline-block; background: #ffffff; border: none; } .jdfs-filterbtn:focus, .jdfs-filterbtn:active { outline: none; } .jdfs-filterbtn:last-child { margin-bottom: 0; } .jdfs-highlight, .jdfs-highlight:hover { background: #81b4fc; color: white; } .jdfs-fontstyle-other { display: none; }
v7.38.0/docs/libcurl/opts/CURLOPT_CRLFILE.html
iSCInc/cURL
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head> <title>CURLOPT_CRLFILE man page</title> <meta name="generator" content="roffit"> <STYLE type="text/css"> P.level0 { padding-left: 2em; } P.level1 { padding-left: 4em; } P.level2 { padding-left: 6em; } span.emphasis { font-style: italic; } span.bold { font-weight: bold; } span.manpage { font-weight: bold; } h2.nroffsh { background-color: #e0e0e0; } span.nroffip { font-weight: bold; font-size: 120%; font-family: monospace; } p.roffit { text-align: center; font-size: 80%; } </STYLE> </head><body> <p class="level0"><a name="NAME"></a><h2 class="nroffsh">NAME</h2> <p class="level0">CURLOPT_CRLFILE - specify a Certificate Revocation List file <a name="SYNOPSIS"></a><h2 class="nroffsh">SYNOPSIS</h2> <p class="level0">#include &lt;curl/curl.h&gt; <p class="level0">CURLcode curl_easy_setopt(CURL *handle, CURLOPT_CRLFILE, char *file); <a name="DESCRIPTION"></a><h2 class="nroffsh">DESCRIPTION</h2> <p class="level0">Pass a char * to a zero terminated string naming a <span Class="emphasis">file</span> with the concatenation of CRL (in PEM format) to use in the certificate validation that occurs during the SSL exchange. <p class="level0">When curl is built to use NSS or GnuTLS, there is no way to influence the use of CRL passed to help in the verification process. When libcurl is built with OpenSSL support, X509_V_FLAG_CRL_CHECK and X509_V_FLAG_CRL_CHECK_ALL are both set, requiring CRL check against all the elements of the certificate chain if a CRL file is passed. <p class="level0">This option makes sense only when used in combination with the <a Class="emphasis" href="./CURLOPT_SSL_VERIFYPEER.html">CURLOPT_SSL_VERIFYPEER</a> option. <p class="level0">A specific error code (<span Class="emphasis">CURLE_SSL_CRL_BADFILE</span>) is defined with the option. It is returned when the SSL exchange fails because the CRL file cannot be loaded. A failure in certificate verification due to a revocation information found in the CRL does not trigger this specific error. <a name="DEFAULT"></a><h2 class="nroffsh">DEFAULT</h2> <p class="level0">NULL <a name="PROTOCOLS"></a><h2 class="nroffsh">PROTOCOLS</h2> <p class="level0">All TLS-based protocols <a name="EXAMPLE"></a><h2 class="nroffsh">EXAMPLE</h2> <p class="level0">TODO <a name="AVAILABILITY"></a><h2 class="nroffsh">AVAILABILITY</h2> <p class="level0">Added in 7.19.0 <a name="RETURN"></a><h2 class="nroffsh">RETURN VALUE</h2> <p class="level0">Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space. <a name="SEE"></a><h2 class="nroffsh">SEE ALSO</h2> <p class="level0"><a Class="manpage" href="./CURLOPT_SSL_VERIFYPEER.html">CURLOPT_SSL_VERIFYPEER</a> <a Class="manpage" href="./CURLOPT_SSL_VERIFYHOST.html">CURLOPT_SSL_VERIFYHOST</a> <span Class="manpage"> </span> <p class="roffit"> This HTML page was made with <a href="http://daniel.haxx.se/projects/roffit/">roffit</a>. </body></html>
basvecfinal/basvec/administrator/modules/mod_poweradmin/assets/css/mod_poweradmin_quickicon.css
NallelyFlores89/basvec
.jsn-poweradmin-quickicon div.icon { text-align: center; float: left; padding: 5px 0 5px 10px; } .jsn-poweradmin-quickicon div.icon a { display: block; float: left; border: 1px solid #f0f0f0; height: 110px; width: 108px; color: #666666; vertical-align: middle; text-decoration: none; } .jsn-poweradmin-quickicon div.icon a:hover { border-left: 1px solid #eee; border-top: 1px solid #eee; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; background: #f9f9f9; color: #0B55C4; } .jsn-poweradmin-quickicon span { display: block; text-align: center; } .jsn-poweradmin-quickicon img { padding: 10px 0; margin: 0 auto; } .jsn-poweradmin-quickicon { float: left; } .jsn-outdated-version { color: #CC0000; }
third_party/WebKit/LayoutTests/http/tests/serviceworker/getregistration.html
js0701/chromium-crosswalk
<!DOCTYPE html> <script src="../resources/testharness.js"></script> <script src="../resources/testharnessreport.js"></script> <script src="resources/test-helpers.js"></script> <script> async_test(function(t) { var documentURL = 'no-such-worker'; navigator.serviceWorker.getRegistration(documentURL) .then(function(value) { assert_equals(value, undefined, 'getRegistration should resolve with undefined'); t.done(); }) .catch(unreached_rejection(t)); }, 'getRegistration'); async_test(function(t) { var scope = 'resources/scope/getregistration/normal'; var registration; service_worker_unregister_and_register(t, 'resources/empty-worker.js', scope) .then(function(r) { registration = r; return navigator.serviceWorker.getRegistration(scope); }) .then(function(value) { assert_equals( value, registration, 'getRegistration should resolve to the same registration object'); service_worker_unregister_and_done(t, scope); }) .catch(unreached_rejection(t)); }, 'Register then getRegistration'); async_test(function(t) { var scope = 'resources/scope/getregistration/url-with-fragment'; var documentURL = scope + '#ref'; var registration; service_worker_unregister_and_register(t, 'resources/empty-worker.js', scope) .then(function(r) { registration = r; return navigator.serviceWorker.getRegistration(documentURL); }) .then(function(value) { assert_equals( value, registration, 'getRegistration should resolve to the same registration object'); service_worker_unregister_and_done(t, scope); }) .catch(unreached_rejection(t)); }, 'Register then getRegistration with a URL having a fragment'); async_test(function(t) { var documentURL = 'http://example.com/'; navigator.serviceWorker.getRegistration(documentURL) .then(function() { assert_unreached( 'getRegistration with an out of origin URL should fail'); }, function(reason) { assert_equals( reason.name, 'SecurityError', 'getRegistration with an out of origin URL should fail'); t.done(); }) .catch(unreached_rejection(t)); }, 'getRegistration with a cross origin URL'); async_test(function(t) { var scope = 'resources/scope/getregistration/register-unregister'; service_worker_unregister_and_register(t, 'resources/empty-worker.js', scope) .then(function(registration) { return registration.unregister(); }) .then(function() { return navigator.serviceWorker.getRegistration(scope); }) .then(function(value) { assert_equals(value, undefined, 'getRegistration should resolve with undefined'); t.done(); }) .catch(unreached_rejection(t)); }, 'Register then Unregister then getRegistration'); </script>
wrt/wrt-rt-linux-tests/org.csp.connectsrccrossoriginmultixmlhttprequestblocked/test_index.html
qiuzhong/crosswalk-test-suite
<!DOCTYPE html> <!-- Copyright (c) 2015 Intel Corporation. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of works must retain the original copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the original copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors may be used to endorse or promote products derived from this work without specific prior written permission. THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Authors: Yin, Haichao <haichaox.yin@intel.com> Xu, Kang <kangx.xu@intel.com> --> <meta charset="utf-8"> <meta name="assert" content="connect-src http://www.w3.org https://www.tizen.org"/> <title>CSP Test: csp_connect-src_cross-origin_multi_xmlhttprequest_blocked</title> <link rel="author" title="Intel" href="http://www.intel.com"/> <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#connect-src"/> <script src="resources/testharness.js"></script> <script src="resources/testharnessreport.js"></script> <div id="log"></div> <script> var xhr = new XMLHttpRequest(); test(function() { try { xhr.open("GET", "http://www.google.com"); assert_unreached("Should not reach here"); } catch (e) { // To be improved for exception error checking } }, document.title); </script>
src/webapp/js/yui/scrollview-list/assets/skins/night/scrollview-list-skin.css
sergiomt/zesped
/* YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ .yui3-skin-night .yui3-scrollview { -webkit-tap-highlight-color: rgba(0,0,0,0); } .yui3-skin-night .yui3-scrollview{ color:#fff; background-color:#000; } .yui3-skin-night .yui3-scrollview-vert .yui3-scrollview-content { /*border:1px solid #303030; If the ScrollView needs a border add it here */ border-top:0; background-color:#000; font-family: HelveticaNeue,arial,helvetica,clean,sans-serif; color:#fff; } /* For IE 6/7 - needs a background color (above) to pick up events, and zoom, to fill the UL */ .yui3-skin-night .yui3-scrollview-vert .yui3-scrollview-content .yui3-scrollview-item { *zoom:1; } /* For IE7 - needs zoom, otherwise clipped content is not rendered */ .yui3-skin-night .yui3-scrollview-vert .yui3-scrollview-content .yui3-scrollview-list { *zoom:1; list-style:none; /*need these since reset is not required*/ padding:0; /*need these since reset is not required*/ margin:0; /*need these since reset is not required*/ } .yui3-skin-night .yui3-scrollview-vert .yui3-scrollview-content .yui3-scrollview-item { border-bottom: 1px solid #303030; padding: 15px 20px 16px; font-size: 100%; font-weight: bold; background-color:#151515; cursor:pointer; } .yui3-skin-night .yui3-scrollview-vert .yui3-scrollview-content .yui3-scrollview-list.selected{ background-color:#2C2D2E; background: -moz-linear-gradient( 0% 100% 90deg, #252626 0%, #333434 100% ); background: -webkit-gradient( linear, left top, left bottom, from(#333434), to(#252626) ); border-top:solid 1px #4b4b4b; border-bottom:solid 1px #3e3f3f; margin-top:-1px; }
surface2/domelements/bower_components/app-layout/app-header-layout/demo/footer.html
ms123s/simpl4-src
<!-- @license Copyright (c) 2016 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt --> <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"> <title>app-header-layout demo</title> <script src="../../../webcomponentsjs/webcomponents-lite.js"></script> <link rel="import" href="../../../font-roboto/roboto.html"> <link rel="import" href="../../../iron-icons/iron-icons.html"> <link rel="import" href="../../../paper-icon-button/paper-icon-button.html"> <link rel="import" href="../../app-scroll-effects/effects/waterfall.html"> <link rel="import" href="../../app-header/app-header.html"> <link rel="import" href="../../app-toolbar/app-toolbar.html"> <link rel="import" href="../../demo/sample-content.html"> <link rel="import" href="../app-header-layout.html"> <custom-style> <style is="custom-style"> body { margin: 0; font-family: 'Roboto', 'Noto', sans-serif; background-color: #eee; } app-header { background-color: #4285f4; color: #fff; } .content { @apply --layout-flex; } app-header paper-icon-button { --paper-icon-button-ink-color: white; } footer { height: 50px; line-height: 50px; text-align: center; background-color: white; font-size: 14px; } </style> </custom-style> </head> <body> <!-- default to use body scroller --> <app-header-layout fullbleed> <app-header slot="header" effects="waterfall" condenses reveals> <app-toolbar> <paper-icon-button icon="menu"></paper-icon-button> <div main-title></div> <paper-icon-button icon="search"></paper-icon-button> </app-toolbar> <app-toolbar></app-toolbar> <app-toolbar> <div spacer main-title>My Drive</div> </app-toolbar> </app-header> <div class="content"> <!-- content goes here --> </div> <footer> &copy; Polymer project </footer> </app-header-layout> </body> </html>
third_party/blink/web_tests/external/wpt/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/unset/websocket.https.html
scheib/chromium
<!DOCTYPE html> <!-- DO NOT EDIT! Generated by `common/security-features/tools/generate.py --spec upgrade-insecure-requests/` --> <html> <head> <meta charset="utf-8"> <meta name="timeout" content="long"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/common/security-features/resources/common.sub.js"></script> <script src="../../../generic/test-case.sub.js"></script> </head> <body> <script> TestCase( [ { "expectation": "blocked", "origin": "cross-ws-downgrade", "redirection": "no-redirect", "source_context_list": [ { "policyDeliveries": [], "sourceContextType": "iframe-blank" } ], "source_scheme": "https", "subresource": "websocket", "subresource_policy_deliveries": [], "test_description": "Upgrade-Insecure-Requests: Expects blocked for websocket to cross-ws-downgrade origin and no-redirect redirection from https context." }, { "expectation": "blocked", "origin": "same-ws-downgrade", "redirection": "no-redirect", "source_context_list": [ { "policyDeliveries": [], "sourceContextType": "iframe-blank" } ], "source_scheme": "https", "subresource": "websocket", "subresource_policy_deliveries": [], "test_description": "Upgrade-Insecure-Requests: Expects blocked for websocket to same-ws-downgrade origin and no-redirect redirection from https context." } ], new SanityChecker() ).start(); </script> <div id="log"></div> </body> </html>
views/layouts/media-instance.html
cadecairos/popcorn.webmaker.org
<div class="media-instance"> <div class="track-handle-container"> <div class="handle-list"></div> </div> <div class="media-container"> <div class="tracks-container-wrapper"> <div class="tracks-container"></div> <div class="bounding-box-selection hidden"></div> </div> </div> </div>
content/test/data/layout_tests/LayoutTests/http/tests/xmlhttprequest/timeout/xmlhttprequest-timeout-worker-twice.html
leighpauls/k2cro4
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>XHR2 Timeout Property Tests in Worker</title> <link rel="help" href="http://www.w3.org/TR/XMLHttpRequest/#timeout-error" /> <link rel="stylesheet" href="testharness.css" /> <script src="/w3c/resources/testharness.js"></script> <script src="/w3c/resources/testharnessreport.js"></script> <script src="xmlhttprequest-timeout-runner.js"></script> <script type="text/javascript"> function testXhr() { var worker = new Worker("xmlhttprequest-timeout.js"); worker.addEventListener("message", testResultCallbackHandler); var runTests = { "type": "start", "group": groupFromLocation() }; worker.postMessage(runTests); }; </script> </head> <body onload="testXhr()"> <h1>Description</h1> <p>This test validates that the XHR2 timeout property behaves as expected in in a worker context.</p> <div id="log"></div> </body> </html>
Docs/HeaderDoc/GrowlApplicationBridge/toc.html
doshinirav/doshinirav-myversion
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd"> <html> <head> <style type="text/css"><!--a:link {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #0000ff;}a:visited {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #0000ff;}a:visited:hover {text-decoration: underline; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}a:active {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}a:hover {text-decoration: underline; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}h4 {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: tiny; font-weight: bold;}body {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: 10pt;}--></style> <title>Documentation for GrowlApplicationBridge.h</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <style type="text/css"><!--a:link {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #0000ff;}a:visited {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #0000ff;}a:visited:hover {text-decoration: underline; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}a:active {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}a:hover {text-decoration: underline; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}h4 {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: tiny; font-weight: bold;}body {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: 10pt;}--></style> <meta name="generator" content="HeaderDoc"> </head> <body bgcolor="#edf2f6" link="#000099" vlink="#660066" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <font size="-2"><a href="../MasterTOC.html" target="_top" headerdoc="topLink">[Top]</a></font><br><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr height="51" bgcolor="#466C9B"><td>&nbsp;</td></tr></table> <br><table border="0" cellpadding="0" cellspacing="2" width="148"> <tr> <td width="15">&nbsp;</td> <td colspan="2"><font size="5" color="#330066"><b>Header:</b></font></td> </tr> <tr> <td width="15">&nbsp;</td> <td width="15">&nbsp;</td> <td><b><font size="+1">GrowlApplicationBridge.h</font></b></td> </tr> <tr> <td></td> <td colspan="2"> <h4> <br><nobr><a href="CompositePage.html" target="doc">Introduction</a></nobr> </h4> <h4><a href="CompositePage.html" target="doc">#defines </a></h4> <nobr>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="CompositePage.html#//apple_ref/c/macro/GROWL_PREFPANE_BUNDLE_IDENTIFIER" target="doc">GROWL_PREFPANE_BUNDLE_IDENTIFIER</a></nobr><br><nobr>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="CompositePage.html#//apple_ref/c/macro/GROWL_PREFPANE_NAME" target="doc">GROWL_PREFPANE_NAME</a></nobr><br><h4>Classes</h4> <nobr>&nbsp;&nbsp;<a href="Classes/GrowlApplicationBridge/index.html" target="_top">GrowlApplicationBridge</a></nobr><br><h4>Protocols</h4> <nobr>&nbsp;&nbsp;<a href="Protocols/GrowlApplicationBridgeDelegate/index.html" target="_top">GrowlApplicationBridgeDelegate</a></nobr><br><h4>Categories</h4> <nobr>&nbsp;&nbsp;<a href="Categories/NSObject_GrowlApplicationBridgeDelegate_InformalProtocol_/index.html" target="_top">NSObject(GrowlApplicationBridgeDelegate_InformalProtocol)</a></nobr><br><nobr>&nbsp;&nbsp;<a href="Categories/NSObject_GrowlApplicationBridgeDelegate_Installation_InformalProtocol_/index.html" target="_top">NSObject(GrowlApplicationBridgeDelegate_Installation_InformalProtocol)</a></nobr><br> </td> </tr> </table> <p>&nbsp;</p> <p> </p> </body> </html>
zutils/pcap_util/third_party/winpcap/docs/html/group__NPF.html
wubenqi/zutils
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>WinPcap: NPF driver internals manual</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="style.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main&nbsp;Page</span></a></li> <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> </div> <div class="contents"> <h1>NPF driver internals manual<br/> <small> [<a class="el" href="group__internals.html">WinPcap internals</a>]</small> </h1><table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Modules</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NPF__ioctl.html">NPF I/O control codes</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NPF__include.html">NPF structures and definitions</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NPF__code.html">NPF functions</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NPF__jitter.html">NPF Just-in-time compiler definitions</a></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 6.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title></title> </head> <body> <p>This section documents the internals of the Netgroup Packet Filter (NPF), the kernel portion of WinPcap. Normal users are probably interested in how to use WinPcap and not in its internal structure. Therefore the information present in this module is destined mainly to WinPcap developers and maintainers, or to the people interested in how the driver works. In particular, a good knowledge of OSes, networking and Win32 kernel programming and device drivers development is required to profitably read this section.&nbsp;</p> <p>NPF is the WinPcap component that does the hard work, processing the packets that transit on the network and exporting capture, injection and analysis capabilities to user-level.</p> <p>The following paragraphs will describe the interaction of NPF with the OS and its basic structure.</p> <h2>NPF and NDIS</h2> <p>NDIS (Network Driver Interface Specification) is a standard that defines the communication between a network adapter (or, better, the driver that manages it) and the protocol drivers (that implement for example TCP/IP). Main NDIS purpose is to act as a wrapper that allows protocol drivers to send and receive packets onto a network (LAN or WAN) without caring either the particular adapter or the particular Win32 operating system.</p> <p>NDIS supports three types of network drivers:</p> <ol> <li><strong>Network interface card or NIC drivers</strong>. NIC drivers directly manage network interface cards, referred to as NICs. The NIC drivers interface directly to the hardware at their lower edge and at their upper edge present an interface to allow upper layers to send packets on the network, to handle interrupts, to reset the NIC, to halt the NIC and to query and set the operational characteristics of the driver. NIC drivers can be either miniports or legacy full NIC drivers. <ul> <li>Miniport drivers implement only the hardware-specific operations necessary to manage a NIC, including sending and receiving data on the NIC. Operations common to all lowest level NIC drivers, such as synchronization, is provided by NDIS. Miniports do not call operating system routines directly; their interface to the operating system is NDIS.<br> A miniport does not keep track of bindings. It merely passes packets up to NDIS and NDIS makes sure that these packets are passed to the correct protocols. <li>Full NIC drivers have been written to perform both hardware-specific operations and all the synchronization and queuing operations usually done by NDIS. Full NIC drivers, for instance, maintain their own binding information for indicating received data.&nbsp;</li> </ul> <li><strong>Intermediate drivers</strong>. Intermediate drivers interface between an upper-level driver such as a protocol driver and a miniport. To the upper-level driver, an intermediate driver looks like a miniport. To a miniport, the intermediate driver looks like a protocol driver. An intermediate protocol driver can layer on top of another intermediate driver although such layering could have a negative effect on system performance. A typical reason for developing an intermediate driver is to perform media translation between an existing legacy protocol driver and a miniport that manages a NIC for a new media type unknown to the protocol driver. For instance, an intermediate driver could translate from LAN protocol to ATM protocol. An intermediate driver cannot communicate with user-mode applications, but only with other NDIS drivers. <li><b>Transport drivers or protocol drivers</b>. A protocol driver implements a network protocol stack such as IPX/SPX or TCP/IP, offering its services over one or more network interface cards. A protocol driver services application-layer clients at its upper edge and connects to one or more NIC driver(s) or intermediate NDIS driver(s) at its lower edge.</li> </ol> <p>NPF is implemented as a protocol driver. This is not the best possible choice from the performance point of view, but allows reasonable independence from the MAC layer and as well as complete access to the raw traffic.</p> <p>Notice that the various Win32 operating systems have different versions of NDIS: NPF is NDIS 5 compliant under Windows 2000 and its derivations (like Windows XP), NDIS 3 compliant on the other Win32 platforms.&nbsp;</p> <p>Next figure shows the position of NPF inside the NDIS stack:</p> <p align="center"><img border="0" src="npf-ndis.gif"></p> <p align="center"><b>Figure 1: NPF inside NDIS.</b></p> <p>The interaction with the OS is normally asynchronous. This means that the driver provides a set of callback functions that are invoked by the system when some operation is required to NPF. NPF exports callback functions for all the I/O operations of the applications: open, close, read, write, ioctl, etc.</p> <p>The interaction with NDIS is asynchronous as well: events like the arrival of a new packet are notified to NPF through a callback function (Packet_tap() in this case). Furthermore, the interaction with NDIS and the NIC driver takes always place by means of non blocking functions: when NPF invokes a NDIS function, the call returns immediately; when the processing ends, NDIS invokes a specific NPF callback to inform that the function has finished. The driver exports a callback for any low-level operation, like sending packets, setting or requesting parameters on the NIC, etc.</p> <h2>NPF structure basics</h2> <p>Next figure shows the structure of WinPcap, with particular reference to the NPF driver.</p> <p align="center"><img border="0" src="npf-npf.gif" width="500" height="412"></p> <p align="center"><b>Figure 2: NPF device driver.</b> <p>NPF is able to perform a number of different operations: capture, monitoring, dump to disk, packet injection. The following paragraphs will describe shortly each of these operations.</p> <h4>Packet Capture</h4> <p>The most important operation of NPF is packet capture. During a capture, the driver sniffs the packets using a network interface and delivers them intact to the user-level applications.&nbsp; </p> <p>The capture process relies on two main components:</p> <ul> <li> <p>A packet filter that decides if an incoming packet has to be accepted and copied to the listening application. Most applications using NPF reject far more packets than those accepted, therefore a versatile and efficient packet filter is critical for good over-all performance. A packet filter is a function with boolean output that is applied to a packet. If the value of the function is true the capture driver copies the packet to the application; if it is false the packet is discarded. NPF packet filter is a bit more complex, because it determines not only if the packet should be kept, but also the amount of bytes to keep. The filtering system adopted by NPF derives from the <b>BSD Packet Filter</b> (BPF), a virtual processor able to execute filtering programs expressed in a pseudo-assembler and created at user level. The application takes a user-defined filter (e.g. “pick up all UDP packets”) and, using wpcap.dll, compiles them into a BPF program (e.g. “if the packet is IP and the <i>protocol type</i> field is equal to 17, then return true”). Then, the application uses the <i>BIOCSETF</i> IOCTL to inject the filter in the kernel. At this point, the program is executed for every incoming packet, and only the conformant packets are accepted. Unlike traditional solutions, NPF does not <i>interpret</i> the filters, but it <i>executes</i> them. For performance reasons, before using the filter NPF feeds it to a JIT compiler that translates it into a native 80x86 function. When a packet is captured, NPF calls this native function instead of invoking the filter interpreter, and this makes the process very fast. The concept behind this optimization is very similar to the one of Java jitters.</li> <li> <p>A circular buffer to store the packets and avoid loss. A packet is stored in the buffer with a header that maintains information like the timestamp and the size of the packet. Moreover, an alignment padding is inserted between the packets in order to speed-up the access to their data by the applications. Groups of&nbsp; packets can be copied with a single operation from the NPF buffer to the applications. This improves performances because it minimizes the number of reads. If the buffer is full when a new packet arrives, the packet is discarded and hence it's lost. Both kernel and user buffer can be changed at runtime for maximum versatility: packet.dll and wpcap.dll provide functions for this purpose.</li> </ul> <p>The size of the user buffer is very important because it determines the <i>maximum</i> amount of data that can be copied from kernel space to user space within a single system call. On the other hand, it can be noticed that also the <i>minimum</i> amount of data that can be copied in a single call is extremely important. In presence of a large value for this variable, the kernel waits for the arrival of several packets before copying the data to the user. This guarantees a low number of system calls, i.e. low processor usage, which is a good setting for applications like sniffers. On the other side, a small value means that the kernel will copy the packets as soon as the application is ready to receive them. This is excellent for real time applications (like, for example, ARP redirectors or bridges) that need the better responsiveness from the kernel. From this point of view, NPF has a configurable behavior, that allows users to choose between best efficiency or best responsiveness (or any intermediate situation).&nbsp;</p> <p>The wpcap library includes a couple of system calls that can be used both to set the timeout after which a read expires and the minimum amount of data that can be transferred to the application. By default, the read timeout is 1 second, and the minimum amount of data copied between the kernel and the application is 16K.</p> <h4> Packet injection</h4> <p> NPF allows to write raw packets to the network. To send data, a user-level application performs a WriteFile() system call on the NPF device file. The data is sent to the network as is, without encapsulating it in any protocol, therefore the application will have to build the various headers for each packet. The application usually does not need to generate the FCS because it is calculated by the network adapter hardware and it is attached automatically at the end of a packet before sending it to the network.</p> <p>In normal situations, the sending rate of the packets to the network is not very high because of the need of a system call for each packet. For this reason, the possibility to send a single packet more than once with a single write system call has been added. The user-level application can set, with an IOCTL call (code pBIOCSWRITEREP), the number of times a single packet will be repeated: for example, if this value is set to 1000, every raw packet written by the application on the driver's device file will be sent 1000 times. This feature can be used to generate high speed traffic for testing purposes: the overload of context switches is no longer present, so performance is remarkably better.&nbsp;</p> <h4> Network monitoring</h4> <p>WinPcap offers a kernel-level programmable monitoring module, able to calculate simple statistics on the network traffic. The idea behind this module is shown in Figure 2: the statistics can be gathered without the need to copy the packets to the application, that simply receives and displays the results obtained from the monitoring engine. This allows to avoid great part of the capture overhead in terms of memory and CPU clocks.</p> <p>The monitoring engine is made of a <i>classifier</i> followed by a <i>counter</i>. The packets are classified using the filtering engine of NPF, that provides a configurable way to select a subset of the traffic. The data that pass the filter go to the counter, that keeps some variables like the number of packets and the amount of bytes accepted by the filter and updates them with the data of the incoming packets. These variables are passed to the user-level application at regular intervals whose period can be configured by the user. No buffers are allocated at kernel and user level.</p> <h4>Dump to disk</h4> <p>The dump to disk capability can be used to save the network data to disk directly from kernel mode. </p> <p align="center"><img border="0" src="npf-dump.gif" width="400" height="187"> </p> <p align="center"><b>Figure 3: packet capture versus kernel-level dump.</b> </p> <p>In traditional systems, the path covered by the packets that are saved to disk is the one followed by the black arrows in Figure 3: every packet is copied several times, and normally 4 buffers are allocated: the one of the capture driver, the one in the application that keeps the captured data, the one of the stdio functions (or similar) that are used by the application to write on file, and finally the one of the file system. </p> <p>When the kernel-level traffic logging feature of NPF is enabled, the capture driver addresses the file system directly, hence the path covered by the packets is the one of the red dotted arrow: only two buffers and a single copy are necessary, the number of system call is drastically reduced, therefore the performance is considerably better. </p> <p>Current implementation dumps the to disk in the widely used libpcap format. It gives also the possibility to filter the traffic before the dump process in order to select the packet that will go to the disk. </p> <h2>Further reading</h2> <p>The structure of NPF and its filtering engine derive directly from the one of the BSD Packet Filter (BPF), so if you are interested the subject you can read the following papers:</p> <p>- S. McCanne and V. Jacobson, <a href="ftp://ftp.ee.lbl.gov/papers/bpf-usenix93.ps.Z">The BSD Packet Filter: A New Architecture for User-level Packet Capture</a>. Proceedings of the 1993 Winter USENIX Technical Conference (San Diego, CA, Jan. 1993), USENIX.&nbsp;</p> <p>- A. Begel, S. McCanne, S.L.Graham, BPF+: <a href="http://www.acm.org/pubs/articles/proceedings/comm/316188/p123-begel/p123-begel.pdf">Exploiting Global Data-flow Optimization in a Generalized Packet Filter Architecture</a>, Proceedings of ACM SIGCOMM '99, pages 123-134, Conference on Applications, technologies, architectures, and protocols for computer communications, August 30 - September 3, 1999, Cambridge, USA</p> <h2>Note</h2> <p>The code documented in this manual is the one of the Windows NTx version of NPF.&nbsp;The Windows 9x code is very similar, but it is less efficient and lacks advanced features like kernel-mode dump.</p> <p> </body> </html> </div> <hr> <p align="right"><img border="0" src="winpcap_small.gif" align="absbottom" width="91" height="27"> documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2009 CACE Technologies. All rights reserved.</p>
Les Royaumes de Midgard/midgard.css
suldae/roll20-character-sheets
.charsheet { background-color:#FFFFFF; } table { width:100%; border:0px; background-color:#FFFFFF; box-shadow: 6px 6px 12px black; color:#000000; } textarea { width:100%; border:0px; background-color:#FFFFFF; box-shadow: 6px 6px 12px black; color:#000000; } input { width:100% !important; } input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } input[type=number] { -moz-appearance:textfield; } .sheet-runes { vertical-align: top; padding: 0px; } .repcontrol_add, .repcontrol_move { float:left; } .sheet-rolltemplate-rm table, .sheet-rolltemplate-rm2 table, .sheet-rolltemplate-rm3 table { width:100%; } .sheet-rolltemplate-rm .sheet-titre, .sheet-rolltemplate-rm2 .sheet-titre, .sheet-rolltemplate-rm3 .sheet-titre { width:100%; border:2px black; background-color:#000000; box-shadow: 6px 6px 12px black; color:#FFFFFF; } .sheet-rolltemplate-rm th, .sheet-rolltemplate-rm2 th, .sheet-rolltemplate-rm3 th { text-align: center; } .sheet-rolltemplate-rm .sheet-jet, .sheet-rolltemplate-rm2 .sheet-jet, .sheet-rolltemplate-rm3 .sheet-jet { width:100%; border:2px black; background-color:#FFFFFF; box-shadow: 6px 6px 12px black; color:#000000; text-align: center; } .sheet-rolltemplate-rm .inlinerollresult, .sheet-rolltemplate-rm2 .inlinerollresult, .sheet-rolltemplate-rm3 .inlinerollresult { display: inline-block; min-width: 1.5em; text-align: center; border: none; background-color: Transparent; } .sheet-rolltemplate-rm .inlinerollresult.fullcrit, .sheet-rolltemplate-rm2 .inlinerollresult.fullcrit, .sheet-rolltemplate-rm3 .inlinerollresult.fullcrit{ border: none; } .sheet-rolltemplate-rm .inlinerollresult.fullfail, .sheet-rolltemplate-rm2 .inlinerollresult.fullfail, .sheet-rolltemplate-rm3 .inlinerollresult.fullfail{ border: none; } .sheet-rolltemplate-rm .inlinerollresult.importantroll, .sheet-rolltemplate-rm2 .inlinerollresult.importantroll, .sheet-rolltemplate-rm3 .inlinerollresult.importantroll{ border: none; }
venv/bin/libs/spirit/doc/html/spirit/karma/tutorials/karma_complex.html
NixaSoftware/CVis
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Complex - A first more complex generator</title> <link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="../../../index.html" title="Spirit 2.5.2"> <link rel="up" href="../tutorials.html" title="Tutorials"> <link rel="prev" href="semantic_actions.html" title="Generator Semantic Actions"> <link rel="next" href="karma_easier_complex.html" title="Complex - Made easier"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <td align="center"><a href="../../../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="semantic_actions.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tutorials.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="karma_easier_complex.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="spirit.karma.tutorials.karma_complex"></a><a class="link" href="karma_complex.html" title="Complex - A first more complex generator">Complex - A first more complex generator</a> </h4></div></div></div> <p> In this section we will develop a generator for complex numbers, allowing to represent a <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">complex</span></code> either as <code class="computeroutput"><span class="special">(</span><span class="identifier">real</span><span class="special">,</span> <span class="identifier">imag</span><span class="special">)</span></code> (where <code class="computeroutput"><span class="identifier">real</span></code> and <code class="computeroutput"><span class="identifier">imag</span></code> are the real and imaginary parts of the complex number) or as a simple <code class="computeroutput"><span class="identifier">real</span></code> if the imaginary part happens to be equal to zero. This example will highlight the power of <span class="emphasis"><em>Spirit.Karma</em></span> allowing to combine compile time definition of formatting rules with runtime based decisions which of the rules to apply. Also this time, we're using <a href="../../../../../../../libs/phoenix/doc/html/index.html" target="_top">Boost.Phoenix</a> to do the semantic actions. </p> <p> Our goal is to allow for two different output formats to be applied depending on whether the imaginary part of the complex number is zero or not. Let's write both as a set of alternatives: </p> <pre class="programlisting"> <span class="char">'('</span> <span class="special">&lt;&lt;</span> <span class="identifier">double_</span> <span class="special">&lt;&lt;</span> <span class="string">", "</span> <span class="special">&lt;&lt;</span> <span class="identifier">double_</span> <span class="special">&lt;&lt;</span> <span class="char">')'</span> <span class="special">|</span> <span class="identifier">double_</span> </pre> <p> where the first alternative should be used for numbers having a non-zero imaginary part, while the second is for real numbers. Generally, alternatives are tried in the sequence of their definition as long until one of the expressions (as delimited by <code class="computeroutput"><span class="char">'|'</span></code>) succeeds. If no generator expression succeeds the whole alternative fails. </p> <p> If we left this formatting grammar as is our generator would always choose the first alternative. We need to add some additional rules allowing to make the first alternative fail. So, if the first alternative fails the second one will be chosen instead. The decision about whether to choose the first alternative has to be made at runtime as only then we actually know the value of the imaginary part of the complex number. <span class="emphasis"><em>Spirit.Karma</em></span> provides us with with a primitive generator <code class="computeroutput"><span class="identifier">eps</span><span class="special">()</span></code>, which is usable as a semantic predicate. It has the property to 'succeed' generating only if its argument is true (while it never generates any output on its own). </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">imag</span> <span class="special">=</span> <span class="special">...;</span> <span class="comment">// imaginary part</span> <span class="identifier">eps</span><span class="special">(</span><span class="identifier">imag</span> <span class="special">!=</span> <span class="number">0</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="char">'('</span> <span class="special">&lt;&lt;</span> <span class="identifier">double_</span> <span class="special">&lt;&lt;</span> <span class="string">", "</span> <span class="special">&lt;&lt;</span> <span class="identifier">double_</span> <span class="special">&lt;&lt;</span> <span class="char">')'</span> <span class="special">|</span> <span class="identifier">double_</span> </pre> <p> If one of the generator elements of a sequence fails the whole sequence will fail. This is exactly what we need, forcing the second alternative to be chosen for complex numbers with imaginary parts equal to zero. </p> <p> Now on to the full example, this time with the proper semantic actions (the complete cpp file for this example can be found here: <a href="../../../../../example/karma/complex_number.cpp" target="_top">complex_number.cpp</a>). </p> <p> We will use the <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">complex</span></code> type for this and all subsequent related examples. And here you can see the full code of the generator allowing to output a complex number either as a pair of numbers (if the imaginary part is non-zero) or as a single number (if the complex is a real number): </p> <p> </p> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">OutputIterator</span><span class="special">&gt;</span> <span class="keyword">bool</span> <span class="identifier">generate_complex</span><span class="special">(</span><span class="identifier">OutputIterator</span> <span class="identifier">sink</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">complex</span><span class="special">&lt;</span><span class="keyword">double</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">c</span><span class="special">)</span> <span class="special">{</span> <span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">karma</span><span class="special">::</span><span class="identifier">eps</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">karma</span><span class="special">::</span><span class="identifier">double_</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">karma</span><span class="special">::</span><span class="identifier">_1</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">karma</span><span class="special">::</span><span class="identifier">generate</span><span class="special">;</span> <span class="keyword">return</span> <span class="identifier">generate</span><span class="special">(</span><span class="identifier">sink</span><span class="special">,</span> <span class="comment">// Begin grammar</span> <span class="special">(</span> <span class="identifier">eps</span><span class="special">(</span><span class="identifier">c</span><span class="special">.</span><span class="identifier">imag</span><span class="special">()</span> <span class="special">!=</span> <span class="number">0</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="char">'('</span> <span class="special">&lt;&lt;</span> <span class="identifier">double_</span><span class="special">[</span><span class="identifier">_1</span> <span class="special">=</span> <span class="identifier">c</span><span class="special">.</span><span class="identifier">real</span><span class="special">()]</span> <span class="special">&lt;&lt;</span> <span class="string">", "</span> <span class="special">&lt;&lt;</span> <span class="identifier">double_</span><span class="special">[</span><span class="identifier">_1</span> <span class="special">=</span> <span class="identifier">c</span><span class="special">.</span><span class="identifier">imag</span><span class="special">()]</span> <span class="special">&lt;&lt;</span> <span class="char">')'</span> <span class="special">|</span> <span class="identifier">double_</span><span class="special">[</span><span class="identifier">_1</span> <span class="special">=</span> <span class="identifier">c</span><span class="special">.</span><span class="identifier">real</span><span class="special">()]</span> <span class="special">)</span> <span class="comment">// End grammar</span> <span class="special">);</span> <span class="special">}</span> </pre> <p> </p> <p> The <code class="computeroutput"><span class="identifier">double_</span></code> generators have this semantic action attached: </p> <pre class="programlisting"><span class="identifier">_1</span> <span class="special">=</span> <span class="identifier">n</span> </pre> <p> which passes <code class="computeroutput"><span class="identifier">n</span></code> to the first element of the s generator's attached semantic action. Remember, semantic actions in <span class="emphasis"><em>Spirit.Karma</em></span> are called before the corresponding generator is invoked and they are expected to provide the generator with the data to be used. The semantic action above assigns the value to be generated (<code class="computeroutput"><span class="identifier">n</span></code>) to the generator (actually, the attribute of <code class="computeroutput"><span class="identifier">double_</span></code>). <code class="computeroutput"><span class="identifier">_1</span></code> is a Phoenix placeholder referring to the attribute of the semantic action's attached generator. If you need more information about semantic actions, you may want to read about them in this section: <a class="link" href="semantic_actions.html" title="Generator Semantic Actions">Semantic Actions</a>. </p> <p> These semantic actions are easy to understand but have the unexpected side effect of being slightly less efficient than it could be. In addition they tend to make the formatting grammar less readable. We will see in one of the next sections how it is possible to use other, built-in features of <span class="emphasis"><em>Spirit.Karma</em></span> to get rid of the semantic actions altogether. When writing your grammars in Spirit you should always try to avoid semantic actions which is often possible. Semantic actions are really powerful tools but grammars tend to be more efficient and readable without them. </p> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2001-2011 Joel de Guzman, Hartmut Kaiser<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="semantic_actions.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tutorials.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="karma_easier_complex.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
packages/rocketchat-livechat/assets/demo.html
tntobias/Rocket.Chat
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" /> <script type="text/javascript"> (function(w, d, s, u) { w.RocketChat = function(c) { w.RocketChat._.push(c) }; w.RocketChat._ = []; w.RocketChat.url = u; var h = d.getElementsByTagName(s)[0], j = d.createElement(s); j.async = true; j.src = '/packages/rocketchat_livechat/assets/rocket-livechat.js'; h.parentNode.insertBefore(j, h); })(window, document, 'script', '/livechat'); </script> </head> <!-- Access: http://localhost:3000/packages/rocketchat_livechat/assets/demo.html --> <body style="background-color: #EFEFEF"> <h1 style="color:#000">test</h1> <p style="color:#000">Talk to us.</p> <h2>changing page title</h2> <a href="#page-0" onclick="document.title='page-0'">page 0</a><br> <a href="#page-1" onclick="document.title='page-1'">page 1</a><br> <a href="#page-2" onclick="document.title='page-2'">page 2</a><br> <a href="#page-3" onclick="document.title='page-3'">page 3</a><br> <h2>without changing page title</h2> <a href="#page-4">page 4</a><br> <a href="#page-5">page 5</a><br> <a href="#page-6">page 6</a><br> <a href="#page-7">page 7</a><br> <script type="text/javascript"> RocketChat(function() { this.setCustomField('key-test', 'value test'); }); </script> </body> </html>
web/ui/bower_components/heatmap/docs/assets/css/prism.css
mediahackday/districtsintown
* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript */ /** * prism.js default theme for JavaScript, CSS and HTML * Based on dabblet (http://dabblet.com) * @author Lea Verou */ code[class*="language-"], pre[class*="language-"] { color: black; text-shadow: 0 1px white; font-family: Consolas, Monaco, 'Andale Mono', monospace; direction: ltr; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; -moz-tab-size: 4; -o-tab-size: 4; tab-size: 4; -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; } pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection { text-shadow: none; background: #b3d4fc; } pre[class*="language-"]::selection, pre[class*="language-"] ::selection, code[class*="language-"]::selection, code[class*="language-"] ::selection { text-shadow: none; background: #b3d4fc; } @media print { code[class*="language-"], pre[class*="language-"] { text-shadow: none; } } /* Code blocks */ pre[class*="language-"] { padding: 1em; margin: .5em 0; overflow: auto; } :not(pre) > code[class*="language-"], pre[class*="language-"] { background: #f5f2f0; } /* Inline code */ :not(pre) > code[class*="language-"] { padding: .1em; border-radius: .3em; } .token.comment, .token.prolog, .token.doctype, .token.cdata { color: slategray; } .token.punctuation { color: #999; } .namespace { opacity: .7; } .token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol { color: #905; } .token.selector, .token.attr-name, .token.string, .token.builtin { color: #690; } .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string, .token.variable { color: #a67f59; background: hsla(0,0%,100%,.5); } .token.atrule, .token.attr-value, .token.keyword { color: #07a; } .token.regex, .token.important { color: #e90; } .token.important { font-weight: bold; } .token.entity { cursor: help; }
thirdparty/glm-0.9.9.8/glm/doc/api/search/typedefs_b.html
Jean-LouisH/LaniaEngine
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title></title> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta name="generator" content="Doxygen 1.8.10"/> <link rel="stylesheet" type="text/css" href="search.css"/> <script type="text/javascript" src="typedefs_b.js"></script> <script type="text/javascript" src="search.js"></script> </head> <body class="SRPage"> <div id="SRIndex"> <div class="SRStatus" id="Loading">Loading...</div> <div id="SRResults"></div> <script type="text/javascript"><!-- createResults(); --></script> <div class="SRStatus" id="Searching">Searching...</div> <div class="SRStatus" id="NoMatches">No Matches</div> <script type="text/javascript"><!-- document.getElementById("Loading").style.display="none"; document.getElementById("NoMatches").style.display="none"; var searchResults = new SearchResults("searchResults"); searchResults.Search(); --></script> </div> </body> </html>
static/*.kateadams.eu/Consor/Doxygen/search/all_14.html
KateAdams/kateadams.eu
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title></title> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta name="generator" content="Doxygen 1.8.7"/> <link rel="stylesheet" type="text/css" href="search.css"/> <script type="text/javascript" src="all_14.js"></script> <script type="text/javascript" src="search.js"></script> </head> <body class="SRPage"> <div id="SRIndex"> <div class="SRStatus" id="Loading">Loading...</div> <div id="SRResults"></div> <script type="text/javascript"><!-- createResults(); --></script> <div class="SRStatus" id="Searching">Searching...</div> <div class="SRStatus" id="NoMatches">No Matches</div> <script type="text/javascript"><!-- document.getElementById("Loading").style.display="none"; document.getElementById("NoMatches").style.display="none"; var searchResults = new SearchResults("searchResults"); searchResults.Search(); --></script> </div> </body> </html>
web/components/ocdgplates-element/bower_components/iron-fit-behavior/demo/simple-fit.html
glcomponents/glcomponents.github.io
<!-- @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt --> <link rel="import" href="../../polymer/polymer.html"> <link rel="import" href="../iron-fit-behavior.html"> <link rel="import" href="../../paper-styles/color.html"> <dom-module id="simple-fit"> <style> :host { background-color: var(--paper-light-blue-500); color: white; text-align: center; } </style> <template> <content></content> </template> </dom-module> <script> Polymer({ is: 'simple-fit', behaviors: [ Polymer.IronFitBehavior ] }); </script>
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/site/themes/wso2/templates/subscription/subscription-list-element/css/styles.css
dhanuka84/carbon-apimgt
.tabElementset{ color:#333333; text-align:left; padding: 0 0 20px 0; } .form-horizontal .control-label { text-align: left; } .cDivPlusIcon{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; text-decoration: underline; } .cDivPlusIconSandBox{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; text-decoration: underline; } .cDivPlusIconSandBoxContact{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; text-decoration: underline; } .cDivPlusIconContact{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; text-decoration: underline; } .cDivPlusIconCommon { text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; text-decoration: underline; } .cDivCallBackURL{ padding: 0 0 0 0; } .cDivCallBackUrlElement{ padding: 0 0 3px 0; } .cDivCallBackUrlElementSandBox{ padding: 0 0 3px 0; } .cDivTabLabel{ width: 125px; text-align: center; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; } .cDivTabInput{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; } .cDivElementFirst{ text-align: center; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; } .cDivAuthAppListHeader{ text-align: center; /*display: inline-block;*/ vertical-align: top; *display: inline; *zoom: 1; /*padding: 10px 10px 10px 10px;*/ /*border-right: solid 1px;*/ /*width: 20%;*/ } .cDivAuthappdetails{ text-align: left; /*display: inline-block;*/ vertical-align: top; *display: inline; *zoom: 1; padding: 10px 10px 10px 10px; /*border-right: solid 1px;*/ /*width: 20%;*/ word-wrap: break-word; } .cDivHeaderCaption{ text-align: left; /*display: inline-block;*/ vertical-align: top; *display: inline; *zoom: 1; padding: 0px 10px 0px 10px; font-size: 13px; font-weight: bold; } .cDivAllowDomain{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; padding: 10px; font-size: 13px; font-weight: bold; width:377px; min-height: 300px; background-color: #ececec; } .cDivActionList{ text-align: center; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; padding: 2px; cursor: pointer; width: 100px; } .cDisplayNone { display: none; } .cDivTabSection{ width: 500px; } .cDivProductionBox{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; padding: 10px; width: 425px; } .cDivSandBoxApplication{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; padding: 10px; width: 500px; } .cDivConsumerSecColumn{ width: 400px; } .btn-primary{ width: 100px; } .cDivRemoveIcon{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; text-decoration: underline; } .cDivRemoveIconSandBox{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; text-decoration: underline; } .cDivOptionButtons{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; text-decoration: underline; padding: 0px 10px 10px 10px; } .cDivGrantElement{ } .cDivAuthMethodElement{ padding: 0px 0px 10px 0px; } .iGrants{ vertical-align: top; } .grantGroup{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; padding: 0 0 0 10px; } .grantGroupSandBox{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; padding: 0 0 0 10px; } .cDivAuthMethodLbl{ width: 300px; text-align: left; padding: 0 0 0 10px; } .cDivTabCreateClient { width: 425px; } .cDivTabCreateClientSandbox{ width: 425px; } .tab-pane{ padding: 20px 0 0 0; } .input-large{ text-align: left; } .cDivRemoveIcon{ cursor: pointer; } .cDivPlusIcon{ cursor: pointer; } .cDivAuthMethodLbl{ padding: 0 0 0 0px; } .cDivAuthAppList{ text-align: left; display: inline-block; vertical-align: top; *display: inline; *zoom: 1; } #iDivProductionToogleBtn{ width: 100px; height: 30px; } #iSandBoxToogleBtn{ width: 100px; height: 30px; } #iDivProductionSaveSectionWrapper{ display: none; } #iDivSandBoxSaveSectionWrapper{ display: none; } .btn-generatekeys{ width: 125px; } .btn-providekeys{ width: 125px; }
module8/dotNet/ContosoConf/styles/footer.css
theglue99/Interface480
/* Style for the page footer */ footer.page-footer { background-color: #333; color: #fff; font-size: 1.4rem; height: 18rem; } footer.page-footer .container { padding: 1rem; } /* To stick the footer at the bottom of the page, give the page-section a min-height so it pushes down */ section.page-section { min-height: calc(100% - 46.6rem); /* 46.6rem is the combined height of the nav, header and footer. */ }
orion_web/orion_web_theme/orion_web_theme_external/src/main/resources/external/css/cookiebar/language/fr.html
orioncode/orionplatform
<div id="cookie-bar-prompt" style="display:none"> <div id="cookie-bar-prompt-content"> <a rel='nofollow' id="cookie-bar-prompt-logo" href="http://cookie-bar.eu"><span>cookie bar</span></a> <a rel='nofollow' id="cookie-bar-prompt-close"><span>fermer</span></a> <div class="clear"></div> <p>Ce site utilise des cookies pour améliorer l'expérience de navigation et fournir des fonctionnalités supplémentaires. Ces données ne seront pas utilisées pour vous identifier ou vous contacter.<br> <i id='cookie-bar-thirdparty'> <br>Ce site utilise des cookies de tiers. Vous pouvez en savoir plus dans la politique de confidentialité.<br> </i> <i id='cookie-bar-tracking'> <br>Ce site utilise des cookies de pistage. Vous pouvez en savoir plus dans la politique de confidentialité.<br> </i> <i id='cookie-bar-privacy-page'> <br>Pour savoir comment ce site utilise les cookies ou la technologie du localStorage, lisez notre <a rel='nofollow' id='cookie-bar-privacy-link' href=''>politique de confidentialité</a>.<br><br></i> <br>En cliquant sur le bouton <span>Autoriser les cookies</span>, <span id='cookie-bar-scrolling'>ou en faisant défiler la page,</span> vous consentez à ce que ce site sauvegarde quelques petits blocs de données sur votre ordinateur. <i id='cookie-bar-no-consent'> <br> <br>En cliquant sur le bouton <span>Ne pas autoriser les cookies</span> vous refusez votre consentement, éliminant tous les cookies et les données localStorage déjà présents (certaines parties du site peuvent cesser de fonctionner correctement).</i><br> <br>Pour en savoir plus sur les cookies et le localStorage, visitez le site de la <a rel='nofollow' target='_blank' href='https://www.cnil.fr/vos-obligations/sites-web-cookies-et-autres-traceurs/'>Commission Nationale de l'Informatique et des Libertés</a>. <hr> Pour désactiver tous les cookies dans votre navigateur, cliquez sur l'icône correspondante et suivez les instructions : <br> <br> <div id='cookie-bar-browsers'> <!-- Thanks Peequi for the icons http://ampeross.deviantart.com/art/Peequi-part-1-290622606 --> <a rel='nofollow' class='chrome' target='_blank' href='https://support.google.com/accounts/answer/61416?hl=fr'><span>Chrome</span></a> <a rel='nofollow' class='firefox' target='_blank' href='https://support.mozilla.org/fr/kb/activer-desactiver-cookies'><span>Firefox</span></a> <a rel='nofollow' class='ie' target='_blank' href='http://windows.microsoft.com/fr-fr/internet-explorer/delete-manage-cookies'><span>Internet Explorer</span></a> <a rel='nofollow' class='opera' target='_blank' href='http://help.opera.com/Windows/10.00/fr/cookies.html'><span>Opera</span></a> <a rel='nofollow' class='safari' target='_blank' href='https://support.apple.com/kb/PH17191?locale=fr_FR'><span>Safari</span></a> </div> <br> </p> </div> </div> <div id="cookie-bar" style="display:none"> <p>Ce site utilise des cookies pour améliorer l'expérience de navigation et fournir des fonctionnalités supplémentaires. <a rel='nofollow' id="cookie-bar-prompt-button" data-alt="Politique de confidentialité">En savoir plus</a> </p> <a rel='nofollow' id="cookie-bar-button-no">Ne pas autoriser les cookies</a> <a rel='nofollow' id="cookie-bar-button">Autoriser les cookies</a> </div>
test/rm_attr.html
007design/node-trumpet
<div class="a"><input type="text" zzz="..." value="xyz"></div>
src/Orchard.Web/Modules/Orchard.Resources/Styles/jquery-datetime-editor.css
bedegaming-aleksej/Orchard
/* ** NOTE: This file is generated by Gulp and should not be edited directly! ** Any changes made directly to this file will be overwritten next time its asset group is processed by Gulp. */ .time .timeEntry_control { position: relative; top: -2px; margin-left: 4px; }
web/jpgraph/docs/chunkhtml/ch15s06.html
daveseff/DS_Scheduler
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Contour graphs</title><link rel="stylesheet" type="text/css" href="manual.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.0"><link rel="home" href="index.html" title="JpGraph Manual"><link rel="up" href="ch15.html" title="Chapter 15. Different types of linear (cartesian) graph types"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Contour graphs </th></tr><tr><td width="20%" align="left"> </td><th width="60%" align="center">Chapter 15. Different types of linear (cartesian) graph types</th><td width="20%" align="right"> </td></tr></table><hr></div><div class="sect1" title="Contour graphs"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sec.contour-graphs"></a>Contour graphs </h2></div></div></div> <p>In order to create Radar graphs the module "<code class="filename">jpgraph_contour.php</code>" must first be included.</p> <p> </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3> <p> The Pro-version (&gt;= v3.1) also includes a module "<code class="filename">jpgraph_contourf.php</code>" which is also supports filled contour plots as well as labelling in the plots of the isobar lines. The pro-version also uses a more advanced adaptive-mesh algorithm that give better resolution without manual interpolation of the original data. Both triangular and rectangular interpolation meshes are supported. The filled contour is described in <a class="xref" href="ch23.html" title="Chapter 23. Filled contour graphs">Chapter 23. <i>Filled contour graphs</i></a> </p> </div><p> </p> <p>Contour plots are used to plot the isobar lines (height curves) of a three dimensional (3D) graph. The contour plot itself is only a two-dimensional plot and looks like an ordinary topographic map. An example of a contour graph is shown in <a class="xref" href="ch15s06.html#fig.basic_contourex01" title="Figure 15.75. A basic contour graph (basic_contourex01.php)">Figure 15.75. A basic contour graph <code class="uri"><a class="uri" href="example_src/basic_contourex01.html" target="_top">(<code class="filename">basic_contourex01.php</code>)</a></code> </a></p> <p> </p><div class="figure"><a name="fig.basic_contourex01"></a><p class="title"><b>Figure 15.75. A basic contour graph <code class="uri"><a class="uri" href="example_src/basic_contourex01.html" target="_top">(<code class="filename">basic_contourex01.php</code>)</a></code> </b></p><div class="figure-contents"> <span class="inlinemediaobject"><img src="images/basic_contourex01.png" alt="A basic contour graph (basic_contourex01.php)"></span> </div></div><p><br class="figure-break"> </p> <p>A contour graph is both similar and different from other types x-y graphs.</p> <p> </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> <p>A contour graph uses the standard x-y <code class="code">class Graph</code> as basic graph canvas</p> </li><li class="listitem"> <p>A contour graph has all the standard graph formatting options</p> </li><li class="listitem"> <p>The legend is automatically generated</p> </li><li class="listitem"> <p>The input data is a matrix and not an array</p> </li></ul></div><p> </p> <p>There are primarily four main parameters that can be used to control the apparency of the contour plots</p> <p> </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"> <p><span class="bold"><strong>the number of isobar lines</strong></span>, by default 10 isobar lines are used</p> </li><li class="listitem"> <p><span class="bold"><strong>the level of data grid interpolating,</strong></span> i.e. to give the appearance of smoother isobar lines it is possible to tell the library to create a number of intermediate points between the given points in the input data matrix. It is important to note that this does not create any further real information it only creates smoother lines under the assumption that it is valid to assume linear interpolation between the original data points. </p> <p>The level of interpolation is specified as an integer in the practical range 1 to 5. A level of 1 corresponds to just keeping the original data, a level of 2 corresponds to subdividing the original data points in two, i.e. one extra interpolated points is created in both x- and y-direction and so on. A level of 3 corresponds to further sub-divding the level 2 matrix one more time. </p> <p>Even though it is theoretically possible to use an arbitrary interpolation factor the library does not allow an interpolation factor larger than 5. The reason is purely computational since the total number of data points increases very quickly.</p> <p>For example if the original grid has size 10x10 (=100 data points) interpolating this grid with a factor of 5 will generate a new matrix of size 145x145 (=21025 data points).</p> </li><li class="listitem"> <p><span class="bold"><strong>flip around the Y-axis</strong></span>. By default the first row in the input matrix corresponds to y=0, however this also means that the plotted contour will be flipped compared with the input matrix since y=0 is at the bottom of the graph. If for visual appearance reason one wants the input data matrix to have the same orientation as the resulting graph it is possible to have the library interpret the last row in the input data matrix as y=0 instead</p> </li><li class="listitem"> <p><span class="bold"><strong>the color of the isobar lines</strong></span>. By default they will be assigned from the natural color spectra with pure dark blue corresponding to the lowest point in the plot and pure red corresponding to the highest isobar.</p> </li></ol></div><p> </p> <p>The remaining possibilities to adjust the appearance of the contour plot corresponds to the standard ways of changing the layout of the graph, for example adding titles, adjusting colors and changing the type of axis to be displayed.</p> <p>The scale of the contour plot is by default the natural scale, i.e. the points are assumed to be numbered (0..n) where n is the number of points in the corresponding direction and also corresponds to each entry in the input data matrix.</p> <div class="sect2" title="Input data for contour graphs"><div class="titlepage"><div><div><h3 class="title"><a name="id2562600"></a>Input data for contour graphs</h3></div></div></div> <p>The input data to a contour graph is a matrix. The value at each entry in the matrix represents the heights at the specified (row,col) in the matrix. In all of our example we will use the following data matrix</p> <p> </p><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 2 3 4 5 6 7 8 9 10 11 12 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags">&lt;?php</span><span class="hl-code"> </span><span class="hl-var">$data</span><span class="hl-code"> = </span><span class="hl-reserved">array</span><span class="hl-brackets">(</span><span class="hl-code"> </span><span class="hl-reserved">array</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-number">.5</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-number">.1</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-number">.5</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-code">,</span><span class="hl-number">0</span><span class="hl-number">.1</span><span class="hl-brackets">)</span><span class="hl-code">, </span><span class="hl-reserved">array</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-number">1</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-number">.5</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">5</span><span class="hl-code">,</span><span class="hl-number">6</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-number">.2</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-code">,</span><span class="hl-number">4</span><span class="hl-brackets">)</span><span class="hl-code">, </span><span class="hl-reserved">array</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-number">.9</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-number">.1</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-code">,</span><span class="hl-number">6</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">7</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-number">.4</span><span class="hl-brackets">)</span><span class="hl-code">, </span><span class="hl-reserved">array</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-number">1</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-number">.5</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">4</span><span class="hl-code">,</span><span class="hl-number">6</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">5</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-number">.5</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-brackets">)</span><span class="hl-code">, </span><span class="hl-reserved">array</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-number">.8</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-code">,</span><span class="hl-number">4</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">4</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-number">.4</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-brackets">)</span><span class="hl-code">, </span><span class="hl-reserved">array</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-number">.6</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-number">.1</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-number">.5</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-code">,</span><span class="hl-number">4</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-number">.5</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-code">,</span><span class="hl-number">4</span><span class="hl-brackets">)</span><span class="hl-code">, </span><span class="hl-reserved">array</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-number">1</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-number">.5</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">5</span><span class="hl-code">,</span><span class="hl-number">6</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-number">.2</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-number">.7</span><span class="hl-code">,</span><span class="hl-number">4</span><span class="hl-brackets">)</span><span class="hl-code">, </span><span class="hl-reserved">array</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-number">.8</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-code">,</span><span class="hl-number">5</span><span class="hl-number">.5</span><span class="hl-code">,</span><span class="hl-number">6</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-number">.4</span><span class="hl-brackets">)</span><span class="hl-code">, </span><span class="hl-reserved">array</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-number">1</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-number">.5</span><span class="hl-code">,</span><span class="hl-number">3</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">4</span><span class="hl-code">,</span><span class="hl-number">6</span><span class="hl-number">.0</span><span class="hl-code">,</span><span class="hl-number">5</span><span class="hl-code">,</span><span class="hl-number">2</span><span class="hl-code">,</span><span class="hl-number">1</span><span class="hl-code">,</span><span class="hl-number">0</span><span class="hl-number">.5</span><span class="hl-code">,</span><span class="hl-number">0</span><span class="hl-number">.2</span><span class="hl-brackets">)</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-inlinetags">?&gt;</span></pre></td></tr></table></div><p> </p> <p>By default the entry (0,0), i.e. row=0, col=0 will be positioned at graph position (0,0), i.e. the lower left corner. Since this will represent an inverted image compare to the data matrix. In order to have the graph oriented in the same way as the data matrix, i.e. entry (0,0) positioned in the top left corner the method</p> <p> </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> <p><code class="code">ContourPlot::SetInvert($aFlg=true)</code></p> </li></ul></div><p> </p> <p>In order to get a smooth contour plot it is necessary to have adequate number of data points. What consists "adequate" number depends on the overall graph size. The larger graph the more points are needed. To help crate smooth contour plot the library offers automatic linear interpolation to specified depth. It is important to note that this does not increase the accuracy. It merely creates artificial point to draw smoother curves. This technique is described in detail in <a class="xref" href="ch15s06.html#sec.grid-interpolating" title="Understanding mesh interpolation">Understanding mesh interpolation</a></p> <div class="tip" title="Tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Tip</h3> <p>If the data for the matrix is available in a file a convinient way to get hold of the dat in the file is to use the utility <code class="code">class ReadFileData</code> to get hold of the data using the method<code class="code"> ReadFileData::FromMatrix($aFile,$aSeparator=' ')</code> which read the matrix from a file. Each row of the matrix must be a separate line and each cell is separated with the character specified as the second argument. By default a space is used as separator. All values read back are converted to floating point numbers (double precision). The following short example shows how easy this is to use</p> <p> </p><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-code">$data = ReadFileData::FromMatrix('matrixdata.txt');</span></pre></td></tr></table></div><p> </p> </div> </div> <div class="sect2" title="Creating a contour graph"><div class="titlepage"><div><div><h3 class="title"><a name="sec.creating-contour-graph"></a>Creating a contour graph</h3></div></div></div> <p><a class="xref" href="ch15s06.html#fig.basic_contourex01" title="Figure 15.75. A basic contour graph (basic_contourex01.php)">Figure 15.75. A basic contour graph <code class="uri"><a class="uri" href="example_src/basic_contourex01.html" target="_top">(<code class="filename">basic_contourex01.php</code>)</a></code> </a> shows the most basic contour plot. This is crated by first instantiating a graph and then creating an instance of <code class="code">class ContourPlot</code> which is added to the graph. </p> <p>The constructor for <code class="code">class ContourPlot</code> has the following signature</p> <p> </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> <p><code class="code">ContourPlot::__construct($aDataMatrix, $aIsobar=10, $aFactor=1, $aInvert=false, $aIsobarColors=array())</code></p> <p><code class="code">$aDataMatrix</code>, The input data</p> <p><code class="code">$aIsobar</code>, The number of isobars if the argument is an integer or an array specifying the exact locations of each isobar if the argument is an array</p> <p><code class="code">$aFactor</code>, Grid interpolation factor</p> <p><code class="code">$aInvert</code>, Invert the data matrix so the matrix entry (0,0) corresponds to the top left corner</p> <p><code class="code">$aIsobarColors</code>, Optional specification of isobar colors </p> </li></ul></div><p> </p> <p>This means that the common structure to create a basic contour plot will be</p> <p> </p><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags">&lt;?php</span><span class="hl-code"> </span><span class="hl-var">$data</span><span class="hl-code"> = </span><span class="hl-reserved">array</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-code"> </span><span class="hl-reserved">array</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-code"> ... </span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-comment">//</span><span class="hl-comment"> Basic contour graph</span><span class="hl-comment"></span><span class="hl-code"> </span><span class="hl-var">$graph</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">Graph</span><span class="hl-brackets">(</span><span class="hl-var">$width</span><span class="hl-code">,</span><span class="hl-var">$height</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-var">$graph</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetScale</span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">intint</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-comment">//</span><span class="hl-comment"> Adjust the margins to fit the margin</span><span class="hl-comment"></span><span class="hl-code"> </span><span class="hl-var">$graph</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetMargin</span><span class="hl-brackets">(</span><span class="hl-number">30</span><span class="hl-code">,</span><span class="hl-number">100</span><span class="hl-code">,</span><span class="hl-number">40</span><span class="hl-code">,</span><span class="hl-number">30</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-comment">//</span><span class="hl-comment"> Setup</span><span class="hl-comment"></span><span class="hl-code"> </span><span class="hl-var">$graph</span><span class="hl-code">-&gt;</span><span class="hl-identifier">title</span><span class="hl-code">-&gt;</span><span class="hl-identifier">Set</span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">Basic contour plot</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-var">$graph</span><span class="hl-code">-&gt;</span><span class="hl-identifier">title</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetFont</span><span class="hl-brackets">(</span><span class="hl-identifier">FF_ARIAL</span><span class="hl-code">,</span><span class="hl-identifier">FS_BOLD</span><span class="hl-code">,</span><span class="hl-number">12</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-comment">//</span><span class="hl-comment"> A simple contour plot with default arguments (e.g. 10 isobar lines)</span><span class="hl-comment"></span><span class="hl-code"> </span><span class="hl-var">$cp</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">ContourPlot</span><span class="hl-brackets">(</span><span class="hl-var">$data</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-comment">//</span><span class="hl-comment"> Display the legend</span><span class="hl-comment"></span><span class="hl-code"> </span><span class="hl-var">$cp</span><span class="hl-code">-&gt;</span><span class="hl-identifier">ShowLegend</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-var">$graph</span><span class="hl-code">-&gt;</span><span class="hl-identifier">Add</span><span class="hl-brackets">(</span><span class="hl-var">$cp</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-inlinetags">?&gt;</span></pre></td></tr></table></div><p> </p> <p>Since the most common format for contour graphs is to show axis on all sides we should add the line</p> <p> </p><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-code">$graph-&gt;SetAxisStyle(AXSTYLE_BOXOUT);</span></pre></td></tr></table></div><p> </p> <p>to our previous example so we get the effect shown in <a class="xref" href="ch15s06.html#fig.basic_contourex02" title="Figure 15.76. Adding axis on all sides (basic_contourex02.php)">Figure 15.76. Adding axis on all sides <code class="uri"><a class="uri" href="example_src/basic_contourex02.html" target="_top">(<code class="filename">basic_contourex02.php</code>)</a></code> </a>. To show the effect of flipping the data around the center line we have to add the following line</p> <p> </p><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-code">$cp-&gt;SetInvert();</span></pre></td></tr></table></div><p> </p> <p>and get the result of adding this line is shown in <a class="xref" href="ch15s06.html#fig.basic_contourex05" title="Figure 15.77. Flipping the data around the center line (basic_contourex05.php)">Figure 15.77. Flipping the data around the center line <code class="uri"><a class="uri" href="example_src/basic_contourex05.html" target="_top">(<code class="filename">basic_contourex05.php</code>)</a></code> </a></p> <p> </p><div class="informaltable"> <table border="0"><colgroup><col class="c1"><col class="c2"></colgroup><tbody><tr><td> <div class="figure"><a name="fig.basic_contourex02"></a><p class="title"><b>Figure 15.76. Adding axis on all sides <code class="uri"><a class="uri" href="example_src/basic_contourex02.html" target="_top">(<code class="filename">basic_contourex02.php</code>)</a></code> </b></p><div class="figure-contents"> <span class="inlinemediaobject"><img src="images/basic_contourex02.png" alt="Adding axis on all sides (basic_contourex02.php)"></span> </div></div><br class="figure-break"> </td><td> <div class="figure"><a name="fig.basic_contourex05"></a><p class="title"><b>Figure 15.77. Flipping the data around the center line <code class="uri"><a class="uri" href="example_src/basic_contourex05.html" target="_top">(<code class="filename">basic_contourex05.php</code>)</a></code> </b></p><div class="figure-contents"> <span class="inlinemediaobject"><img src="images/basic_contourex05.png" alt="Flipping the data around the center line (basic_contourex05.php)"></span> </div></div><br class="figure-break"> </td></tr></tbody></table> </div><p> </p> </div> <div class="sect2" title="Adjusting the color and number of isobar lines"><div class="titlepage"><div><div><h3 class="title"><a name="id2562850"></a>Adjusting the color and number of isobar lines</h3></div></div></div> <p>As mentioned above the library uses 10 isobar lines by default. The number of isobar lines can be adjusted by specifying a second integer argument to the constructor of the contour plot. For example to use only 5 isobar lines the construction of the contour plot would be changed to</p> <p> </p><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-code">$contourplot = new ContourPlot($data,5);</span></pre></td></tr></table></div><p> </p> <p>The result of changing this in the previous example is shown in <a class="xref" href="ch15s06.html#fig.basic_contourex04" title="Figure 15.78. Using only 5 isobar lines (basic_contourex04.php)">Figure 15.78. Using only 5 isobar lines <code class="uri"><a class="uri" href="example_src/basic_contourex04.html" target="_top">(<code class="filename">basic_contourex04.php</code>)</a></code> </a></p> <p> </p><div class="figure"><a name="fig.basic_contourex04"></a><p class="title"><b>Figure 15.78. Using only 5 isobar lines <code class="uri"><a class="uri" href="example_src/basic_contourex04.html" target="_top">(<code class="filename">basic_contourex04.php</code>)</a></code> </b></p><div class="figure-contents"> <span class="inlinemediaobject"><img src="images/basic_contourex04.png" alt="Using only 5 isobar lines (basic_contourex04.php)"></span> </div></div><p><br class="figure-break"> </p> <p>The values for the isobars are determined by finding the lowest and highest point in the input data matrix and then spreading the isobars evenly between these extreme points. </p> <p>In some applications however it is necessary to have better control over where exactly the isobars are placed and for this reason it is possible to tell the library exactly at what values the isobars should be. </p> <p>This is done by providing an array with the values of the isobars instead of a single number in the creation of the contour plot as the following example shows</p> <p> </p><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 2 3 4 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags">&lt;?php</span><span class="hl-code"> </span><span class="hl-var">$isoBars</span><span class="hl-code"> = </span><span class="hl-reserved">array</span><span class="hl-brackets">(</span><span class="hl-code"> </span><span class="hl-number">0</span><span class="hl-number">.1</span><span class="hl-code">, </span><span class="hl-number">0</span><span class="hl-number">.2</span><span class="hl-code">, </span><span class="hl-number">0</span><span class="hl-number">.3</span><span class="hl-code">, </span><span class="hl-number">0</span><span class="hl-number">.4</span><span class="hl-code">, </span><span class="hl-number">0</span><span class="hl-number">.5</span><span class="hl-code">, </span><span class="hl-number">0</span><span class="hl-number">.6</span><span class="hl-code"> </span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-var">$cp</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">ContourPlot</span><span class="hl-brackets">(</span><span class="hl-var">$data</span><span class="hl-code">, </span><span class="hl-var">$isoBars</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-inlinetags">?&gt;</span></pre></td></tr></table></div><p> </p> <p>The isobar colors can be adjusted by specifying a color array that specifies the color for each isobar.</p> <p>However, there is some simpler changes that ca be made to change the colors without having to go through the "trouble" of såspecifying a color array. </p> <p>There are usually two reasons for changing the default color spectra. </p> <p> </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"> <p>to use more high contrast colors</p> </li><li class="listitem"> <p>to use only black and white colors</p> </li></ol></div><p> </p> <p>This can be accomplished with a call to the method </p> <p> </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> <p><code class="code">ContourPlot::UseHighContrastColor($aFlg=true,$aBW=false) </code></p> </li></ul></div><p> </p> <p>as the following example shows</p> <p> </p><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 2 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-code">$cp = new ContourPlot( $data ); $cp-&gt;UseHighContrastColor( true );</span></pre></td></tr></table></div><p> </p> <p>The above example will only use a blue to red color scale and avoid the "low-contrast" greenish middle color spectrum colors.</p> <p>By also setting the second argument to the high contrast method to true the colors are restricted to only black and white. This will of course make it impossible to exactly know the value each isobar represents but could be useful for gaining some insight in the topography of a graph and would allow better printing on black and white devices.</p> <p>Specifying manual colors of the isobar can be done in two ways. </p> <p> </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"> <p>By specifying the color array as the fifth argument to the constructor of ContourPlot as shown in <a class="xref" href="ch15s06.html#sec.creating-contour-graph" title="Creating a contour graph">Creating a contour graph</a></p> </li><li class="listitem"> <p>By using the method <code class="code">ContourPlot::SetIsobarColors($aColors)</code></p> </li></ol></div><p> </p> <p> </p><div class="caution" title="Caution" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Caution</h3> <p>The number of colors specified must match the number of isobars.</p> </div><p> </p> </div> <div class="sect2" title="Understanding mesh interpolation"><div class="titlepage"><div><div><h3 class="title"><a name="sec.grid-interpolating"></a>Understanding mesh interpolation</h3></div></div></div> <p>As mentioned above it is possible to use mesh interpolation to generate smoother contour graphs. In order to better understand the effect of specifying different interpolation factors we will show how what effect this have.</p> <p>The data we will be using is given by the following data matrix</p> <p> </p><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 2 3 4 5 6 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-code">$data = array( array ( 12,7,3,15 ), array ( 18,5,1, 9 ), array ( 13,9,5,12), array ( 5,3,8, 9 ), array ( 1,8,5, 7 ));</span></pre></td></tr></table></div><p> </p> <p>A basic contour graph using the above data is shown in <a class="xref" href="ch15s06.html#fig.basic_contourex03-1" title="Figure 15.79. Interpolation factor=1 (basic_contourex03-1.php)">Figure 15.79. Interpolation factor=1 <code class="uri"><a class="uri" href="example_src/basic_contourex03-1.html" target="_top">(<code class="filename">basic_contourex03-1.php</code>)</a></code> </a></p> <p> </p><div class="figure"><a name="fig.basic_contourex03-1"></a><p class="title"><b>Figure 15.79. Interpolation factor=1 <code class="uri"><a class="uri" href="example_src/basic_contourex03-1.html" target="_top">(<code class="filename">basic_contourex03-1.php</code>)</a></code> </b></p><div class="figure-contents"> <span class="inlinemediaobject"><img src="images/basic_contourex03-1.png" alt="Interpolation factor=1 (basic_contourex03-1.php)"></span> </div></div><p><br class="figure-break"> </p> <p>In order to specify a grid interpolation factor we need to specify this as the third argument in the constructor for the contour plot. So in order to specify a interpolation factor of 2 we would add the line</p> <p> </p><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-code">$contourplot = new ContourPlot($data,10,3);</span></pre></td></tr></table></div><p> </p> <p>To see the difference between different interpolation factor <a class="xref" href="ch15s06.html#fig.basic_contourex03-2" title="Figure 15.80. Interpolation factor=2 (basic_contourex03-2.php)">Figure 15.80. Interpolation factor=2 <code class="uri"><a class="uri" href="example_src/basic_contourex03-2.html" target="_top">(<code class="filename">basic_contourex03-2.php</code>)</a></code> </a> and <a class="xref" href="ch15s06.html#fig.basic_contourex03-3" title="Figure 15.81. Interpolation factor=3 (basic_contourex03-3.php)">Figure 15.81. Interpolation factor=3 <code class="uri"><a class="uri" href="example_src/basic_contourex03-3.html" target="_top">(<code class="filename">basic_contourex03-3.php</code>)</a></code> </a> shows the effect of using both a grid interpolation factor of 2 and 3 on the example in <a class="xref" href="ch15s06.html#fig.basic_contourex03-1" title="Figure 15.79. Interpolation factor=1 (basic_contourex03-1.php)">Figure 15.79. Interpolation factor=1 <code class="uri"><a class="uri" href="example_src/basic_contourex03-1.html" target="_top">(<code class="filename">basic_contourex03-1.php</code>)</a></code> </a></p> <p> </p><div class="informaltable"> <table border="0"><colgroup><col class="c1"><col class="c2"></colgroup><tbody><tr><td> <div class="figure"><a name="fig.basic_contourex03-2"></a><p class="title"><b>Figure 15.80. Interpolation factor=2 <code class="uri"><a class="uri" href="example_src/basic_contourex03-2.html" target="_top">(<code class="filename">basic_contourex03-2.php</code>)</a></code> </b></p><div class="figure-contents"> <span class="inlinemediaobject"><img src="images/basic_contourex03-2.png" alt="Interpolation factor=2 (basic_contourex03-2.php)"></span> </div></div><br class="figure-break"> </td><td> <div class="figure"><a name="fig.basic_contourex03-3"></a><p class="title"><b>Figure 15.81. Interpolation factor=3 <code class="uri"><a class="uri" href="example_src/basic_contourex03-3.html" target="_top">(<code class="filename">basic_contourex03-3.php</code>)</a></code> </b></p><div class="figure-contents"> <span class="inlinemediaobject"><img src="images/basic_contourex03-3.png" alt="Interpolation factor=3 (basic_contourex03-3.php)"></span> </div></div><br class="figure-break"> </td></tr></tbody></table> </div><p> </p> <p>We can now make two observations based on the above two figures</p> <p> </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"> <p>The lines get smoother the higher interpolation factor we use</p> </li><li class="listitem"> <p>The automatic scale has changed. This is not surprising since we have in effect increase the number of data points each time we increase the interpolation factor. The scale corresponds to the matrix size (an entry in matrix at position (r,c) corresponds to the point (x=c,y=r) in the graph.)</p> <p>Initially we had a data matrix of size 5x4=20 data points, after doing one interpolation (factor=2) the data matrix will have a size of 9x7=63 data points and after doing one more interpolation (factor=3) the data matrix will have a size of 17x13=221 data points. </p> <p>If we would have done one more interpolation we would have a data matrix of size 33x25=825 data points.</p> <p>The exponential growth of the total number of data point for a 10x10 matrix is shown in <a class="xref" href="ch15s06.html#fig.interpolation-growth" title="Figure 15.82. The exponential growth of the data size due to grid interpolation factor (interpolation-growth.php)">Figure 15.82. The exponential growth of the data size due to grid interpolation factor <code class="uri"><a class="uri" href="example_src/interpolation-growth.html" target="_top">(<code class="filename">interpolation-growth.php</code>)</a></code> </a>. This also makes a good example of using a logarithmic y-scale. If the graph is a straight line when plotted against a logarithmic scale this confirms our suspicion that this is indeed a exponentially growing function. <a class="xref" href="ch15s06.html#fig.interpolation-growth-log" title="Figure 15.83. The exponential growth of the data size due to the grid interpolation factor (log scale) (interpolation-growth-log.php)">Figure 15.83. The exponential growth of the data size due to the grid interpolation factor (log scale) <code class="uri"><a class="uri" href="example_src/interpolation-growth-log.html" target="_top">(<code class="filename">interpolation-growth-log.php</code>)</a></code> </a> shows a variant with a logarithmic y-scale (which confirms our suspicion.)</p> </li></ol></div><p> </p> <div class="tip" title="Tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Tip</h3> <p>The helper class to do the actual interpolation can also be used directly in other context. In order to create a new interpolated data matrix with a specific interpolation factor the following code snippet can be used.</p> <p> </p><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 2 3 4 5 6 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags">&lt;?php</span><span class="hl-code"> </span><span class="hl-var">$dataMatrix</span><span class="hl-code"> = </span><span class="hl-reserved">array</span><span class="hl-brackets">(</span><span class="hl-code"> ... </span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-var">$factor</span><span class="hl-code"> = ... ; </span><span class="hl-var">$grid_interpolate</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">Interpolate</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-var">$dataMatrix</span><span class="hl-code"> = </span><span class="hl-var">$grid_interpolate</span><span class="hl-code">-&gt;</span><span class="hl-identifier">Linear</span><span class="hl-brackets">(</span><span class="hl-var">$dataMatrix</span><span class="hl-code">, </span><span class="hl-var">$factor</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-inlinetags">?&gt;</span></pre></td></tr></table></div><p> </p> </div> <p> </p><div class="tip" title="Tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Tip</h3> <p>There is also a utility function <code class="code">doMeshInterpolate(&amp;$aData,$aFactor)</code> that can be sued to interpolate a matrix in place. This creates the necessary class, interpolates its first argument and then fills the argument with the interpolated data. By using call by reference some data copying is avoided.</p> </div><p> </p> <p> </p><div class="informaltable"> <table border="0"><colgroup><col class="c1"><col class="c2"></colgroup><tbody><tr><td> <div class="figure"><a name="fig.interpolation-growth"></a><p class="title"><b>Figure 15.82. The exponential growth of the data size due to grid interpolation factor <code class="uri"><a class="uri" href="example_src/interpolation-growth.html" target="_top">(<code class="filename">interpolation-growth.php</code>)</a></code> </b></p><div class="figure-contents"> <span class="inlinemediaobject"><img src="images/interpolation-growth.png" alt="The exponential growth of the data size due to grid interpolation factor (interpolation-growth.php)"></span> </div></div><br class="figure-break"> </td><td> <div class="figure"><a name="fig.interpolation-growth-log"></a><p class="title"><b>Figure 15.83. The exponential growth of the data size due to the grid interpolation factor (log scale) <code class="uri"><a class="uri" href="example_src/interpolation-growth-log.html" target="_top">(<code class="filename">interpolation-growth-log.php</code>)</a></code> </b></p><div class="figure-contents"> <span class="inlinemediaobject"><img src="images/interpolation-growth-log.png" alt="The exponential growth of the data size due to the grid interpolation factor (log scale) (interpolation-growth-log.php)"></span> </div></div><br class="figure-break"> </td></tr></tbody></table> </div><p> </p> </div> </div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"> </td><td width="20%" align="center"><a accesskey="u" href="ch15.html">Up</a></td><td width="40%" align="right"> </td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html>
www/static/common/plugins/zTree/demo/en/super/oneroot.html
jiangdefu/ThinkJS-RABC
<!DOCTYPE html> <HTML> <HEAD> <TITLE> ZTREE DEMO - one root</TITLE> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="../../../css/demo.css" type="text/css"> <link rel="stylesheet" href="../../../css/zTreeStyle/zTreeStyle.css" type="text/css"> <script type="text/javascript" src="../../../js/jquery-1.4.4.min.js"></script> <script type="text/javascript" src="../../../js/jquery.ztree.core.js"></script> <!-- <script type="text/javascript" src="../../../js/jquery.ztree.excheck.js"></script> <script type="text/javascript" src="../../../js/jquery.ztree.exedit.js"></script>--> <SCRIPT type="text/javascript"> <!-- var setting = { view: { dblClickExpand: dblClickExpand }, data: { simpleData: { enable: true } } }; var zNodes =[ { id:1, pId:0, name:"Root", open:true}, { id:11, pId:1, name:"Parent Node 1-1", open:true}, { id:111, pId:11, name:"Leaf Node 1-1-1"}, { id:112, pId:11, name:"Leaf Node 1-1-2"}, { id:113, pId:11, name:"Leaf Node 1-1-3"}, { id:114, pId:11, name:"Leaf Node 1-1-4"}, { id:12, pId:1, name:"Parent Node 1-2", open:true}, { id:121, pId:12, name:"Leaf Node 1-2-1"}, { id:122, pId:12, name:"Leaf Node 1-2-2"}, { id:123, pId:12, name:"Leaf Node 1-2-3"}, { id:124, pId:12, name:"Leaf Node 1-2-4"}, { id:13, pId:1, name:"Parent Node 1-3", open:true}, { id:131, pId:13, name:"Leaf Node 1-3-1"}, { id:132, pId:13, name:"Leaf Node 1-3-2"}, { id:133, pId:13, name:"Leaf Node 1-3-3"}, { id:134, pId:13, name:"Leaf Node 1-3-4"} ]; function dblClickExpand(treeId, treeNode) { return treeNode.level > 0; } $(document).ready(function(){ $.fn.zTree.init($("#treeDemo"), setting, zNodes); }); //--> </SCRIPT> <style type="text/css"> .ztree li span.button.switch.level0 {visibility:hidden; width:1px;} .ztree li ul.level0 {padding:0; background:none;} </style> </HEAD> <BODY> <h1>Freeze the Root Node</h1> <h6>[ File Path: demo/super/oneroot.html ]</h6> <div class="content_wrap"> <div class="zTreeDemoBackground left"> <ul id="treeDemo" class="ztree"></ul> </div> <div class="right"> <ul class="info"> <li class="title"><h2>Explanation of implementation method</h2> <ul class="list"> <li>For only one root, and do not show +/- switch needs need to modify the css, and set the setting.</li> <li class="highlight_red">zTree v3.x can be for a given level, set the style, check out the page source, see the css.</li> <li class="highlight_red">Set setting.view.dblClickExpand to Function, you can turn off double-clicking for expand the root node.</li> </ul> </li> </ul> </div> </div> </BODY> </HTML>
work/berkeley-db/docs/gsg_txn/C/readmodifywrite.html
joglomedia/masedi.net
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Read/Modify/Write</title> <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> <link rel="start" href="index.html" title="Getting Started with Berkeley DB Transaction Processing" /> <link rel="up" href="txnconcurrency.html" title="Chapter 4. Concurrency" /> <link rel="prev" href="txn_ccursor.html" title="Transactional Cursors and Concurrent Applications" /> <link rel="next" href="txnnowait.html" title="No Wait on Blocks" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">Read/Modify/Write</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="txn_ccursor.html">Prev</a> </td> <th width="60%" align="center">Chapter 4. Concurrency</th> <td width="20%" align="right"> <a accesskey="n" href="txnnowait.html">Next</a></td> </tr> </table> <hr /> </div> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a id="readmodifywrite"></a>Read/Modify/Write</h2> </div> </div> </div> <p> If you are retrieving <span>a record from the database</span> for the purpose of modifying or deleting it, you should declare a read-modify-write cycle at the time that you read the <span>record.</span> Doing so causes DB to obtain write locks (instead of a read locks) at the time of the read. This helps to prevent deadlocks by preventing another transaction from acquiring a read lock on the same record while the read-modify-write cycle is in progress. </p> <p> Note that declaring a read-modify-write cycle may actually increase the amount of blocking that your application sees, because readers immediately obtain write locks and write locks cannot be shared. For this reason, you should use read-modify-write cycles only if you are seeing a large amount of deadlocking occurring in your application. </p> <p> In order to declare a read/modify/write cycle when you perform a read operation, <span> pass the <code class="literal">DB_RMW</code> flag <span> to the database or cursor get method. </span> </span> </p> <p> For example: </p> <pre class="programlisting">retry: /* Get the transaction */ ret = envp-&gt;txn_begin(envp, NULL, &amp;txn, 0); if (ret != 0) { envp-&gt;err(envp, ret, "txn_begin failed"); return (EXIT_FAILURE); } ... /* key and data are Dbts. Their usage is omitted for brevity. */ ... /* Get the data. Declare the read/modify/write cycle here */ ret = dbp-&gt;get(dbp, txn, &amp;key, &amp;data, DB_RMW); ... /* Modify the key and data as is required (not shown here) */ ... /* Put the data. Note that you do not have to provide any additional * flags here due to the read/modify/write cycle. Simply put the * data and perform your deadlock detection as normal. */ ret = dbp-&gt;put(dbp, txn, &amp;key, &amp;data, 0); switch (ret) { /* Deadlock detection omitted for brevity */ .... </pre> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="txn_ccursor.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="txnconcurrency.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="txnnowait.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">Transactional Cursors and Concurrent Applications </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> No Wait on Blocks</td> </tr> </table> </div> </body> </html>
documentation/reference_manual/or-tools/src/algorithms/classoperations__research_1_1KnapsackState.html
AlperSaltabas/OR_Tools_Google_API
<!-- Good morning, Mr. Phelps. --> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>or-tools/src/algorithms/: operations_research::KnapsackState Class Reference - Doxy</title> <link rel="shortcut icon" href="../../../favicon.ico"> <!-- Both stylesheets are supplied by Doxygen, with maybe minor tweaks from Google. --> <link href="../../../doxygen.css" rel="stylesheet" type="text/css"> <link href="../../../tabs.css" rel="stylesheet" type="text/css"> </head> <body topmargin=0 leftmargin=20 bottommargin=0 rightmargin=20 marginwidth=20 marginheight=0> <!-- Second part of the secret behind Doxy logo always having the word "Doxy" with the color of the day. --> <style> a.doxy_logo:hover { background-color: #287003 } </style> <table width=100% cellpadding=0 cellspacing=0 border=0> <!-- Top horizontal line with the color of the day. --> <tr valign=top> <td colspan=3 bgcolor=#287003 height=3></td> </tr> <!-- Header row with the links at the right. --> <tr valign=top> <td colspan=3 align=right> <font size=-1> Generated on: <font color=#287003><b>Thu Mar 29 07:46:58 PDT 2012</b></font> for <b>custom file set</b> </font> </td> </tr> <!-- Header row with the logo and the search form. --> <tr valign=top> <!-- Logo. --> <td align=left width=150> <table width=150 height=54 cellpadding=0 cellspacing=0 border=0> <tr valign=top> <!-- First part of the secret behind Doxy logo always having the word "Doxy" with the color of the day. --> <td bgcolor=#287003> <a class="doxy_logo" href="../../../index.html"><img src="../../../doxy_logo.png" alt="Doxy" border=0></a> </td> </tr> </table> </td> </tr> <!-- Tiny vertical space below the form. --> <tr valign=top> <td colspan=3 height=3></td> </tr> </table> <!-- Header navigation row. --> <div class="memproto"> <table width=100% cellpadding=0 cellspacing=0 border=0> <tr> <td align=left style="padding-left: 20px"><font size=+1><b><tt><font color=#333333>// <a href="../../../index.html"><font color=#287003>doxy</font></a>/</font> <a href="../../../or-tools/index.html">or-tools</a>/ <a href="../../../or-tools/src/index.html">src</a>/ <a href="../../../or-tools/src/algorithms/index.html">algorithms</a>/ </tt></b></font> </td> </tr> </table> </div> <br /> <!-- No subdirs found. --> <!-- End of header. --> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main&nbsp;Page</span></a></li> <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li> <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceoperations__research.html">operations_research</a>::<a class="el" href="classoperations__research_1_1KnapsackState.html">KnapsackState</a> </div> </div> <div class="contents"> <h1>operations_research::KnapsackState Class Reference</h1><!-- doxytag: class="operations_research::KnapsackState" --><a class="el" href="classoperations__research_1_1KnapsackState.html" title="KnapsackState KnapsackState represents a partial solution to the knapsack problem...">KnapsackState</a> <a class="el" href="classoperations__research_1_1KnapsackState.html" title="KnapsackState KnapsackState represents a partial solution to the knapsack problem...">KnapsackState</a> represents a partial solution to the knapsack problem. <a href="#_details">More...</a> <p> <code>#include &lt;<a class="el" href="knapsack__solver_8h-source.html">knapsack_solver.h</a>&gt;</code> <p> <p> <a href="classoperations__research_1_1KnapsackState-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1KnapsackState.html#db083eb4c9bb7413cff7262e58c5abe0">KnapsackState</a> ()</td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classoperations__research_1_1KnapsackState.html" title="KnapsackState KnapsackState represents a partial solution to the knapsack problem...">KnapsackState</a>. <a href="#db083eb4c9bb7413cff7262e58c5abe0"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1KnapsackState.html#6b5c2748ef2668630c5bfdfa56093e95">Init</a> (int number_of_items)</td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initializes vectors with number_of_items set to false (i.e. not bound yet). <a href="#6b5c2748ef2668630c5bfdfa56093e95"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1KnapsackState.html#3fa5da9a819f219f4c51e410fe12c1a3">UpdateState</a> (bool revert, const <a class="el" href="structoperations__research_1_1KnapsackAssignment.html">KnapsackAssignment</a> &amp;assignment)</td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Updates the state by applying or reverting a decision. <a href="#3fa5da9a819f219f4c51e410fe12c1a3"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1KnapsackState.html#c015d41bc7ef39cb15b91a82f8807aba">GetNumberOfItems</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1KnapsackState.html#655599e6b5868d245dc5bdbff1e58562">is_bound</a> (int id) const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1KnapsackState.html#e6177760c102009215a18f4a8164e296">is_in</a> (int id) const </td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <a class="el" href="classoperations__research_1_1KnapsackState.html" title="KnapsackState KnapsackState represents a partial solution to the knapsack problem...">KnapsackState</a> <a class="el" href="classoperations__research_1_1KnapsackState.html" title="KnapsackState KnapsackState represents a partial solution to the knapsack problem...">KnapsackState</a> represents a partial solution to the knapsack problem. <p> <p>Definition at line <a class="el" href="knapsack__solver_8h-source.html#l00312">312</a> of file <a class="el" href="knapsack__solver_8h-source.html">knapsack_solver.h</a>.</p> <hr><h2>Constructor &amp; Destructor Documentation</h2> <a class="anchor" name="db083eb4c9bb7413cff7262e58c5abe0"></a><!-- doxytag: member="operations_research::KnapsackState::KnapsackState" ref="db083eb4c9bb7413cff7262e58c5abe0" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">operations_research::KnapsackState::KnapsackState </td> <td>(</td> <td class="paramname"> </td> <td>&nbsp;)&nbsp;</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> <a class="el" href="classoperations__research_1_1KnapsackState.html" title="KnapsackState KnapsackState represents a partial solution to the knapsack problem...">KnapsackState</a>. <p> <p>Definition at line <a class="el" href="knapsack__solver_8cc-source.html#l00144">144</a> of file <a class="el" href="knapsack__solver_8cc-source.html">knapsack_solver.cc</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="6b5c2748ef2668630c5bfdfa56093e95"></a><!-- doxytag: member="operations_research::KnapsackState::Init" ref="6b5c2748ef2668630c5bfdfa56093e95" args="(int number_of_items)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void operations_research::KnapsackState::Init </td> <td>(</td> <td class="paramtype">int&nbsp;</td> <td class="paramname"> <em>number_of_items</em> </td> <td>&nbsp;)&nbsp;</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Initializes vectors with number_of_items set to false (i.e. not bound yet). <p> <p>Definition at line <a class="el" href="knapsack__solver_8cc-source.html#l00146">146</a> of file <a class="el" href="knapsack__solver_8cc-source.html">knapsack_solver.cc</a>.</p> </div> </div><p> <a class="anchor" name="3fa5da9a819f219f4c51e410fe12c1a3"></a><!-- doxytag: member="operations_research::KnapsackState::UpdateState" ref="3fa5da9a819f219f4c51e410fe12c1a3" args="(bool revert, const KnapsackAssignment &amp;assignment)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool operations_research::KnapsackState::UpdateState </td> <td>(</td> <td class="paramtype">bool&nbsp;</td> <td class="paramname"> <em>revert</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="structoperations__research_1_1KnapsackAssignment.html">KnapsackAssignment</a> &amp;&nbsp;</td> <td class="paramname"> <em>assignment</em></td><td>&nbsp;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Updates the state by applying or reverting a decision. <p> Returns false when the state is invalid.<p> Returns false if fails, i.e. trying to apply an inconsistent decision to an already assigned item. <p>Definition at line <a class="el" href="knapsack__solver_8cc-source.html#l00152">152</a> of file <a class="el" href="knapsack__solver_8cc-source.html">knapsack_solver.cc</a>.</p> </div> </div><p> <a class="anchor" name="c015d41bc7ef39cb15b91a82f8807aba"></a><!-- doxytag: member="operations_research::KnapsackState::GetNumberOfItems" ref="c015d41bc7ef39cb15b91a82f8807aba" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int operations_research::KnapsackState::GetNumberOfItems </td> <td>(</td> <td class="paramname"> </td> <td>&nbsp;)&nbsp;</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="knapsack__solver_8h-source.html#l00323">323</a> of file <a class="el" href="knapsack__solver_8h-source.html">knapsack_solver.h</a>.</p> </div> </div><p> <a class="anchor" name="655599e6b5868d245dc5bdbff1e58562"></a><!-- doxytag: member="operations_research::KnapsackState::is_bound" ref="655599e6b5868d245dc5bdbff1e58562" args="(int id) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool operations_research::KnapsackState::is_bound </td> <td>(</td> <td class="paramtype">int&nbsp;</td> <td class="paramname"> <em>id</em> </td> <td>&nbsp;)&nbsp;</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="knapsack__solver_8h-source.html#l00324">324</a> of file <a class="el" href="knapsack__solver_8h-source.html">knapsack_solver.h</a>.</p> </div> </div><p> <a class="anchor" name="e6177760c102009215a18f4a8164e296"></a><!-- doxytag: member="operations_research::KnapsackState::is_in" ref="e6177760c102009215a18f4a8164e296" args="(int id) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool operations_research::KnapsackState::is_in </td> <td>(</td> <td class="paramtype">int&nbsp;</td> <td class="paramname"> <em>id</em> </td> <td>&nbsp;)&nbsp;</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="knapsack__solver_8h-source.html#l00325">325</a> of file <a class="el" href="knapsack__solver_8h-source.html">knapsack_solver.h</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li>or-tools/src/algorithms/<a class="el" href="knapsack__solver_8h-source.html">knapsack_solver.h</a><li>or-tools/src/algorithms/<a class="el" href="knapsack__solver_8cc-source.html">knapsack_solver.cc</a></ul> </div> <!-- Start of footer. --> <table width=100% cellpadding=0 cellspacing=0 border=0> <tr valign=top> <td colspan=2 height=10></td> </tr> <tr valign=top> <td colspan=2 bgcolor=#287003 height=3></td> </tr> </table> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /> </body> </html>
ajax/libs/oojs-ui/0.12.6/oojs-ui-mediawiki-icons-layout.css
tonytomov/cdnjs
/*! * OOjs UI v0.12.6 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2015 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2015-08-26T00:14:44Z */ .oo-ui-icon-stripeFlow { background-image: url("themes/mediawiki/images/icons/stripeFlow-ltr.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeFlow-ltr.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeFlow-ltr.svg"); background-image: -o-linear-gradient(transparent, transparent), url("themes/mediawiki/images/icons/stripeFlow-ltr.png"); } .oo-ui-icon-stripeFlow-invert { background-image: url("themes/mediawiki/images/icons/stripeFlow-ltr-invert.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeFlow-ltr-invert.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeFlow-ltr-invert.svg"); background-image: -o-linear-gradient(transparent, transparent), url("themes/mediawiki/images/icons/stripeFlow-ltr-invert.png"); } .oo-ui-icon-stripeSideMenu { background-image: url("themes/mediawiki/images/icons/stripeSideMenu.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeSideMenu.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeSideMenu.svg"); background-image: -o-linear-gradient(transparent, transparent), url("themes/mediawiki/images/icons/stripeSideMenu.png"); } .oo-ui-icon-stripeSideMenu-invert { background-image: url("themes/mediawiki/images/icons/stripeSideMenu-invert.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeSideMenu-invert.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeSideMenu-invert.svg"); background-image: -o-linear-gradient(transparent, transparent), url("themes/mediawiki/images/icons/stripeSideMenu-invert.png"); } .oo-ui-icon-stripeSummary { background-image: url("themes/mediawiki/images/icons/stripeSummary-ltr.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeSummary-ltr.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeSummary-ltr.svg"); background-image: -o-linear-gradient(transparent, transparent), url("themes/mediawiki/images/icons/stripeSummary-ltr.png"); } .oo-ui-icon-stripeSummary-invert { background-image: url("themes/mediawiki/images/icons/stripeSummary-ltr-invert.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeSummary-ltr-invert.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeSummary-ltr-invert.svg"); background-image: -o-linear-gradient(transparent, transparent), url("themes/mediawiki/images/icons/stripeSummary-ltr-invert.png"); } .oo-ui-icon-stripeToC { background-image: url("themes/mediawiki/images/icons/stripeToC-ltr.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeToC-ltr.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeToC-ltr.svg"); background-image: -o-linear-gradient(transparent, transparent), url("themes/mediawiki/images/icons/stripeToC-ltr.png"); } .oo-ui-icon-stripeToC-progressive { background-image: url("themes/mediawiki/images/icons/stripeToC-ltr-progressive.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeToC-ltr-progressive.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeToC-ltr-progressive.svg"); background-image: -o-linear-gradient(transparent, transparent), url("themes/mediawiki/images/icons/stripeToC-ltr-progressive.png"); } .oo-ui-icon-stripeToC-invert { background-image: url("themes/mediawiki/images/icons/stripeToC-ltr-invert.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeToC-ltr-invert.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/stripeToC-ltr-invert.svg"); background-image: -o-linear-gradient(transparent, transparent), url("themes/mediawiki/images/icons/stripeToC-ltr-invert.png"); } .oo-ui-icon-viewCompact { background-image: url("themes/mediawiki/images/icons/viewCompact.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/viewCompact.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/viewCompact.svg"); background-image: -o-linear-gradient(transparent, transparent), url("themes/mediawiki/images/icons/viewCompact.png"); } .oo-ui-icon-viewCompact-invert { background-image: url("themes/mediawiki/images/icons/viewCompact-invert.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/viewCompact-invert.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/viewCompact-invert.svg"); background-image: -o-linear-gradient(transparent, transparent), url("themes/mediawiki/images/icons/viewCompact-invert.png"); } .oo-ui-icon-viewDetails { background-image: url("themes/mediawiki/images/icons/viewDetails-ltr.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/viewDetails-ltr.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/viewDetails-ltr.svg"); background-image: -o-linear-gradient(transparent, transparent), url("themes/mediawiki/images/icons/viewDetails-ltr.png"); } .oo-ui-icon-viewDetails-invert { background-image: url("themes/mediawiki/images/icons/viewDetails-ltr-invert.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/viewDetails-ltr-invert.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/mediawiki/images/icons/viewDetails-ltr-invert.svg"); background-image: -o-linear-gradient(transparent, transparent), url("themes/mediawiki/images/icons/viewDetails-ltr-invert.png"); }
third_party/WebKit/LayoutTests/fast/scrolling/overlay-scrollbars.html
axinging/chromium-crosswalk
<!DOCTYPE html> <html> <head> <style> html, body { margin: 0; padding: 0; } .container { width: 100px; height: 100px; overflow: auto; background-color: lime; } .box { width: 500px; height: 500px; } </style> <script> if (window.internals) { testRunner.dumpAsTextWithPixelResults(); internals.settings.setOverlayScrollbarsEnabled(true); internals.settings.setMockScrollbarsEnabled(true); } </script> </head> <body> <p>You should see first 2 green boxes with overlay scrollbars. The second box should have a scrollbar on the left. Remaining 2 green boxes should appear without overlay scrollbars. </p> <div class="container"><div class="box"></div></div> <div dir="rtl" class="container"><div class="box"></div></div> <div class="container" style="overflow: scroll"></div> <div dir="rtl" class="container" style="overflow: scroll"></div> </body> </html>
third_party/WebKit/LayoutTests/media/track/opera/interfaces/TextTrackCueList/length.html
js0701/chromium-crosswalk
<!doctype html> <title>TextTrackCueList.length</title> <script src=../../../../../resources/testharness.js></script> <script src=../../../../../resources/testharnessreport.js></script> <div id=log></div> <script> setup(function(){ window.video = document.createElement('video'); window.t1 = video.addTextTrack('subtitles'); document.body.appendChild(video); }); test(function(){ var cues = t1.cues; assert_equals(cues.length, 0); var c1 = new VTTCue(0, 1, 'text1'); t1.addCue(c1); assert_equals(cues.length, 1); t1.removeCue(c1); assert_equals(cues.length, 0); }); </script>
third_party/WebKit/LayoutTests/imported/csswg-test/css-flexbox-1/flex-shrink-001.html
js0701/chromium-crosswalk
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Flexbox Test: flex-shrink - number(positive)</title> <link rel="author" title="Intel" href="http://www.intel.com"> <link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com"> <link rel="help" title="7.3.2. The 'flex-shrink' property" href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-shrink"> <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> <meta name="flags" content=""> <meta name="assert" content="The flex-shrink property set positive number determines how much the flex item will shrink relative to the rest of the flex items in the flex container when negative free space is distributed"> <style> #container { background-color: red; display: flex; height: 100px; width: 100px; } #container div { height: 100px; width: 100px; } #test1 { flex-shrink: 2; } #test2 { background-color: green; flex-shrink: 3; } #cover { background-color: green; height: 100px; margin-top: -100px; width: 60px; } </style> <body> <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> <div id="container"> <div id="test1"></div> <div id="test2"></div> </div> <div id="cover"></div> </body>
webserver/public/500.html
samn/spectral-workbench
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>We're sorry, but something went wrong (500)</title> <style type="text/css"> body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; } </style> </head> <body> <!-- This file lives in public/500.html --> <div class="dialog"> <h1>We're sorry, but something went wrong.</h1> <p>We've been notified about this issue and we'll take a look at it shortly.</p> </div> </body> </html>
test/cms/css/dialog.css
bamroberts/whatsonqueenstown
p.message { /*background: url(../cms/images/dialogs/alert.gif) repeat top left;*/ padding-left: 60px; } img { float: left; margin-left: -60px; } span { clear: right; } body { font-family: Arial, sans-serif; font-size: 1em; }
external/chromium_org/chrome/common/extensions/docs/templates/public/apps/fileSystemProvider.html
s20121035/rk3288_android5.1_repo
{{+partials.standard_apps_api api:apis.apps.fileSystemProvider intro:intros.fileSystemProvider/}}
src/aui-search/tests/unit/index.html
Khamull/alloy-ui
<!DOCTYPE html> <html> <head> <title>aui-search</title> <link rel="stylesheet" href="../../../../build/aui-css/css/bootstrap.css"> <script src="../../../../build/aui/aui.js"></script> <script src="js/tests.js"></script> <meta charset="utf-8" /> </head> <body class="yui3-skin-sam"> <div id="logger"></div> <script> YUI({ coverage: ['aui-search'], filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'raw' }).use('test-console', 'test', 'aui-search-tests', function(Y) { (new Y.Test.Console()).render('#logger'); Y.Test.Runner.setName('aui-search'); Y.Test.Runner.run(); }); </script> </body> </html>
wts/tests/canvas/w3c/2d.shadow.blur.high.html
hgl888/web-testing-service
<!DOCTYPE html> <!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> <title>Canvas test: 2d.shadow.blur.high</title> <meta name="author" content="Philip Taylor"> <script src="../../resources/testharness.js"></script> <script src="../../resources/testharnessreport.js"></script> <script src="common/canvas-tests.js"></script> <link rel="stylesheet" href="common/canvas-tests.css"> <body class="show_output"> <h1>2d.shadow.blur.high</h1> <p class="desc">Shadows look correct for large blurs</p> <p class="output">Actual output:</p> <canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> <p class="output expectedtext">Expected output:<p><img src="2d.shadow.blur.high.png" class="output expected" id="expected" alt=""> <ul id="d"></ul> <script> var t = async_test("Shadows look correct for large blurs"); _addTest(function(canvas, ctx) { ctx.fillStyle = '#ff0'; ctx.fillRect(0, 0, 100, 50); ctx.shadowColor = '#00f'; ctx.shadowOffsetY = 0; ctx.shadowBlur = 100; ctx.fillRect(-200, -200, 200, 400); }); </script>
web/js/google-closure/closure/goog/ui/formpost_test.html
marcelohg/NasajonWebTeamplateProject
<!DOCTYPE html> <html> <!-- Copyright 2009 The Closure Library Authors. All Rights Reserved. Use of this source code is governed by the Apache License, Version 2.0. See the COPYING file for details. --> <!-- --> <head> <!-- This test has not yet been updated to run on IE8. See http://b/hotlist?id=36311 --> <!--meta http-equiv="X-UA-Compatible" content="IE=edge"--> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <title>Closure Unit Tests - goog.ui.FormPost</title> <script src="../base.js"></script> <script> goog.require('goog.dom'); goog.require('goog.dom.TagName'); goog.require('goog.testing.jsunit'); goog.require('goog.ui.FormPost'); goog.require('goog.userAgent'); goog.require('goog.userAgent.product'); goog.require('goog.userAgent.product.isVersion'); </script> </head> <body> <script> var TARGET = 'target'; var ACTION_URL = 'http://url/'; var formPost; var parameters; var submits; var originalCreateDom = goog.ui.FormPost.prototype.createDom; function isChrome7or8() { // Temporarily disabled in Chrome 7 & 8. See b/3176768 if (goog.userAgent.product.CHROME && goog.userAgent.product.isVersion('7.0') && !goog.userAgent.product.isVersion('8.0')) { return false; } return true; } function setUp() { formPost = new goog.ui.FormPost(); submits = 0; // Replace the form's submit method with a fake. goog.ui.FormPost.prototype.createDom = function() { originalCreateDom.apply(this, arguments); this.getElement().submit = function() { submits++ }; } parameters = {'foo': 'bar', 'baz': 'blah', 'array': ['no', 'yes']}; } function tearDown() { formPost.dispose(); goog.ui.FormPost.prototype.createDom = originalCreateDom; } function testPost() { formPost.post(parameters, ACTION_URL, TARGET); expectUrlAndParameters_(ACTION_URL, TARGET, parameters); } function testPostWithDefaults() { // Temporarily disabled in Chrome 7. See See b/3176768 if (isChrome7or8) { return; } formPost = new goog.ui.FormPost(); formPost.post(parameters); expectUrlAndParameters_('', '', parameters); } function expectUrlAndParameters_(url, target, parameters) { var form = formPost.getElement(); assertEquals('element must be a form', goog.dom.TagName.FORM, form.tagName); assertEquals('form must be hidden', 'none', form.style.display); assertEquals('form method must be POST', 'POST', form.method.toUpperCase()); assertEquals('submits', 1, submits); assertEquals('action attribute', url, form.action); assertEquals('target attribute', target, form.target); var inputs = goog.dom.getElementsByTagNameAndClass( goog.dom.TagName.INPUT, null, form); var formValues = {}; for (var i = 0, input = inputs[i]; input = inputs[i]; i++) { if (goog.isArray(formValues[input.name])) { formValues[input.name].push(input.value); } else if (input.name in formValues) { formValues[input.name] = [formValues[input.name], input.value]; } else { formValues[input.name] = input.value; } } assertObjectEquals('form values must match', parameters, formValues); } </script> </body> </html>
test/jdk/javax/swing/border/Test4129681.html
md-5/jdk10
<!-- Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. This code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 only, as published by the Free Software Foundation. This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details (a copy is included in the LICENSE file that accompanied this code). You should have received a copy of the GNU General Public License version 2 along with this work; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA or visit www.oracle.com if you need additional information or have any questions. --> <html> <body> When applet starts, you'll see a checkbox and a label with a titled border. Turn on the checkbox to disable the label. The test passes if the title of the border is disabled as well as the label. <applet width="300" height="200" code="Test4129681.class"> </applet> </body> </html>
wsgi/wsgi/static/weblink/doc/api/t-pfcModelItem-ModelItemOwner.html
2014c2g12/c2g12
<html> <head> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title> CIP JavaScript documentation for class " pfcModelItemOwner" </title> <link href="cipdoc_default.css" type="text/css" rel="stylesheet"> <script language="JAVASCRIPT"> function findProperNode () { top.frames [0].document.apiwizard.api ( 2, 354 ); } </script> </head> <body onLoad="findProperNode()" class="frame-entity"> <table cellspacing="0" width="100%" border="0" class="toolbar"> <tr> <td class="toolbar-navigation"><a href="library.html">Library</a>&nbsp;|&nbsp;<a href="m-pfcModelItem.html">Module</a></td><td class="toolbar-lib-name"> </td> </tr> </table> <hr> <h2>Class&nbsp;pfcModelItemOwner</h2> <hr> <br> <b>Description</b> <br> <br>This is a base class for an object that has model items associated with it (such as a model). <br> <dl> <dt> <b>See Also:</b> </dt> <dd> <tt><b><tt><b><a class="enumtype" href="t-pfcModel-Model.html">pfcModel</a></b></tt></b></tt> </dd> </dl> <dl> <dt> <b>Direct Parent Classes:</b> </dt> <dd> <a class="class" href="t-pfcObject-Parent.html">pfcParent</a> </dd> </dl> <dl> <dt> <b>Direct Known Subclasses:</b> </dt> <dd> <tt><b><a class="enumtype" href="t-pfcModel-Model.html">pfcModel</a></b></tt> </dd> </dl> <br> <hr> <br> <b>Method Summary</b> <br> <br> <table cellpadding="3" border="0" class="method-summary"> <tr> <td></td> </tr> <tr> <td class="return-type"><tt> /*&nbsp;optional&nbsp;*/&nbsp;<a class="type" href="t-pfcModelItem-ModelItem.html">pfcModelItem</a></tt></td><td class="func-signature"><tt><a class="method" href="#GetItemById">GetItemById</a> (<a class="type" href="t-pfcModelItem-ModelItemType.html">pfcModelItemType</a>&nbsp;Type, integer&nbsp;Id) </tt></td> </tr> <tr> <td></td><td colspan="2" class="entities-text">Returns the specified model item, given its identifier and type. </td> </tr> <tr> <td></td> </tr> <tr> <td class="return-type"><tt> /*&nbsp;optional&nbsp;*/&nbsp;<a class="type" href="t-pfcModelItem-ModelItem.html">pfcModelItem</a></tt></td><td class="func-signature"><tt><a class="method" href="#GetItemByName">GetItemByName</a> (<a class="type" href="t-pfcModelItem-ModelItemType.html">pfcModelItemType</a>&nbsp;Type, string&nbsp;Name) </tt></td> </tr> <tr> <td></td><td colspan="2" class="entities-text">Returns a model item, given a string name and type, if it exists. </td> </tr> <tr> <td></td> </tr> <tr> <td class="return-type"><tt> /*&nbsp;optional&nbsp;*/&nbsp;<a class="type" href="t-pfcModelItem-ModelItems.html">pfcModelItems</a></tt></td><td class="func-signature"><tt><a class="method" href="#ListItems">ListItems</a> ( /*&nbsp;optional&nbsp;*/&nbsp;<a class="type" href="t-pfcModelItem-ModelItemType.html">pfcModelItemType</a>&nbsp;Type) </tt></td> </tr> <tr> <td></td><td colspan="2" class="entities-text">Provides a list of model items of the specified type. </td> </tr> <tr> <td></td> </tr> </table> <br> <hr> <br> <b>Method Detail</b> <br> <hr> <br> <a name="GetItemById"> <table cellpadding="5" cellspacing="0" border="0" class="method-def"> <tr> <td class="return-type"><tt> /*&nbsp;optional&nbsp;*/&nbsp;<a class="type" href="t-pfcModelItem-ModelItem.html">pfcModelItem</a></tt></td><td class="func-name"><tt>GetItemById</tt></td><td class="func-params"><tt> (<a class="type" href="t-pfcModelItem-ModelItemType.html">pfcModelItemType</a>&nbsp;Type, integer&nbsp;Id) </tt></td> </tr> </table> </a> <table border="0" class="method-doc"> <tr> <td></td><td> <br>Returns the specified model item, given its identifier and type. <br> <dl> <dt> <b>Manual References:</b> </dt> <dd> <a href="../manual0/JModelitem.html#13">ModelItem: Getting ModelItem Objects</a>, <a href="../manual0/JModelitem.html#16">ModelItem: Getting ModelItem Objects</a>, <a href="../manual0/JSimpRep.html#54">Simplified Representations: Simplified Representation Utilities</a>, <a href="../manual0/JSimpRep.html#58">Simplified Representations: Simplified Representation Utilities</a>, <a href="../manual0/jdrawfns.html#103">Drawings: Obtaining Drawing Dimensions</a>, <a href="../manual0/jdrawfns.html#104">Drawings: Obtaining Drawing Dimensions</a>, <a href="../manual0/jdrawfns.html#188">Drawings: Listing Detail Items</a>, <a href="../manual0/jdrawfns.html#189">Drawings: Listing Detail Items</a> </dd> </dl> <dl> <dt> <b>Parameters:</b> </dt> <dd> <dl> <dt> <tt><b>Type</b></tt> </dt> <dd>The type of the model item (feature, edge, and so on)</dd> <dt> <tt><b>Id</b></tt> </dt> <dd>The integer identifier of the model item</dd> </dl> </dd> </dl> <dl> <dt> <b>Returns:</b> </dt> <dd>The model item with the specified attributes, or <tt>null</tt> if a model item withsuch attributes has not been found.</dd> </dl> </td> </tr> </table> <br> <hr> <br> <a name="GetItemByName"> <table cellpadding="5" cellspacing="0" border="0" class="method-def"> <tr> <td class="return-type"><tt> /*&nbsp;optional&nbsp;*/&nbsp;<a class="type" href="t-pfcModelItem-ModelItem.html">pfcModelItem</a></tt></td><td class="func-name"><tt>GetItemByName</tt></td><td class="func-params"><tt> (<a class="type" href="t-pfcModelItem-ModelItemType.html">pfcModelItemType</a>&nbsp;Type, string&nbsp;Name) </tt></td> </tr> </table> </a> <table border="0" class="method-doc"> <tr> <td></td><td> <br>Returns a model item, given a string name and type, if it exists. <br> <dl> <dt> <b>See Also:</b> </dt> <dd> <tt><b><a class="method" href="t-pfcModelItem-ModelItem.html#GetName">pfcModelItem.GetName()</a></b></tt>, <tt><b><a class="method" href="t-pfcModelItem-ModelItem.html#SetName">pfcModelItem.SetName()</a></b></tt> </dd> </dl> <dl> <dt> <b>Manual References:</b> </dt> <dd> <a href="../manual0/JModelitem.html#14">ModelItem: Getting ModelItem Objects</a>, <a href="../manual0/JModelitem.html#16">ModelItem: Getting ModelItem Objects</a> </dd> </dl> <dl> <dt> <b>Parameters:</b> </dt> <dd> <dl> <dt> <tt><b>Type</b></tt> </dt> <dd>The type of the model item to locate.</dd> <dt> <tt><b>Name</b></tt> </dt> <dd>The name of the model item to locate.</dd> </dl> </dd> </dl> <dl> <dt> <b>Returns:</b> </dt> <dd>The model item object, or <tt>null</tt>, if the item was not found.</dd> </dl> </td> </tr> </table> <br> <hr> <br> <a name="ListItems"> <table cellpadding="5" cellspacing="0" border="0" class="method-def"> <tr> <td class="return-type"><tt> /*&nbsp;optional&nbsp;*/&nbsp;<a class="type" href="t-pfcModelItem-ModelItems.html">pfcModelItems</a></tt></td><td class="func-name"><tt>ListItems</tt></td><td class="func-params"><tt> ( /*&nbsp;optional&nbsp;*/&nbsp;<a class="type" href="t-pfcModelItem-ModelItemType.html">pfcModelItemType</a>&nbsp;Type) </tt></td> </tr> </table> </a> <table border="0" class="method-doc"> <tr> <td></td><td> <br>Provides a list of model items of the specified type. <br> <dl> <dt> <b>Manual References:</b> </dt> <dd> <a href="../manual0/JGeom.html#13">Geometry Evaluation: Traversing the Geometry of a Solid Block</a>, <a href="../manual0/JGeom.html#15">Geometry Evaluation: Traversing the Geometry of a Solid Block</a>, <a href="../manual0/JModelitem.html#10">ModelItem: Getting ModelItem Objects</a>, <a href="../manual0/JModelitem.html#16">ModelItem: Getting ModelItem Objects</a>, <a href="../manual0/JSimpRep.html#53">Simplified Representations: Simplified Representation Utilities</a>, <a href="../manual0/JSimpRep.html#58">Simplified Representations: Simplified Representation Utilities</a>, <a href="../manual0/jdrawfns.html#102">Drawings: Obtaining Drawing Dimensions</a>, <a href="../manual0/jdrawfns.html#104">Drawings: Obtaining Drawing Dimensions</a>, <a href="../manual0/jdrawfns.html#186">Drawings: Listing Detail Items</a>, <a href="../manual0/jdrawfns.html#189">Drawings: Listing Detail Items</a> </dd> </dl> <dl> <dt> <b>Parameters:</b> </dt> <dd> <dl> <dt> <tt><b>Type</b></tt> </dt> <dd>The type of model items to retrieve. If this parameter is <tt>null</tt>, then allthe model items will be listed.<p></p> Note that only those surfaces associated with solid geometry are included in the list of model items when you specify <tt>ITEM_SURFACE</tt> or <tt>null</tt> as the <i>Type</i> . Surfaces of Creo Parametric Surface features and Quilts are not included. To obtain a list of the quilt features with their component datum surfaces, specify <tt>ITEM_QUILT</tt>. </dd> </dl> </dd> </dl> <dl> <dt> <b>Returns:</b> </dt> <dd>The list of model items, or <tt>null</tt> if no model items of the specified type has been found.</dd> </dl> </td> </tr> </table> <br> </body> </html>
third_party/blink/web_tests/transitions/longhand-vs-shorthand-initial.html
scheib/chromium
<!DOCTYPE> <html> <head> <style> .box { height: 100px; width: 100px; margin: 10px; background-color: white; -webkit-transition-property: width; } .box { -webkit-transition: 2s; } #box.final { background-color: black; } </style> <script src="../animations/resources/animation-test-helpers.js"></script> <script type="text/javascript"> const expectedValues = [ // [time, element-id, property, expected-value, tolerance] [0.5, 'box', 'background-color', [153, 153, 153], 4], ]; function setupTest() { document.getElementById('box').className = 'box final'; } runTransitionTest(expectedValues, setupTest); </script> </head> <body> <div id="box" class="box"></div> <div id="result"> </div> </body> </html>
introToAngular/examples/snapshots/snapshot16/index.html
pastorenue/screencasts
<html ng-app="nameApp"> <head> <meta charset="utf-8"> <title>Angular.js Example</title> <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.min.js"></script> <script> var nameApp = angular.module('nameApp', []); nameApp.controller('NameCtrl', function ($scope){ $scope.names = ['Larry', 'Curly', 'Moe']; $scope.addName = function() { $scope.names.push($scope.enteredName); $scope.enteredName = ''; }; }); </script> </head> <body ng-controller="NameCtrl"> <ul> <li ng-repeat="name in names">{{name}}</li> </ul> <form ng-submit="addName()"> <input type="text" ng-model="enteredName"> <input type="submit" value="add"> </form> </body> </html>
webroot/bower_components/summernote/examples/nativestyle.html
aoliverio/builder
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title>summernote</title> <!-- include jquery --> <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <!-- include libraries BS3 --> <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" /> <script type="text/javascript" src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> <!-- include summernote --> <link rel="stylesheet" href="../dist/summernote.css"> <script type="text/javascript" src="../dist/summernote.js"></script> <script type="text/javascript"> $(document).ready(function() { $('.summernote').summernote({ height: 200, tabsize: 2, styleWithSpan: false }); }); </script> </head> <body> <textarea class="summernote"><p>Seasons <b>coming up</b></p></textarea> </body> </html>
venv/bin/libs/preprocessor/doc/ref/list_first_n_d.html
NixaSoftware/CVis
<html> <head> <title>BOOST_PP_LIST_FIRST_N_D</title> <link rel="stylesheet" type="text/css" href="../styles.css"> </head> <body> <div style="margin-left: 0px;"> The <b>BOOST_PP_LIST_FIRST_N_D</b> macro expands to a <i>list</i> of the first <i>count</i> elements of a <i>list</i>.&nbsp; It reenters <b>BOOST_PP_WHILE</b> with maximum efficiency. </div> <h4>Usage</h4> <div class="code"> <b>BOOST_PP_LIST_FIRST_N_D</b>(<i>d</i>, <i>count</i>, <i>list</i>) </div> <h4>Arguments</h4> <dl> <dt>d</dt> <dd> The next available <b>BOOST_PP_WHILE</b> iteration. </dd> <dt>count</dt> <dd> The number of elements to extract. </dd> <dt>list</dt> <dd> The <i>list</i> from which the elements are extracted. </dd> </dl> <h4>Remarks</h4> <div> This macro extracts <i>count</i> elements from the beginning of <i>list</i> and returns them as a <i>list</i> </div> <h4>See Also</h4> <ul> <li><a href="list_first_n.html">BOOST_PP_LIST_FIRST_N</a></li> </ul> <h4>Requirements</h4> <div> <b>Header:</b> &nbsp;<a href="../headers/list/first_n.html">&lt;boost/preprocessor/list/first_n.hpp&gt;</a> </div> <h4>Sample Code</h4> <div><pre> #include &lt;<a href="../headers/list/first_n.html">boost/preprocessor/list/first_n.hpp</a>&gt; #include &lt;<a href="../headers/list/fold_left.html">boost/preprocessor/list/fold_right.hpp</a>&gt; #define L1 (a, (b, (c, (d, <a href="nil.html">BOOST_PP_NIL</a>)))) #define L2 (L1, (L1, (L1, <a href="nil.html">BOOST_PP_NIL</a>))) #define OP(d, state, x) (<a href="list_first_n_d.html">BOOST_PP_LIST_FIRST_N_D</a>(d, 2, x), state) <a href="list_fold_right.html">BOOST_PP_LIST_FOLD_RIGHT</a>(OP, <a href="nil.html">BOOST_PP_NIL</a>, L2) /* expands to... ((a, (b, <a href="nil.html">BOOST_PP_NIL</a>)), ((a, (b, <a href="nil.html">BOOST_PP_NIL</a>)), ((a, (b, <a href="nil.html">BOOST_PP_NIL</a>)) , <a href="nil.html">BOOST_PP_NIL</a> ))) */ </pre></div> <hr size="1"> <div style="margin-left: 0px;"> <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i> </br><i>© Copyright Paul Mensonides 2002</i> </div> <div style="margin-left: 0px;"> <p><small>Distributed under the Boost Software License, Version 1.0. (See accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or copy at <a href= "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p> </div> </body> </html>
third_party/blink/web_tests/fast/lists/009.html
scheib/chromium
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <title>A List Apart</title> <style type="text/css"> #subnav ul { padding: 0; } #subnav ul li { list-style: disc url(resources/listmark.gif) inside; } #subnav dd { margin: 0; } </style> </head> <body> <div id="subnav"> <dl> <dt>DT text is rendered here</dt> <dd> <ul> <li>LI text is here too</li> </ul> </dd> </dl> </div> </body> </html>
third_party/blink/web_tests/http/tests/security/resources/innocent-victim.html
scheib/chromium
<html> <body> This page doesn't do anything special. </body> </html>
webapps/ROOT/LoadTestResults_2017_7200/LITRC/content/css/dashboard.css
saurabhrai-it/gale
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #stats td, th { width: 9%;//140px; height: 30px; } #stats td { text-align: center; } #stats th { font-weight:bold; } .blue { background-color: #dff0d8; } #errors td, th { text-align: center; width: 400px; height: 30px; } #errors td { } #errors th { font-weight:bold; }
omeka/omeka-2.4.1/application/views/scripts/css/media/768min.css
jbfink/docker-omeka
/* Table of Contents ================================================== #Content Navigation #Content #Dashboard #Browse Items */ /* Form Elements ==================================================*/ a.button.big, input[type=submit].big, button.big { font-size: 1em; } /* Content Navigation ==================================================*/ #content-nav { width: 100px; font-size: .75em; } #content-nav .current:after { width: 10px; height: 2.375em; background: url('../../images/blue-arrow_sm.png') no-repeat; position: absolute; content: ""; top: -1px; right: -10px; } /* Content ==================================================*/ .section-title { margin: 60px 0 10px 130px; } /* Dashboard ================================================== */ #stats p { min-width: 1em; } /* Browse Items ==================================================*/ .item-actions, .pagination { font-size: .875em; } .pagination { clear: left; float: left; margin: 0 0 20px 0; } .item-info { width: 40%; } #quick-filter { width: 80px; }
third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-baseline-align-self-baseline-vert-001-expected.html
danakj/chromium
<!DOCTYPE html> <!-- Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ --> <!-- Reference case, using inline-block instead of inline-flex, and with the unaligned children taken out of baseline-alignment with "vertical-align:top". --> <html> <head> <title>CSS Reftest Reference</title> <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="support/ahem.css" /> <style> body { margin: 0; font: 20px Ahem; line-height: 20px; /* Baseline is 0.8em = 16px from top */ } .flexContainer { display: inline-block; background: lightblue; } .hugeAndUnaligned { font-size: 35px; line-height: 35px; vertical-align: top; } .smallFont { font-size: 10px; line-height: 10px; /* Baseline is 0.8em = 8px from top */ } * { vertical-align: top } </style> </head> <body> <div style="display: inline-block; margin-top: 12px">a</div> <div class="flexContainer" style="margin-top: 20px"> <div class="smallFont">b</div ><div>c</div ><div class="hugeAndUnaligned">d</div> </div> <div class="flexContainer"> <div class="hugeAndUnaligned">e</div ><div>f</div ><div class="smallFont">g</div> </div> <div class="flexContainer"> <div class="hugeAndUnaligned">h</div ><div class="smallFont">i</div ><div>j</div> </div> </body> </html>
third_party/blink/web_tests/external/wpt/css/css-ui/reference/text-overflow-016-ref.html
scheib/chromium
<!DOCTYPE html> <meta charset="utf-8"> <title>Test reference</title> <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/"> <style> div { margin-left: 60px; background: green; width: 40px; height: 40px; } </style> <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> <div></div>
www/vendor/angular-1.3.9/docs/examples/example-example104/index.html
marcoR80/simple-app-mobile
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Example - example-example104</title> <script src="../../../angular.min.js"></script> <script src="script.js"></script> </head> <body ng-app="orderByExample"> <div ng-controller="ExampleController"> <table class="friend"> <tr> <th><a href="" ng-click="reverse=false;order('name', false)">Name</a> (<a href="" ng-click="order('-name',false)">^</a>)</th> <th><a href="" ng-click="reverse=!reverse;order('phone', reverse)">Phone Number</a></th> <th><a href="" ng-click="reverse=!reverse;order('age',reverse)">Age</a></th> </tr> <tr ng-repeat="friend in friends"> <td>{{friend.name}}</td> <td>{{friend.phone}}</td> <td>{{friend.age}}</td> </tr> </table> </div> </body> </html>
third_party/blink/web_tests/external/wpt/css/css-transforms/css-transform-3d-rotate3d-Z-positive.html
nwjs/chromium.src
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Transforms Test: rotate3d on div element</title> <link rel="author" title="Intel" href="http://www.intel.com"> <link rel="help" href="http://www.w3.org/TR/css-transforms-2/#three-d-transform-functions"> <link rel="match" href="reference/css-transform-3d-rotateZ-ref.html"> <meta name="assert" content="Test checks that rotate a vertical rectangle for 90 degree on Z-axis would cover the horizontal red rectangle."> <style> div { height: 100px; left: 80px; position: absolute; top: 80px; width: 100px; } div.origin { background-color: green; } div.redsquare { background-color: red; height: 38px; left: 80px; top: 111px; width: 100px; } div.greensquare { background-color: green; height: 100px; left: 110px; top: 80px; width: 40px; transform: rotate3d(0,0,1,90deg); } </style> </head> <body> <p>Test passes if there is a green square and no red.</p> <div class="origin"></div> <div class="redsquare"></div> <div class="greensquare"></div> </body> </html>
www/SiGA/pages/UI/sliders.html
Gerencia-de-Configuracao-Software/SiGA
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>AdminLTE | UI Sliders</title> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> <!-- Ionicons --> <link href="//code.ionicframework.com/ionicons/1.5.2/css/ionicons.min.css" rel="stylesheet" type="text/css" /> <!-- Ion Slider --> <link href="../../css/ionslider/ion.rangeSlider.css" rel="stylesheet" type="text/css" /> <!-- ion slider Nice --> <link href="../../css/ionslider/ion.rangeSlider.skinNice.css" rel="stylesheet" type="text/css" /> <!-- bootstrap slider --> <link href="../../css/bootstrap-slider/slider.css" rel="stylesheet" type="text/css" /> <!-- Theme style --> <link href="../../css/AdminLTE.css" rel="stylesheet" type="text/css" /> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> <![endif]--> </head> <body class="skin-blue"> <!-- header logo: style can be found in header.less --> <header class="header"> <a href="../../index.html" class="logo"> <!-- Add the class icon to your logo image or logo icon to add the margining --> AdminLTE </a> <!-- Header Navbar: style can be found in header.less --> <nav class="navbar navbar-static-top" role="navigation"> <!-- Sidebar toggle button--> <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <div class="navbar-right"> <ul class="nav navbar-nav"> <!-- Messages: style can be found in dropdown.less--> <li class="dropdown messages-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-envelope"></i> <span class="label label-success">4</span> </a> <ul class="dropdown-menu"> <li class="header">You have 4 messages</li> <li> <!-- inner menu: contains the actual data --> <ul class="menu"> <li><!-- start message --> <a href="#"> <div class="pull-left"> <img src="../../img/avatar3.png" class="img-circle" alt="User Image"/> </div> <h4> Support Team <small><i class="fa fa-clock-o"></i> 5 mins</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li><!-- end message --> <li> <a href="#"> <div class="pull-left"> <img src="../../img/avatar2.png" class="img-circle" alt="user image"/> </div> <h4> AdminLTE Design Team <small><i class="fa fa-clock-o"></i> 2 hours</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li> <li> <a href="#"> <div class="pull-left"> <img src="../../img/avatar.png" class="img-circle" alt="user image"/> </div> <h4> Developers <small><i class="fa fa-clock-o"></i> Today</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li> <li> <a href="#"> <div class="pull-left"> <img src="../../img/avatar2.png" class="img-circle" alt="user image"/> </div> <h4> Sales Department <small><i class="fa fa-clock-o"></i> Yesterday</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li> <li> <a href="#"> <div class="pull-left"> <img src="../../img/avatar.png" class="img-circle" alt="user image"/> </div> <h4> Reviewers <small><i class="fa fa-clock-o"></i> 2 days</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li> </ul> </li> <li class="footer"><a href="#">See All Messages</a></li> </ul> </li> <!-- Notifications: style can be found in dropdown.less --> <li class="dropdown notifications-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-warning"></i> <span class="label label-warning">10</span> </a> <ul class="dropdown-menu"> <li class="header">You have 10 notifications</li> <li> <!-- inner menu: contains the actual data --> <ul class="menu"> <li> <a href="#"> <i class="ion ion-ios7-people info"></i> 5 new members joined today </a> </li> <li> <a href="#"> <i class="fa fa-warning danger"></i> Very long description here that may not fit into the page and may cause design problems </a> </li> <li> <a href="#"> <i class="fa fa-users warning"></i> 5 new members joined </a> </li> <li> <a href="#"> <i class="ion ion-ios7-cart success"></i> 25 sales made </a> </li> <li> <a href="#"> <i class="ion ion-ios7-person danger"></i> You changed your username </a> </li> </ul> </li> <li class="footer"><a href="#">View all</a></li> </ul> </li> <!-- Tasks: style can be found in dropdown.less --> <li class="dropdown tasks-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-tasks"></i> <span class="label label-danger">9</span> </a> <ul class="dropdown-menu"> <li class="header">You have 9 tasks</li> <li> <!-- inner menu: contains the actual data --> <ul class="menu"> <li><!-- Task item --> <a href="#"> <h3> Design some buttons <small class="pull-right">20%</small> </h3> <div class="progress xs"> <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"> <span class="sr-only">20% Complete</span> </div> </div> </a> </li><!-- end task item --> <li><!-- Task item --> <a href="#"> <h3> Create a nice theme <small class="pull-right">40%</small> </h3> <div class="progress xs"> <div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"> <span class="sr-only">40% Complete</span> </div> </div> </a> </li><!-- end task item --> <li><!-- Task item --> <a href="#"> <h3> Some task I need to do <small class="pull-right">60%</small> </h3> <div class="progress xs"> <div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"> <span class="sr-only">60% Complete</span> </div> </div> </a> </li><!-- end task item --> <li><!-- Task item --> <a href="#"> <h3> Make beautiful transitions <small class="pull-right">80%</small> </h3> <div class="progress xs"> <div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"> <span class="sr-only">80% Complete</span> </div> </div> </a> </li><!-- end task item --> </ul> </li> <li class="footer"> <a href="#">View all tasks</a> </li> </ul> </li> <!-- User Account: style can be found in dropdown.less --> <li class="dropdown user user-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="glyphicon glyphicon-user"></i> <span>Jane Doe <i class="caret"></i></span> </a> <ul class="dropdown-menu"> <!-- User image --> <li class="user-header bg-light-blue"> <img src="../../img/avatar3.png" class="img-circle" alt="User Image" /> <p> Jane Doe - Web Developer <small>Member since Nov. 2012</small> </p> </li> <!-- Menu Body --> <li class="user-body"> <div class="col-xs-4 text-center"> <a href="#">Followers</a> </div> <div class="col-xs-4 text-center"> <a href="#">Sales</a> </div> <div class="col-xs-4 text-center"> <a href="#">Friends</a> </div> </li> <!-- Menu Footer--> <li class="user-footer"> <div class="pull-left"> <a href="#" class="btn btn-default btn-flat">Profile</a> </div> <div class="pull-right"> <a href="#" class="btn btn-default btn-flat">Sign out</a> </div> </li> </ul> </li> </ul> </div> </nav> </header> <div class="wrapper row-offcanvas row-offcanvas-left"> <!-- Left side column. contains the logo and sidebar --> <aside class="left-side sidebar-offcanvas"> <!-- sidebar: style can be found in sidebar.less --> <section class="sidebar"> <!-- Sidebar user panel --> <div class="user-panel"> <div class="pull-left image"> <img src="../../img/avatar3.png" class="img-circle" alt="User Image" /> </div> <div class="pull-left info"> <p>Hello, Jane</p> <a href="#"><i class="fa fa-circle text-success"></i> Online</a> </div> </div> <!-- search form --> <form action="#" method="get" class="sidebar-form"> <div class="input-group"> <input type="text" name="q" class="form-control" placeholder="Search..."/> <span class="input-group-btn"> <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button> </span> </div> </form> <!-- /.search form --> <!-- sidebar menu: : style can be found in sidebar.less --> <ul class="sidebar-menu"> <li> <a href="../../index.html"> <i class="fa fa-dashboard"></i> <span>Dashboard</span> </a> </li> <li> <a href="../widgets.html"> <i class="fa fa-th"></i> <span>Widgets</span> <small class="badge pull-right bg-green">new</small> </a> </li> <li class="treeview"> <a href="#"> <i class="fa fa-bar-chart-o"></i> <span>Charts</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li><a href="../charts/morris.html"><i class="fa fa-angle-double-right"></i> Morris</a></li> <li><a href="../charts/flot.html"><i class="fa fa-angle-double-right"></i> Flot</a></li> <li><a href="../charts/inline.html"><i class="fa fa-angle-double-right"></i> Inline charts</a></li> </ul> </li> <li class="treeview active"> <a href="#"> <i class="fa fa-laptop"></i> <span>UI Elements</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li><a href="general.html"><i class="fa fa-angle-double-right"></i> General</a></li> <li><a href="icons.html"><i class="fa fa-angle-double-right"></i> Icons</a></li> <li><a href="buttons.html"><i class="fa fa-angle-double-right"></i> Buttons</a></li> <li class="active"><a href="sliders.html"><i class="fa fa-angle-double-right"></i> Sliders</a></li> <li><a href="timeline.html"><i class="fa fa-angle-double-right"></i> Timeline</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-edit"></i> <span>Forms</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li><a href="../forms/general.html"><i class="fa fa-angle-double-right"></i> General Elements</a></li> <li><a href="../forms/advanced.html"><i class="fa fa-angle-double-right"></i> Advanced Elements</a></li> <li><a href="../forms/editors.html"><i class="fa fa-angle-double-right"></i> Editors</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-table"></i> <span>Tables</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li><a href="../tables/simple.html"><i class="fa fa-angle-double-right"></i> Simple tables</a></li> <li><a href="../tables/data.html"><i class="fa fa-angle-double-right"></i> Data tables</a></li> </ul> </li> <li> <a href="../calendar.html"> <i class="fa fa-calendar"></i> <span>Calendar</span> <small class="badge pull-right bg-red">3</small> </a> </li> <li> <a href="../mailbox.html"> <i class="fa fa-envelope"></i> <span>Mailbox</span> <small class="badge pull-right bg-yellow">12</small> </a> </li> <li class="treeview"> <a href="#"> <i class="fa fa-folder"></i> <span>Examples</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li><a href="../examples/invoice.html"><i class="fa fa-angle-double-right"></i> Invoice</a></li> <li><a href="../examples/login.html"><i class="fa fa-angle-double-right"></i> Login</a></li> <li><a href="../examples/register.html"><i class="fa fa-angle-double-right"></i> Register</a></li> <li><a href="../examples/lockscreen.html"><i class="fa fa-angle-double-right"></i> Lockscreen</a></li> <li><a href="../examples/404.html"><i class="fa fa-angle-double-right"></i> 404 Error</a></li> <li><a href="../examples/500.html"><i class="fa fa-angle-double-right"></i> 500 Error</a></li> <li><a href="../examples/blank.html"><i class="fa fa-angle-double-right"></i> Blank Page</a></li> </ul> </li> </ul> </section> <!-- /.sidebar --> </aside> <!-- Right side column. Contains the navbar and content of the page --> <aside class="right-side"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Sliders <small>range sliders</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#">UI</a></li> <li class="active">Sliders</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title">Ion Slider</h3> </div><!-- /.box-header --> <div class="box-body"> <div class="row margin"> <div class="col-sm-6"> <input id="range_1" type="text" name="range_1" value="" /> </div> <div class="col-sm-6"> <input id="range_2" type="text" name="range_2" value="1000;100000" data-type="double" data-step="500" data-postfix=" &euro;" data-from="30000" data-to="90000" data-hasgrid="true" /> </div> </div> <div class="row margin"> <div class="col-sm-6"> <input id="range_5" type="text" name="range_5" value="" /> </div> <div class="col-sm-6"> <input id="range_6" type="text" name="range_6" value="" /> </div> </div> <div class="row margin"> <div class="col-sm-12"> <input id="range_4" type="text" name="range_4" value="10000;100000" /> </div> </div> </div><!-- /.box-body --> </div><!-- /.box --> </div><!-- /.col --> </div><!-- /.row --> <div class="row"> <div class="col-xs-12"> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title">Bootstrap Slider</h3> </div><!-- /.box-header --> <div class="box-body"> <div class="row margin"> <div class="col-sm-6"> <input type="text" value="" class="slider form-control" data-slider-min="-200" data-slider-max="200" data-slider-step="5" data-slider-value="[-100,100]" data-slider-orientation="horizontal" data-slider-selection="before" data-slider-tooltip="show" data-slider-id="red"> <p>data-slider-id="red"</p> <input type="text" value="" class="slider form-control" data-slider-min="-200" data-slider-max="200" data-slider-step="5" data-slider-value="[-100,100]" data-slider-orientation="horizontal" data-slider-selection="before" data-slider-tooltip="show" data-slider-id="blue"> <p>data-slider-id="blue"</p> <input type="text" value="" class="slider form-control" data-slider-min="-200" data-slider-max="200" data-slider-step="5" data-slider-value="[-100,100]" data-slider-orientation="horizontal" data-slider-selection="before" data-slider-tooltip="show" data-slider-id="green"> <p>data-slider-id="green"</p> <input type="text" value="" class="slider form-control" data-slider-min="-200" data-slider-max="200" data-slider-step="5" data-slider-value="[-100,100]" data-slider-orientation="horizontal" data-slider-selection="before" data-slider-tooltip="show" data-slider-id="yellow"> <p>data-slider-id="yellow"</p> <input type="text" value="" class="slider form-control" data-slider-min="-200" data-slider-max="200" data-slider-step="5" data-slider-value="[-100,100]" data-slider-orientation="horizontal" data-slider-selection="before" data-slider-tooltip="show" data-slider-id="aqua"> <p>data-slider-id="aqua"</p> <input type="text" value="" class="slider form-control" data-slider-min="-200" data-slider-max="200" data-slider-step="5" data-slider-value="[-100,100]" data-slider-orientation="horizontal" data-slider-selection="before" data-slider-tooltip="show" data-slider-id="purple"> <p style="margin-top: 10px">data-slider-id="purple"</p> </div> <div class="col-sm-6 text-center"> <input type="text" value="" class="slider form-control" data-slider-min="-200" data-slider-max="200" data-slider-step="5" data-slider-value="[-100,100]" data-slider-orientation="vertical" data-slider-selection="before" data-slider-tooltip="show" data-slider-id="red"> <input type="text" value="" class="slider form-control" data-slider-min="-200" data-slider-max="200" data-slider-step="5" data-slider-value="[-100,100]" data-slider-orientation="vertical" data-slider-selection="before" data-slider-tooltip="show" data-slider-id="blue"> <input type="text" value="" class="slider form-control" data-slider-min="-200" data-slider-max="200" data-slider-step="5" data-slider-value="[-100,100]" data-slider-orientation="vertical" data-slider-selection="before" data-slider-tooltip="show" data-slider-id="green"> <input type="text" value="" class="slider form-control" data-slider-min="-200" data-slider-max="200" data-slider-step="5" data-slider-value="[-100,100]" data-slider-orientation="vertical" data-slider-selection="before" data-slider-tooltip="show" data-slider-id="yellow"> <input type="text" value="" class="slider form-control" data-slider-min="-200" data-slider-max="200" data-slider-step="5" data-slider-value="[-100,100]" data-slider-orientation="vertical" data-slider-selection="before" data-slider-tooltip="show" data-slider-id="aqua"> <input type="text" value="" class="slider form-control" data-slider-min="-200" data-slider-max="200" data-slider-step="5" data-slider-value="[-100,100]" data-slider-orientation="vertical" data-slider-selection="before" data-slider-tooltip="show" data-slider-id="purple"> </div> </div> </div><!-- /.box-body --> </div><!-- /.box --> </div><!-- /.col --> </div><!-- /.row --> </section><!-- /.content --> </aside><!-- /.right-side --> </div><!-- ./wrapper --> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script> <!-- AdminLTE App --> <script src="../../js/AdminLTE/app.js" type="text/javascript"></script> <!-- AdminLTE for demo purposes --> <script src="../../js/AdminLTE/demo.js" type="text/javascript"></script> <!-- Ion Slider --> <script src="../../js/plugins/ionslider/ion.rangeSlider.min.js" type="text/javascript"></script> <!-- Bootstrap slider --> <script src="../../js/plugins/bootstrap-slider/bootstrap-slider.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { /* BOOTSTRAP SLIDER */ $('.slider').slider(); /* ION SLIDER */ $("#range_1").ionRangeSlider({ min: 0, max: 5000, from: 1000, to: 4000, type: 'double', step: 1, prefix: "$", prettify: false, hasGrid: true }); $("#range_2").ionRangeSlider(); $("#range_5").ionRangeSlider({ min: 0, max: 10, type: 'single', step: 0.1, postfix: " mm", prettify: false, hasGrid: true }); $("#range_6").ionRangeSlider({ min: -50, max: 50, from: 0, type: 'single', step: 1, postfix: "°", prettify: false, hasGrid: true }); $("#range_4").ionRangeSlider({ type: "single", step: 100, postfix: " light years", from: 55000, hideMinMax: true, hideFromTo: false }); $("#range_3").ionRangeSlider({ type: "double", postfix: " miles", step: 10000, from: 25000000, to: 35000000, onChange: function(obj) { var t = ""; for (var prop in obj) { t += prop + ": " + obj[prop] + "\r\n"; } $("#result").html(t); }, onLoad: function(obj) { // } }); }); </script> </body> </html>
tests/wpt/web-platform-tests/css/css-counter-styles/telugu/css3-counter-styles-149.html
anthgur/servo
<!DOCTYPE html> <html lang="en" > <head> <meta charset="utf-8"/> <title>telugu, 0-9</title> <link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'> <link rel='help' href='http://www.w3.org/TR/css-counter-styles-3/#simple-numeric'> <meta name='flags' content='font'> <meta name="assert" content="list-style-type:telugu produces numbers up to 9 per the spec."> <style type='text/css'> ol li { list-style-type: telugu; } /* the following CSS is not part of the test */ .test { font-size: 25px; } ol { margin: 0; padding-left: 8em; } </style> </head> <body> <p class="instructions">Test passes if the two columns are the same, IGNORING the suffix.</p> <div class="test"> <ol> <li title="1">౧</li> <li title="2">౨</li> <li title="3">౩</li> <li title="4">౪</li> <li title="5">౫</li> <li title="6">౬</li> <li title="7">౭</li> <li title="8">౮</li> <li title="9">౯</li> </ol></div> <!--Notes: You will need an appropriate font to run this test. To see the ASCII decimal number associated with a row, mouse over it and the number will pop up in a tooltip. --> </body> </html>
web/peoplefinder/static/contrib/jtable/themes/metro/lightgray/jtable.css
nextgis/peoplefinder
/* jTable metro style theme - Light gray * Created by Halil İbrahim Kalkan * http://www.jtable.org */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; src: local('Open Sans Light'), local('OpenSans-Light'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTRa1RVmPjeKy21_GQJaLlJI.woff) format('woff'); } @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300; src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxrsuoFAk0leveMLeqYtnfAY.woff) format('woff'); } @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: local('Open Sans'), local('OpenSans'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/u-WUoqrET9fUeobQW7jkRT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff'); } @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; src: local('Open Sans Italic'), local('OpenSans-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBtIh4imgI8P11RFo6YPCPC0.woff) format('woff'); } @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSha1RVmPjeKy21_GQJaLlJI.woff) format('woff'); } @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 600; src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxmWeb5PoA5ztb49yLyUzH1A.woff) format('woff'); } @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzBa1RVmPjeKy21_GQJaLlJI.woff) format('woff'); } @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxoUt79146ZFaIJxILcpzmhI.woff) format('woff'); } div.jtable-main-container { position: relative; } div.jtable-main-container div.jtable-title { position: relative; text-align: left; } div.jtable-main-container div.jtable-title .jtable-close-button { right: 0px; top: 0px; bottom: 0px; position: absolute; } div.jtable-main-container div.jtable-title div.jtable-toolbar { bottom: 0px; right: 0px; position: absolute; display: inline-block; margin-right: 5px; } div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item { position: relative; display: inline-block; margin: 0px 0px 0px 5px; cursor: pointer; font-size: 0.9em; padding: 2px; vertical-align: bottom; } div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-icon { display: inline-block; margin: 2px; vertical-align: middle; width: 16px; height: 16px; } div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-text { display: inline-block; margin: 2px; vertical-align: middle; } div.jtable-main-container div.jtable-title .jtable-close-button + div.jtable-toolbar { margin-right: 30px; } div.jtable-main-container table.jtable { width: 100%; } div.jtable-main-container table.jtable thead th { vertical-align: middle; text-align: left; } div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container { position: relative; } div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container span.jtable-column-header-text { display: inline-block; } div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container div.jtable-column-resize-handler { position: absolute; height: 24px; width: 8px; right: -8px; top: -2px; z-index: 2; cursor: col-resize; } div.jtable-main-container table.jtable thead th.jtable-command-column-header { text-align: center; } div.jtable-main-container table.jtable thead th.jtable-column-header-selecting { text-align: center; width: 1%; } div.jtable-main-container table.jtable thead th.jtable-column-header-selecting input { cursor: pointer; } div.jtable-main-container table.jtable thead th.jtable-column-header-sortable { cursor: pointer; } div.jtable-main-container table.jtable tbody tr > td .jtable-command-button { margin: 0px; padding: 0px; cursor: pointer; border: none; display: inline; } div.jtable-main-container table.jtable tbody tr > td .jtable-command-button span { display: none; } div.jtable-main-container table.jtable tbody tr > td.jtable-command-column { text-align: center; vertical-align: middle; } div.jtable-main-container table.jtable tbody tr > td.jtable-selecting-column { text-align: center; vertical-align: middle; } div.jtable-main-container table.jtable tbody tr > td.jtable-selecting-column input { cursor: pointer; } div.jtable-main-container table.jtable tbody tr.jtable-no-data-row { text-align: center; } div.jtable-main-container > div.jtable-bottom-panel { position: relative; min-height: 24px; text-align: left; } div.jtable-main-container > div.jtable-bottom-panel div.jtable-right-area { right: 0px; top: 0px; bottom: 0px; position: absolute; } div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list { display: inline-block; } div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-space, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-first, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-last, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-previous, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-next, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-active { padding: 2px 5px; display: inline-block; cursor: pointer; } div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-space, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-active, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-disabled { cursor: default; } div.jtable-main-container > div.jtable-bottom-panel span.jtable-page-size-change { margin-left: 5px; } div.jtable-main-container > div.jtable-bottom-panel span.jtable-goto-page { margin-left: 5px; } div.jtable-main-container > div.jtable-bottom-panel span.jtable-goto-page input[type=text] { width: 22px; } div.jtable-main-container > div.jtable-bottom-panel span.jtable-page-info { vertical-align: middle; } div.jtable-main-container div.jtable-column-resize-bar { opacity: 0.5; filter: alpha(opacity=50); position: absolute; display: none; width: 1px; background-color: #000; } div.jtable-main-container div.jtable-column-selection-container { position: absolute; display: none; border: 1px solid #C8C8C8; background: #fff; color: #000; z-index: 101; padding: 5px; } div.jtable-main-container div.jtable-column-selection-container ul.jtable-column-select-list { margin: 0px; padding: 0px; list-style: none; } div.jtable-main-container div.jtable-column-selection-container ul.jtable-column-select-list li { margin: 0px; padding: 2px 0px; } div.jtable-main-container div.jtable-column-selection-container ul.jtable-column-select-list li label span { position: relative; top: -1px; margin-left: 4px; } div.jtable-main-container div.jtable-column-selection-container ul.jtable-column-select-list li input[type="checkbox"] { cursor: pointer; } form.jtable-dialog-form div.jtable-input-field-container { padding: 2px 0px 3px 0px; border-bottom: 1px solid #ddd; } form.jtable-dialog-form div.jtable-input-field-container:last-child { border: none; } form.jtable-dialog-form div.jtable-input-label { padding: 2px 3px; font-size: 1.1em; color: #666; } form.jtable-dialog-form div.jtable-input { padding: 2px; } form.jtable-dialog-form div.jtable-date-input { /* No additional style */ } form.jtable-dialog-form div.jtable-text-input { /* No additional style */ } form.jtable-dialog-form span.jtable-option-text-clickable { position: relative; top: -2px; } form.jtable-dialog-form div.jtable-textarea-input textarea { width: 300px; min-height: 60px; } form.jtable-dialog-form div.jtable-checkbox-input span, form.jtable-dialog-form div.jtable-radio-input span { padding-left: 4px; } form.jtable-dialog-form div.jtable-radio-input input, form.jtable-dialog-form div.jtable-checkbox-input input, form.jtable-dialog-form span.jtable-option-text-clickable { cursor: pointer; } div.jtable-busy-panel-background { opacity: 0.1; filter: alpha(opacity=50); z-index: 998; position: absolute; background-color: #000; } div.jtable-busy-panel-background.jtable-busy-panel-background-invisible { background-color: transparent; } div.jtable-busy-message { cursor: wait; z-index: 999; position: absolute; margin: 5px; } div.jtable-contextmenu-overlay { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 100; } div.jtable-main-container { font-family: 'Segoe UI Semilight', 'Open Sans', Verdana, Arial, Helvetica, sans-serif; font-weight: 300; font-size: 14px; background: #fff; line-height: 1.3; } div.jtable-main-container > div.jtable-title { background-color: #4e4e4e; padding-left: 10px; } div.jtable-main-container > div.jtable-title div.jtable-title-text { font-family: 'Segoe UI Semilight', 'Open Sans', Verdana, Arial, Helvetica, sans-serif; font-weight: 300; font-size: 19px; line-height: 34px; color: #fff; } div.jtable-main-container > div.jtable-title .jtable-close-button { right: 8px; top: 8px; bottom: 8px; position: absolute; opacity: 0.5; filter: alpha(opacity=50); background: url('../../metro/close.png') no-repeat; width: 16px; height: 16px; } div.jtable-main-container > div.jtable-title .jtable-close-button:hover { opacity: 1; filter: alpha(opacity=50); } div.jtable-main-container > div.jtable-title div.jtable-toolbar { bottom: 0px; right: 0px; position: absolute; } div.jtable-main-container > div.jtable-title div.jtable-toolbar span.jtable-toolbar-item { background-color: #585858; color: white; } div.jtable-main-container > div.jtable-title div.jtable-toolbar span.jtable-toolbar-item.jtable-toolbar-item-add-record span.jtable-toolbar-item-icon { background-image: url('../../metro/add.png'); } div.jtable-main-container > div.jtable-title div.jtable-toolbar span.jtable-toolbar-item.jtable-toolbar-item-hover { background-color: #5f5f5f; padding-bottom: 6px; } div.jtable-main-container > table.jtable { border: 1px solid #707070; border-collapse: collapse; border-spacing: 0; } div.jtable-main-container > table.jtable > thead { background-color: #707070; } div.jtable-main-container > table.jtable > thead th { font-family: 'Segoe UI Semilight', 'Open Sans', Verdana, Arial, Helvetica, sans-serif; font-weight: 300; font-size: 15px; color: #fff; } div.jtable-main-container > table.jtable > thead th.jtable-column-header div.jtable-column-header-container { height: 24px; margin-left: 4px; } div.jtable-main-container > table.jtable > thead th.jtable-column-header div.jtable-column-header-container div.jtable-column-resize-handler { height: 28px; } div.jtable-main-container > table.jtable > thead th.jtable-column-header div.jtable-column-header-container span.jtable-column-header-text { margin-top: 2px; } div.jtable-main-container > table.jtable > thead th.jtable-column-header-sortable div.jtable-column-header-container { background: url('../../metro/column-sortable.png') no-repeat right; } div.jtable-main-container > table.jtable > thead th.jtable-column-header-sorted-asc div.jtable-column-header-container { background: url('../../metro/column-asc.png') no-repeat right; } div.jtable-main-container > table.jtable > thead th.jtable-column-header-sorted-desc div.jtable-column-header-container { background: url('../../metro/column-desc.png') no-repeat right; } div.jtable-main-container > table.jtable > tbody > tr { background-color: #fff; } div.jtable-main-container > table.jtable > tbody > tr > td { border: 1px solid #ddd; } div.jtable-main-container > table.jtable > tbody > tr.jtable-data-row > td { padding: 4px; } div.jtable-main-container > table.jtable > tbody > tr.jtable-data-row > td > .jtable-edit-command-button { background: url('../../metro/edit.png') no-repeat; width: 16px; height: 16px; opacity: 0.4; } div.jtable-main-container > table.jtable > tbody > tr.jtable-data-row > td > .jtable-edit-command-button:hover { opacity: 0.8; } div.jtable-main-container > table.jtable > tbody > tr.jtable-data-row > td > .jtable-delete-command-button { background: url('../../metro/delete.png') no-repeat; width: 16px; height: 16px; opacity: 0.4; } div.jtable-main-container > table.jtable > tbody > tr.jtable-data-row > td > .jtable-delete-command-button:hover { opacity: 0.8; } div.jtable-main-container > table.jtable > tbody > tr.jtable-row-even { background-color: #f9f9f9; } div.jtable-main-container > table.jtable > tbody > tr:hover { background: #e8eaef; } div.jtable-main-container > table.jtable > tbody > tr.jtable-row-selected { color: #fff; background-color: #929292; } div.jtable-main-container > table.jtable > tbody > tr.jtable-row-created { background-color: #a3a3a3; } div.jtable-main-container > table.jtable > tbody > tr.jtable-row-updated { background-color: #a3a3a3; } div.jtable-main-container > table.jtable > tbody > tr.jtable-row-deleting { background-color: #e51400; color: #fff; } div.jtable-main-container > table.jtable > tbody > tr.jtable-child-row > td { padding: 2px; background-color: #fff; } div.jtable-main-container > div.jtable-bottom-panel { background-color: #5f5f5f; color: #fff; min-height: 22.900000000000002px; font-size: 13px; border: 1px solid #707070; border-top: none; } div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list { margin: 1px 0px 0px 0px; } div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-space, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-first, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-last, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-previous, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-next, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-active { background-color: #707070; margin: 1px; padding: 2px 5px; color: #fff; } div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number:hover, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-first:hover, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-last:hover, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-previous:hover, div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-next:hover { background-color: #929292; } div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-disabled { opacity: 0.75; filter: alpha(opacity=50); color: #ccc; cursor: default; } div.jtable-main-container > div.jtable-bottom-panel .jtable-page-list .jtable-page-number-disabled:hover { background-color: #707070; } div.jtable-main-container > div.jtable-bottom-panel span.jtable-page-info { display: inline-block; padding: 4px; } div.jtable-main-container > div.jtable-bottom-panel span.jtable-page-size-change { display: inline-block; padding: 2px 0px 2px 0px; } div.jtable-main-container > div.jtable-bottom-panel span.jtable-goto-page { display: inline-block; padding: 2px 0px 2px 0px; } form.jtable-dialog-form { font-family: 'Segoe UI Semilight', 'Open Sans', Verdana, Arial, Helvetica, sans-serif; font-weight: 400; font-size: 14px; } div.jtable-busy-message { font-family: 'Segoe UI Semilight', 'Open Sans', Verdana, Arial, Helvetica, sans-serif; font-weight: 300; font-size: 16px; border: 1px solid #fff; padding: 5px 5px 5px 58px; color: #fff; background: url('../../metro/lightgray/loading.gif') no-repeat; background-color: #4e4e4e; background-position: 8px; }
webkit/LayoutTests/fast/dom/NodeList/resources/adoptNode-node-list-cache-subframe.html
danialbehzadi/Nokia-RM-1013-2.0.0.11
<script> var doc = document.implementation.createHTMLDocument('a'); var b = document.createElement('b'); // Give it a node list cache on document b.childNodes; // Attach it to doc to update m_document doc.adoptNode(b); doc.body.appendChild(b); doc.body.removeChild(b); </script> <p>Close the document to see if there's an assertion failure.</p>
webkit/LayoutTests/fast/encoding/resources/118.html
danialbehzadi/Nokia-RM-1013-2.0.0.11
<!DOCTYPE HTML> <meta http-equiv="Content-Type" content='text/html;charset=IS\O-8859-9'> <p>Test: <pre>&lt;!DOCTYPE HTML> &lt;meta http-equiv="Content-Type" content='text/html;charset=IS\O-8859-9'></pre> <p>Expected result: <span id="expected">Windows-1252</span> <div> <style scoped> .pass { background: green; color: white; padding: 0.5em; font-weight: bold; } .fail { background: red; color: yellow; padding: 0.5em; font-weight: bold; } </style> <p>Encoding used by browser is: <span id="encoding">Script did not run.</span> <p>Result: <span id="result">Script did not run.</span> <script> var encoding = 'unknown'; if ('à' == '\u00E0') { // 0xE0 if ('™' == '\u2122') { // 0x99 if ('þ' == '\u00FE') // 0xFE encoding = 'Windows-1252'; else if ('þ' == '\u015F') encoding = 'Windows-1254'; else if ('þ' == '\u200F') encoding = 'Windows-1256'; else if ('þ' == '\u20AB') encoding = 'Windows-1258'; else encoding = 'unknown with 0xE0 = U+00E0 and 0x99 = U+2122'; } else if ('ÿ' == '\u02D9') // 0xFF encoding = 'ISO-8859-3'; else if ('þ' == '\u0177') // 0xFE encoding = 'ISO-8859-14'; else if ('þ' == '\u021B') encoding = 'ISO-8859-16'; else if ('þ' == '\u015F') encoding = 'ISO-8859-9'; else if ('¾' == '\u00BE') // 0xBE encoding = 'ISO-8859-1'; else if ('¾' == '\u0178') encoding = 'ISO-8859-15'; else encoding = 'unknown with 0xE0 = U+00E0'; } else if ('à' == '\u0101') // 0xE0 encoding = 'ISO-8859-10'; else if ('à' == '\u0E40') // 0xE0 encoding = 'ISO-8859-11'; else if ('à' == '\uFFFD') { // 0xE0 if ('☺' == '\u263A') // 0xE2 0x98 0xBA encoding = 'UTF-8'; else encoding = 'unknown (but ASCII-compatible)'; } document.getElementById('encoding').firstChild.data = encoding; var expected = document.getElementById('expected').firstChild.data; if (expected == '(demo - no expected result)') { document.getElementById('result').firstChild.data = 'demo'; } else if (encoding == expected) { document.getElementById('result').firstChild.data = 'PASS'; document.getElementById('result').className = 'pass'; } else { document.getElementById('result').firstChild.data = 'FAIL'; document.getElementById('result').className = 'fail'; } if (parent.receivedResults) parent.receivedResults(); </script> </div>
tests/wpt/web-platform-tests/css/css-gcpm/leader-003.html
UK992/servo
<!DOCTYPE html> <html> <head> <title>CSS Test: GCPM Solid Leader</title> <link rel="author" title="Dave Cramer" href="mailto:dauwhe@gmail.com"> <link rel="help" href="http://www.w3.org/TR/css-gcpm-3/#solid-leader"> <meta name="flags" content="paged"> <meta name="assert" content="Test checks that a basic solid leader is implemented"> <style> span.cn::after { content: leader(solid); } </style> </head> <body> <p>Test passes if there's a continuous row of underscores between "Chapter One" and "1"</p> <ol> <li> <span class="cn">Chapter One</span> <span class="folio">1</span> </li> <!-- <li> Chapter Two <span class="folio">137</span> </li> --> </ol> </body> </html>
files/formstone/0.8.27/css/upload.css
as-com/jsdelivr
/*! formstone v0.8.27 [upload.css] 2015-11-10 | MIT License | formstone.it */ /** * @class * @name .fs-upload-element * @type element * @description Target elmement */ /** * @class * @name .fs-upload * @type element * @description Base widget class */ /** * @class * @name .fs-upload.fs-upload-dropping * @type modifier * @description Indicates dropping state */ /** * @class * @name .fs-upload.fs-upload-disabled * @type modifier * @description Indicates disabled state */ .fs-upload { overflow: hidden; /** * @class * @name .fs-upload-input * @type element * @description Masked Input */ /** * @class * @name .fs-upload-target * @type element * @description Drop target */ } .fs-upload, .fs-upload:after, .fs-upload:before, .fs-upload *, .fs-upload *:after, .fs-upload *:before { box-sizing: border-box; -webkit-transition: none; transition: none; -webkit-user-select: none !important; -moz-user-select: none !important; -ms-user-select: none !important; user-select: none !important; } .fs-upload-input { position: absolute; left: 100%; opacity: 0; } .no-opacity .fs-upload-input { left: -999px; } .fs-upload-target { background: #ffffff; border: 3px dashed #cccccc; border-radius: 3px; color: #666666; cursor: pointer; font-size: 14px; margin: 0; padding: 25px; text-align: center; -webkit-transition: background 0.15s linear, border 0.15s linear, color 0.15s linear, opacity 0.15s linear; transition: background 0.15s linear, border 0.15s linear, color 0.15s linear, opacity 0.15s linear; } .fs-upload-dropping .fs-upload-target, .no-touch .fs-upload:hover .fs-upload-target { background: #eeeeee; border-color: #999999; color: #333333; } .fs-upload-disabled .fs-upload-target, .no-touch .fs-upload-disabled:hover .fs-upload-target { background: #ffffff; border-color: #cccccc; color: #666666; cursor: default; cursor: not-allowed; } .fs-upload-disabled.fs-upload-dropping .fs-upload-target, .no-touch .fs-upload-disabled.fs-upload-dropping:hover .fs-upload-target { background: #ffc7c6; border-color: #ff6666; color: #ff0000; }
src/components/chips/demoBasicUsage/index.html
weebygames/material
<div ng-controller="BasicDemoCtrl as ctrl" layout="column"> <md-content class="md-padding" layout="column"> <h2 class="md-title">Use a custom chip template.</h2> <md-chips ng-model="ctrl.roFruitNames" readonly="ctrl.readonly"> <md-chip-template> <strong>{{$chip}}</strong> <em>(fruit)</em> </md-chip-template> </md-chips> <br/> <h2 class="md-title">Use the default chip template.</h2> <md-chips ng-model="ctrl.fruitNames" readonly="ctrl.readonly"></md-chips> <br/> <h2 class="md-title">Use Placeholders and override hint texts.</h2> <md-chips ng-model="ctrl.tags" readonly="ctrl.readonly" placeholder="Enter a tag" delete-button-label="Remove Tag" delete-hint="Press delete to remove tag" secondary-placeholder="+Tag"></md-chips> <br/> <h2 class="md-title">Display an ordered set of objects as chips (with custom template).</h2> <p>Note: the variables <code>$chip</code> and <code>$index</code> are available in custom chip templates.</p> <md-chips class="custom-chips" ng-model="ctrl.vegObjs" readonly="ctrl.readonly" md-on-append="ctrl.newVeg($chip)"> <md-chip-template> <span> <strong>[{{$index}}] {{$chip.name}}</strong> <em>({{$chip.type}})</em> </span> </md-chip-template> <button md-chip-remove class="md-primary vegetablechip"> <md-icon md-svg-icon="md-close"></md-icon> </button> </md-chips> <br/> <md-checkbox ng-model="ctrl.readonly">Readonly</md-checkbox> </md-content> </div>
third_party/blink/web_tests/external/wpt/css/css-grid/grid-items/grid-minimum-size-grid-items-011.html
chromium/chromium
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Grid Layout Test: Minimum size of grid items</title> <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"> <link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items"> <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> <meta name="assert" content="Checks that automatic minimum size gets clamped, so the grid item doesn't overflow the fixed size area."> <style> #reference-overlapped-red { position: absolute; background-color: red; width: 100px; height: 100px; z-index: -1; } #constrained-grid { display: grid; width: 100px; height: 100px; grid: minmax(0px, 500px) / minmax(0px, 500px); } #test-grid-item-overlapping-green { background-color: green; } #content-200x200 { width: 200px; height: 200px; } </style> <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> <div id="reference-overlapped-red"></div> <div id="constrained-grid"> <div id="test-grid-item-overlapping-green"> <div id="content-200x200"></div> </div> </div>
tests/wpt/mozilla/tests/mozilla/referrer-policy/origin/meta-csp/same-origin/http-http/iframe-tag/generic.keep-origin-redirect.http.html
shinglyu/servo
<!DOCTYPE html> <!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> <html> <head> <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> <meta http-equiv="Content-Security-Policy" content="referrer origin"> <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> <meta name="assert" content="The referrer URL is origin when a document served over http requires an http sub-resource via iframe-tag using the meta-csp delivery method with keep-origin-redirect and when the target request is same-origin."> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <!-- TODO(kristijanburnik): Minify and merge both: --> <script src="/_mozilla/mozilla/referrer-policy/generic/common.js"></script> <script src="/_mozilla/mozilla/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> </head> <body> <script> ReferrerPolicyTestCase( { "referrer_policy": "origin", "delivery_method": "meta-csp", "redirection": "keep-origin-redirect", "origin": "same-origin", "source_protocol": "http", "target_protocol": "http", "subresource": "iframe-tag", "subresource_path": "/_mozilla/mozilla/referrer-policy/generic/subresource/document.py", "referrer_url": "origin" }, document.querySelector("meta[name=assert]").content, new SanityChecker() ).start(); </script> <div id="log"></div> </body> </html>
web-platform-tests/tests/shadow-dom/events/event-retargeting/test-001.html
cr/fxos-certsuite
<!DOCTYPE html> <!-- Distributed under both the W3C Test Suite License [1] and the W3C 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the policies and contribution forms [3]. [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license [3] http://www.w3.org/2004/10/27-testcases --> <html> <head> <title>Shadow DOM Test: A_05_01_01</title> <link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru"> <link rel="help" href="http://www.w3.org/TR/2013/WD-shadow-dom-20130514/#event-retargeting"> <meta name="assert" content="Event Retargeting:test that event.target is retargeted when event crosses shadow boundary and vice versa"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="../../testcommon.js"></script> <link rel="stylesheet" href="/resources/testharness.css"> </head> <body> <div id="log"></div> <script> var A_05_01_01_T1 = async_test('A_05_01_01_T1'); A_05_01_01_T1.step(function () { var iframe = document.createElement('iframe'); iframe.src = '../../resources/blank.html'; document.body.appendChild(iframe); iframe.onload = A_05_01_01_T1.step_func(function () { try { var d = iframe.contentDocument; var div = d.createElement('div'); d.body.appendChild(div); var s = div.createShadowRoot(); var div2 = d.createElement('div'); s.appendChild(div2); var inp = d.createElement('input'); inp.setAttribute('type', 'text'); inp.setAttribute('id', 'inpid'); div2.appendChild(inp); div2.addEventListener('click', A_05_01_01_T1.step_func(function (event) { assert_equals(event.target.tagName, 'INPUT', 'Information about target of the event that ' + 'doesn\'t cross the shadow boundaries should not be adjusted'); }), false); var event = d.createEvent('HTMLEvents'); event.initEvent ("click", true, false); inp.dispatchEvent(event); } finally { iframe.parentNode.removeChild(iframe); } A_05_01_01_T1.done(); }); }); var A_05_01_01_T2 = async_test('A_05_01_01_T2'); A_05_01_01_T2.step(function () { var iframe = document.createElement('iframe'); iframe.src = '../../resources/blank.html'; document.body.appendChild(iframe); iframe.onload = A_05_01_01_T2.step_func(function () { try { var d = iframe.contentDocument; var div = d.createElement('div'); d.body.appendChild(div); var s = div.createShadowRoot(); var div2 = d.createElement('div'); s.appendChild(div2); var inp = d.createElement('input'); inp.setAttribute('type', 'text'); inp.setAttribute('id', 'inpid'); div2.appendChild(inp); div.addEventListener('click', A_05_01_01_T2.step_func(function (event) { assert_equals(event.target.tagName, 'DIV', 'Information about event target crossing ' + 'the shadow boundaries should be adjusted'); }), false); var event = d.createEvent('HTMLEvents'); event.initEvent ("click", true, false); inp.dispatchEvent(event); } finally { iframe.parentNode.removeChild(iframe); } A_05_01_01_T2.done(); }); }); </script> </body> </html>
webkit/Source/WebCore/manual-tests/liveconnect-applet-get-boolean.html
danialbehzadi/Nokia-RM-1013-2.0.0.11
<html> <body><applet code="CheckerApplet.class" name="Checker" codebase="resources"> Unable to load applet.</applet> This tests retrieving a boolean value from a Java class using javascript. It tests the return value. The return value should be true.<br> <input type="button" name="test" value="Read applet" onClick="alert('return value: '+document.Checker.checkVersion())"/> </body> <html>
third_party/blink/web_tests/external/wpt/css/css-writing-modes/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html
scheib/chromium
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-026 in 'writing-mode: vertical-rl'</title> <!-- position absolute and 'vertical-rl' - 'right' is 'auto', 'left' and 'width' are not 'auto' with 'direction: ltr' in initial containing block --> <style type="text/css"> html { direction: ltr; } div { background-color: green; border-left: green none 0px; border-right: green none 0px; height: 100px; left: 60%; position: absolute; right: auto; top: 0px; width: 20%; writing-mode: vertical-rl; } /* " 6. [If] 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right' " 10.3.7 Absolutely positioned, non-replaced elements http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width So: 60% : left + 0px : margin-left + 0px : border-left-width + 0px : padding-left + 20% : width + 0px : padding-right + 0px : border-right-width + 0px : margin-right + auto : right ==================== 500px : width of containing block (width of Initial Containing Block) becomes 300px : left (60% of 500px) + 0px : margin-left + 0px : border-left-width + 0px : padding-left + 100px : width (20% of 500px == 100px) + 0px : padding-right + 0px : border-right-width + 0px : margin-right + solve : right ==================== 500px : width of containing block (width of Initial Containing Block) so used right offset value must be 100px . */ </style> </head> <body> <div></div> </body> </html>
ztree/src/main/resources/static/zTree/api/cn/setting.callback.beforeMouseDown.html
h819/spring-boot
<div class="apiDetail"> <div> <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeMouseDown</h2> <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> <div class="desc"> <p></p> <div class="longdesc"> <p>用于捕获 zTree 上鼠标按键按下之前的事件回调函数,并且根据返回值确定触发 onMouseDown 事件回调函数</p> <p>默认值:null</p> </div> </div> <h3>Function 参数说明</h3> <div class="desc"> <h4><b>treeId</b><span>String</span></h4> <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> <p>鼠标按键按下时所在节点的 JSON 数据对象</p> <p class="highlight_red">如果不在节点上,则返回 null</p> <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> <p>返回值是 true / false</p> <p class="highlight_red">如果返回 false,将仅仅无法触发 onMouseDown 事件回调函数,对其他操作无任何影响</p> </div> <h3>setting & function 举例</h3> <h4>1. 禁止 onMouseDown 事件</h4> <pre xmlns=""><code>function zTreeBeforeMouseDown(treeId, treeNode) { return false; }; var setting = { callback: { beforeMouseDown: zTreeBeforeMouseDown } }; ......</code></pre> </div> </div>
vendor/bower_components/angular-bootstrap/template/alert/alert.html
g0v/hacktabl
<div class="alert" ng-class="['alert-' + (type || 'warning'), closeable ? 'alert-dismissible' : null]" role="alert"> <button ng-show="closeable" type="button" class="close" ng-click="close($event)"> <span aria-hidden="true">&times;</span> <span class="sr-only">Close</span> </button> <div ng-transclude></div> </div>
tests/wpt/web-platform-tests/mixed-content/picture-tag/meta-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
anthgur/servo
<!DOCTYPE html> <!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. --> <html> <head> <title>Mixed-Content: Allowed content</title> <meta charset='utf-8'> <meta name="description" content="Test behavior of allowed content."> <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> <link rel="help" href="http://www.w3.org/TR/mixed-content/"> <meta name="assert" content="opt_in_method: meta-csp origin: same-host-https source_scheme: https context_nesting: top-level redirection: no-redirect subresource: picture-tag expectation: allowed"> <meta http-equiv="Content-Security-Policy" content="block-all-mixed-content"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/mixed-content/generic/common.js"></script> <script src="/mixed-content/generic/mixed-content-test-case.js?pipe=sub"></script> </head> <body> <script> MixedContentTestCase( { "opt_in_method": "meta-csp", "origin": "same-host-https", "source_scheme": "https", "context_nesting": "top-level", "redirection": "no-redirect", "subresource": "picture-tag", "expectation": "allowed" }, document.querySelector("meta[name=assert]").content, new SanityChecker() ).start(); </script> <div id="log"></div> </body> </html>
introToDynamicHTML/examples/code/snapshot11/index.html
theclinicdotcom/screencasts
<!-- A basic skeleton for a blog. By Curran Kelleher 9/25/2014 curran.kelleher@gmail.com --> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Blog</title> <link rel="stylesheet" href="styles.css"> </head> <body> <div id="posts"></div> <script src="main.js"></script> </body> </html>
zbk_back/static/js/jquery-easyui-1.4.1/themes/bootstrap/menu.css
kangjianfu/go_project
.menu { position: absolute; margin: 0; padding: 2px; border-width: 1px; border-style: solid; overflow: hidden; } .menu-item { position: relative; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; cursor: pointer; border-width: 1px; border-style: solid; } .menu-text { height: 20px; line-height: 20px; float: left; padding-left: 28px; } .menu-icon { position: absolute; width: 16px; height: 16px; left: 2px; top: 50%; margin-top: -8px; } .menu-rightarrow { position: absolute; width: 16px; height: 16px; right: 0; top: 50%; margin-top: -8px; } .menu-line { position: absolute; left: 26px; top: 0; height: 2000px; font-size: 1px; } .menu-sep { margin: 3px 0px 3px 25px; font-size: 1px; } .menu-active { -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .menu-item-disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: default; } .menu-text, .menu-text span { font-size: 12px; } .menu-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .menu-rightarrow { background: url('images/menu_arrows.png') no-repeat -32px center; } .menu-line { border-left: 1px solid #ccc; border-right: 1px solid #fff; } .menu-sep { border-top: 1px solid #ccc; border-bottom: 1px solid #fff; } .menu { background-color: #fff; border-color: #e6e6e6; color: #333; } .menu-content { background: #ffffff; } .menu-item { border-color: transparent; _border-color: #fff; } .menu-active { border-color: #ddd; color: #00438a; background: #e6e6e6; } .menu-active-disabled { border-color: transparent; background: transparent; color: #333; }
workshop/css/print/pdf.css
gwiedeman/gwiedeman.github.io
/** * This stylesheet is used to print reveal.js * presentations to PDF. * * https://github.com/hakimel/reveal.js#pdf-export */ * { -webkit-print-color-adjust: exact; } body { margin: 0 auto !important; border: 0; padding: 0; float: none !important; overflow: visible; } html { width: 100%; height: 100%; overflow: visible; } /* Remove any elements not needed in print. */ .nestedarrow, .reveal .controls, .reveal .progress, .reveal .playback, .reveal.overview, .fork-reveal, .share-reveal, .state-background { display: none !important; } h1, h2, h3, h4, h5, h6 { text-shadow: 0 0 0 #000 !important; } .reveal pre code { overflow: hidden !important; font-family: Courier, 'Courier New', monospace !important; } ul, ol, div, p { visibility: visible; position: static; width: auto; height: auto; display: block; overflow: visible; margin: auto; } .reveal { width: auto !important; height: auto !important; overflow: hidden !important; } .reveal .slides { position: static; width: 100% !important; height: auto !important; zoom: 1 !important; left: auto; top: auto; margin: 0 !important; padding: 0 !important; overflow: visible; display: block; perspective: none; perspective-origin: 50% 50%; } .reveal .slides .pdf-page { position: relative; overflow: hidden; z-index: 1; page-break-after: always; } .reveal .slides section { visibility: visible !important; display: block !important; position: absolute !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box !important; min-height: 1px; opacity: 1 !important; transform-style: flat !important; transform: none !important; } .reveal section.stack { position: relative !important; margin: 0 !important; padding: 0 !important; page-break-after: avoid !important; height: auto !important; min-height: auto !important; } .reveal img { box-shadow: none; } .reveal .roll { overflow: visible; line-height: 1em; } /* Slide backgrounds are placed inside of their slide when exporting to PDF */ .reveal .slide-background { display: block !important; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: auto !important; } /* Display slide speaker notes when 'showNotes' is enabled */ .reveal.show-notes { max-width: none; max-height: none; } .reveal .speaker-notes-pdf { display: block; width: 100%; height: auto; max-height: none; top: auto; right: auto; bottom: auto; left: auto; z-index: 100; } /* Layout option which makes notes appear on a separate page */ .reveal .speaker-notes-pdf[data-layout="separate-page"] { position: relative; color: inherit; background-color: transparent; padding: 20px; page-break-after: always; border: 0; } /* Display slide numbers when 'slideNumber' is enabled */ .reveal .slide-number-pdf { display: block; position: absolute; font-size: 14px; }
wwwroot/lib/material-design-lite/src/button/snippets/fab-mini-colored.html
Pikabanga/MelloWizard
<!-- Colored mini FAB button --> <button class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-button--colored"> <i class="material-icons">add</i> </button>
test/html/input-radio.html
Testoni/ionic
<html ng-app="ionicApp"> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title>Radio Buttons</title> <link rel="stylesheet" href="../../dist/css/ionic.css"> <script src="../../../../dist/js/ionic.bundle.js"></script> </head> <body ng-controller="MainCtrl"> <ion-header-bar class="bar-positive"> <h1 class="title">Radio Buttons</h1> </ion-header-bar> <ion-content> {{ $parent.formData }} <div class="list"> <ion-radio ng-model="$parent.formData.applyDisabled" ng-value="true" name="applyDisabled">Apply Disabled</ion-radio> <ion-radio ng-model="$parent.formData.applyDisabled" ng-value="false" name="applyDisabled">Enable</ion-radio> <ion-radio ng-model="$parent.formData.color" ng-value="'red'" name="color" ng-disabled="$parent.formData.applyDisabled">gets disabled Red</ion-radio> <ion-radio ng-model="$parent.formData.color" ng-value="'blue'" name="color" ng-disabled="$parent.formData.applyDisabled">gets disabled Blue</ion-radio> </div> </ion-content> <script> angular.module('ionicApp', ['ionic']) .controller('MainCtrl', function($scope) { }); </script> </body> </html>
tests/unit/net/parsable_mime/text/html/text_html_p_20_u.html
totallybradical/temp_servo2
<p
third_party/web_platform_tests/conformance-checkers/html/elements/input/type-submit-formaction/userinfo-username-contains-at-sign-novalid.html
youtube/cobalt
<!DOCTYPE html> <meta charset=utf-8> <title>invalid formaction: userinfo-username-contains-at-sign</title> <input type=submit formaction="http://::@c@d:2">
demo/index.html
chipit24/fade-props
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>FadeProps Demo</title> </head> <body> <div id="app"></div> <script type="text/javascript" src="js/bundle.js"></script> </body> </html>
_includes/post-list.html
sean-clayton/sean-clayton.github.io
<ul class="post-list"> {% for post in paginator.posts %} <li class="post-listing"> <a class="post-listing-link" href="{{ site.baseurl }}/{{ post.url | remove_first: '/' }}"> <aside class="post-listing-published-date">{{ post.date | date:"%b %d" }}</aside> <h3 class="post-listing-title">{{ post.title }}</h3>{% if post.description %}<h4 class="post-listing-description">{{ post.description }}</h4>{% endif %} </a> </li> {% endfor %} </ul> {% if paginator.previous_page or paginator.next_page %} {% include pagination.html %} {% endif %}
Figure3/Tox21_nnm/WorkHere/26049-71-8.smi.png.html
andrewdefries/ToxCast
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> <title>26049-71-8.smi.png.html</title> </head> <body>ID26049-71-8<br/> <img border="0" src="26049-71-8.smi.png" alt="26049-71-8.smi.png"></img><br/> <br/> <table border="1"> <tr> <td></td><td>ID</td><td>Formula</td><td>FW</td><td>DSSTox_CID</td><td>DSSTox_RID</td><td>DSSTox_GSID</td><td>DSSTox_FileID_Sort</td><td>TS_ChemName</td><td>TS_ChemName_Synonyms</td><td>TS_CASRN</td><td>CASRN_ChemName_Relationship</td><td>TS_Description</td><td>ChemNote</td><td>STRUCTURE_Shown</td><td>STRUCTURE_Formula</td><td>STRUCTURE_MW</td><td>STRUCTURE_ChemType</td><td>STRUCTURE_DefinedOrganicForm</td><td>STRUCTURE_IUPAC</td><td>STRUCTURE_SMILES</td><td>STRUCTURE_SMILES_Desalt</td><td>Substance_modify_yyyymmdd</td></tr> <tr> <td>26049-71-8</td><td>674</td><td>C9H10N4S</td><td>206.2675</td><td>704</td><td>75746</td><td>20704</td><td>430</td><td>2-Hydrazino-4-(4-aminophenyl) thiazole</td><td>2-Hydrazino-4-(p-aminophenyl) thiazole</td><td>26049-71-8</td><td>primary</td><td>single chemical compound</td><td></td><td>tested chemical</td><td>C9H10N4S</td><td>206.2675</td><td>defined organic</td><td>parent</td><td>4-(2-hydrazinyl-1,3-thiazol-4-yl)aniline</td><td>NNc1nc(cs1)c2ccc(N)cc2</td><td>NNc1nc(cs1)c2ccc(N)cc2</td><td>20080429</td></tr> </table> <br/><br/><font size="-2">(Page generated on Wed Sep 17 03:53:11 2014 by <a href="http://www.embl.de/~gpau/hwriter/index.html">hwriter</a> 1.3)</font><br/> </body></html>
clean/Linux-x86_64-4.07.1-2.0.6/released/8.11.2/lambek/8.5.0.html
coq-bench/coq-bench.github.io
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>lambek: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.11.2 / lambek - 8.5.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> lambek <small> 8.5.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-03-07 13:08:44 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-07 13:08:44 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.11.2 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.07.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.07.1 Official release 4.07.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;matej.kosik@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/lambek&quot; license: &quot;LGPL 2&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/Lambek&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.5&quot; &amp; &lt; &quot;8.6~&quot;} ] tags: [ &quot;keyword:computational linguistic&quot; &quot;keyword:categorial grammar&quot; &quot;keyword:lambek calculus&quot; &quot;category:Computer Science/Formal Languages Theory and Automata&quot; &quot;date:March-July 2003&quot; ] authors: [ &quot;Houda Anoun &lt;anoun@labri.fr&gt;&quot; &quot;Pierre Castéran &lt;casteran@labri.fr&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/lambek/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/lambek.git&quot; synopsis: &quot;A Coq Toolkit for Lambek Calculus&quot; description: &quot;&quot;&quot; This library contains some definitions concerning Lambek calculus. Three formalisations of this calculus are proposed, and also some certified functions which translate derivations from one formalism to another. Several derived properties are proved and also some meta-theorems. Users can define their own lexicons and use the defined tactics to prove the derivation of sentences in a particular system (L, NL, LP, NLP ...)&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/lambek/archive/v8.5.0.tar.gz&quot; checksum: &quot;md5=c6abd251378ad14b4b44140397155496&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-lambek.8.5.0 coq.8.11.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.11.2). The following dependencies couldn&#39;t be met: - coq-lambek -&gt; coq &lt; 8.6~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-lambek.8.5.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
clean/Linux-x86_64-4.05.0-2.0.6/released/8.5.2~camlp4/free-groups/8.8.0.html
coq-bench/coq-bench.github.io
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>free-groups: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.5.2~camlp4 / free-groups - 8.8.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> free-groups <small> 8.8.0 <span class="label label-info">Not compatible</span> </small> </h1> <p><em><script>document.write(moment("2020-08-16 06:48:30 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-08-16 06:48:30 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp4 4.05+1 Camlp4 is a system for writing extensible parsers for programming languages conf-findutils 1 Virtual package relying on findutils coq 8.5.2~camlp4 Formal proof management system. num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration ocamlbuild 0.14.0 OCamlbuild is a build system with builtin rules to easily build most OCaml projects. # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/free-groups&quot; license: &quot;LGPL&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/FreeGroups&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.8&quot; &amp; &lt; &quot;8.9~&quot;} ] tags: [ &quot;keyword: free group&quot; &quot;category: Mathematics/Algebra&quot; ] authors: [ &quot;Daniel Schepler &lt;dschepler@gmail.com&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/free-groups/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/free-groups.git&quot; synopsis: &quot;Free Groups&quot; description: &quot;This small contribution is a formalization of van der Waerden&#39;s proof of the construction of a free group on a set of generators, as the reduced words where a letter is a generator or its formal inverse.&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/free-groups/archive/v8.8.0.tar.gz&quot; checksum: &quot;md5=767e036a0fd3ec6d3e5881b4ff9c3c37&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-free-groups.8.8.0 coq.8.5.2~camlp4</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.5.2~camlp4). The following dependencies couldn&#39;t be met: - coq-free-groups -&gt; coq &gt;= 8.8 Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-free-groups.8.8.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> <small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small> </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
app/views/examples/elements/months-six.html
rhianonymous/firstreg
{{<govuk_template}} {{$head}} {{>includes/elements_head}} <link rel="stylesheet" type="text/css" href="/public/stylesheets/jquery-custom-form-v2.css" /> <script type="text/javascript" src="/public/javascripts/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="/public/javascripts//jquery-custom-form-v2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".cus_checkbox").cuscheckbox(); $(".cus_radio").cusradio(); $(".cus_select").cusselect(); }); </script> {{/head}} {{$propositionHeader}} {{>includes/govuk_firstregprop}} {{/propositionHeader}} {{$headerClass}}with-proposition{{/headerClass}} {{$content}} <link href="/public/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" /> <link href="/public/stylesheets/numberplate.css" media="screen" rel="stylesheet" type="text/css" /> <main id="content" role="main" style="padding-bottom:0"> <div> <a class="back-to-previous" href="javascript:history.back()"> Back <span class="visuallyhidden"> to the previous question</span> </a> </div> <br clear="all"> <form action="basic-branch" method="get" class="form"> <input type="hidden" name="nextlink" value="vrn"> <h1 class="form-title heading-large" style="margin:0 0 1em 0;padding:0"> Number Plate Selection </h1> <p>Please select the desired number plate from the list below</p> <div class="wrap"> <div class="inner"> <ul> <li class="cus_box_hidden"> <input class="cus_radio" type="radio" name="branch" value="CU65CDF" /> <label><i class="reg-mark" style="font-size:120%">CU65 CDF</i></label> </li> <li class="cus_box_hidden"> <input class="cus_radio" type="radio" name="branch" value="CU65CDE" /> <label><i class="reg-mark" style="font-size:120%">CU65 CDE</i></label> </li> <li class="cus_box_hidden"> <input class="cus_radio" type="radio" name="branch" value="CU65DEF" /> <label><i class="reg-mark" style="font-size:120%">CU65 DEF</i></label> </li> </ul> </div> </div> <br> <details style=""> <summary> <span class="summary">Have a personal registration number on a certificate?</span> </summary> <div class="panel-indent js-hidden" id="details-content-0" aria-hidden="true" style="display: none; border-left-width: 16px; border-left-style: solid; border-left-color: rgb(235, 235, 235); padding: 2px,20px; margin: 12px 2px;"> <p>In order to apply your private registration please provide...</p> <div id="form-field"> <label class="form-label" for="vin" style="padding-top:0.50em"> V750/V778 Certificate number </label> <div id="validfield-1"> <input class="form-control" type="text" maxlength="20" autocomplete="off" size="20" id="vin" style="border:#6F777B solid 2px;font-size:120%;width:280px;border-radius:4px;line-height:1.6" data-parsley-trigger="change focusout"> </div> </div> <div id="form-field"> <label class="form-label" for="vin" style="padding-top:0.50em"> VRN number </label> <div id="validfield-1"> <input class="form-control" type="text" maxlength="20" autocomplete="off" size="20" id="vin" style="border:#6F777B solid 2px;font-size:120%;width:280px;border-radius:4px;line-height:1.6" data-parsley-trigger="change focusout"> </div> </div> </div> </details> <br clear="all"> <details style=""> <summary> <span class="summary">Interested in buying a personal registration?</span> </summary> <div class="panel-indent js-hidden" id="details-content-0" aria-hidden="true" style="display: none; border-left-width: 16px; border-left-style: solid; border-left-color: rgb(235, 235, 235); padding: 2px,20px; margin: 12px 2px;"> <a href="http://dvlaregistrations.direct.gov.uk">Buy a registration number from DVLA</a> </div> </details> <br clear="all"> <div class="form-group" style="padding-top:2.2em"> <input type="submit" class="button" value="Continue"> </div> </form> </main> {{/content}} {{$bodyEnd}} {{>includes/elements_scripts}} {{/bodyEnd}} {{/govuk_template}}
sig.html
andrewbolster/andrewbolster.github.io
<body> <table width="100%" border="0" cellpadding="0"> <tbody> <tr> <td align="left" valign="top" width="10"> <p style="padding-right: 10px; font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 12px;"> <a style="text-decoration:none" href="http://andrewbolster.info" class="clink sig-hide logo-container"> <img src="http://andrewbolster.info/img/bolster.png" alt="" border="0" class="sig-logo" height="80" width="80"> </a> </p> </td> <td align="left"> <p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 12px; color: rgb(33, 33, 33);"><span style="font-weight: bold; display: inline;" class="txt signature_name-target sig-hide">Andrew Bolster</span> <span class="email-sep break" style="display: inline;"><br></span> <a class="link email signature_email-target sig-hide" href="mailto:me@andrewbolster.info" style="text-decoration: none; display: inline;">me@andrewbolster.info</a><span class="signature_email-sep sep" style="display: inline;"></span> <span class="email-sep break" style="display: inline;"><br></span> <a class="txt signature_mobilephone-target sig-hide" style="display: inline; text-decoration: none; " href="call:+447783249547">(+44) 07783249547</a></p> <p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 12px;"> <a class="link signature_website-target sig-hide" href="http://andrewbolster.info" style="text-decoration: none; display: inline;">http://andrewbolster.info</a> </p> <p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 12px;"> <a style="text-decoration: none; display: inline;" class="social signature_facebook-target sig-hide" href="http://www.facebook.com/andrewbolster"> <img width="24" height="24" data-filename="facebook.png" src="http://andrewbolster.info/img/facebook.png" alt="Facebook"> </a> <a style="text-decoration: none; display: inline;" class="social signature_twitter-target sig-hide" href="http://www.twitter.com/bolster"> <img width="24" height="24" data-filename="twitter.png" src="http://andrewbolster.info/img/twitter.png" alt="Twitter"> </a> <a style="text-decoration: none; display: inline;" class="social signature_linkedin-target sig-hide" href="http://www.linkedin.com/in/andrewbolster"> <img width="24" height="24" data-filename="linkedin.png" src="http://andrewbolster.info/img/linkedin.png" alt="Linkedin"> </a> <a style="text-decoration: none; display: inline;" class="social signature_skype-target sig-hide" href="skype:andrew.bolster?call"> <img width="24" height="24" data-filename="skype.png" src="http://andrewbolster.info/img/skype.png" alt="skype"> </a> <a style="text-decoration: none; display: inline;" class="social signature_flickr-target sig-hide" href="http://www.flickr.com/andrewbolster"> <img width="24" height="24" data-filename="flickr.png" src="http://andrewbolster.info/img/flickr.png" alt="flickr"> </a> </p> </td> </tr> </tbody> </table> </body>
api_en/fs.html
huahouye/nodejs-API_zh
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>File System Node.js v6.2.0 Manual &amp; Documentation</title> <link rel="stylesheet" href="assets/css?family=Lato:400,700,400italic"> <link rel="stylesheet" href="assets/style.css"> <link rel="stylesheet" href="assets/sh.css"> <link rel="canonical" href="https://nodejs.org/api/fs.html"> </head> <body class="alt apidoc" id="api-section-fs"> <div id="content" class="clearfix"> <div id="column2" class="interior"> <div id="intro" class="interior"> <a href="/" title="Go back to the home page"> Node.js </a> </div> <ul> <li><a class="nav-documentation" href="documentation.html">About these Docs</a></li> <li><a class="nav-synopsis" href="synopsis.html">Usage &amp; Example</a></li> </ul> <div class="line"></div> <ul> <li><a class="nav-assert" href="assert.html">Assertion Testing</a></li> <li><a class="nav-buffer" href="buffer.html">Buffer</a></li> <li><a class="nav-addons" href="addons.html">C/C++ Addons</a></li> <li><a class="nav-child_process" href="child_process.html">Child Processes</a></li> <li><a class="nav-cluster" href="cluster.html">Cluster</a></li> <li><a class="nav-cli" href="cli.html">Command Line Options</a></li> <li><a class="nav-console" href="console.html">Console</a></li> <li><a class="nav-crypto" href="crypto.html">Crypto</a></li> <li><a class="nav-debugger" href="debugger.html">Debugger</a></li> <li><a class="nav-dns" href="dns.html">DNS</a></li> <li><a class="nav-domain" href="domain.html">Domain</a></li> <li><a class="nav-errors" href="errors.html">Errors</a></li> <li><a class="nav-events" href="events.html">Events</a></li> <li><a class="nav-fs active" href="fs.html">File System</a></li> <li><a class="nav-globals" href="globals.html">Globals</a></li> <li><a class="nav-http" href="http.html">HTTP</a></li> <li><a class="nav-https" href="https.html">HTTPS</a></li> <li><a class="nav-modules" href="modules.html">Modules</a></li> <li><a class="nav-net" href="net.html">Net</a></li> <li><a class="nav-os" href="os.html">OS</a></li> <li><a class="nav-path" href="path.html">Path</a></li> <li><a class="nav-process" href="process.html">Process</a></li> <li><a class="nav-punycode" href="punycode.html">Punycode</a></li> <li><a class="nav-querystring" href="querystring.html">Query Strings</a></li> <li><a class="nav-readline" href="readline.html">Readline</a></li> <li><a class="nav-repl" href="repl.html">REPL</a></li> <li><a class="nav-stream" href="stream.html">Stream</a></li> <li><a class="nav-string_decoder" href="string_decoder.html">String Decoder</a></li> <li><a class="nav-timers" href="timers.html">Timers</a></li> <li><a class="nav-tls" href="tls.html">TLS/SSL</a></li> <li><a class="nav-tty" href="tty.html">TTY</a></li> <li><a class="nav-dgram" href="dgram.html">UDP/Datagram</a></li> <li><a class="nav-url" href="url.html">URL</a></li> <li><a class="nav-util" href="util.html">Utilities</a></li> <li><a class="nav-v8" href="v8.html">V8</a></li> <li><a class="nav-vm" href="vm.html">VM</a></li> <li><a class="nav-zlib" href="zlib.html">ZLIB</a></li> </ul> <div class="line"></div> <ul> <li><a class="nav-https-github-com-nodejs-node" href="https://github.com/nodejs/node">GitHub Repo &amp; Issue Tracker</a></li> <li><a class="nav-http-groups-google-com-group-nodejs" href="http://groups.google.com/group/nodejs">Mailing List</a></li> </ul> </div> <div id="column1" data-id="fs" class="interior"> <header> <h1>Node.js v6.2.0 Documentation</h1> <div id="gtoc"> <p> <a href="index.html" name="toc">Index</a> | <a href="all.html">View on single page</a> | <a href="fs.json">View as JSON</a> </p> </div> <hr> </header> <div id="toc"> <h2>Table of Contents</h2> <ul> <li><a href="#fs_file_system">File System</a><ul> <li><a href="#fs_buffer_api">Buffer API</a></li> <li><a href="#fs_class_fs_fswatcher">Class: fs.FSWatcher</a><ul> <li><a href="#fs_event_change">Event: &#39;change&#39;</a></li> <li><a href="#fs_event_error">Event: &#39;error&#39;</a></li> <li><a href="#fs_watcher_close">watcher.close()</a></li> </ul> </li> <li><a href="#fs_class_fs_readstream">Class: fs.ReadStream</a><ul> <li><a href="#fs_event_open">Event: &#39;open&#39;</a></li> <li><a href="#fs_event_close">Event: &#39;close&#39;</a></li> <li><a href="#fs_readstream_path">readStream.path</a></li> </ul> </li> <li><a href="#fs_class_fs_stats">Class: fs.Stats</a><ul> <li><a href="#fs_stat_time_values">Stat Time Values</a></li> </ul> </li> <li><a href="#fs_class_fs_writestream">Class: fs.WriteStream</a><ul> <li><a href="#fs_event_open_1">Event: &#39;open&#39;</a></li> <li><a href="#fs_event_close_1">Event: &#39;close&#39;</a></li> <li><a href="#fs_writestream_byteswritten">writeStream.bytesWritten</a></li> <li><a href="#fs_writestream_path">writeStream.path</a></li> </ul> </li> <li><a href="#fs_fs_access_path_mode_callback">fs.access(path[, mode], callback)</a></li> <li><a href="#fs_fs_accesssync_path_mode">fs.accessSync(path[, mode])</a></li> <li><a href="#fs_fs_appendfile_file_data_options_callback">fs.appendFile(file, data[, options], callback)</a></li> <li><a href="#fs_fs_appendfilesync_file_data_options">fs.appendFileSync(file, data[, options])</a></li> <li><a href="#fs_fs_chmod_path_mode_callback">fs.chmod(path, mode, callback)</a></li> <li><a href="#fs_fs_chmodsync_path_mode">fs.chmodSync(path, mode)</a></li> <li><a href="#fs_fs_chown_path_uid_gid_callback">fs.chown(path, uid, gid, callback)</a></li> <li><a href="#fs_fs_chownsync_path_uid_gid">fs.chownSync(path, uid, gid)</a></li> <li><a href="#fs_fs_close_fd_callback">fs.close(fd, callback)</a></li> <li><a href="#fs_fs_closesync_fd">fs.closeSync(fd)</a></li> <li><a href="#fs_fs_createreadstream_path_options">fs.createReadStream(path[, options])</a></li> <li><a href="#fs_fs_createwritestream_path_options">fs.createWriteStream(path[, options])</a></li> <li><a href="#fs_fs_exists_path_callback">fs.exists(path, callback)</a></li> <li><a href="#fs_fs_existssync_path">fs.existsSync(path)</a></li> <li><a href="#fs_fs_fchmod_fd_mode_callback">fs.fchmod(fd, mode, callback)</a></li> <li><a href="#fs_fs_fchmodsync_fd_mode">fs.fchmodSync(fd, mode)</a></li> <li><a href="#fs_fs_fchown_fd_uid_gid_callback">fs.fchown(fd, uid, gid, callback)</a></li> <li><a href="#fs_fs_fchownsync_fd_uid_gid">fs.fchownSync(fd, uid, gid)</a></li> <li><a href="#fs_fs_fdatasync_fd_callback">fs.fdatasync(fd, callback)</a></li> <li><a href="#fs_fs_fdatasyncsync_fd">fs.fdatasyncSync(fd)</a></li> <li><a href="#fs_fs_fstat_fd_callback">fs.fstat(fd, callback)</a></li> <li><a href="#fs_fs_fstatsync_fd">fs.fstatSync(fd)</a></li> <li><a href="#fs_fs_fsync_fd_callback">fs.fsync(fd, callback)</a></li> <li><a href="#fs_fs_fsyncsync_fd">fs.fsyncSync(fd)</a></li> <li><a href="#fs_fs_ftruncate_fd_len_callback">fs.ftruncate(fd, len, callback)</a></li> <li><a href="#fs_fs_ftruncatesync_fd_len">fs.ftruncateSync(fd, len)</a></li> <li><a href="#fs_fs_futimes_fd_atime_mtime_callback">fs.futimes(fd, atime, mtime, callback)</a></li> <li><a href="#fs_fs_futimessync_fd_atime_mtime">fs.futimesSync(fd, atime, mtime)</a></li> <li><a href="#fs_fs_lchmod_path_mode_callback">fs.lchmod(path, mode, callback)</a></li> <li><a href="#fs_fs_lchmodsync_path_mode">fs.lchmodSync(path, mode)</a></li> <li><a href="#fs_fs_lchown_path_uid_gid_callback">fs.lchown(path, uid, gid, callback)</a></li> <li><a href="#fs_fs_lchownsync_path_uid_gid">fs.lchownSync(path, uid, gid)</a></li> <li><a href="#fs_fs_link_srcpath_dstpath_callback">fs.link(srcpath, dstpath, callback)</a></li> <li><a href="#fs_fs_linksync_srcpath_dstpath">fs.linkSync(srcpath, dstpath)</a></li> <li><a href="#fs_fs_lstat_path_callback">fs.lstat(path, callback)</a></li> <li><a href="#fs_fs_lstatsync_path">fs.lstatSync(path)</a></li> <li><a href="#fs_fs_mkdir_path_mode_callback">fs.mkdir(path[, mode], callback)</a></li> <li><a href="#fs_fs_mkdirsync_path_mode">fs.mkdirSync(path[, mode])</a></li> <li><a href="#fs_fs_mkdtemp_prefix_callback">fs.mkdtemp(prefix, callback)</a></li> <li><a href="#fs_fs_mkdtempsync_template">fs.mkdtempSync(template)</a></li> <li><a href="#fs_fs_open_path_flags_mode_callback">fs.open(path, flags[, mode], callback)</a></li> <li><a href="#fs_fs_opensync_path_flags_mode">fs.openSync(path, flags[, mode])</a></li> <li><a href="#fs_fs_read_fd_buffer_offset_length_position_callback">fs.read(fd, buffer, offset, length, position, callback)</a></li> <li><a href="#fs_fs_readdir_path_options_callback">fs.readdir(path[, options], callback)</a></li> <li><a href="#fs_fs_readdirsync_path_options">fs.readdirSync(path[, options])</a></li> <li><a href="#fs_fs_readfile_file_options_callback">fs.readFile(file[, options], callback)</a></li> <li><a href="#fs_fs_readfilesync_file_options">fs.readFileSync(file[, options])</a></li> <li><a href="#fs_fs_readlink_path_options_callback">fs.readlink(path[, options], callback)</a></li> <li><a href="#fs_fs_readlinksync_path_options">fs.readlinkSync(path[, options])</a></li> <li><a href="#fs_fs_readsync_fd_buffer_offset_length_position">fs.readSync(fd, buffer, offset, length, position)</a></li> <li><a href="#fs_fs_realpath_path_options_callback">fs.realpath(path[, options], callback)</a></li> <li><a href="#fs_fs_realpathsync_path_options">fs.realpathSync(path[, options])</a></li> <li><a href="#fs_fs_rename_oldpath_newpath_callback">fs.rename(oldPath, newPath, callback)</a></li> <li><a href="#fs_fs_renamesync_oldpath_newpath">fs.renameSync(oldPath, newPath)</a></li> <li><a href="#fs_fs_rmdir_path_callback">fs.rmdir(path, callback)</a></li> <li><a href="#fs_fs_rmdirsync_path">fs.rmdirSync(path)</a></li> <li><a href="#fs_fs_stat_path_callback">fs.stat(path, callback)</a></li> <li><a href="#fs_fs_statsync_path">fs.statSync(path)</a></li> <li><a href="#fs_fs_symlink_target_path_type_callback">fs.symlink(target, path[, type], callback)</a></li> <li><a href="#fs_fs_symlinksync_target_path_type">fs.symlinkSync(target, path[, type])</a></li> <li><a href="#fs_fs_truncate_path_len_callback">fs.truncate(path, len, callback)</a></li> <li><a href="#fs_fs_truncatesync_path_len">fs.truncateSync(path, len)</a></li> <li><a href="#fs_fs_unlink_path_callback">fs.unlink(path, callback)</a></li> <li><a href="#fs_fs_unlinksync_path">fs.unlinkSync(path)</a></li> <li><a href="#fs_fs_unwatchfile_filename_listener">fs.unwatchFile(filename[, listener])</a></li> <li><a href="#fs_fs_utimes_path_atime_mtime_callback">fs.utimes(path, atime, mtime, callback)</a></li> <li><a href="#fs_fs_utimessync_path_atime_mtime">fs.utimesSync(path, atime, mtime)</a></li> <li><a href="#fs_fs_watch_filename_options_listener">fs.watch(filename[, options][, listener])</a><ul> <li><a href="#fs_caveats">Caveats</a><ul> <li><a href="#fs_availability">Availability</a></li> <li><a href="#fs_inodes">Inodes</a></li> <li><a href="#fs_filename_argument">Filename Argument</a></li> </ul> </li> </ul> </li> <li><a href="#fs_fs_watchfile_filename_options_listener">fs.watchFile(filename[, options], listener)</a></li> <li><a href="#fs_fs_write_fd_buffer_offset_length_position_callback">fs.write(fd, buffer, offset, length[, position], callback)</a></li> <li><a href="#fs_fs_write_fd_data_position_encoding_callback">fs.write(fd, data[, position[, encoding]], callback)</a></li> <li><a href="#fs_fs_writefile_file_data_options_callback">fs.writeFile(file, data[, options], callback)</a></li> <li><a href="#fs_fs_writefilesync_file_data_options">fs.writeFileSync(file, data[, options])</a></li> <li><a href="#fs_fs_writesync_fd_buffer_offset_length_position">fs.writeSync(fd, buffer, offset, length[, position])</a></li> <li><a href="#fs_fs_writesync_fd_data_position_encoding">fs.writeSync(fd, data[, position[, encoding]])</a></li> </ul> </li> </ul> </div> <div id="apicontent"> <h1>File System<span><a class="mark" href="#fs_file_system" id="fs_file_system">#</a></span></h1> <pre class="api_stability api_stability_2">Stability: 2 - Stable</pre><!--name=fs--> <p>File I/O is provided by simple wrappers around standard POSIX functions. To use this module do <code>require(&#39;fs&#39;)</code>. All the methods have asynchronous and synchronous forms.</p> <p>The asynchronous form always takes a completion callback as its last argument. The arguments passed to the completion callback depend on the method, but the first argument is always reserved for an exception. If the operation was completed successfully, then the first argument will be <code>null</code> or <code>undefined</code>.</p> <p>When using the synchronous form any exceptions are immediately thrown. You can use try/catch to handle exceptions or allow them to bubble up.</p> <p>Here is an example of the asynchronous version:</p> <pre><code class="lang-js">const fs = require(&#39;fs&#39;); fs.unlink(&#39;/tmp/hello&#39;, (err) =&gt; { if (err) throw err; console.log(&#39;successfully deleted /tmp/hello&#39;); }); </code></pre> <p>Here is the synchronous version:</p> <pre><code class="lang-js">const fs = require(&#39;fs&#39;); fs.unlinkSync(&#39;/tmp/hello&#39;); console.log(&#39;successfully deleted /tmp/hello&#39;); </code></pre> <p>With the asynchronous methods there is no guaranteed ordering. So the following is prone to error:</p> <pre><code class="lang-js">fs.rename(&#39;/tmp/hello&#39;, &#39;/tmp/world&#39;, (err) =&gt; { if (err) throw err; console.log(&#39;renamed complete&#39;); }); fs.stat(&#39;/tmp/world&#39;, (err, stats) =&gt; { if (err) throw err; console.log(`stats: ${JSON.stringify(stats)}`); }); </code></pre> <p>It could be that <code>fs.stat</code> is executed before <code>fs.rename</code>. The correct way to do this is to chain the callbacks.</p> <pre><code class="lang-js">fs.rename(&#39;/tmp/hello&#39;, &#39;/tmp/world&#39;, (err) =&gt; { if (err) throw err; fs.stat(&#39;/tmp/world&#39;, (err, stats) =&gt; { if (err) throw err; console.log(`stats: ${JSON.stringify(stats)}`); }); }); </code></pre> <p>In busy processes, the programmer is <em>strongly encouraged</em> to use the asynchronous versions of these calls. The synchronous versions will block the entire process until they complete--halting all connections.</p> <p>The relative path to a filename can be used. Remember, however, that this path will be relative to <code>process.cwd()</code>.</p> <p>Most fs functions let you omit the callback argument. If you do, a default callback is used that rethrows errors. To get a trace to the original call site, set the <code>NODE_DEBUG</code> environment variable:</p> <pre><code>$ cat script.js function bad() { require(&#39;fs&#39;).readFile(&#39;/&#39;); } bad(); $ env NODE_DEBUG=fs node script.js fs.js:88 throw backtrace; ^ Error: EISDIR: illegal operation on a directory, read &lt;stack trace.&gt; </code></pre><h2>Buffer API<span><a class="mark" href="#fs_buffer_api" id="fs_buffer_api">#</a></span></h2> <p><code>fs</code> functions support passing and receiving paths as both strings and Buffers. The latter is intended to make it possible to work with filesystems that allow for non-UTF-8 filenames. For most typical uses, working with paths as Buffers will be unnecessary, as the string API converts to and from UTF-8 automatically.</p> <p><em>Note</em> that on certain file systems (such as NTFS and HFS+) filenames will always be encoded as UTF-8. On such file systems, passing non-UTF-8 encoded Buffers to <code>fs</code> functions will not work as expected.</p> <h2>Class: fs.FSWatcher<span><a class="mark" href="#fs_class_fs_fswatcher" id="fs_class_fs_fswatcher">#</a></span></h2> <p>Objects returned from <code>fs.watch()</code> are of this type.</p> <h3>Event: &#39;change&#39;<span><a class="mark" href="#fs_event_change" id="fs_event_change">#</a></span></h3> <div class="signature"><ul> <li><code>event</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> The type of fs change</li> <li><code>filename</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a> The filename that changed (if relevant/available)</li> </ul> </div><p>Emitted when something changes in a watched directory or file. See more details in <a href="#fs_fs_watch_filename_options_listener"><code>fs.watch()</code></a>.</p> <p>The <code>filename</code> argument may not be provided depending on operating system support. If <code>filename</code> is provided, it will be provided as a <code>Buffer</code> if <code>fs.watch()</code> is called with it&#39;s <code>encoding</code> option set to <code>&#39;buffer&#39;</code>, otherwise <code>filename</code> will be a string.</p> <pre><code class="lang-js">fs.watch(&#39;./tmp&#39;, {encoding: &#39;buffer&#39;}, (event, filename) =&gt; { if (filename) console.log(filename); // Prints: &lt;Buffer ...&gt; }); </code></pre> <h3>Event: &#39;error&#39;<span><a class="mark" href="#fs_event_error" id="fs_event_error">#</a></span></h3> <div class="signature"><ul> <li><code>error</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error" class="type">&lt;Error&gt;</a></li> </ul> </div><p>Emitted when an error occurs.</p> <h3>watcher.close()<span><a class="mark" href="#fs_watcher_close" id="fs_watcher_close">#</a></span></h3> <p>Stop watching for changes on the given <code>fs.FSWatcher</code>.</p> <h2>Class: fs.ReadStream<span><a class="mark" href="#fs_class_fs_readstream" id="fs_class_fs_readstream">#</a></span></h2> <p><code>ReadStream</code> is a <a href="stream.html#stream_class_stream_readable">Readable Stream</a>.</p> <h3>Event: &#39;open&#39;<span><a class="mark" href="#fs_event_open" id="fs_event_open">#</a></span></h3> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span> Integer file descriptor used by the ReadStream.</li> </ul> </div><p>Emitted when the ReadStream&#39;s file is opened.</p> <h3>Event: &#39;close&#39;<span><a class="mark" href="#fs_event_close" id="fs_event_close">#</a></span></h3> <p>Emitted when the <code>ReadStream</code>&#39;s underlying file descriptor has been closed using the <code>fs.close()</code> method.</p> <h3>readStream.path<span><a class="mark" href="#fs_readstream_path" id="fs_readstream_path">#</a></span></h3> <p>The path to the file the stream is reading from as specified in the first argument to <code>fs.createReadStream()</code>. If <code>path</code> is passed as a string, then <code>readStream.path</code> will be a string. If <code>path</code> is passed as a <code>Buffer</code>, then <code>readStream.path</code> will be a <code>Buffer</code>.</p> <h2>Class: fs.Stats<span><a class="mark" href="#fs_class_fs_stats" id="fs_class_fs_stats">#</a></span></h2> <p>Objects returned from <a href="#fs_fs_stat_path_callback"><code>fs.stat()</code></a>, <a href="#fs_fs_lstat_path_callback"><code>fs.lstat()</code></a> and <a href="#fs_fs_fstat_fd_callback"><code>fs.fstat()</code></a> and their synchronous counterparts are of this type.</p> <ul> <li><code>stats.isFile()</code></li> <li><code>stats.isDirectory()</code></li> <li><code>stats.isBlockDevice()</code></li> <li><code>stats.isCharacterDevice()</code></li> <li><code>stats.isSymbolicLink()</code> (only valid with <a href="#fs_fs_lstat_path_callback"><code>fs.lstat()</code></a>)</li> <li><code>stats.isFIFO()</code></li> <li><code>stats.isSocket()</code></li> </ul> <p>For a regular file <a href="util.html#util_util_inspect_object_options"><code>util.inspect(stats)</code></a> would return a string very similar to this:</p> <pre><code class="lang-js">{ dev: 2114, ino: 48064969, mode: 33188, nlink: 1, uid: 85, gid: 100, rdev: 0, size: 527, blksize: 4096, blocks: 8, atime: Mon, 10 Oct 2011 23:24:11 GMT, mtime: Mon, 10 Oct 2011 23:24:11 GMT, ctime: Mon, 10 Oct 2011 23:24:11 GMT, birthtime: Mon, 10 Oct 2011 23:24:11 GMT } </code></pre> <p>Please note that <code>atime</code>, <code>mtime</code>, <code>birthtime</code>, and <code>ctime</code> are instances of <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date"><code>Date</code></a> object and to compare the values of these objects you should use appropriate methods. For most general uses <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTime"><code>getTime()</code></a> will return the number of milliseconds elapsed since <em>1 January 1970 00:00:00 UTC</em> and this integer should be sufficient for any comparison, however there are additional methods which can be used for displaying fuzzy information. More details can be found in the <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date">MDN JavaScript Reference</a> page.</p> <h3>Stat Time Values<span><a class="mark" href="#fs_stat_time_values" id="fs_stat_time_values">#</a></span></h3> <p>The times in the stat object have the following semantics:</p> <ul> <li><code>atime</code> &quot;Access Time&quot; - Time when file data last accessed. Changed by the <code>mknod(2)</code>, <code>utimes(2)</code>, and <code>read(2)</code> system calls.</li> <li><code>mtime</code> &quot;Modified Time&quot; - Time when file data last modified. Changed by the <code>mknod(2)</code>, <code>utimes(2)</code>, and <code>write(2)</code> system calls.</li> <li><code>ctime</code> &quot;Change Time&quot; - Time when file status was last changed (inode data modification). Changed by the <code>chmod(2)</code>, <code>chown(2)</code>, <code>link(2)</code>, <code>mknod(2)</code>, <code>rename(2)</code>, <code>unlink(2)</code>, <code>utimes(2)</code>, <code>read(2)</code>, and <code>write(2)</code> system calls.</li> <li><code>birthtime</code> &quot;Birth Time&quot; - Time of file creation. Set once when the file is created. On filesystems where birthtime is not available, this field may instead hold either the <code>ctime</code> or <code>1970-01-01T00:00Z</code> (ie, unix epoch timestamp <code>0</code>). Note that this value may be greater than <code>atime</code> or <code>mtime</code> in this case. On Darwin and other FreeBSD variants, also set if the <code>atime</code> is explicitly set to an earlier value than the current <code>birthtime</code> using the <code>utimes(2)</code> system call.</li> </ul> <p>Prior to Node v0.12, the <code>ctime</code> held the <code>birthtime</code> on Windows systems. Note that as of v0.12, <code>ctime</code> is not &quot;creation time&quot;, and on Unix systems, it never was.</p> <h2>Class: fs.WriteStream<span><a class="mark" href="#fs_class_fs_writestream" id="fs_class_fs_writestream">#</a></span></h2> <p><code>WriteStream</code> is a <a href="stream.html#stream_class_stream_writable">Writable Stream</a>.</p> <h3>Event: &#39;open&#39;<span><a class="mark" href="#fs_event_open_1" id="fs_event_open_1">#</a></span></h3> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span> Integer file descriptor used by the WriteStream.</li> </ul> </div><p>Emitted when the WriteStream&#39;s file is opened.</p> <h3>Event: &#39;close&#39;<span><a class="mark" href="#fs_event_close_1" id="fs_event_close_1">#</a></span></h3> <p>Emitted when the <code>WriteStream</code>&#39;s underlying file descriptor has been closed using the <code>fs.close()</code> method.</p> <h3>writeStream.bytesWritten<span><a class="mark" href="#fs_writestream_byteswritten" id="fs_writestream_byteswritten">#</a></span></h3> <p>The number of bytes written so far. Does not include data that is still queued for writing.</p> <h3>writeStream.path<span><a class="mark" href="#fs_writestream_path" id="fs_writestream_path">#</a></span></h3> <p>The path to the file the stream is writing to as specified in the first argument to <code>fs.createWriteStream()</code>. If <code>path</code> is passed as a string, then <code>writeStream.path</code> will be a string. If <code>path</code> is passed as a <code>Buffer</code>, then <code>writeStream.path</code> will be a <code>Buffer</code>.</p> <h2>fs.access(path[, mode], callback)<span><a class="mark" href="#fs_fs_access_path_mode_callback" id="fs_fs_access_path_mode_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Tests a user&#39;s permissions for the file specified by <code>path</code>. <code>mode</code> is an optional integer that specifies the accessibility checks to be performed. The following constants define the possible values of <code>mode</code>. It is possible to create a mask consisting of the bitwise OR of two or more values.</p> <ul> <li><code>fs.F_OK</code> - File is visible to the calling process. This is useful for determining if a file exists, but says nothing about <code>rwx</code> permissions. Default if no <code>mode</code> is specified.</li> <li><code>fs.R_OK</code> - File can be read by the calling process.</li> <li><code>fs.W_OK</code> - File can be written by the calling process.</li> <li><code>fs.X_OK</code> - File can be executed by the calling process. This has no effect on Windows (will behave like <code>fs.F_OK</code>).</li> </ul> <p>The final argument, <code>callback</code>, is a callback function that is invoked with a possible error argument. If any of the accessibility checks fail, the error argument will be populated. The following example checks if the file <code>/etc/passwd</code> can be read and written by the current process.</p> <pre><code class="lang-js">fs.access(&#39;/etc/passwd&#39;, fs.R_OK | fs.W_OK, (err) =&gt; { console.log(err ? &#39;no access!&#39; : &#39;can read/write&#39;); }); </code></pre> <h2>fs.accessSync(path[, mode])<span><a class="mark" href="#fs_fs_accesssync_path_mode" id="fs_fs_accesssync_path_mode">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous version of <a href="#fs_fs_access_path_mode_callback"><code>fs.access()</code></a>. This throws if any accessibility checks fail, and does nothing otherwise.</p> <h2>fs.appendFile(file, data[, options], callback)<span><a class="mark" href="#fs_fs_appendfile_file_data_options_callback" id="fs_fs_appendfile_file_data_options_callback">#</a></span></h2> <div class="signature"><ul> <li><code>file</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type">&lt;Number&gt;</a> filename or file descriptor</li> <li><code>data</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a><ul> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Null_type" class="type">&lt;Null&gt;</a> default = <code>&#39;utf8&#39;</code></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span> default = <code>0o666</code></li> <li><code>flag</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> default = <code>&#39;a&#39;</code></li> </ul> </li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronously append data to a file, creating the file if it does not yet exist. <code>data</code> can be a string or a buffer.</p> <p>Example:</p> <pre><code class="lang-js">fs.appendFile(&#39;message.txt&#39;, &#39;data to append&#39;, (err) =&gt; { if (err) throw err; console.log(&#39;The &quot;data to append&quot; was appended to file!&#39;); }); </code></pre> <p>If <code>options</code> is a string, then it specifies the encoding. Example:</p> <pre><code class="lang-js">fs.appendFile(&#39;message.txt&#39;, &#39;data to append&#39;, &#39;utf8&#39;, callback); </code></pre> <p>Any specified file descriptor has to have been opened for appending.</p> <p><em>Note: Specified file descriptors will not be closed automatically.</em></p> <h2>fs.appendFileSync(file, data[, options])<span><a class="mark" href="#fs_fs_appendfilesync_file_data_options" id="fs_fs_appendfilesync_file_data_options">#</a></span></h2> <div class="signature"><ul> <li><code>file</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type">&lt;Number&gt;</a> filename or file descriptor</li> <li><code>data</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a><ul> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Null_type" class="type">&lt;Null&gt;</a> default = <code>&#39;utf8&#39;</code></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span> default = <code>0o666</code></li> <li><code>flag</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> default = <code>&#39;a&#39;</code></li> </ul> </li> </ul> </div><p>The synchronous version of <a href="fs.html#fs_fs_appendfile_file_data_options_callback"><code>fs.appendFile()</code></a>. Returns <code>undefined</code>.</p> <h2>fs.chmod(path, mode, callback)<span><a class="mark" href="#fs_fs_chmod_path_mode_callback" id="fs_fs_chmod_path_mode_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/chmod.2.html">chmod(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <h2>fs.chmodSync(path, mode)<span><a class="mark" href="#fs_fs_chmodsync_path_mode" id="fs_fs_chmodsync_path_mode">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/chmod.2.html">chmod(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.chown(path, uid, gid, callback)<span><a class="mark" href="#fs_fs_chown_path_uid_gid_callback" id="fs_fs_chown_path_uid_gid_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>uid</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>gid</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/chown.2.html">chown(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <h2>fs.chownSync(path, uid, gid)<span><a class="mark" href="#fs_fs_chownsync_path_uid_gid" id="fs_fs_chownsync_path_uid_gid">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>uid</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>gid</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/chown.2.html">chown(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.close(fd, callback)<span><a class="mark" href="#fs_fs_close_fd_callback" id="fs_fs_close_fd_callback">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/close.2.html">close(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <h2>fs.closeSync(fd)<span><a class="mark" href="#fs_fs_closesync_fd" id="fs_fs_closesync_fd">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/close.2.html">close(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.createReadStream(path[, options])<span><a class="mark" href="#fs_fs_createreadstream_path_options" id="fs_fs_createreadstream_path_options">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a><ul> <li><code>flags</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a></li> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a></li> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>autoClose</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type" class="type">&lt;Boolean&gt;</a></li> <li><code>start</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>end</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </li> </ul> </div><p>Returns a new <a href="#fs_class_fs_readstream"><code>ReadStream</code></a> object. (See <a href="stream.html#stream_class_stream_readable">Readable Stream</a>).</p> <p>Be aware that, unlike the default value set for <code>highWaterMark</code> on a readable stream (16 kb), the stream returned by this method has a default value of 64 kb for the same parameter.</p> <p><code>options</code> is an object or string with the following defaults:</p> <pre><code class="lang-js">{ flags: &#39;r&#39;, encoding: null, fd: null, mode: 0o666, autoClose: true } </code></pre> <p><code>options</code> can include <code>start</code> and <code>end</code> values to read a range of bytes from the file instead of the entire file. Both <code>start</code> and <code>end</code> are inclusive and start at 0. The <code>encoding</code> can be any one of those accepted by <a href="buffer.html#buffer_buffer"><code>Buffer</code></a>.</p> <p>If <code>fd</code> is specified, <code>ReadStream</code> will ignore the <code>path</code> argument and will use the specified file descriptor. This means that no <code>&#39;open&#39;</code> event will be emitted. Note that <code>fd</code> should be blocking; non-blocking <code>fd</code>s should be passed to <a href="net.html#net_class_net_socket"><code>net.Socket</code></a>.</p> <p>If <code>autoClose</code> is false, then the file descriptor won&#39;t be closed, even if there&#39;s an error. It is your responsibility to close it and make sure there&#39;s no file descriptor leak. If <code>autoClose</code> is set to true (default behavior), on <code>error</code> or <code>end</code> the file descriptor will be closed automatically.</p> <p><code>mode</code> sets the file mode (permission and sticky bits), but only if the file was created.</p> <p>An example to read the last 10 bytes of a file which is 100 bytes long:</p> <pre><code class="lang-js">fs.createReadStream(&#39;sample.txt&#39;, {start: 90, end: 99}); </code></pre> <p>If <code>options</code> is a string, then it specifies the encoding.</p> <h2>fs.createWriteStream(path[, options])<span><a class="mark" href="#fs_fs_createwritestream_path_options" id="fs_fs_createwritestream_path_options">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a><ul> <li><code>flags</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a></li> <li><code>defaultEncoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a></li> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>autoClose</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type" class="type">&lt;Boolean&gt;</a></li> <li><code>start</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </li> </ul> </div><p>Returns a new <a href="#fs_class_fs_writestream"><code>WriteStream</code></a> object. (See <a href="stream.html#stream_class_stream_writable">Writable Stream</a>).</p> <p><code>options</code> is an object or string with the following defaults:</p> <pre><code class="lang-js">{ flags: &#39;w&#39;, defaultEncoding: &#39;utf8&#39;, fd: null, mode: 0o666, autoClose: true } </code></pre> <p><code>options</code> may also include a <code>start</code> option to allow writing data at some position past the beginning of the file. Modifying a file rather than replacing it may require a <code>flags</code> mode of <code>r+</code> rather than the default mode <code>w</code>. The <code>defaultEncoding</code> can be any one of those accepted by <a href="buffer.html#buffer_buffer"><code>Buffer</code></a>.</p> <p>If <code>autoClose</code> is set to true (default behavior) on <code>error</code> or <code>end</code> the file descriptor will be closed automatically. If <code>autoClose</code> is false, then the file descriptor won&#39;t be closed, even if there&#39;s an error. It is your responsibility to close it and make sure there&#39;s no file descriptor leak.</p> <p>Like <a href="#fs_class_fs_readstream"><code>ReadStream</code></a>, if <code>fd</code> is specified, <code>WriteStream</code> will ignore the <code>path</code> argument and will use the specified file descriptor. This means that no <code>&#39;open&#39;</code> event will be emitted. Note that <code>fd</code> should be blocking; non-blocking <code>fd</code>s should be passed to <a href="net.html#net_class_net_socket"><code>net.Socket</code></a>.</p> <p>If <code>options</code> is a string, then it specifies the encoding.</p> <h2>fs.exists(path, callback)<span><a class="mark" href="#fs_fs_exists_path_callback" id="fs_fs_exists_path_callback">#</a></span></h2> <pre class="api_stability api_stability_0">Stability: 0 - Deprecated: Use <a href="#fs_fs_stat_path_callback"><code>fs.stat()</code></a> or <a href="#fs_fs_access_path_mode_callback"><code>fs.access()</code></a> instead.</pre><div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Test whether or not the given path exists by checking with the file system. Then call the <code>callback</code> argument with either true or false. Example:</p> <pre><code class="lang-js">fs.exists(&#39;/etc/passwd&#39;, (exists) =&gt; { console.log(exists ? &#39;it\&#39;s there&#39; : &#39;no passwd!&#39;); }); </code></pre> <p><code>fs.exists()</code> should not be used to check if a file exists before calling <code>fs.open()</code>. Doing so introduces a race condition since other processes may change the file&#39;s state between the two calls. Instead, user code should call <code>fs.open()</code> directly and handle the error raised if the file is non-existent.</p> <h2>fs.existsSync(path)<span><a class="mark" href="#fs_fs_existssync_path" id="fs_fs_existssync_path">#</a></span></h2> <pre class="api_stability api_stability_0">Stability: 0 - Deprecated: Use <a href="#fs_fs_statsync_path"><code>fs.statSync()</code></a> or <a href="#fs_fs_accesssync_path_mode"><code>fs.accessSync()</code></a> instead.</pre><div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> </ul> </div><p>Synchronous version of <a href="fs.html#fs_fs_exists_path_callback"><code>fs.exists()</code></a>. Returns <code>true</code> if the file exists, <code>false</code> otherwise.</p> <h2>fs.fchmod(fd, mode, callback)<span><a class="mark" href="#fs_fs_fchmod_fd_mode_callback" id="fs_fs_fchmod_fd_mode_callback">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/fchmod.2.html">fchmod(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <h2>fs.fchmodSync(fd, mode)<span><a class="mark" href="#fs_fs_fchmodsync_fd_mode" id="fs_fs_fchmodsync_fd_mode">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/fchmod.2.html">fchmod(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.fchown(fd, uid, gid, callback)<span><a class="mark" href="#fs_fs_fchown_fd_uid_gid_callback" id="fs_fs_fchown_fd_uid_gid_callback">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>uid</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>gid</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/fchown.2.html">fchown(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <h2>fs.fchownSync(fd, uid, gid)<span><a class="mark" href="#fs_fs_fchownsync_fd_uid_gid" id="fs_fs_fchownsync_fd_uid_gid">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>uid</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>gid</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/fchown.2.html">fchown(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.fdatasync(fd, callback)<span><a class="mark" href="#fs_fs_fdatasync_fd_callback" id="fs_fs_fdatasync_fd_callback">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/fdatasync.2.html">fdatasync(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <h2>fs.fdatasyncSync(fd)<span><a class="mark" href="#fs_fs_fdatasyncsync_fd" id="fs_fs_fdatasyncsync_fd">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/fdatasync.2.html">fdatasync(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.fstat(fd, callback)<span><a class="mark" href="#fs_fs_fstat_fd_callback" id="fs_fs_fstat_fd_callback">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/fstat.2.html">fstat(2)</a>. The callback gets two arguments <code>(err, stats)</code> where <code>stats</code> is a <a href="#fs_class_fs_stats"><code>fs.Stats</code></a> object. <code>fstat()</code> is identical to <a href="fs.html#fs_fs_stat_path_callback"><code>stat()</code></a>, except that the file to be stat-ed is specified by the file descriptor <code>fd</code>.</p> <h2>fs.fstatSync(fd)<span><a class="mark" href="#fs_fs_fstatsync_fd" id="fs_fs_fstatsync_fd">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/fstat.2.html">fstat(2)</a>. Returns an instance of <code>fs.Stats</code>.</p> <h2>fs.fsync(fd, callback)<span><a class="mark" href="#fs_fs_fsync_fd_callback" id="fs_fs_fsync_fd_callback">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/fsync.2.html">fsync(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <h2>fs.fsyncSync(fd)<span><a class="mark" href="#fs_fs_fsyncsync_fd" id="fs_fs_fsyncsync_fd">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/fsync.2.html">fsync(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.ftruncate(fd, len, callback)<span><a class="mark" href="#fs_fs_ftruncate_fd_len_callback" id="fs_fs_ftruncate_fd_len_callback">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>len</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/ftruncate.2.html">ftruncate(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <h2>fs.ftruncateSync(fd, len)<span><a class="mark" href="#fs_fs_ftruncatesync_fd_len" id="fs_fs_ftruncatesync_fd_len">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>len</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/ftruncate.2.html">ftruncate(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.futimes(fd, atime, mtime, callback)<span><a class="mark" href="#fs_fs_futimes_fd_atime_mtime_callback" id="fs_fs_futimes_fd_atime_mtime_callback">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>atime</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>mtime</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Change the file timestamps of a file referenced by the supplied file descriptor.</p> <h2>fs.futimesSync(fd, atime, mtime)<span><a class="mark" href="#fs_fs_futimessync_fd_atime_mtime" id="fs_fs_futimessync_fd_atime_mtime">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>atime</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>mtime</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous version of <a href="#fs_fs_futimes_fd_atime_mtime_callback"><code>fs.futimes()</code></a>. Returns <code>undefined</code>.</p> <h2>fs.lchmod(path, mode, callback)<span><a class="mark" href="#fs_fs_lchmod_path_mode_callback" id="fs_fs_lchmod_path_mode_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2">lchmod(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <p>Only available on Mac OS X.</p> <h2>fs.lchmodSync(path, mode)<span><a class="mark" href="#fs_fs_lchmodsync_path_mode" id="fs_fs_lchmodsync_path_mode">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous <a href="https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2">lchmod(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.lchown(path, uid, gid, callback)<span><a class="mark" href="#fs_fs_lchown_path_uid_gid_callback" id="fs_fs_lchown_path_uid_gid_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>uid</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>gid</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/lchown.2.html">lchown(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <h2>fs.lchownSync(path, uid, gid)<span><a class="mark" href="#fs_fs_lchownsync_path_uid_gid" id="fs_fs_lchownsync_path_uid_gid">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>uid</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>gid</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/lchown.2.html">lchown(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.link(srcpath, dstpath, callback)<span><a class="mark" href="#fs_fs_link_srcpath_dstpath_callback" id="fs_fs_link_srcpath_dstpath_callback">#</a></span></h2> <div class="signature"><ul> <li><code>srcpath</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>dstpath</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/link.2.html">link(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <h2>fs.linkSync(srcpath, dstpath)<span><a class="mark" href="#fs_fs_linksync_srcpath_dstpath" id="fs_fs_linksync_srcpath_dstpath">#</a></span></h2> <div class="signature"><ul> <li><code>srcpath</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>dstpath</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/link.2.html">link(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.lstat(path, callback)<span><a class="mark" href="#fs_fs_lstat_path_callback" id="fs_fs_lstat_path_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/lstat.2.html">lstat(2)</a>. The callback gets two arguments <code>(err, stats)</code> where <code>stats</code> is a <a href="#fs_class_fs_stats"><code>fs.Stats</code></a> object. <code>lstat()</code> is identical to <code>stat()</code>, except that if <code>path</code> is a symbolic link, then the link itself is stat-ed, not the file that it refers to.</p> <h2>fs.lstatSync(path)<span><a class="mark" href="#fs_fs_lstatsync_path" id="fs_fs_lstatsync_path">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/lstat.2.html">lstat(2)</a>. Returns an instance of <code>fs.Stats</code>.</p> <h2>fs.mkdir(path[, mode], callback)<span><a class="mark" href="#fs_fs_mkdir_path_mode_callback" id="fs_fs_mkdir_path_mode_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/mkdir.2.html">mkdir(2)</a>. No arguments other than a possible exception are given to the completion callback. <code>mode</code> defaults to <code>0o777</code>.</p> <h2>fs.mkdirSync(path[, mode])<span><a class="mark" href="#fs_fs_mkdirsync_path_mode" id="fs_fs_mkdirsync_path_mode">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/mkdir.2.html">mkdir(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.mkdtemp(prefix, callback)<span><a class="mark" href="#fs_fs_mkdtemp_prefix_callback" id="fs_fs_mkdtemp_prefix_callback">#</a></span></h2> <p>Creates a unique temporary directory.</p> <p>Generates six random characters to be appended behind a required <code>prefix</code> to create a unique temporary directory.</p> <p>The created folder path is passed as a string to the callback&#39;s second parameter.</p> <p>Example:</p> <pre><code class="lang-js">fs.mkdtemp(&#39;/tmp/foo-&#39;, (err, folder) =&gt; { console.log(folder); // Prints: /tmp/foo-itXde2 }); </code></pre> <h2>fs.mkdtempSync(template)<span><a class="mark" href="#fs_fs_mkdtempsync_template" id="fs_fs_mkdtempsync_template">#</a></span></h2> <p>The synchronous version of [<code>fs.mkdtemp()</code>][]. Returns the created folder path.</p> <h2>fs.open(path, flags[, mode], callback)<span><a class="mark" href="#fs_fs_open_path_flags_mode_callback" id="fs_fs_open_path_flags_mode_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>flags</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type">&lt;Number&gt;</a></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous file open. See <a href="http://man7.org/linux/man-pages/man2/open.2.html">open(2)</a>. <code>flags</code> can be:</p> <ul> <li><p><code>&#39;r&#39;</code> - Open file for reading. An exception occurs if the file does not exist.</p> </li> <li><p><code>&#39;r+&#39;</code> - Open file for reading and writing. An exception occurs if the file does not exist.</p> </li> <li><p><code>&#39;rs+&#39;</code> - Open file for reading and writing in synchronous mode. Instructs the operating system to bypass the local file system cache.</p> <p>This is primarily useful for opening files on NFS mounts as it allows you to skip the potentially stale local cache. It has a very real impact on I/O performance so don&#39;t use this flag unless you need it.</p> <p>Note that this doesn&#39;t turn <code>fs.open()</code> into a synchronous blocking call. If that&#39;s what you want then you should be using <code>fs.openSync()</code></p> </li> <li><p><code>&#39;w&#39;</code> - Open file for writing. The file is created (if it does not exist) or truncated (if it exists).</p> </li> <li><p><code>&#39;wx&#39;</code> - Like <code>&#39;w&#39;</code> but fails if <code>path</code> exists.</p> </li> <li><p><code>&#39;w+&#39;</code> - Open file for reading and writing. The file is created (if it does not exist) or truncated (if it exists).</p> </li> <li><p><code>&#39;wx+&#39;</code> - Like <code>&#39;w+&#39;</code> but fails if <code>path</code> exists.</p> </li> <li><p><code>&#39;a&#39;</code> - Open file for appending. The file is created if it does not exist.</p> </li> <li><p><code>&#39;ax&#39;</code> - Like <code>&#39;a&#39;</code> but fails if <code>path</code> exists.</p> </li> <li><p><code>&#39;a+&#39;</code> - Open file for reading and appending. The file is created if it does not exist.</p> </li> <li><p><code>&#39;ax+&#39;</code> - Like <code>&#39;a+&#39;</code> but fails if <code>path</code> exists.</p> </li> </ul> <p><code>mode</code> sets the file mode (permission and sticky bits), but only if the file was created. It defaults to <code>0666</code>, readable and writable.</p> <p>The callback gets two arguments <code>(err, fd)</code>.</p> <p>The exclusive flag <code>&#39;x&#39;</code> (<code>O_EXCL</code> flag in <a href="http://man7.org/linux/man-pages/man2/open.2.html">open(2)</a>) ensures that <code>path</code> is newly created. On POSIX systems, <code>path</code> is considered to exist even if it is a symlink to a non-existent file. The exclusive flag may or may not work with network file systems.</p> <p><code>flags</code> can also be a number as documented by <a href="http://man7.org/linux/man-pages/man2/open.2.html">open(2)</a>; commonly used constants are available from <code>require(&#39;constants&#39;)</code>. On Windows, flags are translated to their equivalent ones where applicable, e.g. <code>O_WRONLY</code> to <code>FILE_GENERIC_WRITE</code>, or <code>O_EXCL|O_CREAT</code> to <code>CREATE_NEW</code>, as accepted by CreateFileW.</p> <p>On Linux, positional writes don&#39;t work when the file is opened in append mode. The kernel ignores the position argument and always appends the data to the end of the file.</p> <p><em>Note: The behavior of <code>fs.open()</code> is platform specific for some flags. As such, opening a directory on OS X and Linux with the <code>&#39;a+&#39;</code> flag - see example below - will return an error. In contrast, on Windows and FreeBSD, a file descriptor will be returned.</em></p> <pre><code class="lang-js">// OS X and Linux fs.open(&#39;&lt;directory&gt;&#39;, &#39;a+&#39;, (err, fd) =&gt; { // =&gt; [Error: EISDIR: illegal operation on a directory, open &lt;directory&gt;] }) // Windows and FreeBSD fs.open(&#39;&lt;directory&gt;&#39;, &#39;a+&#39;, (err, fd) =&gt; { // =&gt; null, &lt;fd&gt; }) </code></pre> <h2>fs.openSync(path, flags[, mode])<span><a class="mark" href="#fs_fs_opensync_path_flags_mode" id="fs_fs_opensync_path_flags_mode">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>flags</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type">&lt;Number&gt;</a></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous version of <a href="#fs_fs_open_path_flags_mode_callback"><code>fs.open()</code></a>. Returns an integer representing the file descriptor.</p> <h2>fs.read(fd, buffer, offset, length, position, callback)<span><a class="mark" href="#fs_fs_read_fd_buffer_offset_length_position_callback" id="fs_fs_read_fd_buffer_offset_length_position_callback">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>buffer</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>offset</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>length</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>position</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Read data from the file specified by <code>fd</code>.</p> <p><code>buffer</code> is the buffer that the data will be written to.</p> <p><code>offset</code> is the offset in the buffer to start writing at.</p> <p><code>length</code> is an integer specifying the number of bytes to read.</p> <p><code>position</code> is an integer specifying where to begin reading from in the file. If <code>position</code> is <code>null</code>, data will be read from the current file position.</p> <p>The callback is given the three arguments, <code>(err, bytesRead, buffer)</code>.</p> <h2>fs.readdir(path[, options], callback)<span><a class="mark" href="#fs_fs_readdir_path_options_callback" id="fs_fs_readdir_path_options_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a><ul> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> default = <code>&#39;utf8&#39;</code></li> </ul> </li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man3/readdir.3.html">readdir(3)</a>. Reads the contents of a directory. The callback gets two arguments <code>(err, files)</code> where <code>files</code> is an array of the names of the files in the directory excluding <code>&#39;.&#39;</code> and <code>&#39;..&#39;</code>.</p> <p>The optional <code>options</code> argument can be a string specifying an encoding, or an object with an <code>encoding</code> property specifying the character encoding to use for the filenames passed to the callback. If the <code>encoding</code> is set to <code>&#39;buffer&#39;</code>, the filenames returned will be passed as <code>Buffer</code> objects.</p> <h2>fs.readdirSync(path[, options])<span><a class="mark" href="#fs_fs_readdirsync_path_options" id="fs_fs_readdirsync_path_options">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a><ul> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> default = <code>&#39;utf8&#39;</code></li> </ul> </li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man3/readdir.3.html">readdir(3)</a>. Returns an array of filenames excluding <code>&#39;.&#39;</code> and <code>&#39;..&#39;</code>.</p> <p>The optional <code>options</code> argument can be a string specifying an encoding, or an object with an <code>encoding</code> property specifying the character encoding to use for the filenames passed to the callback. If the <code>encoding</code> is set to <code>&#39;buffer&#39;</code>, the filenames returned will be passed as <code>Buffer</code> objects.</p> <h2>fs.readFile(file[, options], callback)<span><a class="mark" href="#fs_fs_readfile_file_options_callback" id="fs_fs_readfile_file_options_callback">#</a></span></h2> <div class="signature"><ul> <li><code>file</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a> | <span class="type">&lt;Integer&gt;</span> filename or file descriptor</li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a><ul> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Null_type" class="type">&lt;Null&gt;</a> default = <code>null</code></li> <li><code>flag</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> default = <code>&#39;r&#39;</code></li> </ul> </li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronously reads the entire contents of a file. Example:</p> <pre><code class="lang-js">fs.readFile(&#39;/etc/passwd&#39;, (err, data) =&gt; { if (err) throw err; console.log(data); }); </code></pre> <p>The callback is passed two arguments <code>(err, data)</code>, where <code>data</code> is the contents of the file.</p> <p>If no encoding is specified, then the raw buffer is returned.</p> <p>If <code>options</code> is a string, then it specifies the encoding. Example:</p> <pre><code class="lang-js">fs.readFile(&#39;/etc/passwd&#39;, &#39;utf8&#39;, callback); </code></pre> <p>Any specified file descriptor has to support reading.</p> <p><em>Note: Specified file descriptors will not be closed automatically.</em></p> <h2>fs.readFileSync(file[, options])<span><a class="mark" href="#fs_fs_readfilesync_file_options" id="fs_fs_readfilesync_file_options">#</a></span></h2> <div class="signature"><ul> <li><code>file</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a> | <span class="type">&lt;Integer&gt;</span> filename or file descriptor</li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a><ul> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Null_type" class="type">&lt;Null&gt;</a> default = <code>null</code></li> <li><code>flag</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> default = <code>&#39;r&#39;</code></li> </ul> </li> </ul> </div><p>Synchronous version of <a href="#fs_fs_readfile_file_options_callback"><code>fs.readFile</code></a>. Returns the contents of the <code>file</code>.</p> <p>If the <code>encoding</code> option is specified then this function returns a string. Otherwise it returns a buffer.</p> <h2>fs.readlink(path[, options], callback)<span><a class="mark" href="#fs_fs_readlink_path_options_callback" id="fs_fs_readlink_path_options_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a><ul> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> default = <code>&#39;utf8&#39;</code></li> </ul> </li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/readlink.2.html">readlink(2)</a>. The callback gets two arguments <code>(err, linkString)</code>.</p> <p>The optional <code>options</code> argument can be a string specifying an encoding, or an object with an <code>encoding</code> property specifying the character encoding to use for the link path passed to the callback. If the <code>encoding</code> is set to <code>&#39;buffer&#39;</code>, the link path returned will be passed as a <code>Buffer</code> object.</p> <h2>fs.readlinkSync(path[, options])<span><a class="mark" href="#fs_fs_readlinksync_path_options" id="fs_fs_readlinksync_path_options">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a><ul> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> default = <code>&#39;utf8&#39;</code></li> </ul> </li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/readlink.2.html">readlink(2)</a>. Returns the symbolic link&#39;s string value.</p> <p>The optional <code>options</code> argument can be a string specifying an encoding, or an object with an <code>encoding</code> property specifying the character encoding to use for the link path passed to the callback. If the <code>encoding</code> is set to <code>&#39;buffer&#39;</code>, the link path returned will be passed as a <code>Buffer</code> object.</p> <h2>fs.readSync(fd, buffer, offset, length, position)<span><a class="mark" href="#fs_fs_readsync_fd_buffer_offset_length_position" id="fs_fs_readsync_fd_buffer_offset_length_position">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>buffer</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>offset</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>length</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>position</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous version of <a href="#fs_fs_read_fd_buffer_offset_length_position_callback"><code>fs.read()</code></a>. Returns the number of <code>bytesRead</code>.</p> <h2>fs.realpath(path[, options], callback)<span><a class="mark" href="#fs_fs_realpath_path_options_callback" id="fs_fs_realpath_path_options_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a><ul> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> default = <code>&#39;utf8&#39;</code></li> </ul> </li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man3/realpath.3.html">realpath(3)</a>. The <code>callback</code> gets two arguments <code>(err, resolvedPath)</code>. May use <code>process.cwd</code> to resolve relative paths.</p> <p>The optional <code>options</code> argument can be a string specifying an encoding, or an object with an <code>encoding</code> property specifying the character encoding to use for the path passed to the callback. If the <code>encoding</code> is set to <code>&#39;buffer&#39;</code>, the path returned will be passed as a <code>Buffer</code> object.</p> <h2>fs.realpathSync(path[, options])<span><a class="mark" href="#fs_fs_realpathsync_path_options" id="fs_fs_realpathsync_path_options">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a>;</li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a><ul> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> default = <code>&#39;utf8&#39;</code></li> </ul> </li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man3/realpath.3.html">realpath(3)</a>. Returns the resolved path.</p> <p>The optional <code>options</code> argument can be a string specifying an encoding, or an object with an <code>encoding</code> property specifying the character encoding to use for the path passed to the callback. If the <code>encoding</code> is set to <code>&#39;buffer&#39;</code>, the path returned will be passed as a <code>Buffer</code> object.</p> <h2>fs.rename(oldPath, newPath, callback)<span><a class="mark" href="#fs_fs_rename_oldpath_newpath_callback" id="fs_fs_rename_oldpath_newpath_callback">#</a></span></h2> <div class="signature"><ul> <li><code>oldPath</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>newPath</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/rename.2.html">rename(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <h2>fs.renameSync(oldPath, newPath)<span><a class="mark" href="#fs_fs_renamesync_oldpath_newpath" id="fs_fs_renamesync_oldpath_newpath">#</a></span></h2> <div class="signature"><ul> <li><code>oldPath</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>newPath</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/rename.2.html">rename(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.rmdir(path, callback)<span><a class="mark" href="#fs_fs_rmdir_path_callback" id="fs_fs_rmdir_path_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/rmdir.2.html">rmdir(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <h2>fs.rmdirSync(path)<span><a class="mark" href="#fs_fs_rmdirsync_path" id="fs_fs_rmdirsync_path">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/rmdir.2.html">rmdir(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.stat(path, callback)<span><a class="mark" href="#fs_fs_stat_path_callback" id="fs_fs_stat_path_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/stat.2.html">stat(2)</a>. The callback gets two arguments <code>(err, stats)</code> where <code>stats</code> is a <a href="#fs_class_fs_stats"><code>fs.Stats</code></a> object. See the <a href="#fs_class_fs_stats"><code>fs.Stats</code></a> section for more information.</p> <h2>fs.statSync(path)<span><a class="mark" href="#fs_fs_statsync_path" id="fs_fs_statsync_path">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/stat.2.html">stat(2)</a>. Returns an instance of <a href="#fs_class_fs_stats"><code>fs.Stats</code></a>.</p> <h2>fs.symlink(target, path[, type], callback)<span><a class="mark" href="#fs_fs_symlink_target_path_type_callback" id="fs_fs_symlink_target_path_type_callback">#</a></span></h2> <div class="signature"><ul> <li><code>target</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>type</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/symlink.2.html">symlink(2)</a>. No arguments other than a possible exception are given to the completion callback. The <code>type</code> argument can be set to <code>&#39;dir&#39;</code>, <code>&#39;file&#39;</code>, or <code>&#39;junction&#39;</code> (default is <code>&#39;file&#39;</code>) and is only available on Windows (ignored on other platforms). Note that Windows junction points require the destination path to be absolute. When using <code>&#39;junction&#39;</code>, the <code>target</code> argument will automatically be normalized to absolute path.</p> <p>Here is an example below:</p> <pre><code class="lang-js">fs.symlink(&#39;./foo&#39;, &#39;./new-port&#39;); </code></pre> <p>It creates a symbolic link named &quot;new-port&quot; that points to &quot;foo&quot;.</p> <h2>fs.symlinkSync(target, path[, type])<span><a class="mark" href="#fs_fs_symlinksync_target_path_type" id="fs_fs_symlinksync_target_path_type">#</a></span></h2> <div class="signature"><ul> <li><code>target</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>type</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/symlink.2.html">symlink(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.truncate(path, len, callback)<span><a class="mark" href="#fs_fs_truncate_path_len_callback" id="fs_fs_truncate_path_len_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>len</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/truncate.2.html">truncate(2)</a>. No arguments other than a possible exception are given to the completion callback. A file descriptor can also be passed as the first argument. In this case, <code>fs.ftruncate()</code> is called.</p> <h2>fs.truncateSync(path, len)<span><a class="mark" href="#fs_fs_truncatesync_path_len" id="fs_fs_truncatesync_path_len">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>len</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/truncate.2.html">truncate(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.unlink(path, callback)<span><a class="mark" href="#fs_fs_unlink_path_callback" id="fs_fs_unlink_path_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronous <a href="http://man7.org/linux/man-pages/man2/unlink.2.html">unlink(2)</a>. No arguments other than a possible exception are given to the completion callback.</p> <h2>fs.unlinkSync(path)<span><a class="mark" href="#fs_fs_unlinksync_path" id="fs_fs_unlinksync_path">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> </ul> </div><p>Synchronous <a href="http://man7.org/linux/man-pages/man2/unlink.2.html">unlink(2)</a>. Returns <code>undefined</code>.</p> <h2>fs.unwatchFile(filename[, listener])<span><a class="mark" href="#fs_fs_unwatchfile_filename_listener" id="fs_fs_unwatchfile_filename_listener">#</a></span></h2> <div class="signature"><ul> <li><code>filename</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>listener</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Stop watching for changes on <code>filename</code>. If <code>listener</code> is specified, only that particular listener is removed. Otherwise, <em>all</em> listeners are removed and you have effectively stopped watching <code>filename</code>.</p> <p>Calling <code>fs.unwatchFile()</code> with a filename that is not being watched is a no-op, not an error.</p> <p><em>Note: <a href="#fs_fs_watch_filename_options_listener"><code>fs.watch()</code></a> is more efficient than <code>fs.watchFile()</code> and <code>fs.unwatchFile()</code>. <code>fs.watch()</code> should be used instead of <code>fs.watchFile()</code> and <code>fs.unwatchFile()</code> when possible.</em></p> <h2>fs.utimes(path, atime, mtime, callback)<span><a class="mark" href="#fs_fs_utimes_path_atime_mtime_callback" id="fs_fs_utimes_path_atime_mtime_callback">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>atime</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>mtime</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Change file timestamps of the file referenced by the supplied path.</p> <p>Note: the arguments <code>atime</code> and <code>mtime</code> of the following related functions does follow the below rules:</p> <ul> <li>If the value is a numberable string like <code>&#39;123456789&#39;</code>, the value would get converted to corresponding number.</li> <li>If the value is <code>NaN</code> or <code>Infinity</code>, the value would get converted to <code>Date.now()</code>.</li> </ul> <h2>fs.utimesSync(path, atime, mtime)<span><a class="mark" href="#fs_fs_utimessync_path_atime_mtime" id="fs_fs_utimessync_path_atime_mtime">#</a></span></h2> <div class="signature"><ul> <li><code>path</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>atime</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>mtime</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><p>Synchronous version of <a href="#fs_fs_futimes_fd_atime_mtime_callback"><code>fs.utimes()</code></a>. Returns <code>undefined</code>.</p> <h2>fs.watch(filename[, options][, listener])<span><a class="mark" href="#fs_fs_watch_filename_options_listener" id="fs_fs_watch_filename_options_listener">#</a></span></h2> <div class="signature"><ul> <li><code>filename</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a><ul> <li><code>persistent</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type" class="type">&lt;Boolean&gt;</a> Indicates whether the process should continue to run as long as files are being watched. default = <code>true</code></li> <li><code>recursive</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type" class="type">&lt;Boolean&gt;</a> Indicates whether all subdirectories should be watched, or only the current directory. The applies when a directory is specified, and only on supported platforms (See <a href="#fs_caveats">Caveats</a>). default = <code>false</code></li> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> Specifies the character encoding to be used for the filename passed to the listener. default = <code>&#39;utf8&#39;</code></li> </ul> </li> <li><code>listener</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Watch for changes on <code>filename</code>, where <code>filename</code> is either a file or a directory. The returned object is a <a href="#fs_class_fs_fswatcher"><code>fs.FSWatcher</code></a>.</p> <p>The second argument is optional. If <code>options</code> is provided as a string, it specifies the <code>encoding</code>. Otherwise <code>options</code> should be passed as an object.</p> <p>The listener callback gets two arguments <code>(event, filename)</code>. <code>event</code> is either <code>&#39;rename&#39;</code> or <code>&#39;change&#39;</code>, and <code>filename</code> is the name of the file which triggered the event.</p> <h3>Caveats<span><a class="mark" href="#fs_caveats" id="fs_caveats">#</a></span></h3> <!--type=misc--> <p>The <code>fs.watch</code> API is not 100% consistent across platforms, and is unavailable in some situations.</p> <p>The recursive option is only supported on OS X and Windows.</p> <h4>Availability<span><a class="mark" href="#fs_availability" id="fs_availability">#</a></span></h4> <!--type=misc--> <p>This feature depends on the underlying operating system providing a way to be notified of filesystem changes.</p> <ul> <li>On Linux systems, this uses <code>inotify</code>.</li> <li>On BSD systems, this uses <code>kqueue</code>.</li> <li>On OS X, this uses <code>kqueue</code> for files and &#39;FSEvents&#39; for directories.</li> <li>On SunOS systems (including Solaris and SmartOS), this uses <code>event ports</code>.</li> <li>On Windows systems, this feature depends on <code>ReadDirectoryChangesW</code>.</li> </ul> <p>If the underlying functionality is not available for some reason, then <code>fs.watch</code> will not be able to function. For example, watching files or directories on network file systems (NFS, SMB, etc.) often doesn&#39;t work reliably or at all.</p> <p>You can still use <code>fs.watchFile</code>, which uses stat polling, but it is slower and less reliable.</p> <h4>Inodes<span><a class="mark" href="#fs_inodes" id="fs_inodes">#</a></span></h4> <!--type=misc--> <p>On Linux and OS X systems, <code>fs.watch()</code> resolves the path to an <a href="http://www.linux.org/threads/intro-to-inodes.4130">inode</a> and watches the inode. If the watched path is deleted and recreated, it is assigned a new inode. The watch will emit an event for the delete but will continue watching the <em>original</em> inode. Events for the new inode will not be emitted. This is expected behavior.</p> <h4>Filename Argument<span><a class="mark" href="#fs_filename_argument" id="fs_filename_argument">#</a></span></h4> <!--type=misc--> <p>Providing <code>filename</code> argument in the callback is only supported on Linux and Windows. Even on supported platforms, <code>filename</code> is not always guaranteed to be provided. Therefore, don&#39;t assume that <code>filename</code> argument is always provided in the callback, and have some fallback logic if it is null.</p> <pre><code class="lang-js">fs.watch(&#39;somedir&#39;, (event, filename) =&gt; { console.log(`event is: ${event}`); if (filename) { console.log(`filename provided: ${filename}`); } else { console.log(&#39;filename not provided&#39;); } }); </code></pre> <h2>fs.watchFile(filename[, options], listener)<span><a class="mark" href="#fs_fs_watchfile_filename_options_listener" id="fs_fs_watchfile_filename_options_listener">#</a></span></h2> <div class="signature"><ul> <li><code>filename</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a><ul> <li><code>persistent</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type" class="type">&lt;Boolean&gt;</a></li> <li><code>interval</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </li> <li><code>listener</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Watch for changes on <code>filename</code>. The callback <code>listener</code> will be called each time the file is accessed.</p> <p>The <code>options</code> argument may be omitted. If provided, it should be an object. The <code>options</code> object may contain a boolean named <code>persistent</code> that indicates whether the process should continue to run as long as files are being watched. The <code>options</code> object may specify an <code>interval</code> property indicating how often the target should be polled in milliseconds. The default is <code>{ persistent: true, interval: 5007 }</code>.</p> <p>The <code>listener</code> gets two arguments the current stat object and the previous stat object:</p> <pre><code class="lang-js">fs.watchFile(&#39;message.text&#39;, (curr, prev) =&gt; { console.log(`the current mtime is: ${curr.mtime}`); console.log(`the previous mtime was: ${prev.mtime}`); }); </code></pre> <p>These stat objects are instances of <code>fs.Stat</code>.</p> <p>If you want to be notified when the file was modified, not just accessed, you need to compare <code>curr.mtime</code> and <code>prev.mtime</code>.</p> <p><em>Note: when an <code>fs.watchFile</code> operation results in an <code>ENOENT</code> error, it will invoke the listener once, with all the fields zeroed (or, for dates, the Unix Epoch). In Windows, <code>blksize</code> and <code>blocks</code> fields will be <code>undefined</code>, instead of zero. If the file is created later on, the listener will be called again, with the latest stat objects. This is a change in functionality since v0.10.</em></p> <p><em>Note: <a href="#fs_fs_watch_filename_options_listener"><code>fs.watch()</code></a> is more efficient than <code>fs.watchFile</code> and <code>fs.unwatchFile</code>. <code>fs.watch</code> should be used instead of <code>fs.watchFile</code> and <code>fs.unwatchFile</code> when possible.</em></p> <h2>fs.write(fd, buffer, offset, length[, position], callback)<span><a class="mark" href="#fs_fs_write_fd_buffer_offset_length_position_callback" id="fs_fs_write_fd_buffer_offset_length_position_callback">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>buffer</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>offset</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>length</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>position</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Write <code>buffer</code> to the file specified by <code>fd</code>.</p> <p><code>offset</code> and <code>length</code> determine the part of the buffer to be written.</p> <p><code>position</code> refers to the offset from the beginning of the file where this data should be written. If <code>typeof position !== &#39;number&#39;</code>, the data will be written at the current position. See <a href="http://man7.org/linux/man-pages/man2/pwrite.2.html">pwrite(2)</a>.</p> <p>The callback will be given three arguments <code>(err, written, buffer)</code> where <code>written</code> specifies how many <em>bytes</em> were written from <code>buffer</code>.</p> <p>Note that it is unsafe to use <code>fs.write</code> multiple times on the same file without waiting for the callback. For this scenario, <code>fs.createWriteStream</code> is strongly recommended.</p> <p>On Linux, positional writes don&#39;t work when the file is opened in append mode. The kernel ignores the position argument and always appends the data to the end of the file.</p> <h2>fs.write(fd, data[, position[, encoding]], callback)<span><a class="mark" href="#fs_fs_write_fd_data_position_encoding_callback" id="fs_fs_write_fd_data_position_encoding_callback">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>data</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>position</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a></li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Write <code>data</code> to the file specified by <code>fd</code>. If <code>data</code> is not a Buffer instance then the value will be coerced to a string.</p> <p><code>position</code> refers to the offset from the beginning of the file where this data should be written. If <code>typeof position !== &#39;number&#39;</code> the data will be written at the current position. See <a href="http://man7.org/linux/man-pages/man2/pwrite.2.html">pwrite(2)</a>.</p> <p><code>encoding</code> is the expected string encoding.</p> <p>The callback will receive the arguments <code>(err, written, string)</code> where <code>written</code> specifies how many <em>bytes</em> the passed string required to be written. Note that bytes written is not the same as string characters. See <a href="buffer.html#buffer_class_method_buffer_bytelength_string_encoding"><code>Buffer.byteLength</code></a>.</p> <p>Unlike when writing <code>buffer</code>, the entire string must be written. No substring may be specified. This is because the byte offset of the resulting data may not be the same as the string offset.</p> <p>Note that it is unsafe to use <code>fs.write</code> multiple times on the same file without waiting for the callback. For this scenario, <code>fs.createWriteStream</code> is strongly recommended.</p> <p>On Linux, positional writes don&#39;t work when the file is opened in append mode. The kernel ignores the position argument and always appends the data to the end of the file.</p> <h2>fs.writeFile(file, data[, options], callback)<span><a class="mark" href="#fs_fs_writefile_file_data_options_callback" id="fs_fs_writefile_file_data_options_callback">#</a></span></h2> <div class="signature"><ul> <li><code>file</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a> | <span class="type">&lt;Integer&gt;</span> filename or file descriptor</li> <li><code>data</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a><ul> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Null_type" class="type">&lt;Null&gt;</a> default = <code>&#39;utf8&#39;</code></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span> default = <code>0o666</code></li> <li><code>flag</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> default = <code>&#39;w&#39;</code></li> </ul> </li> <li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&lt;Function&gt;</a></li> </ul> </div><p>Asynchronously writes data to a file, replacing the file if it already exists. <code>data</code> can be a string or a buffer.</p> <p>The <code>encoding</code> option is ignored if <code>data</code> is a buffer. It defaults to <code>&#39;utf8&#39;</code>.</p> <p>Example:</p> <pre><code class="lang-js">fs.writeFile(&#39;message.txt&#39;, &#39;Hello Node.js&#39;, (err) =&gt; { if (err) throw err; console.log(&#39;It\&#39;s saved!&#39;); }); </code></pre> <p>If <code>options</code> is a string, then it specifies the encoding. Example:</p> <pre><code class="lang-js">fs.writeFile(&#39;message.txt&#39;, &#39;Hello Node.js&#39;, &#39;utf8&#39;, callback); </code></pre> <p>Any specified file descriptor has to support writing.</p> <p>Note that it is unsafe to use <code>fs.writeFile</code> multiple times on the same file without waiting for the callback. For this scenario, <code>fs.createWriteStream</code> is strongly recommended.</p> <p><em>Note: Specified file descriptors will not be closed automatically.</em></p> <h2>fs.writeFileSync(file, data[, options])<span><a class="mark" href="#fs_fs_writefilesync_file_data_options" id="fs_fs_writefilesync_file_data_options">#</a></span></h2> <div class="signature"><ul> <li><code>file</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a> | <span class="type">&lt;Integer&gt;</span> filename or file descriptor</li> <li><code>data</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&lt;Object&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a><ul> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Null_type" class="type">&lt;Null&gt;</a> default = <code>&#39;utf8&#39;</code></li> <li><code>mode</code> <span class="type">&lt;Integer&gt;</span> default = <code>0o666</code></li> <li><code>flag</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> default = <code>&#39;w&#39;</code></li> </ul> </li> </ul> </div><p>The synchronous version of <a href="#fs_fs_writefile_file_data_options_callback"><code>fs.writeFile()</code></a>. Returns <code>undefined</code>.</p> <h2>fs.writeSync(fd, buffer, offset, length[, position])<span><a class="mark" href="#fs_fs_writesync_fd_buffer_offset_length_position" id="fs_fs_writesync_fd_buffer_offset_length_position">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>buffer</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>offset</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>length</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>position</code> <span class="type">&lt;Integer&gt;</span></li> </ul> </div><h2>fs.writeSync(fd, data[, position[, encoding]])<span><a class="mark" href="#fs_fs_writesync_fd_data_position_encoding" id="fs_fs_writesync_fd_data_position_encoding">#</a></span></h2> <div class="signature"><ul> <li><code>fd</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>data</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a> | <a href="buffer.html#buffer_class_buffer" class="type">&lt;Buffer&gt;</a></li> <li><code>position</code> <span class="type">&lt;Integer&gt;</span></li> <li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;String&gt;</a></li> </ul> </div><p>Synchronous versions of <a href="#fs_fs_write_fd_buffer_offset_length_position_callback"><code>fs.write()</code></a>. Returns the number of bytes written.</p> </div> </div> </div> <script src="assets/sh_main.js"></script> <script src="assets/sh_javascript.min.js"></script> <script>highlight(undefined, undefined, 'pre');</script> </body> </html>
public/patients/views/create-patient.client.view.html
ronnyp07/eLap
<section data-ng-controller="PatientsCreateController as createCtrl" > <div class="modal-header"> <h3 class="modal-title">Nuevo Paciente</h3> </div> <div class="modal-body"> <form name="createPatientForm" id="createPatientForm"> <fieldset> <div class="row"> <div class="form-group"> <div data-ng-show="error" class="text-center text-danger ng-hide"> <div class="alert alert-danger" role="alert"> <strong data-ng-bind="error" class="ng-binding"></strong> </div> </div> </div> <div class="col-sm-6 text-center"> <div class="form-group"> <i class="glyphicon glyphicon-user cust-profile textPink" ng-class=""></i> </div> <!-- <div class="form-group"> <md-checkbox ng-model="data.cb1" aria-label="Checkbox 1" class="form-control"> Checkbox 1: </md-checkbox> </div> --> </div> <div class="col-sm-6"> <div class="form-group divmargin" > <label class="control-label" for="PatientCI">C.I.</label> <div class="controls"> <select data-ng-model="createCtrl.PatientCI.tipo" id="createCtrl.tipo" class="form-control" name="tipo" style=""><option value="" class="">-- Tipo Entidad --</option><option value="Cedula" label="">Cedula</option><option value="Pasaporte" label="">Pasaporte</option> <option value="RNC" label="">RNC</option></select> </div> <div class="controls"> <input type="text" data-ng-model="createCtrl.PatientCI.tipovalue" name="tipovalue" id="tipovalue" class="form-control" placeholder="ej. 000-000000-0" style=""> </div> <!-- <select ui-select2 ng-model="select2" data-placeholder="Pick a number" class="selec2Big"> <option value=""></option> <option value="one">First</option> <option value="two">Second</option> <option value="three">Third</option> </select> --> </div> <div class="form-group"> <label class="control-label" for="patientFirstName">Nombres</label> <div class="controls"> <input type="text" data-ng-model="createCtrl.patientFirstName" id="patientFirstName" name="patientFirstName" autocomplete="false" class="form-control"> </div> </div> <div class="form-group"> <label class="control-label" for="patientLastName">Apellidos</label> <div class="controls"> <input type="text" data-ng-model="createCtrl.patientLastName" data-ng-change="createCtrl.calculateAge" id="patientLastName" name="patientLastName" class="form-control"> </div> </div> <div class="form-group"> <label class="control-label" for="patientDOB"> Fecha de Nacimiento</label> <!-- <div class="controls"> <input type="text" data-ng-model="createCtrl.patientDOB" id="patientDOB" name="patientDOB" pattern="\d{1,2}-\d{1,2}-\d{4}" placeholder="dd-MM-yyyy" class="form-control"> </div> --> <div class="controls"> <input ui-date="dateOptions" name="patientDOB" data-ng-model="createCtrl.patientDOB" data-ng-change="createCtrl.calculateAge()" class="form-control"> </div> </div> </div> </div> <div class="row"> <div class="col-sm-6"> <div class="form-group"> <label class="control-label" for="patientEmal">Email</label> <div class="controls"> <input type="email" data-ng-model="createCtrl.patientEmail" id="patientEmail" name="patientEmail" class="form-control"> </div> </div> </div> <div class="col-sm-6"> <div class="form-group"> <label class="control-label" for="patientEdad" > Edad</label> <div class="controls"> <input type="number" data-ng-model="createCtrl.patientEdad" id="patientEdad" name="patientEdad" class="form-control" min="0" max="99" required> </div> </div> </div> </div> <div class="row"> <div class="col-sm-6 col-sm-push-6"> <div class="form-group"> <label class="control-label" for="patientpatientSexo">Sexo</label> <div class="controls"> <select data-ng-model="createCtrl.patientSexo" id="patientSexo" class="form-control" style=""><option value="" class="">-- Seleccione Sexo --</option><option value="Masculino" label="Masculino">Masculino</option><option value="Femenino" label="Femenino">Femenino</option></select> </div> </div> <div class="form-group"> <label class="control-label" for="patientEC">Estado Civil</label> <div class="controls"> <select data-ng-model="createCtrl.patientEC" id="patientEC" class="form-control" style=""><option value="" class="">-- Estado Civil--</option><option value="casado">Casado</option><option value="Soltero" >Soltero</option></select> </div> </div> <div class="form-group"> <label class="control-label" for="clientes">Aseguradora</label> <div class="controls"> <select data-ng-model="createCtrl.clientes" id="clientes" class="form-control" name="clientes" ng-options="value._id as value.name for value in createCtrl.cliente.results | filter: {tipo: 'A'}" > <option value="" class="">-- Selecione Seguro --</option> </select> </div> </div> <div class="form-group"> <label class="control-label" for="patientPolisa">Polisa</label> <div class="controls"> <input type="text" data-ng-model="createCtrl.patientPolisa" id="patientPolisa" name="patientPolisa" autocomplete="false" class="form-control"> </div> </div> <div class="form-group"> <label class="control-label" for="patientTelefono">Telefono</label> <div class="controls"> <input type="text" data-ng-model="createCtrl.patientTelefono" id="Telefono" name="patientTelefono" class="form-control"> </div> </div> </div> <div class="col-sm-6 col-sm-pull-6 "> <div class="form-group"> <label class="control-label" for="patientPais">Pais</label> <div class="controls"> <select data-ng-model="createCtrl.pais" data-ng-change="createCtrl.filterByCity()" id="pais" class="form-control" name="pais" ng-options="value._id as value.name for value in createCtrl.paisD" > <option value="" class="">-- Selecione Pais --</option> </select> </div> </div> <div class="form-group"> <label class="control-label" for="patientZona">Zona</label> <div class="controls"> <select data-ng-model="createCtrl.patientZona" id="patientZona" class="form-control" name="patientZona" ng-options="value._id as value.seguroNombre for value in seguros" > <option value="" class="">-- Selecione Zona --</option> </select> </div> </div> <div class="form-group"> <label class="control-label" for="patientCiudad">Ciudad</label> <div class="controls"> <select ui-select2 data-ng-model="createCtrl.patientCiudad" class="selec2Big" data-ng-change="createCtrl.filterSector()" data-placeholder="-- Selecione Ciudad --"> <option value=""></option> <option ng-repeat="value in createCtrl.ciudad | filter:createCtrl.patientPais " value="{{value._id}}">{{value.name}}</option> </select> </div> </div> <div class="form-group"> <label class="control-label" for="patientSector">Sector</label> <div class="controls"> <select data-ng-model="createCtrl.patientSector" id="patientSector" class="form-control" name="patientSector" ng-options="value._id as value.name for value in createCtrl.sector | filter : createCtrl.patientCiudad" > <option value="" class="">-- Selecione Sector --</option> </select> </div> </div> <div class="form-group"> <label class="control-label" for="patientDireccion">Direccion</label> <div class="controls"> <input type="text" data-ng-model="createCtrl.patientDireccion" id="patientDireccion" name="patientDireccion" class="form-control"> </div> </div> </div> </div> <div class="row"> <div class="col-sm-6"> </div> </div> </fieldset> </form> </div> <div class="modal-footer"> <button class="btn btn-success btn-lg" ng-click="createCtrl.create(); ok(); createCtrl.showPatientSave()" ng-disabled="createPatientForm.$invalid">Save &amp; Close</button> <button class="btn btn-warning btn-lg" ng-click="cancel()">Cancel</button> </div> </section>
html/nw/rns/basics/staticRouting.html
brunswyck/docu
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Static Routes &mdash; Patrick&#39;s Docuhub a documentation</title> <script type="text/javascript" src="../../../_static/js/modernizr.min.js"></script> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'../../../', VERSION:'a', LANGUAGE:'None', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt' }; </script> <script type="text/javascript" src="../../../_static/jquery.js"></script> <script type="text/javascript" src="../../../_static/underscore.js"></script> <script type="text/javascript" src="../../../_static/doctools.js"></script> <script type="text/javascript" src="../../../_static/js/custom.js"></script> <script type="text/javascript" src="../../../_static/js/theme.js"></script> <link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" /> <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" /> <link rel="index" title="Index" href="../../../genindex.html" /> <link rel="search" title="Search" href="../../../search.html" /> <link rel="next" title="Dynamic Routing" href="dynamicRouting.html" /> <link rel="prev" title="Routing Concepts" href="routingConcepts.html" /> <link href="../../../_static/mylayout.css" rel="stylesheet" type="text/css"> </head> <body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search" > <a href="../../../index.html" class="icon icon-home"> Patrick's Docuhub </a> <div class="version"> 2019-07-14 </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <p class="caption"><span class="caption-text">Contents:</span></p> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="../../../cheatsheets.html">cheatsheets</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../commands.html">commands</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../scripting.html">Scripting</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../diagrams.html">Diagrams in Sphinx</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../python.html">python</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../cumulocity.html">cumulocity</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../server.html">debian server</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../workstation.html">workstation</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../vim.html">VIM</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../git.html">GIT</a></li> <li class="toctree-l1 current"><a class="reference internal" href="../inhoud.html">Routing/Switching</a><ul class="current"> <li class="toctree-l2 current"><a class="reference internal" href="inhoud.html">basics</a><ul class="current"> <li class="toctree-l3"><a class="reference internal" href="connect2console.html">Connect to console</a></li> <li class="toctree-l3"><a class="reference internal" href="routingConcepts.html">Routing Concepts</a></li> <li class="toctree-l3 current"><a class="current reference internal" href="#">Static Routes</a><ul> <li class="toctree-l4"><a class="reference internal" href="#ipv4-syntax">ipv4 syntax</a></li> <li class="toctree-l4"><a class="reference internal" href="#combination-of-exit-interface-and-next-hop">combination of exit interface and next hop</a></li> <li class="toctree-l4"><a class="reference internal" href="#when-to-use-static-routes">When to Use Static Routes</a></li> <li class="toctree-l4"><a class="reference internal" href="#default-static-route">Default static route</a></li> <li class="toctree-l4"><a class="reference internal" href="#summary-static-route">Summary static route</a></li> <li class="toctree-l4"><a class="reference internal" href="#floating-static-route">Floating static route</a></li> <li class="toctree-l4"><a class="reference internal" href="#fully-specified-static-route">Fully Specified Static Route</a></li> <li class="toctree-l4"><a class="reference internal" href="#ipv6-static-routing">ipv6 static routing</a></li> <li class="toctree-l4"><a class="reference internal" href="#ipv6-default-static-route">ipv6 default static route</a></li> <li class="toctree-l4"><a class="reference internal" href="#verify-a-default-static-route">verify a default static route</a></li> <li class="toctree-l4"><a class="reference internal" href="#troubleshooting-a-missing-route">Troubleshooting a missing route</a></li> <li class="toctree-l4"><a class="reference internal" href="#solve-a-connectivity-problem">Solve a connectivity problem</a></li> </ul> </li> <li class="toctree-l3"><a class="reference internal" href="dynamicRouting.html">Dynamic Routing</a></li> <li class="toctree-l3"><a class="reference internal" href="switchedNetworks.html">switched networks</a></li> <li class="toctree-l3"><a class="reference internal" href="switchConfiguration.html">Switch Configuration</a></li> <li class="toctree-l3"><a class="reference internal" href="vlans.html">VLANS</a></li> <li class="toctree-l3"><a class="reference internal" href="acl.html">ACLs</a></li> <li class="toctree-l3"><a class="reference internal" href="dhcp.html">DHCP</a></li> <li class="toctree-l3"><a class="reference internal" href="nat.html">NAT</a></li> <li class="toctree-l3"><a class="reference internal" href="lldpAndLicensing.html">Device Discovery Management &amp; Maintenance</a></li> <li class="toctree-l3"><a class="reference internal" href="finals.html">routing n switching basics finals</a></li> </ul> </li> <li class="toctree-l2"><a class="reference internal" href="../sn/inhoud.html">scaling networks</a></li> <li class="toctree-l2"><a class="reference internal" href="../sdn/inhoud.html">Open Daylight</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../sdn/gns3server.html">Setting up a GNS3 server</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../storage/storage.html">Storage</a></li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../../../index.html">Patrick's Docuhub</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../../../index.html">Docs</a> &raquo;</li> <li><a href="../inhoud.html">Routing/Switching</a> &raquo;</li> <li><a href="inhoud.html">basics</a> &raquo;</li> <li>Static Routes</li> <li class="wy-breadcrumbs-aside"> <a href="../../../_sources/nw/rns/basics/staticRouting.rst.txt" rel="nofollow"> View page source</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="section" id="static-routes"> <h1>Static Routes<a class="headerlink" href="#static-routes" title="Permalink to this headline">¶</a></h1> <div class="section" id="ipv4-syntax"> <h2>ipv4 syntax<a class="headerlink" href="#ipv4-syntax" title="Permalink to this headline">¶</a></h2> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">Router</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># ip route network mask { next-hop-ip | exit-intf }</span> </pre></div> </div> <p>A static route is identified in the routing table with the code ‘S’.</p> <p>To configure an IPv4 default static route, use the following command:</p> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">Router</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># ip route 0.0.0.0 0.0.0.0 { exit-intf | next-hop-ip }</span> </pre></div> </div> </div> <div class="section" id="combination-of-exit-interface-and-next-hop"> <h2>combination of exit interface and next hop<a class="headerlink" href="#combination-of-exit-interface-and-next-hop" title="Permalink to this headline">¶</a></h2> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">R2</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># ip route 192.168.2.0 255.255.255.0 s0/0/1 192.168.1.1</span> </pre></div> </div> </div> <div class="section" id="when-to-use-static-routes"> <h2>When to Use Static Routes<a class="headerlink" href="#when-to-use-static-routes" title="Permalink to this headline">¶</a></h2> <p>Static routing has three primary uses:</p> <blockquote> <div><p># Providing ease of routing table maintenance in smaller networks that are not expected to grow significantly. # Routing to and from stub networks. A STUB NETWORK is a network accessed by a single route, and the router has ONLY ONE NEIGHBOR. # Using a single default route to represent a path to any network that does not have a more specific match with another route in the routing table.</p> <p>benefits:</p> <ul class="simple"> <li>Are not advertised over the network, resulting in better security</li> <li>Use less bandwidth than dynamic routing protocols</li> <li>Use known paths to send data</li> </ul> </div></blockquote> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">Default routes are used to send traffic to any destination beyond the next upstream router.</p> </div> <dl class="docutils"> <dt>Use static routes to…</dt> <dd><ul class="first last simple"> <li>Connect to a specific network</li> <li>Connect a stub router</li> <li>Summarize routing table entries</li> <li>Create a backup route</li> </ul> </dd> </dl> </div> <div class="section" id="default-static-route"> <h2>Default static route<a class="headerlink" href="#default-static-route" title="Permalink to this headline">¶</a></h2> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">ip</span> <span class="n">route</span> <span class="mf">0.0</span><span class="o">.</span><span class="mf">0.0</span> <span class="mf">0.0</span><span class="o">.</span><span class="mf">0.0</span> <span class="n">nexthopip</span> <span class="o">|</span> <span class="n">exitif</span> </pre></div> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">Default static routes are used when no other routes in the routing table match the packet destination IP address. In other words, when a more specific match does not exist. A common use is when connecting a company’s edge router to the ISP network. When a router has only one other router to which it is connected. In this situation, the router is known as a stub router.</p> </div> </div> <div class="section" id="summary-static-route"> <h2>Summary static route<a class="headerlink" href="#summary-static-route" title="Permalink to this headline">¶</a></h2> <p>Representing multiple networks</p> <p>172.20.0.0/16 172.21.0.0/16 172.22.0.0/16 172.23.0.0/16 as 172.20.0.0/14</p> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">ip</span> <span class="n">route</span> <span class="mf">172.20</span><span class="o">.</span><span class="mf">0.0</span> <span class="mf">255.252</span><span class="o">.</span><span class="mf">0.0</span> <span class="n">nexthopip</span> <span class="o">|</span> <span class="n">exitif</span> </pre></div> </div> </div> <div class="section" id="floating-static-route"> <h2>Floating static route<a class="headerlink" href="#floating-static-route" title="Permalink to this headline">¶</a></h2> <p>Another type of static route is a floating static route. Floating static routes are static routes that are <strong>used to provide a backup path to a primary static or dynamic route, in the event of a link failure.</strong></p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">The floating static route is only used when the primary route is not available.</p> </div> <p>To accomplish this, the floating static route is configured with a <strong>higher administrative distance than the primary route</strong>. The administrative distance represents the trustworthiness of a route. If multiple paths to the destination exist, the router will choose the path with the lowest administrative distance.</p> <p>The next hop can be identified by an IP address, exit interface, or both. How the destination is specified creates one of the three following route types:</p> <blockquote> <div><dl class="docutils"> <dt>Next-hop route</dt> <dd>Only the next-hop IP address is specified</dd> <dt>Directly connected static route</dt> <dd>Only the router exit interface is specified</dd> <dt>Fully specified static route</dt> <dd>The next-hop IP address and exit interface are specified</dd> </dl> </div></blockquote> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">ip</span> <span class="n">route</span> <span class="mf">172.16</span><span class="o">.</span><span class="mf">1.0</span> <span class="mf">255.255</span><span class="o">.</span><span class="mf">255.0</span> <span class="n">G0</span><span class="o">/</span><span class="mi">1</span> <span class="mf">172.16</span><span class="o">.</span><span class="mf">2.2</span> </pre></div> </div> </div> <div class="section" id="fully-specified-static-route"> <h2>Fully Specified Static Route<a class="headerlink" href="#fully-specified-static-route" title="Permalink to this headline">¶</a></h2> <p>In a fully specified static route, <strong>both the exit interface and the next-hop IP</strong> address are specified. This is another type of static route that is <em>used in older IOSs, prior to CEF.</em></p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">This form of static route is used when the exit interface is a multi-access interface and it is necessary to explicitly identify the next hop.</p> </div> <p>The next hop must be directly connected to the specified exit interface.</p> <div class="section" id="example"> <h3>example<a class="headerlink" href="#example" title="Permalink to this headline">¶</a></h3> <div class="highlight-html"><div class="highlight"><pre><span></span> PC2 | |_ 172.16.1.0/24 |__| | | G0/0|.1 _|__ (_R2_) S0/0/0 /.2 .2\ S0/0/1 / \ DCE 172.16.2.0/24/ \/\ / \ 192.168.1.0/24 .1/ \.1 __ /__S0/0/0 S0/0/1_\ __ PC1------|__|---------(_R1_) DCE (_R3_)-----|__|----PC3 G0/0 .1 .1 G0/0 172.16.3.0/24 192.168.2.0/24 </pre></div> </div> <p>Suppose that the network link between R1 and R2 is an Ethernet link and that the GigabitEthernet 0/1 interface of R1 is connected to that network, as shown in Figure 1. CEF is not enabled. To eliminate the recursive lookup,(map a next hop ip to what interface that is = if CEF not enabled) a directly connected static route can be implemented using the following command:</p> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">R1</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># ip route 192.168.2.0 255.255.255.0 GigabitEthernet 0/1</span> </pre></div> </div> <p>However, this may cause unexpected or inconsistent results. The difference between an Ethernet multi-access network and a point-to-point serial network is that a point-to-point serial network has only one other device on that network, the router at the other end of the link. With Ethernet networks, there may be many different devices sharing the same multi-access network, including hosts and even multiple routers. By only designating the Ethernet exit interface in the static route, the router will not have sufficient information to determine which device is the next-hop device.</p> <p>R1 knows that the packet needs to be encapsulated in an Ethernet frame and sent out the GigabitEthernet 0/1 interface. However, R1 does not know the next-hop IPv4 address; therefore, it cannot determine the destination MAC address for the Ethernet frame.</p> <p>Depending upon the topology and the configurations on other routers, this static route may or may not work. It is recommended that when the exit interface is an Ethernet network, that a fully specified static route is used, including both the exit interface and the next-hop address.</p> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">R3</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># ip route 172.16.1.0 255.255.255.0 s0/0/1 192.168.1.2</span> </pre></div> </div> <p>As shown in Figure 2, when forwarding packets to R2, the exit interface is GigabitEthernet 0/1 and the next-hop IPv4 address is 172.16.2.2.</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">With the use of CEF, a fully specified static route is no longer necessary. A static route using a next-hop address should be used.</p> </div> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">R1</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># ip route 0.0.0.0 0.0.0.0 172.16.2.2</span> <span class="n">R1</span><span class="c1">#show ip route static</span> <span class="n">R1</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1">#do show ip route static</span> <span class="mf">172.31</span><span class="o">.</span><span class="mf">0.0</span><span class="o">/</span><span class="mi">16</span> <span class="ow">is</span> <span class="n">variably</span> <span class="n">subnetted</span><span class="p">,</span> <span class="mi">7</span> <span class="n">subnets</span><span class="p">,</span> <span class="mi">5</span> <span class="n">masks</span> <span class="n">S</span> <span class="mf">172.31</span><span class="o">.</span><span class="mf">0.0</span><span class="o">/</span><span class="mi">24</span> <span class="p">[</span><span class="mi">1</span><span class="o">/</span><span class="mi">0</span><span class="p">]</span> <span class="n">via</span> <span class="mf">172.31</span><span class="o">.</span><span class="mf">1.193</span> <span class="n">S</span> <span class="mf">172.31</span><span class="o">.</span><span class="mf">1.128</span><span class="o">/</span><span class="mi">26</span> <span class="p">[</span><span class="mi">1</span><span class="o">/</span><span class="mi">0</span><span class="p">]</span> <span class="n">via</span> <span class="mf">172.31</span><span class="o">.</span><span class="mf">1.193</span> <span class="n">S</span> <span class="mf">172.31</span><span class="o">.</span><span class="mf">1.196</span><span class="o">/</span><span class="mi">30</span> <span class="p">[</span><span class="mi">1</span><span class="o">/</span><span class="mi">0</span><span class="p">]</span> <span class="n">via</span> <span class="mf">172.31</span><span class="o">.</span><span class="mf">1.193</span> <span class="n">R2</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1">#ip route 172.31.1.0 255.255.255.128 S0/0/0</span> <span class="o">%</span><span class="n">Default</span> <span class="n">route</span> <span class="n">without</span> <span class="n">gateway</span><span class="p">,</span> <span class="k">if</span> <span class="ow">not</span> <span class="n">a</span> <span class="n">point</span><span class="o">-</span><span class="n">to</span><span class="o">-</span><span class="n">point</span> <span class="n">interface</span><span class="p">,</span> <span class="n">may</span> <span class="n">impact</span> <span class="n">performance</span> <span class="n">R2</span><span class="c1">#show ip route ?</span> <span class="n">WORD</span> <span class="n">Network</span> <span class="n">to</span> <span class="n">display</span> <span class="n">information</span> <span class="n">about</span> <span class="ow">or</span> <span class="n">hostname</span> <span class="n">bgp</span> <span class="n">Border</span> <span class="n">Gateway</span> <span class="n">Protocol</span> <span class="p">(</span><span class="n">BGP</span><span class="p">)</span> <span class="n">connected</span> <span class="n">Connected</span> <span class="n">eigrp</span> <span class="n">Enhanced</span> <span class="n">Interior</span> <span class="n">Routing</span> <span class="n">Protocol</span> <span class="p">(</span><span class="n">EIGRP</span><span class="p">)</span> <span class="n">ospf</span> <span class="n">Open</span> <span class="n">Shortest</span> <span class="n">Path</span> <span class="n">First</span> <span class="p">(</span><span class="n">OSPF</span><span class="p">)</span> <span class="n">rip</span> <span class="n">Routing</span> <span class="n">Information</span> <span class="n">Protocol</span> <span class="p">(</span><span class="n">RIP</span><span class="p">)</span> <span class="n">static</span> <span class="n">Static</span> <span class="n">routes</span> <span class="n">summary</span> <span class="n">Summary</span> <span class="n">of</span> <span class="nb">all</span> <span class="n">routes</span> <span class="o">|</span> <span class="n">Output</span> <span class="n">Modifiers</span> <span class="o">&lt;</span><span class="n">cr</span><span class="o">&gt;</span> <span class="n">R2</span><span class="c1">#show ip route connected</span> <span class="n">C</span> <span class="mf">172.31</span><span class="o">.</span><span class="mf">0.0</span><span class="o">/</span><span class="mi">24</span> <span class="ow">is</span> <span class="n">directly</span> <span class="n">connected</span><span class="p">,</span> <span class="n">GigabitEthernet0</span><span class="o">/</span><span class="mi">0</span> <span class="n">C</span> <span class="mf">172.31</span><span class="o">.</span><span class="mf">1.192</span><span class="o">/</span><span class="mi">30</span> <span class="ow">is</span> <span class="n">directly</span> <span class="n">connected</span><span class="p">,</span> <span class="n">Serial0</span><span class="o">/</span><span class="mi">0</span><span class="o">/</span><span class="mi">0</span> <span class="n">C</span> <span class="mf">172.31</span><span class="o">.</span><span class="mf">1.196</span><span class="o">/</span><span class="mi">30</span> <span class="ow">is</span> <span class="n">directly</span> <span class="n">connected</span><span class="p">,</span> <span class="n">Serial0</span><span class="o">/</span><span class="mi">0</span><span class="o">/</span><span class="mi">1</span> <span class="n">R3</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1">#ip route 0.0.0.0 0.0.0.0 Serial 0/0/1</span> <span class="o">%</span><span class="n">Default</span> <span class="n">route</span> <span class="n">without</span> <span class="n">gateway</span><span class="p">,</span> <span class="k">if</span> <span class="ow">not</span> <span class="n">a</span> <span class="n">point</span><span class="o">-</span><span class="n">to</span><span class="o">-</span><span class="n">point</span> <span class="n">interface</span><span class="p">,</span> <span class="n">may</span> <span class="n">impact</span> <span class="n">performance</span> <span class="n">R3</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1">#</span> </pre></div> </div> </div> </div> <div class="section" id="ipv6-static-routing"> <h2>ipv6 static routing<a class="headerlink" href="#ipv6-static-routing" title="Permalink to this headline">¶</a></h2> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">R1</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># ipv6 unicast-routing</span> <span class="n">R1</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># show ipv6 route</span> <span class="n">R1</span><span class="c1">#ping ipv6 2001.DB8:ACAD:4::2</span> <span class="n">R1</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># ipv6 route 2001.DB8:ACAD:2::/64 2001.DB8:ACAD:4::2</span> <span class="n">R1</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># show ipv6 route</span> </pre></div> </div> <p>As with IPv4, before any packet is forwarded by the router, the routing table process must resolve the route to determine the exit interface to use to forward the packet. The route resolvability process will vary depending upon the type of forwarding mechanism being used by the router. CEF (Cisco Express Forwarding) is the default behavior on most platforms running IOS 12.0 or later.</p> <p>When a packet is destined for the 2001:DB8:ACAD:3::/64 network, R1:</p> <blockquote> <div><ol class="arabic simple"> <li>Looks for a match in the routing table and finds that it has to forward the packets to the next-hop IPv6 address 2001:DB8:ACAD:4::2. Every route that references only a next-hop IPv6 address and does not reference an exit interface must have the next-hop IPv6 address resolved using another route in the routing table with an exit interface.</li> <li>R1 must now determine how to reach 2001:DB8:ACAD:4::2; therefore, it searches a second time looking for a match. In this case, the IPv6 address matches the route for the directly connected network 2001:DB8:ACAD:4::/64 with the exit interface Serial 0/0/0. This lookup tells the routing table process that this packet is forwarded out of that interface.</li> </ol> </div></blockquote> <div class="admonition warning"> <p class="first admonition-title">Warning</p> <p class="last">Therefore, it actually takes two routing table lookup processes to forward any packet to the 2001:DB8:ACAD:3::/64 network. When the router has to perform multiple lookups in the routing table before forwarding a packet, it is performing a process known as a recursive lookup.</p> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">A recursive static IPv6 route is valid (that is, it is a candidate for insertion in the routing table) only when the specified next hop resolves, either directly or indirectly, to a valid exit interface.</p> </div> </div> <div class="section" id="ipv6-default-static-route"> <h2>ipv6 default static route<a class="headerlink" href="#ipv6-default-static-route" title="Permalink to this headline">¶</a></h2> <div class="highlight-html"><div class="highlight"><pre><span></span> PC2 | |_ 2001:db8:acad:2::/64 |__| | | G0/0|:1 _|__ (_R2_) S0/0/0 /2 :2\ S0/0/1 / \ DCE / \/\ 2001:db8:acad:4::/64 / \ 2001:db8:acad:5::/64 :1/ \:1 __ /__S0/0/0 S0/0/1_\ __ PC1-----|__|---------(_R1_) DCE (_R3_)-----|__|----PC3 G0/0 :1 :1 G0/0 2001:db8:acad:1::/64 2001:db8:acad:3::/64 </pre></div> </div> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">R1</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># ipv6 route ::/0 s0/0/0</span> </pre></div> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">The ‘S’ signifies that the route source is a static route. Unlike the IPv4 static route, there is no asterisk (*) or Gateway of Last Resort explicitly identified.</p> </div> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">ipv6</span> <span class="n">route</span> <span class="n">ipv6</span><span class="o">-</span><span class="n">prefix</span><span class="o">/</span><span class="n">prefix</span><span class="o">-</span><span class="n">length</span> <span class="p">{</span><span class="n">ipv6</span><span class="o">-</span><span class="n">address</span><span class="o">|</span><span class="n">interface</span><span class="o">-</span><span class="nb">type</span> <span class="n">interface</span><span class="o">-</span><span class="n">number</span><span class="p">}</span> <span class="o">-</span> <span class="n">R2</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># ipv6 route 2001:0DB8:ACAD:1::/64 2001:0DB8:ACAD:3::1</span> <span class="n">R2</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># ipv6 route 2001:0DB8:ACAD:2::/64 s0/0/0</span> </pre></div> </div> <p>Router is only connected to R2 = stub router = default static route</p> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">R1</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1">#ipv6 route ::/0 2001:DB8:ACAD:4::2</span> </pre></div> </div> </div> <div class="section" id="verify-a-default-static-route"> <h2>verify a default static route<a class="headerlink" href="#verify-a-default-static-route" title="Permalink to this headline">¶</a></h2> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">R1</span><span class="c1"># show ipv6 route static</span> <span class="n">R1</span><span class="c1"># ping 2001:DB8:ACAD:4::2 source 2001:DB8:ACAD:1::2</span> </pre></div> </div> </div> <div class="section" id="troubleshooting-a-missing-route"> <h2>Troubleshooting a missing route<a class="headerlink" href="#troubleshooting-a-missing-route" title="Permalink to this headline">¶</a></h2> <blockquote> <div><ol class="arabic simple"> <li>ping</li> <li>traceroute</li> <li>show ip route</li> <li>show ip interface brief</li> <li>show cdp neighbors detail</li> </ol> </div></blockquote> </div> <div class="section" id="solve-a-connectivity-problem"> <h2>Solve a connectivity problem<a class="headerlink" href="#solve-a-connectivity-problem" title="Permalink to this headline">¶</a></h2> <blockquote> <div><ol class="arabic simple"> <li>ping 192.168.2.1 source g0/0</li> <li>traceroute 192.168.2.1</li> <li>show ip route | begin Gateway</li> <li>show running-config | section ip route</li> </ol> </div></blockquote> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">In a recursive static route, only the next-hop IPv6 address is specified. As a consequence, the router must perform a recursive route table lookup to find an exit interface associated with the network of the IPv6 address.</p> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">To test a floating static route, take down the main route/link in order to see whether the backup link appears in the routing table.</p> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">When a static route is to be configured via the next-hop IP address, the IP address of the interface of the next router in the path to the destination is used.</p> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p>An example of a floating static route used in conjunction with the EIGRP routing protocol would be as follows.</p> <div class="code highlight-default"><div class="highlight"><pre><span></span><span class="n">R1</span><span class="p">(</span><span class="n">config</span><span class="p">)</span><span class="c1"># ip route 192.168.10.0 255.255.255.0 95</span> </pre></div> </div> <p class="last">Notice the extra number at the end of the static route. This route only appears in the routing table if the EIGRP-learned route with an administrative distance of 90 went down. That floating static route cannot appear in the routing table when a route with a better administrative distance exists.</p> </div> </div> </div> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="dynamicRouting.html" class="btn btn-neutral float-right" title="Dynamic Routing" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a> <a href="routingConcepts.html" class="btn btn-neutral float-left" title="Routing Concepts" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> &copy; Copyright 2019, Patrick Brunswyck </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); </script> </body> </html>
public/css/normalize.css
chiichuy/pininos
html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%} body{margin:0} article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block} audio,canvas,progress,video{display:inline-block;vertical-align:baseline} audio:not([controls]){display:none;height:0} [hidden],template{display:none} a{background:0 0} a:active,a:hover{outline:0} abbr[title]{border-bottom:1px dotted} b,strong{font-weight:700} dfn{font-style:italic} h1{font-size:2em;margin:.67em 0} mark{background:#ff0;color:#000} small{font-size:80%} sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline} sup{top:-.5em} sub{bottom:-.25em} img{border:0} svg:not(:root){overflow:hidden} figure{margin:1em 40px} hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0} pre{overflow:auto} code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em} button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0} button{overflow:visible} button,select{text-transform:none} button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer} button[disabled],html input[disabled]{cursor:default} button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0} input{line-height:normal} input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0} input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto} input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box} input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none} fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em} legend{border:0;padding:0} textarea{overflow:auto} optgroup{font-weight:700} table{border-collapse:collapse;border-spacing:0} td,th{padding:0}