Move extensions/cronet to libraries/datasource_cronet
See go/media-apis-codebase-google3. PiperOrigin-RevId: 369425137
This commit is contained in:
parent
f66bdc71a0
commit
8fbe11aa54
13
docs/gh-pages/_sass/common/classes/_animation.scss
Normal file
13
docs/gh-pages/_sass/common/classes/_animation.scss
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
@mixin animation($value) {
|
||||||
|
-webkit-animation: $value;
|
||||||
|
animation: $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin keyframes($name) {
|
||||||
|
@-webkit-keyframes #{$name} {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
@keyframes #{$name} {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
19
docs/gh-pages/_sass/common/classes/_clearfix.scss
Normal file
19
docs/gh-pages/_sass/common/classes/_clearfix.scss
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
@mixin clearfix() {
|
||||||
|
&::after {
|
||||||
|
display: table;
|
||||||
|
clear: both;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.clearfix {
|
||||||
|
@include clearfix();
|
||||||
|
}
|
||||||
|
|
||||||
|
.left {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
float: right;
|
||||||
|
}
|
159
docs/gh-pages/_sass/common/classes/_clickable.scss
Normal file
159
docs/gh-pages/_sass/common/classes/_clickable.scss
Normal file
@ -0,0 +1,159 @@
|
|||||||
|
@mixin clickable($clr, $bg-clr, $hover-clr: default, $hover-bg-clr: default, $active-clr: default, $active-bg-clr: default, $focus-clr: default, $focus-bg-clr: default, $theme: default, $ignore-path: default) {
|
||||||
|
|
||||||
|
@if $theme == default {
|
||||||
|
@if $bg-clr == null and $hover-bg-clr == null {
|
||||||
|
@if $hover-clr == default {
|
||||||
|
$theme: get-color-theme($clr);
|
||||||
|
} @else {
|
||||||
|
$theme: get-color-theme($hover-clr);
|
||||||
|
}
|
||||||
|
} @else {
|
||||||
|
@if $hover-bg-clr == default {
|
||||||
|
$theme: get-color-theme($bg-clr);
|
||||||
|
} @else {
|
||||||
|
$theme: get-color-theme($hover-bg-clr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@if $ignore-path == default {
|
||||||
|
$ignore-path: false;
|
||||||
|
} @else {
|
||||||
|
$ignore-path: true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include transition(map-get($clickable, transition));
|
||||||
|
@if $ignore-path == false {
|
||||||
|
svg {
|
||||||
|
path {
|
||||||
|
@include transition(map-get($clickable, transition));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// hover
|
||||||
|
@if $hover-clr == default {
|
||||||
|
@if $hover-bg-clr == null {
|
||||||
|
@if $theme == "light" {
|
||||||
|
$hover-clr: darken($clr, 14%);
|
||||||
|
}
|
||||||
|
@if $theme == "dark" {
|
||||||
|
$hover-clr: lighten($clr, 18%);
|
||||||
|
}
|
||||||
|
} @else if $hover-bg-clr == default {
|
||||||
|
$hover-clr: $clr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@if $hover-bg-clr == default {
|
||||||
|
@if $theme == "light" {
|
||||||
|
$hover-bg-clr: darken($bg-clr, 14%);
|
||||||
|
}
|
||||||
|
@if $theme == "dark" {
|
||||||
|
$hover-bg-clr: lighten($bg-clr, 18%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// active
|
||||||
|
@if $active-clr == default {
|
||||||
|
@if $active-bg-clr == null {
|
||||||
|
@if $theme == "light" {
|
||||||
|
$active-clr: darken($hover-clr, 15%);
|
||||||
|
}
|
||||||
|
@if $theme == "dark" {
|
||||||
|
$active-clr: lighten($hover-clr, 16%);
|
||||||
|
}
|
||||||
|
} @else if $active-bg-clr == default {
|
||||||
|
$active-clr: $hover-clr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@if $active-bg-clr == default {
|
||||||
|
@if $theme == "light" {
|
||||||
|
$active-bg-clr: darken($hover-bg-clr, 15%);
|
||||||
|
}
|
||||||
|
@if $theme == "dark" {
|
||||||
|
$active-bg-clr: lighten($hover-bg-clr, 16%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// focus
|
||||||
|
@if $focus-clr == default {
|
||||||
|
@if $focus-bg-clr == null {
|
||||||
|
$focus-clr: $hover-clr;
|
||||||
|
} @else if $hover-bg-clr == default {
|
||||||
|
$focus-clr: $hover-clr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@if $focus-bg-clr == default {
|
||||||
|
$focus-bg-clr: $hover-bg-clr;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include plain() {
|
||||||
|
color: $clr;
|
||||||
|
@if $bg-clr {
|
||||||
|
background-color: $bg-clr;
|
||||||
|
}
|
||||||
|
@if $ignore-path == false {
|
||||||
|
svg path {
|
||||||
|
fill: $clr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@include hover() {
|
||||||
|
color: $hover-clr;
|
||||||
|
@if $hover-bg-clr {
|
||||||
|
background-color: $hover-bg-clr;
|
||||||
|
}
|
||||||
|
@if $ignore-path == false {
|
||||||
|
svg path {
|
||||||
|
fill: $hover-clr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@include active() {
|
||||||
|
color: $active-clr;
|
||||||
|
@if $active-bg-clr {
|
||||||
|
background-color: $active-bg-clr;
|
||||||
|
}
|
||||||
|
@if $ignore-path == false {
|
||||||
|
svg path {
|
||||||
|
fill: $active-clr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@include focus() {
|
||||||
|
color: $focus-clr;
|
||||||
|
@if $focus-bg-clr{
|
||||||
|
background-color: $focus-bg-clr;
|
||||||
|
box-shadow: 0 0 0 2px rgba($focus-bg-clr, .4);
|
||||||
|
}
|
||||||
|
@if $ignore-path == false {
|
||||||
|
svg path {
|
||||||
|
fill: $focus-clr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@include disabled() {
|
||||||
|
@if $theme == "light" {
|
||||||
|
color: rgba($clr, .2) !important;
|
||||||
|
}
|
||||||
|
@if $theme == "dark" {
|
||||||
|
color: rgba($clr, .4) !important;
|
||||||
|
}
|
||||||
|
@if $bg-clr {
|
||||||
|
background-color: $bg-clr !important;
|
||||||
|
}
|
||||||
|
@if $ignore-path == false {
|
||||||
|
svg path {
|
||||||
|
@if $theme == "light" {
|
||||||
|
fill: rgba($clr, .2) !important;
|
||||||
|
}
|
||||||
|
@if $theme == "dark" {
|
||||||
|
fill: rgba($clr, .4) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
14
docs/gh-pages/_sass/common/classes/_display.scss
Normal file
14
docs/gh-pages/_sass/common/classes/_display.scss
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
@each $breakpoint in map-keys($responsive) {
|
||||||
|
@include media-breakpoint-up($breakpoint) {
|
||||||
|
.d-#{breakpoint-infix($breakpoint)}none {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.d-print-none {
|
||||||
|
@media print {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
394
docs/gh-pages/_sass/common/classes/_flex.scss
Normal file
394
docs/gh-pages/_sass/common/classes/_flex.scss
Normal file
@ -0,0 +1,394 @@
|
|||||||
|
// Flexbox Mixins
|
||||||
|
// http://philipwalton.github.io/solved-by-flexbox/
|
||||||
|
// https://github.com/philipwalton/solved-by-flexbox
|
||||||
|
//
|
||||||
|
// Copyright (c) 2013 Brian Franco
|
||||||
|
//
|
||||||
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
// copy of this software and associated documentation files (the
|
||||||
|
// "Software"), to deal in the Software without restriction, including
|
||||||
|
// without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
// permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
// the following conditions:
|
||||||
|
// The above copyright notice and this permission notice shall be included
|
||||||
|
// in all copies or substantial portions of the Software.
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
//
|
||||||
|
// This is a set of mixins for those who want to mess around with flexbox
|
||||||
|
// using the native support of current browsers. For full support table
|
||||||
|
// check: http://caniuse.com/flexbox
|
||||||
|
//
|
||||||
|
// Basically this will use:
|
||||||
|
//
|
||||||
|
// * Fallback, old syntax (IE10, mobile webkit browsers - no wrapping)
|
||||||
|
// * Final standards syntax (FF, Safari, Chrome, IE11, Opera)
|
||||||
|
//
|
||||||
|
// This was inspired by:
|
||||||
|
//
|
||||||
|
// * http://dev.opera.com/articles/view/advanced-cross-browser-flexbox/
|
||||||
|
//
|
||||||
|
// With help from:
|
||||||
|
//
|
||||||
|
// * http://w3.org/tr/css3-flexbox/
|
||||||
|
// * http://the-echoplex.net/flexyboxes/
|
||||||
|
// * http://msdn.microsoft.com/en-us/library/ie/hh772069(v=vs.85).aspx
|
||||||
|
// * http://css-tricks.com/using-flexbox/
|
||||||
|
// * http://dev.opera.com/articles/view/advanced-cross-browser-flexbox/
|
||||||
|
// * https://developer.mozilla.org/en-us/docs/web/guide/css/flexible_boxes
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Flexbox Containers
|
||||||
|
//
|
||||||
|
// The 'flex' value causes an element to generate a block-level flex
|
||||||
|
// container box.
|
||||||
|
//
|
||||||
|
// The 'inline-flex' value causes an element to generate a inline-level
|
||||||
|
// flex container box.
|
||||||
|
//
|
||||||
|
// display: flex | inline-flex
|
||||||
|
//
|
||||||
|
// http://w3.org/tr/css3-flexbox/#flex-containers
|
||||||
|
//
|
||||||
|
// (Placeholder selectors for each type, for those who rather @extend)
|
||||||
|
|
||||||
|
@mixin flexbox {
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -moz-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
%flexbox { @include flexbox; }
|
||||||
|
|
||||||
|
//----------------------------------
|
||||||
|
|
||||||
|
@mixin inline-flex {
|
||||||
|
display: -webkit-inline-box;
|
||||||
|
display: -webkit-inline-flex;
|
||||||
|
display: -moz-inline-flex;
|
||||||
|
display: -ms-inline-flexbox;
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
%inline-flex { @include inline-flex; }
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Flexbox Direction
|
||||||
|
//
|
||||||
|
// The 'flex-direction' property specifies how flex items are placed in
|
||||||
|
// the flex container, by setting the direction of the flex container's
|
||||||
|
// main axis. This determines the direction that flex items are laid out in.
|
||||||
|
//
|
||||||
|
// Values: row | row-reverse | column | column-reverse
|
||||||
|
// Default: row
|
||||||
|
//
|
||||||
|
// http://w3.org/tr/css3-flexbox/#flex-direction-property
|
||||||
|
|
||||||
|
@mixin flex-direction($value: row) {
|
||||||
|
@if $value == row-reverse {
|
||||||
|
-webkit-box-direction: reverse;
|
||||||
|
-webkit-box-orient: horizontal;
|
||||||
|
} @else if $value == column {
|
||||||
|
-webkit-box-direction: normal;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
} @else if $value == column-reverse {
|
||||||
|
-webkit-box-direction: reverse;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
} @else {
|
||||||
|
-webkit-box-direction: normal;
|
||||||
|
-webkit-box-orient: horizontal;
|
||||||
|
}
|
||||||
|
-webkit-flex-direction: $value;
|
||||||
|
-moz-flex-direction: $value;
|
||||||
|
-ms-flex-direction: $value;
|
||||||
|
flex-direction: $value;
|
||||||
|
}
|
||||||
|
// Shorter version:
|
||||||
|
@mixin flex-dir($args...) { @include flex-direction($args...); }
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Flexbox Wrap
|
||||||
|
//
|
||||||
|
// The 'flex-wrap' property controls whether the flex container is single-line
|
||||||
|
// or multi-line, and the direction of the cross-axis, which determines
|
||||||
|
// the direction new lines are stacked in.
|
||||||
|
//
|
||||||
|
// Values: nowrap | wrap | wrap-reverse
|
||||||
|
// Default: nowrap
|
||||||
|
//
|
||||||
|
// http://w3.org/tr/css3-flexbox/#flex-wrap-property
|
||||||
|
|
||||||
|
@mixin flex-wrap($value: nowrap) {
|
||||||
|
// No Webkit Box fallback.
|
||||||
|
-webkit-flex-wrap: $value;
|
||||||
|
-moz-flex-wrap: $value;
|
||||||
|
@if $value == nowrap {
|
||||||
|
-ms-flex-wrap: none;
|
||||||
|
} @else {
|
||||||
|
-ms-flex-wrap: $value;
|
||||||
|
}
|
||||||
|
flex-wrap: $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Flexbox Flow (shorthand)
|
||||||
|
//
|
||||||
|
// The 'flex-flow' property is a shorthand for setting the 'flex-direction'
|
||||||
|
// and 'flex-wrap' properties, which together define the flex container's
|
||||||
|
// main and cross axes.
|
||||||
|
//
|
||||||
|
// Values: <flex-direction> | <flex-wrap>
|
||||||
|
// Default: row nowrap
|
||||||
|
//
|
||||||
|
// http://w3.org/tr/css3-flexbox/#flex-flow-property
|
||||||
|
|
||||||
|
@mixin flex-flow($values: (row nowrap)) {
|
||||||
|
// No Webkit Box fallback.
|
||||||
|
-webkit-flex-flow: $values;
|
||||||
|
-moz-flex-flow: $values;
|
||||||
|
-ms-flex-flow: $values;
|
||||||
|
flex-flow: $values;
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Flexbox Order
|
||||||
|
//
|
||||||
|
// The 'order' property controls the order in which flex items appear within
|
||||||
|
// their flex container, by assigning them to ordinal groups.
|
||||||
|
//
|
||||||
|
// Default: 0
|
||||||
|
//
|
||||||
|
// http://w3.org/tr/css3-flexbox/#order-property
|
||||||
|
|
||||||
|
@mixin order($int: 0) {
|
||||||
|
-ms-flex-order: $int;
|
||||||
|
-webkit-order: $int;
|
||||||
|
-moz-order: $int;
|
||||||
|
order: $int;
|
||||||
|
-webkit-box-ordinal-group: $int + 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Flexbox Grow
|
||||||
|
//
|
||||||
|
// The 'flex-grow' property sets the flex grow factor. Negative numbers
|
||||||
|
// are invalid.
|
||||||
|
//
|
||||||
|
// Default: 0
|
||||||
|
//
|
||||||
|
// http://w3.org/tr/css3-flexbox/#flex-grow-property
|
||||||
|
|
||||||
|
@mixin flex-grow($int: 0) {
|
||||||
|
-webkit-box-flex: $int;
|
||||||
|
-webkit-flex-grow: $int;
|
||||||
|
-moz-flex-grow: $int;
|
||||||
|
-ms-flex-positive: $int;
|
||||||
|
flex-grow: $int;
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Flexbox Shrink
|
||||||
|
//
|
||||||
|
// The 'flex-shrink' property sets the flex shrink factor. Negative numbers
|
||||||
|
// are invalid.
|
||||||
|
//
|
||||||
|
// Default: 1
|
||||||
|
//
|
||||||
|
// http://w3.org/tr/css3-flexbox/#flex-shrink-property
|
||||||
|
|
||||||
|
@mixin flex-shrink($int: 1) {
|
||||||
|
-webkit-flex-shrink: $int;
|
||||||
|
-moz-flex-shrink: $int;
|
||||||
|
-ms-flex-negative: $int;
|
||||||
|
flex-shrink: $int;
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Flexbox Basis
|
||||||
|
//
|
||||||
|
// The 'flex-basis' property sets the flex basis. Negative lengths are invalid.
|
||||||
|
//
|
||||||
|
// Values: Like "width"
|
||||||
|
// Default: auto
|
||||||
|
//
|
||||||
|
// http://www.w3.org/TR/css3-flexbox/#flex-basis-property
|
||||||
|
|
||||||
|
@mixin flex-basis($value: auto) {
|
||||||
|
-webkit-flex-basis: $value;
|
||||||
|
-moz-flex-basis: $value;
|
||||||
|
-ms-flex-preferred-size: $value;
|
||||||
|
flex-basis: $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Flexbox "Flex" (shorthand)
|
||||||
|
//
|
||||||
|
// The 'flex' property specifies the components of a flexible length: the
|
||||||
|
// flex grow factor and flex shrink factor, and the flex basis. When an
|
||||||
|
// element is a flex item, 'flex' is consulted instead of the main size
|
||||||
|
// property to determine the main size of the element. If an element is
|
||||||
|
// not a flex item, 'flex' has no effect.
|
||||||
|
//
|
||||||
|
// Values: none | <flex-grow> <flex-shrink> || <flex-basis>
|
||||||
|
// Default: See individual properties (1 1 0).
|
||||||
|
//
|
||||||
|
// http://w3.org/tr/css3-flexbox/#flex-property
|
||||||
|
|
||||||
|
@mixin flex($fg: 1, $fs: null, $fb: null) {
|
||||||
|
|
||||||
|
// Set a variable to be used by box-flex properties
|
||||||
|
$fg-boxflex: $fg;
|
||||||
|
|
||||||
|
// Box-Flex only supports a flex-grow value so let's grab the
|
||||||
|
// first item in the list and just return that.
|
||||||
|
@if type-of($fg) == "list" {
|
||||||
|
$fg-boxflex: nth($fg, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
-webkit-box-flex: $fg-boxflex;
|
||||||
|
-webkit-flex: $fg $fs $fb;
|
||||||
|
-moz-box-flex: $fg-boxflex;
|
||||||
|
-moz-flex: $fg $fs $fb;
|
||||||
|
-ms-flex: $fg $fs $fb;
|
||||||
|
flex: $fg $fs $fb;
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Flexbox Justify Content
|
||||||
|
//
|
||||||
|
// The 'justify-content' property aligns flex items along the main axis
|
||||||
|
// of the current line of the flex container. This is done after any flexible
|
||||||
|
// lengths and any auto margins have been resolved. Typically it helps distribute
|
||||||
|
// extra free space leftover when either all the flex items on a line are
|
||||||
|
// inflexible, or are flexible but have reached their maximum size. It also
|
||||||
|
// exerts some control over the alignment of items when they overflow the line.
|
||||||
|
//
|
||||||
|
// Note: 'space-*' values not supported in older syntaxes.
|
||||||
|
//
|
||||||
|
// Values: flex-start | flex-end | center | space-between | space-around
|
||||||
|
// Default: flex-start
|
||||||
|
//
|
||||||
|
// http://w3.org/tr/css3-flexbox/#justify-content-property
|
||||||
|
|
||||||
|
@mixin justify-content($value: flex-start) {
|
||||||
|
@if $value == flex-start {
|
||||||
|
-webkit-box-pack: start;
|
||||||
|
-ms-flex-pack: start;
|
||||||
|
} @else if $value == flex-end {
|
||||||
|
-webkit-box-pack: end;
|
||||||
|
-ms-flex-pack: end;
|
||||||
|
} @else if $value == space-between {
|
||||||
|
-webkit-box-pack: justify;
|
||||||
|
-ms-flex-pack: justify;
|
||||||
|
} @else if $value == space-around {
|
||||||
|
-ms-flex-pack: distribute;
|
||||||
|
} @else {
|
||||||
|
-webkit-box-pack: $value;
|
||||||
|
-ms-flex-pack: $value;
|
||||||
|
}
|
||||||
|
-webkit-justify-content: $value;
|
||||||
|
-moz-justify-content: $value;
|
||||||
|
justify-content: $value;
|
||||||
|
}
|
||||||
|
// Shorter version:
|
||||||
|
@mixin flex-just($args...) { @include justify-content($args...); }
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Flexbox Align Items
|
||||||
|
//
|
||||||
|
// Flex items can be aligned in the cross axis of the current line of the
|
||||||
|
// flex container, similar to 'justify-content' but in the perpendicular
|
||||||
|
// direction. 'align-items' sets the default alignment for all of the flex
|
||||||
|
// container's items, including anonymous flex items. 'align-self' allows
|
||||||
|
// this default alignment to be overridden for individual flex items. (For
|
||||||
|
// anonymous flex items, 'align-self' always matches the value of 'align-items'
|
||||||
|
// on their associated flex container.)
|
||||||
|
//
|
||||||
|
// Values: flex-start | flex-end | center | baseline | stretch
|
||||||
|
// Default: stretch
|
||||||
|
//
|
||||||
|
// http://w3.org/tr/css3-flexbox/#align-items-property
|
||||||
|
|
||||||
|
@mixin align-items($value: stretch) {
|
||||||
|
@if $value == flex-start {
|
||||||
|
-webkit-box-align: start;
|
||||||
|
-ms-flex-align: start;
|
||||||
|
} @else if $value == flex-end {
|
||||||
|
-webkit-box-align: end;
|
||||||
|
-ms-flex-align: end;
|
||||||
|
} @else {
|
||||||
|
-webkit-box-align: $value;
|
||||||
|
-ms-flex-align: $value;
|
||||||
|
}
|
||||||
|
-webkit-align-items: $value;
|
||||||
|
-moz-align-items: $value;
|
||||||
|
align-items: $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------
|
||||||
|
|
||||||
|
// Flexbox Align Self
|
||||||
|
//
|
||||||
|
// Values: auto | flex-start | flex-end | center | baseline | stretch
|
||||||
|
// Default: auto
|
||||||
|
|
||||||
|
@mixin align-self($value: auto) {
|
||||||
|
// No Webkit Box Fallback.
|
||||||
|
-webkit-align-self: $value;
|
||||||
|
-moz-align-self: $value;
|
||||||
|
@if $value == flex-start {
|
||||||
|
-ms-flex-item-align: start;
|
||||||
|
} @else if $value == flex-end {
|
||||||
|
-ms-flex-item-align: end;
|
||||||
|
} @else {
|
||||||
|
-ms-flex-item-align: $value;
|
||||||
|
}
|
||||||
|
align-self: $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Flexbox Align Content
|
||||||
|
//
|
||||||
|
// The 'align-content' property aligns a flex container's lines within the
|
||||||
|
// flex container when there is extra space in the cross-axis, similar to
|
||||||
|
// how 'justify-content' aligns individual items within the main-axis. Note,
|
||||||
|
// this property has no effect when the flexbox has only a single line.
|
||||||
|
//
|
||||||
|
// Values: flex-start | flex-end | center | space-between | space-around | stretch
|
||||||
|
// Default: stretch
|
||||||
|
//
|
||||||
|
// http://w3.org/tr/css3-flexbox/#align-content-property
|
||||||
|
|
||||||
|
@mixin align-content($value: stretch) {
|
||||||
|
// No Webkit Box Fallback.
|
||||||
|
-webkit-align-content: $value;
|
||||||
|
-moz-align-content: $value;
|
||||||
|
@if $value == flex-start {
|
||||||
|
-ms-flex-line-pack: start;
|
||||||
|
} @else if $value == flex-end {
|
||||||
|
-ms-flex-line-pack: end;
|
||||||
|
} @else {
|
||||||
|
-ms-flex-line-pack: $value;
|
||||||
|
}
|
||||||
|
align-content: $value;
|
||||||
|
}
|
80
docs/gh-pages/_sass/common/classes/_grid.scss
Normal file
80
docs/gh-pages/_sass/common/classes/_grid.scss
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
$grid-columns: 12;
|
||||||
|
|
||||||
|
.grid-container {
|
||||||
|
@include overflow(hidden);
|
||||||
|
}
|
||||||
|
.cell {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin make-cell($columns) {
|
||||||
|
@if $columns == "auto" {
|
||||||
|
@include flex(1 1 0);
|
||||||
|
width: auto;
|
||||||
|
} @else if $columns == "shrink" {
|
||||||
|
@include flex(0 0 auto);
|
||||||
|
width: auto;
|
||||||
|
} @else if $columns == "stretch" {
|
||||||
|
@include flex(1);
|
||||||
|
} @else {
|
||||||
|
@include flex(none);
|
||||||
|
width: percentage($columns / $grid-columns);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin make-grid-cell($columns, $breakpoint) {
|
||||||
|
@include media-breakpoint-up($breakpoint) {
|
||||||
|
.cell--#{breakpoint-infix($breakpoint)}#{$columns} {
|
||||||
|
@include make-cell($columns);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid {
|
||||||
|
@include flexbox();
|
||||||
|
@include flex-wrap(wrap);
|
||||||
|
& > {
|
||||||
|
@each $breakpoint in map-keys($responsive) {
|
||||||
|
@for $i from 1 through $grid-columns {
|
||||||
|
@include make-grid-cell($i, $breakpoint);
|
||||||
|
}
|
||||||
|
@include make-grid-cell("auto", $breakpoint);
|
||||||
|
@include make-grid-cell("shrink", $breakpoint);
|
||||||
|
@include make-grid-cell("stretch", $breakpoint);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid--reverse {
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin make-grid() {
|
||||||
|
$types: ("p");
|
||||||
|
$directions: ("x", "y", "");
|
||||||
|
$spacers: (0, 1, 2, 3, 4, 5);
|
||||||
|
|
||||||
|
@each $type in $types {
|
||||||
|
@each $direction in $directions {
|
||||||
|
@each $spacer in $spacers {
|
||||||
|
@if $direction == "" {
|
||||||
|
.grid--#{$type}-#{$spacer} {
|
||||||
|
@include make-spacing("m", "", $spacer, true);
|
||||||
|
.cell {
|
||||||
|
@include make-spacing($type, "", $spacer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} @else {
|
||||||
|
.grid--#{$type}#{$direction}-#{$spacer} {
|
||||||
|
@include make-spacing("m", $direction, $spacer, true);
|
||||||
|
.cell {
|
||||||
|
@include make-spacing($type, $direction, $spacer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include make-grid();
|
14
docs/gh-pages/_sass/common/classes/_horizontal-rules.scss
Normal file
14
docs/gh-pages/_sass/common/classes/_horizontal-rules.scss
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
@mixin horizontal-rules() {
|
||||||
|
&::before {
|
||||||
|
display: block;
|
||||||
|
font-size: map-get($base, font-size-h2);
|
||||||
|
color: $text-color-l;
|
||||||
|
text-align: center;
|
||||||
|
letter-spacing: map-get($spacers, 4);
|
||||||
|
content: "...";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.horizontal-rules {
|
||||||
|
@include horizontal-rules();
|
||||||
|
}
|
12
docs/gh-pages/_sass/common/classes/_link.scss
Normal file
12
docs/gh-pages/_sass/common/classes/_link.scss
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
@mixin link-colors($clr, $hover-clr: default, $active-clr: default, $focus-clr: null, $theme: default, $ignore-path: false) {
|
||||||
|
@include plain() {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
@include hover() {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
@include active() {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
@include clickable($clr, null, $hover-clr, null, $active-clr, null, $focus-clr, null, $theme, $ignore-path);
|
||||||
|
}
|
17
docs/gh-pages/_sass/common/classes/_media.scss
Normal file
17
docs/gh-pages/_sass/common/classes/_media.scss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@mixin media-breakpoint-down($name, $breakpoints: default) {
|
||||||
|
@if $breakpoints == default {
|
||||||
|
$breakpoints: $responsive;
|
||||||
|
}
|
||||||
|
@media (max-width: map-get($breakpoints, $name) - 1) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin media-breakpoint-up($name, $breakpoints: default) {
|
||||||
|
@if $breakpoints == default {
|
||||||
|
$breakpoints: $responsive;
|
||||||
|
}
|
||||||
|
@media (min-width: map-get($breakpoints, $name)) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
26
docs/gh-pages/_sass/common/classes/_overflow.scss
Normal file
26
docs/gh-pages/_sass/common/classes/_overflow.scss
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
@mixin overflow($overflow: auto, $direction: default) {
|
||||||
|
@if $direction == default {
|
||||||
|
overflow: $overflow;
|
||||||
|
} @else if $direction == "x" {
|
||||||
|
@if $overflow == auto {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
overflow-x: $overflow;
|
||||||
|
} @else if $direction == "y" {
|
||||||
|
@if $overflow == auto {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
overflow-y: $overflow;
|
||||||
|
}
|
||||||
|
@if $overflow == auto {
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.of-auto {
|
||||||
|
@include overflow(auto);
|
||||||
|
}
|
||||||
|
|
||||||
|
.of-hidden {
|
||||||
|
@include overflow(hidden);
|
||||||
|
}
|
33
docs/gh-pages/_sass/common/classes/_pseudo.scss
Normal file
33
docs/gh-pages/_sass/common/classes/_pseudo.scss
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
@mixin plain() {
|
||||||
|
&,
|
||||||
|
&:link,
|
||||||
|
&:visited {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin hover() {
|
||||||
|
.root[data-is-touch="false"] &:hover {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin active() {
|
||||||
|
.root[data-is-touch] &.active,
|
||||||
|
.root[data-is-touch] &:active {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin focus() {
|
||||||
|
.root[data-is-touch] &.focus {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin disabled() {
|
||||||
|
&.disabled,
|
||||||
|
&:disabled {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
22
docs/gh-pages/_sass/common/classes/_shadow.scss
Normal file
22
docs/gh-pages/_sass/common/classes/_shadow.scss
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
@mixin box-shadow($level: default, $color: default) {
|
||||||
|
@if $color == default {
|
||||||
|
$color: #000;
|
||||||
|
}
|
||||||
|
@if $level == 0 {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
@if $level == 1 or $level == default {
|
||||||
|
box-shadow: 0 4px 8px rgba($color, .23), 0 1px 3px rgba($color, .08), 0 6px 12px rgba($color, .02);
|
||||||
|
}
|
||||||
|
@if $level == 2 {
|
||||||
|
box-shadow: 0 8px 16px rgba($color, .23), 0 2px 6px rgba($color, .08), 0 12px 24px rgba($color, .02);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-shadow-1 {
|
||||||
|
@include box-shadow();
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-shadow-2 {
|
||||||
|
@include box-shadow(2);
|
||||||
|
}
|
81
docs/gh-pages/_sass/common/classes/_spacing.scss
Normal file
81
docs/gh-pages/_sass/common/classes/_spacing.scss
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
@mixin make-spacing($property, $side, $spacer, $negative: false) {
|
||||||
|
|
||||||
|
$css_property: null;
|
||||||
|
$css_sides: null;
|
||||||
|
|
||||||
|
@if ($property == "m") {
|
||||||
|
$css_property: "margin";
|
||||||
|
} @else if ($property == "p") {
|
||||||
|
$css_property: "padding";
|
||||||
|
}
|
||||||
|
|
||||||
|
@if ($side == "t") {
|
||||||
|
$css_sides: ("top");
|
||||||
|
}
|
||||||
|
@else if ($side == "b") {
|
||||||
|
$css_sides: ("bottom");
|
||||||
|
}
|
||||||
|
@else if ($side == "l") {
|
||||||
|
$css_sides: ("left");
|
||||||
|
}
|
||||||
|
@else if ($side == "r") {
|
||||||
|
$css_sides: ("right");
|
||||||
|
}
|
||||||
|
@else if ($side == "x") {
|
||||||
|
$css_sides: ("left", "right");
|
||||||
|
}
|
||||||
|
@else if ($side == "y") {
|
||||||
|
$css_sides: ("top", "bottom");
|
||||||
|
}
|
||||||
|
@else if ($side == "") {
|
||||||
|
$css_sides: ("");
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $side in $css_sides {
|
||||||
|
@if ($spacer == "auto") {
|
||||||
|
@if ($side == "") {
|
||||||
|
#{$css_property}: auto;
|
||||||
|
} @else {
|
||||||
|
#{$css_property}-#{$side}: auto;
|
||||||
|
}
|
||||||
|
} @else {
|
||||||
|
@if ($side == "") {
|
||||||
|
@if ($negative == true) {
|
||||||
|
#{$css_property}: - map-get($spacers, $spacer);
|
||||||
|
} @else {
|
||||||
|
#{$css_property}: map-get($spacers, $spacer);
|
||||||
|
}
|
||||||
|
} @else {
|
||||||
|
@if ($negative == true) {
|
||||||
|
#{$css_property}-#{$side}: - map-get($spacers, $spacer);
|
||||||
|
} @else {
|
||||||
|
#{$css_property}-#{$side}: map-get($spacers, $spacer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin make-spacings() {
|
||||||
|
$propertys: ("m", "p");
|
||||||
|
$sides: ("t", "b", "l", "r", "x", "y", "");
|
||||||
|
$spacers: (0, 1, 2, 3, 4, 5);
|
||||||
|
|
||||||
|
@each $property in $propertys {
|
||||||
|
@each $side in $sides {
|
||||||
|
@each $spacer in $spacers {
|
||||||
|
.#{$property}#{$side}-#{$spacer} {
|
||||||
|
@include make-spacing($property, $side, $spacer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $side in $sides {
|
||||||
|
.m#{$side}-auto {
|
||||||
|
@include make-spacing("m", $side, "auto");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include make-spacings();
|
24
docs/gh-pages/_sass/common/classes/_split-line.scss
Normal file
24
docs/gh-pages/_sass/common/classes/_split-line.scss
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
@mixin split-line($direction: default, $width: default, $color: default) {
|
||||||
|
@if $direction == default {
|
||||||
|
$direction: top;
|
||||||
|
}
|
||||||
|
@if $color == default {
|
||||||
|
$color: $border-color-l;
|
||||||
|
}
|
||||||
|
@if $width == default {
|
||||||
|
$width: 1px;
|
||||||
|
}
|
||||||
|
border: 0 solid $color;
|
||||||
|
@if $direction == top {
|
||||||
|
border-top-width: $width;
|
||||||
|
}
|
||||||
|
@if $direction == right {
|
||||||
|
border-right-width: $width;
|
||||||
|
}
|
||||||
|
@if $direction == bottom {
|
||||||
|
border-bottom-width: $width;
|
||||||
|
}
|
||||||
|
@if $direction == left {
|
||||||
|
border-left-width: $width;
|
||||||
|
}
|
||||||
|
}
|
37
docs/gh-pages/_sass/common/classes/_text.scss
Normal file
37
docs/gh-pages/_sass/common/classes/_text.scss
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
@mixin text-light {
|
||||||
|
color: $text-color-theme-light;
|
||||||
|
h1, h2, h3 {
|
||||||
|
color: $text-color-theme-light-d;
|
||||||
|
}
|
||||||
|
h4, h5 {
|
||||||
|
color: $text-color-theme-light;
|
||||||
|
}
|
||||||
|
h6 {
|
||||||
|
color: $text-color-theme-light-l;
|
||||||
|
}
|
||||||
|
a:not(.button) {
|
||||||
|
@include link-colors($text-color-theme-light, $main-color-1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@mixin text-dark {
|
||||||
|
color: $text-color-theme-dark;
|
||||||
|
h1, h2, h3 {
|
||||||
|
color: $text-color-theme-dark-d;
|
||||||
|
}
|
||||||
|
h4, h5 {
|
||||||
|
color: $text-color-theme-dark;
|
||||||
|
}
|
||||||
|
h6 {
|
||||||
|
color: $text-color-theme-dark-l;
|
||||||
|
}
|
||||||
|
a:not(.button) {
|
||||||
|
@include link-colors($text-color-theme-dark, $main-color-1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.text--light {
|
||||||
|
@include text-light();
|
||||||
|
}
|
||||||
|
.text--dark {
|
||||||
|
@include text-dark();
|
||||||
|
}
|
4
docs/gh-pages/_sass/common/classes/_transform.scss
Normal file
4
docs/gh-pages/_sass/common/classes/_transform.scss
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
@mixin transform($value) {
|
||||||
|
-webkit-transform: $value;
|
||||||
|
transform: $value;
|
||||||
|
}
|
4
docs/gh-pages/_sass/common/classes/_transition.scss
Normal file
4
docs/gh-pages/_sass/common/classes/_transition.scss
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
@mixin transition($value) {
|
||||||
|
-webkit-transition: $value;
|
||||||
|
transition: $value;
|
||||||
|
}
|
6
docs/gh-pages/_sass/common/classes/_user-select.scss
Normal file
6
docs/gh-pages/_sass/common/classes/_user-select.scss
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
@mixin user-select($value) {
|
||||||
|
-webkit-user-select: $value;
|
||||||
|
-moz-user-select: $value;
|
||||||
|
-ms-user-select: $value;
|
||||||
|
user-select: $value;
|
||||||
|
}
|
56
docs/gh-pages/docs/reference/jquery/jszip-utils/dist/jszip-utils-ie.js
vendored
Normal file
56
docs/gh-pages/docs/reference/jquery/jszip-utils/dist/jszip-utils-ie.js
vendored
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
/*!
|
||||||
|
|
||||||
|
JSZipUtils - A collection of cross-browser utilities to go along with JSZip.
|
||||||
|
<http://stuk.github.io/jszip-utils>
|
||||||
|
|
||||||
|
(c) 2014 Stuart Knightley, David Duponchel
|
||||||
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown.
|
||||||
|
|
||||||
|
*/
|
||||||
|
;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
|
||||||
|
var global=typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {};/* jshint evil: true, newcap: false */
|
||||||
|
/* global IEBinaryToArray_ByteStr, IEBinaryToArray_ByteStr_Last */
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
// Adapted from http://stackoverflow.com/questions/1095102/how-do-i-load-binary-image-data-using-javascript-and-xmlhttprequest
|
||||||
|
var IEBinaryToArray_ByteStr_Script =
|
||||||
|
"<!-- IEBinaryToArray_ByteStr -->\r\n"+
|
||||||
|
"<script type='text/vbscript'>\r\n"+
|
||||||
|
"Function IEBinaryToArray_ByteStr(Binary)\r\n"+
|
||||||
|
" IEBinaryToArray_ByteStr = CStr(Binary)\r\n"+
|
||||||
|
"End Function\r\n"+
|
||||||
|
"Function IEBinaryToArray_ByteStr_Last(Binary)\r\n"+
|
||||||
|
" Dim lastIndex\r\n"+
|
||||||
|
" lastIndex = LenB(Binary)\r\n"+
|
||||||
|
" if lastIndex mod 2 Then\r\n"+
|
||||||
|
" IEBinaryToArray_ByteStr_Last = Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n"+
|
||||||
|
" Else\r\n"+
|
||||||
|
" IEBinaryToArray_ByteStr_Last = "+'""'+"\r\n"+
|
||||||
|
" End If\r\n"+
|
||||||
|
"End Function\r\n"+
|
||||||
|
"</script>\r\n";
|
||||||
|
|
||||||
|
// inject VBScript
|
||||||
|
document.write(IEBinaryToArray_ByteStr_Script);
|
||||||
|
|
||||||
|
global.JSZipUtils._getBinaryFromXHR = function (xhr) {
|
||||||
|
var binary = xhr.responseBody;
|
||||||
|
var byteMapping = {};
|
||||||
|
for ( var i = 0; i < 256; i++ ) {
|
||||||
|
for ( var j = 0; j < 256; j++ ) {
|
||||||
|
byteMapping[ String.fromCharCode( i + (j << 8) ) ] =
|
||||||
|
String.fromCharCode(i) + String.fromCharCode(j);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var rawBytes = IEBinaryToArray_ByteStr(binary);
|
||||||
|
var lastChr = IEBinaryToArray_ByteStr_Last(binary);
|
||||||
|
return rawBytes.replace(/[\s\S]/g, function( match ) {
|
||||||
|
return byteMapping[match];
|
||||||
|
}) + lastChr;
|
||||||
|
};
|
||||||
|
|
||||||
|
// enforcing Stuk's coding style
|
||||||
|
// vim: set shiftwidth=4 softtabstop=4:
|
||||||
|
|
||||||
|
},{}]},{},[1])
|
||||||
|
;
|
10
docs/gh-pages/docs/reference/jquery/jszip-utils/dist/jszip-utils-ie.min.js
vendored
Normal file
10
docs/gh-pages/docs/reference/jquery/jszip-utils/dist/jszip-utils-ie.min.js
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/*!
|
||||||
|
|
||||||
|
JSZipUtils - A collection of cross-browser utilities to go along with JSZip.
|
||||||
|
<http://stuk.github.io/jszip-utils>
|
||||||
|
|
||||||
|
(c) 2014 Stuart Knightley, David Duponchel
|
||||||
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown.
|
||||||
|
|
||||||
|
*/
|
||||||
|
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(){var a="undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b="<!-- IEBinaryToArray_ByteStr -->\r\n<script type='text/vbscript'>\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n IEBinaryToArray_ByteStr = CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n Dim lastIndex\r\n lastIndex = LenB(Binary)\r\n if lastIndex mod 2 Then\r\n IEBinaryToArray_ByteStr_Last = Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n Else\r\n IEBinaryToArray_ByteStr_Last = \"\"\r\n End If\r\nEnd Function\r\n</script>\r\n";document.write(b),a.JSZipUtils._getBinaryFromXHR=function(a){for(var b=a.responseBody,c={},d=0;256>d;d++)for(var e=0;256>e;e++)c[String.fromCharCode(d+(e<<8))]=String.fromCharCode(d)+String.fromCharCode(e);var f=IEBinaryToArray_ByteStr(b),g=IEBinaryToArray_ByteStr_Last(b);return f.replace(/[\s\S]/g,function(a){return c[a]})+g}},{}]},{},[1]);
|
118
docs/gh-pages/docs/reference/jquery/jszip-utils/dist/jszip-utils.js
vendored
Normal file
118
docs/gh-pages/docs/reference/jquery/jszip-utils/dist/jszip-utils.js
vendored
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
/*!
|
||||||
|
|
||||||
|
JSZipUtils - A collection of cross-browser utilities to go along with JSZip.
|
||||||
|
<http://stuk.github.io/jszip-utils>
|
||||||
|
|
||||||
|
(c) 2014 Stuart Knightley, David Duponchel
|
||||||
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown.
|
||||||
|
|
||||||
|
*/
|
||||||
|
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSZipUtils=e():"undefined"!=typeof global?global.JSZipUtils=e():"undefined"!=typeof self&&(self.JSZipUtils=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var JSZipUtils = {};
|
||||||
|
// just use the responseText with xhr1, response with xhr2.
|
||||||
|
// The transformation doesn't throw away high-order byte (with responseText)
|
||||||
|
// because JSZip handles that case. If not used with JSZip, you may need to
|
||||||
|
// do it, see https://developer.mozilla.org/En/Using_XMLHttpRequest#Handling_binary_data
|
||||||
|
JSZipUtils._getBinaryFromXHR = function (xhr) {
|
||||||
|
// for xhr.responseText, the 0xFF mask is applied by JSZip
|
||||||
|
return xhr.response || xhr.responseText;
|
||||||
|
};
|
||||||
|
|
||||||
|
// taken from jQuery
|
||||||
|
function createStandardXHR() {
|
||||||
|
try {
|
||||||
|
return new window.XMLHttpRequest();
|
||||||
|
} catch( e ) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
function createActiveXHR() {
|
||||||
|
try {
|
||||||
|
return new window.ActiveXObject("Microsoft.XMLHTTP");
|
||||||
|
} catch( e ) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create the request object
|
||||||
|
var createXHR = window.ActiveXObject ?
|
||||||
|
/* Microsoft failed to properly
|
||||||
|
* implement the XMLHttpRequest in IE7 (can't request local files),
|
||||||
|
* so we use the ActiveXObject when it is available
|
||||||
|
* Additionally XMLHttpRequest can be disabled in IE7/IE8 so
|
||||||
|
* we need a fallback.
|
||||||
|
*/
|
||||||
|
function() {
|
||||||
|
return createStandardXHR() || createActiveXHR();
|
||||||
|
} :
|
||||||
|
// For all other browsers, use the standard XMLHttpRequest object
|
||||||
|
createStandardXHR;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
JSZipUtils.getBinaryContent = function(path, callback) {
|
||||||
|
/*
|
||||||
|
* Here is the tricky part : getting the data.
|
||||||
|
* In firefox/chrome/opera/... setting the mimeType to 'text/plain; charset=x-user-defined'
|
||||||
|
* is enough, the result is in the standard xhr.responseText.
|
||||||
|
* cf https://developer.mozilla.org/En/XMLHttpRequest/Using_XMLHttpRequest#Receiving_binary_data_in_older_browsers
|
||||||
|
* In IE <= 9, we must use (the IE only) attribute responseBody
|
||||||
|
* (for binary data, its content is different from responseText).
|
||||||
|
* In IE 10, the 'charset=x-user-defined' trick doesn't work, only the
|
||||||
|
* responseType will work :
|
||||||
|
* http://msdn.microsoft.com/en-us/library/ie/hh673569%28v=vs.85%29.aspx#Binary_Object_upload_and_download
|
||||||
|
*
|
||||||
|
* I'd like to use jQuery to avoid this XHR madness, but it doesn't support
|
||||||
|
* the responseType attribute : http://bugs.jquery.com/ticket/11461
|
||||||
|
*/
|
||||||
|
try {
|
||||||
|
|
||||||
|
var xhr = createXHR();
|
||||||
|
|
||||||
|
xhr.open('GET', path, true);
|
||||||
|
|
||||||
|
// recent browsers
|
||||||
|
if ("responseType" in xhr) {
|
||||||
|
xhr.responseType = "arraybuffer";
|
||||||
|
}
|
||||||
|
|
||||||
|
// older browser
|
||||||
|
if(xhr.overrideMimeType) {
|
||||||
|
xhr.overrideMimeType("text/plain; charset=x-user-defined");
|
||||||
|
}
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function(evt) {
|
||||||
|
var file, err;
|
||||||
|
// use `xhr` and not `this`... thanks IE
|
||||||
|
if (xhr.readyState === 4) {
|
||||||
|
if (xhr.status === 200 || xhr.status === 0) {
|
||||||
|
file = null;
|
||||||
|
err = null;
|
||||||
|
try {
|
||||||
|
file = JSZipUtils._getBinaryFromXHR(xhr);
|
||||||
|
} catch(e) {
|
||||||
|
err = new Error(e);
|
||||||
|
}
|
||||||
|
callback(err, file);
|
||||||
|
} else {
|
||||||
|
callback(new Error("Ajax error for " + path + " : " + this.status + " " + this.statusText), null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send();
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
callback(new Error(e), null);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// export
|
||||||
|
module.exports = JSZipUtils;
|
||||||
|
|
||||||
|
// enforcing Stuk's coding style
|
||||||
|
// vim: set shiftwidth=4 softtabstop=4:
|
||||||
|
|
||||||
|
},{}]},{},[1])
|
||||||
|
(1)
|
||||||
|
});
|
||||||
|
;
|
10
docs/gh-pages/docs/reference/jquery/jszip-utils/dist/jszip-utils.min.js
vendored
Normal file
10
docs/gh-pages/docs/reference/jquery/jszip-utils/dist/jszip-utils.min.js
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/*!
|
||||||
|
|
||||||
|
JSZipUtils - A collection of cross-browser utilities to go along with JSZip.
|
||||||
|
<http://stuk.github.io/jszip-utils>
|
||||||
|
|
||||||
|
(c) 2014 Stuart Knightley, David Duponchel
|
||||||
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown.
|
||||||
|
|
||||||
|
*/
|
||||||
|
!function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.JSZipUtils=a():"undefined"!=typeof global?global.JSZipUtils=a():"undefined"!=typeof self&&(self.JSZipUtils=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b){"use strict";function c(){try{return new window.XMLHttpRequest}catch(a){}}function d(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}var e={};e._getBinaryFromXHR=function(a){return a.response||a.responseText};var f=window.ActiveXObject?function(){return c()||d()}:c;e.getBinaryContent=function(a,b){try{var c=f();c.open("GET",a,!0),"responseType"in c&&(c.responseType="arraybuffer"),c.overrideMimeType&&c.overrideMimeType("text/plain; charset=x-user-defined"),c.onreadystatechange=function(){var d,f;if(4===c.readyState)if(200===c.status||0===c.status){d=null,f=null;try{d=e._getBinaryFromXHR(c)}catch(g){f=new Error(g)}b(f,d)}else b(new Error("Ajax error for "+a+" : "+this.status+" "+this.statusText),null)},c.send()}catch(d){b(new Error(d),null)}},b.exports=e},{}]},{},[1])(1)});
|
9155
docs/gh-pages/docs/reference/jquery/jszip/dist/jszip.js
vendored
Normal file
9155
docs/gh-pages/docs/reference/jquery/jszip/dist/jszip.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
14
docs/gh-pages/docs/reference/jquery/jszip/dist/jszip.min.js
vendored
Normal file
14
docs/gh-pages/docs/reference/jquery/jszip/dist/jszip.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user