mirror of https://github.com/docker/docs.git
Remove old (tracking) scripts, css, and includes (#10892)
These scripts and files were added a long time ago, and are now either replaced with something else, or managed through GTM. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
97eb2befbf
commit
48f6315d2d
|
@ -1,103 +0,0 @@
|
|||
The [Docker for {{cloudprovider}}](/docker-for-{{cloudprovider | downcase}}/)
|
||||
project was created and is being actively developed to ensure that Docker users
|
||||
can enjoy a fantastic out-of-the-box experience on {{cloudprovider}}. It is now
|
||||
generally available and can now be used by everyone.
|
||||
|
||||
As an informed user, you might be curious to know what this project offers
|
||||
you for running your development, staging, or production workloads.
|
||||
|
||||
## Native to Docker
|
||||
|
||||
Docker for {{cloudprovider}} provides a Docker-native solution that avoids
|
||||
operational complexity and adding unneeded additional APIs to the Docker stack.
|
||||
|
||||
Docker for {{cloudprovider}} allows you to interact with Docker directly
|
||||
(including native Docker orchestration), instead of distracting you with the
|
||||
need to navigate extra layers on top of Docker. You can focus instead on the
|
||||
thing that matters most: running your workloads. This helps you and your
|
||||
team to deliver more value to the business faster, to speak one common
|
||||
"language", and to have fewer details to keep in your head at once.
|
||||
|
||||
The skills that you and your team have already learned, and continue to
|
||||
learn, using Docker on the desktop or elsewhere automatically carry over to
|
||||
using Docker on {{cloudprovider}}. The added consistency across clouds also
|
||||
helps to ensure that a migration or multi-cloud strategy is easier to accomplish
|
||||
in the future if desired.
|
||||
|
||||
## Skip the boilerplate and maintenance work
|
||||
|
||||
Docker for {{cloudprovider}} bootstraps all of the recommended infrastructure to
|
||||
start using Docker on {{cloudprovider}} automatically. You don't need to worry
|
||||
about rolling your own instances, security groups, or load balancers when using
|
||||
Docker for {{cloudprovider}}.
|
||||
|
||||
Likewise, setting up and using Docker swarm mode functionality for container
|
||||
orchestration is managed across the cluster's lifecycle when you use Docker for
|
||||
{{cloudprovider}}. Docker has already coordinated the various bits of automation
|
||||
you would otherwise be gluing together on your own to bootstrap Docker swarm
|
||||
mode on these platforms. When the cluster is finished booting, you can jump
|
||||
right in and start running `docker service` commands.
|
||||
|
||||
We also provide a prescriptive upgrade path that helps users upgrade between
|
||||
various versions of Docker in a smooth and automatic way. Instead of
|
||||
experiencing "maintenance dread" as you ponder your future responsibilities
|
||||
upgrading the software you are using, you can easily upgrade to new versions
|
||||
when they are released.
|
||||
|
||||
## Minimal, Docker-focused base
|
||||
|
||||
The custom Linux distribution used by Docker for {{cloudprovider}} is carefully
|
||||
developed and configured to run Docker well. Everything from the kernel
|
||||
configuration to the networking stack is customized to make it a favorable place
|
||||
to run Docker. For instance, we make sure that the kernel versions are
|
||||
compatible with the latest and greatest in Docker functionality, such as the
|
||||
`overlay2` storage driver.
|
||||
|
||||
Instead of facing the trade-offs of a general purpose operating system, Docker's
|
||||
custom Linux distribution focuses on only one thing: providing the best _Docker_
|
||||
experience for you and your team.
|
||||
|
||||
## Self-cleaning and self-healing
|
||||
|
||||
Even the most conscientious admin can be caught off guard by issues such as
|
||||
unexpectedly aggressive logging or the Linux kernel killing memory-hungry
|
||||
processes. In Docker for {{cloudprovider}}, your cluster is resilient to a
|
||||
variety of such issues by default.
|
||||
|
||||
Log rotation native to the host is configured for you automatically, so chatty
|
||||
logs don't use up all of your disk space. Likewise, the "system prune" option
|
||||
allows you to ensure unused Docker resources such as old images are cleaned up
|
||||
automatically. The lifecycle of nodes is managed using auto-scaling groups or
|
||||
similar constructs, so that if a node enters an unhealthy state for unforeseen
|
||||
reasons, the node is taken out of load balancer rotation and/or replaced
|
||||
automatically and all of its container tasks are rescheduled.
|
||||
|
||||
These self-cleaning and self-healing properties are enabled by default and don't
|
||||
need configuration, so you can breathe easier as the risk of downtime is
|
||||
reduced.
|
||||
|
||||
## Logging native to the platforms
|
||||
|
||||
Centralized logging is a critical component of many modern infrastructure
|
||||
stacks. To have these logs indexed and searchable proves invaluable for
|
||||
debugging application and system issues as they come up. Out of the box, Docker
|
||||
for {{cloudprovider}} forwards logs from containers to a native cloud provider
|
||||
abstraction ({{cloudprovider_log_dest}}).
|
||||
|
||||
## Next-generation Docker bug reporting tools
|
||||
|
||||
One common pain point in open source issue reporting is effectively
|
||||
communicating the current state of your infrastructure and the issues you are
|
||||
seeing to the upstream. In Docker for {{cloudprovider}}, you receive new tools
|
||||
to communicate any issues you experience quickly and securely to Docker
|
||||
employees. The Docker for {{cloudprovider}} shell includes a `docker-diagnose`
|
||||
script which, at your request, transmits detailed diagnostic information to
|
||||
Docker support staff to reduce the traditional
|
||||
"please-post-the-output-of-this-command" back and forth frequently encountered
|
||||
in bug reports.
|
||||
|
||||
# Try it today
|
||||
|
||||
Ready to get started? [Try Docker for {{cloudprovider}} today](/docker-for-{{cloudprovider | downcase}}/).
|
||||
Search for existing issues, or create a new one, within the
|
||||
[for {{cloudprovider}}](https://github.com/docker/for-{{cloudprovider | downcase}}) repository.
|
|
@ -1,430 +0,0 @@
|
|||
/**! hopscotch - v0.2.6
|
||||
*
|
||||
* Copyright 2016 LinkedIn Corp. All rights reserved.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
.animated {
|
||||
-webkit-animation-fill-mode: both;
|
||||
-moz-animation-fill-mode: both;
|
||||
-ms-animation-fill-mode: both;
|
||||
-o-animation-fill-mode: both;
|
||||
animation-fill-mode: both;
|
||||
-webkit-animation-duration: 1s;
|
||||
-moz-animation-duration: 1s;
|
||||
-ms-animation-duration: 1s;
|
||||
-o-animation-duration: 1s;
|
||||
animation-duration: 1s;
|
||||
}
|
||||
@-webkit-keyframes fadeInUp {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translateY(20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: translateY(0);
|
||||
}
|
||||
}@-moz-keyframes fadeInUp {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-moz-transform: translateY(20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-moz-transform: translateY(0);
|
||||
}
|
||||
}@-o-keyframes fadeInUp {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-o-transform: translateY(20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-o-transform: translateY(0);
|
||||
}
|
||||
}@keyframes fadeInUp {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}.fade-in-up {
|
||||
-webkit-animation-name: fadeInUp;
|
||||
-moz-animation-name: fadeInUp;
|
||||
-o-animation-name: fadeInUp;
|
||||
animation-name: fadeInUp;
|
||||
}
|
||||
@-webkit-keyframes fadeInDown {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translateY(-20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: translateY(0);
|
||||
}
|
||||
}@-moz-keyframes fadeInDown {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-moz-transform: translateY(-20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-moz-transform: translateY(0);
|
||||
}
|
||||
}@-o-keyframes fadeInDown {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-ms-transform: translateY(-20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-ms-transform: translateY(0);
|
||||
}
|
||||
}@keyframes fadeInDown {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(-20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}.fade-in-down {
|
||||
-webkit-animation-name: fadeInDown;
|
||||
-moz-animation-name: fadeInDown;
|
||||
-o-animation-name: fadeInDown;
|
||||
animation-name: fadeInDown;
|
||||
}
|
||||
@-webkit-keyframes fadeInRight {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translateX(-20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: translateX(0);
|
||||
}
|
||||
}@-moz-keyframes fadeInRight {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-moz-transform: translateX(-20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-moz-transform: translateX(0);
|
||||
}
|
||||
}@-o-keyframes fadeInRight {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-o-transform: translateX(-20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-o-transform: translateX(0);
|
||||
}
|
||||
}@keyframes fadeInRight {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateX(-20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}.fade-in-right {
|
||||
-webkit-animation-name: fadeInRight;
|
||||
-moz-animation-name: fadeInRight;
|
||||
-o-animation-name: fadeInRight;
|
||||
animation-name: fadeInRight;
|
||||
}
|
||||
@-webkit-keyframes fadeInLeft {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translateX(20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: translateX(0);
|
||||
}
|
||||
}@-moz-keyframes fadeInLeft {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-moz-transform: translateX(20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-moz-transform: translateX(0);
|
||||
}
|
||||
}@-o-keyframes fadeInLeft {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-o-transform: translateX(20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-o-transform: translateX(0);
|
||||
}
|
||||
}@keyframes fadeInLeft {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateX(20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}.fade-in-left {
|
||||
-webkit-animation-name: fadeInLeft;
|
||||
-moz-animation-name: fadeInLeft;
|
||||
-o-animation-name: fadeInLeft;
|
||||
animation-name: fadeInLeft;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-nav-button {
|
||||
font-weight: 900;
|
||||
cursor: pointer;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
text-decoration: none!important;
|
||||
width: auto;
|
||||
padding: 0 10px;
|
||||
height: 26px;
|
||||
line-height: 24px;
|
||||
font-size: 12px;
|
||||
display: -moz-inline-stack;
|
||||
display: inline-block;
|
||||
*vertical-align: auto;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
div.hopscotch-bubble .hopscotch-nav-button.next,
|
||||
div.hopscotch-bubble .hopscotch-nav-button.prev {
|
||||
background-color: #fff;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
|
||||
div.hopscotch-bubble .hopscotch-nav-button.next:hover,
|
||||
div.hopscotch-bubble .hopscotch-nav-button.prev:hover {
|
||||
opacity: .8;
|
||||
}
|
||||
|
||||
div.hopscotch-bubble .hopscotch-nav-button.next {
|
||||
color: #0087c9;
|
||||
border: 2px solid #0087c9;
|
||||
}
|
||||
|
||||
div.hopscotch-bubble .hopscotch-nav-button.prev {
|
||||
color: #999;
|
||||
border: 2px solid #999;
|
||||
}
|
||||
|
||||
|
||||
div.hopscotch-bubble {
|
||||
background-color: #fff;
|
||||
border: 5px solid #000;
|
||||
border: 5px solid rgba(0, 0, 0, .5);
|
||||
color: #333;
|
||||
font-family: Helvetica, Arial;
|
||||
font-size: 13px;
|
||||
position: absolute;
|
||||
z-index: 999999;
|
||||
-webkit-box-sizing: content-box;
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
-moz-background-clip: padding;
|
||||
-webkit-background-clip: padding;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
div.hopscotch-bubble * {
|
||||
-webkit-box-sizing: content-box;
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
div.hopscotch-bubble.animate {
|
||||
-moz-transition-property: top, left;
|
||||
-moz-transition-duration: 1s;
|
||||
-moz-transition-timing-function: ease-in-out;
|
||||
-ms-transition-property: top, left;
|
||||
-ms-transition-duration: 1s;
|
||||
-ms-transition-timing-function: ease-in-out;
|
||||
-o-transition-property: top, left;
|
||||
-o-transition-duration: 1s;
|
||||
-o-transition-timing-function: ease-in-out;
|
||||
-webkit-transition-property: top, left;
|
||||
-webkit-transition-duration: 1s;
|
||||
-webkit-transition-timing-function: ease-in-out;
|
||||
transition-property: top, left;
|
||||
transition-duration: 1s;
|
||||
transition-timing-function: ease-in-out;
|
||||
}
|
||||
div.hopscotch-bubble.invisible {
|
||||
opacity: 0;
|
||||
}
|
||||
div.hopscotch-bubble.hide, div.hopscotch-bubble .hide, div.hopscotch-bubble .hide-all {
|
||||
display: none;
|
||||
}
|
||||
div.hopscotch-bubble h3 {
|
||||
color: #000;
|
||||
font-family: Helvetica, Arial;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
line-height: 19px;
|
||||
margin: -1px 15px 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-container {
|
||||
padding: 15px;
|
||||
position: relative;
|
||||
text-align: left;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-content {
|
||||
font-family: Helvetica, Arial;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
line-height: 17px;
|
||||
margin: -5px 0 11px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-content {
|
||||
margin: 0 0 0 40px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
div.hopscotch-bubble.no-number .hopscotch-bubble-content {
|
||||
margin: 0;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-close {
|
||||
border: 0;
|
||||
background-color: #fff;
|
||||
display: block;
|
||||
padding: 8px;
|
||||
padding-top: 0;
|
||||
position: absolute;
|
||||
text-decoration: none;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
top: 0;
|
||||
right: 0;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
div.hopscotch-bubble .hopscotch-bubble-close:hover {
|
||||
opacity: .8;
|
||||
}
|
||||
|
||||
div.hopscotch-bubble .hopscotch-bubble-close.hide, div.hopscotch-bubble .hopscotch-bubble-close.hide-all {
|
||||
display: none;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-number {
|
||||
border-radius: 50%;
|
||||
behavior: url(PIE.htc);
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding: 2px;
|
||||
border: 2px solid #0087c9;
|
||||
color: #0a486b;
|
||||
text-align: center;
|
||||
float: left;
|
||||
font-size: 1.3rem;
|
||||
margin-right: 7px;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container {
|
||||
position: absolute;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container .hopscotch-bubble-arrow, div.hopscotch-bubble .hopscotch-bubble-arrow-container .hopscotch-bubble-arrow-border {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container.up {
|
||||
top: -22px;
|
||||
left: 10px;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container.up .hopscotch-bubble-arrow {
|
||||
border-bottom: 17px solid #fff;
|
||||
border-left: 17px solid transparent;
|
||||
border-right: 17px solid transparent;
|
||||
position: relative;
|
||||
top: -10px;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container.up .hopscotch-bubble-arrow-border {
|
||||
border-bottom: 17px solid #000;
|
||||
border-bottom: 17px solid rgba(0, 0, 0, .5);
|
||||
border-left: 17px solid transparent;
|
||||
border-right: 17px solid transparent;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container.down {
|
||||
bottom: -39px;
|
||||
left: 10px;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container.down .hopscotch-bubble-arrow {
|
||||
border-top: 17px solid #fff;
|
||||
border-left: 17px solid transparent;
|
||||
border-right: 17px solid transparent;
|
||||
position: relative;
|
||||
top: -24px;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container.down .hopscotch-bubble-arrow-border {
|
||||
border-top: 17px solid #000;
|
||||
border-top: 17px solid rgba(0, 0, 0, .5);
|
||||
border-left: 17px solid transparent;
|
||||
border-right: 17px solid transparent;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container.left {
|
||||
top: 10px;
|
||||
left: -22px;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container.left .hopscotch-bubble-arrow {
|
||||
border-bottom: 17px solid transparent;
|
||||
border-right: 17px solid #fff;
|
||||
border-top: 17px solid transparent;
|
||||
position: relative;
|
||||
left: 7px;
|
||||
top: -34px;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container.left .hopscotch-bubble-arrow-border {
|
||||
border-right: 17px solid #000;
|
||||
border-right: 17px solid rgba(0, 0, 0, .5);
|
||||
border-bottom: 17px solid transparent;
|
||||
border-top: 17px solid transparent;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container.right {
|
||||
top: 10px;
|
||||
right: -39px;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container.right .hopscotch-bubble-arrow {
|
||||
border-bottom: 17px solid transparent;
|
||||
border-left: 17px solid #fff;
|
||||
border-top: 17px solid transparent;
|
||||
position: relative;
|
||||
left: -7px;
|
||||
top: -34px;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-bubble-arrow-container.right .hopscotch-bubble-arrow-border {
|
||||
border-left: 17px solid #000;
|
||||
border-left: 17px solid rgba(0, 0, 0, .5);
|
||||
border-bottom: 17px solid transparent;
|
||||
border-top: 17px solid transparent;
|
||||
}
|
||||
div.hopscotch-bubble .hopscotch-actions {
|
||||
margin: 10px 0 0;
|
||||
text-align: right;
|
||||
}
|
28
css/temp.css
28
css/temp.css
|
@ -1,28 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* this css will be integrated into master. for now testing.......
|
||||
*
|
||||
*/
|
||||
|
||||
/* Archive butterbar */
|
||||
#archive-butterbar {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
min-height: 34px;
|
||||
border: 1px solid #254356;
|
||||
background-color: #FFE1C0;
|
||||
color: #254356;
|
||||
width: 100%;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#archive-butterbar.top {
|
||||
position: relative;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* Archive butterbar when the top nav is fixed */
|
||||
#archive-butterbar.fixed {
|
||||
position: fixed;
|
||||
top: 55px;
|
||||
}
|
359
js/2793990448.js
359
js/2793990448.js
|
@ -1,359 +0,0 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
(function(){
|
||||
|
||||
|
||||
|
||||
|
||||
geolocation = {};
|
||||
geolocation.requestGeo=function(c){geolocation.cdn3Requested=+new Date;var b=document.head||document.getElementsByTagName("head")[0]||document.documentElement,a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src=c;b.insertBefore(a,b.firstChild)};
|
||||
|
||||
|
||||
var optimizelyCode = function(){
|
||||
var DATA={"log_host":"log.optimizely.com","goal_expressions":{"2942070080":["^user\\_clicks\\_on\\_\\\u201ctry\\_it\\!\\\u201d\\_tutorial\\_link$"],"2907681636":["^user\\_click\\_on\\_\\\u201cwhat\\_is\\_docker\\\u201d\\_link$"],"2998360785":["^click\\_sidebar\\_ad$"],"2985680235":["^hub\\_landing\\_page\\_\\-\\_user\\_clicks\\_on\\_signup\\_with\\_github$"],"2795900556":["^engagement$"],"2946690065":["^user\\_click\\_on\\_\\\u201cinstall\\_\\&\\_docs\"$"],"2756791246":["^engagement$"],"2999140215":["^(https?://)?(www\\.)?hub\\.docker\\.com/?(\\?.*)?(#.*)?$"],"2894340540":["^user\\_click\\_on\\_\\\u201csign\\_up\\_for\\_free\\\u201d\\_button$"],"2916540317":["^(https?://)?(www\\.)?hub\\.docker\\.com\\/account\\/welcome/?(\\?.*)?(#.*)?$"],"2983441183":["^hub\\_landing\\_page\\_\\-\\_user\\_clicks\\_on\\_sign\\_up\\_button$"]},"experiments":{"2971380924":{"name":"2015-06: Docker Blog Sidebar Ads","urls":[{"match":"simple","value":"http://blog.docker.com/"}],"enabled_variation_ids":["2976122274","2993231047"],"variation_ids":["2976122274","2993231047"]},"2885650300":{"name":"2015-05: Docker Homepage content experiment validation","urls":[{"match":"simple","value":"http://www.docker.com"}],"enabled_variation_ids":["2899610112","2910470380"],"variation_ids":["2899610112","2910470380"]}},"www_host":"app.optimizely.com","public_suffixes":{"docker.com":["blog.docker.com","www.docker.com"]},"version":"master-2069.386346709248328707","admin_account_id":2793990448,"project_id":2793990448,"revision":39,"summary_revenue_goal_id":2796941294,"installation_verified":true,"preview_host":"//optimizely.s3.amazonaws.com","api_host":"api.optimizely.com","variations":{"2899610112":{"name":"Original"},"2976122274":{"name":"Original"},"2910470380":{"code":"$(\"h3\").html(\"Get started with Docker Hub\");","name":"Variation #1 - Scope reduction to Hub"},"2993231047":{"code":"$(\".text-5 img\").attr({\"src\":\"//cdn.optimizely.com/img/2793990448/11ccda264ba847f7b2d12efe646b48a8.jpg\"});\n$(\".text-5 a\").attr({\"href\":\"https://hub.docker.com/?utm_source=docker_blog&utm_medium=blog_sidebar&utm_campaign=claim_free_private_repo_orange\"});","name":"Variation #1"}},"click_goals":[{"event_name":"user_click_on_\u201csign_up_for_free\u201d_button","experiments":{"2885650300":true},"selector":".signup-button"},{"event_name":"user_click_on_\u201cwhat_is_docker\u201d_link","experiments":{"2885650300":true},"selector":".nav > li:eq(0) > a:eq(0)"},{"event_name":"user_clicks_on_\u201ctry_it!\u201d_tutorial_link","experiments":{"2885650300":true},"selector":".nav > li:eq(2) > a:eq(0)"},{"event_name":"user_click_on_\u201cinstall_&_docs\"","experiments":{"2885650300":true},"selector":".nav > li:eq(3) > a:eq(0)"},{"event_name":"hub_landing_page_-_user_clicks_on_sign_up_button","experiments":{"2971380924":true},"selector":".btn-success"},{"event_name":"hub_landing_page_-_user_clicks_on_signup_with_github","experiments":{"2971380924":true},"selector":".git"},{"event_name":"click_sidebar_ad","experiments":{"2971380924":true},"selector":".text-5 img"}]};
|
||||
|
||||
var optly={nativity:{}};optly.nativity.getNativeGetElementsByClassName=function(){var a=document.getElementsByClassName;if(!optly.nativity.isNativeFunction(a))var a=(window.optimizely||{}).getElementsByClassName,b=(window.optly||{}).getElementsByClassName,a=optly.nativity.isNativeFunction(a)?a:optly.nativity.isNativeFunction(b)?b:null;return a};optly.nativity.isNativeFunction=function(a){return a&&-1!==String(a).indexOf("[native code]")};optly.Cleanse={};optly.Cleanse.each=function(a,b,d){var h=!!Object.prototype.__lookupGetter__,e=!!Object.prototype.__lookupSetter__,c;for(c in a)if(a.hasOwnProperty(c)){var f=h?a.__lookupGetter__(c):null,g=e?a.__lookupSetter__(c):null;try{b.call(d,c,!f?a[c]:null,f,g)}catch(i){}}};
|
||||
optly.Cleanse.finish=function(){if(optly.Cleanse.running){optly.Cleanse.running=!1;optly.Cleanse.each(optly.Cleanse.types,function(a,d){Object.prototype.__defineGetter__&&optly.Cleanse.each(optly.Cleanse.getters[a],function(c,b){d.prototype.__defineGetter__(c,b);optly.Cleanse.log("restored getter",a,c)});Object.prototype.__defineSetter__&&optly.Cleanse.each(optly.Cleanse.setters[a],function(c,b){d.prototype.__defineSetter__(c,b);optly.Cleanse.log("restored setter",a,c)});optly.Cleanse.each(optly.Cleanse.properties[a],
|
||||
function(b,f){d.prototype[b]=f;optly.Cleanse.log("restored property",a,b)})});optly.Cleanse.unfixGetElementsByClassName();optly.Cleanse.log("finish");var a=window.console;if((-1!==window.location.hash.indexOf("optimizely_log=true")||-1!==window.location.search.indexOf("optimizely_log=true"))&&a&&a.log)for(var b=optly.Cleanse.logs,d=0;d<b.length;d++)a.log(b[d])}};
|
||||
optly.Cleanse.log=function(a,b,d){b?(b=b.replace(/_/g,""),optly.Cleanse.logs.push("Optimizely / Info / Cleanse / "+a+": "+b+"."+d)):optly.Cleanse.logs.push("Optimizely / Info / Cleanse / "+a)};
|
||||
optly.Cleanse.start=function(){var a=window.location.hostname;if(!(-1!==a.indexOf("optimizely")&&-1===a.indexOf("edit")&&-1===a.indexOf("preview")&&-1===a.indexOf("test")))if(optly.Cleanse.running)optly.Cleanse.log("already running so didn't start");else{optly.Cleanse.log("start");optly.Cleanse.running=!0;for(var b in optly.Cleanse.types)optly.Cleanse.types[b]||delete optly.Cleanse.types[b];optly.Cleanse.each(optly.Cleanse.types,function(a,b){optly.Cleanse.getters[a]={};optly.Cleanse.properties[a]=
|
||||
{};optly.Cleanse.setters[a]={};optly.Cleanse.each(b.prototype,function(e,c,f,g){optly.nativity.isNativeFunction(c)||optly.nativity.isNativeFunction(f)||optly.nativity.isNativeFunction(g)?optly.Cleanse.log("ignore native code",a,e):(f?(optly.Cleanse.getters[a][e]=f,optly.Cleanse.log("cleansed getter",a,e)):(optly.Cleanse.properties[a][e]=c,optly.Cleanse.log("cleansed property",a,e)),g&&(optly.Cleanse.setters[a][e]=g,optly.Cleanse.log("cleansed setter",a,e)),delete b.prototype[e])})});optly.Cleanse.fixGetElementsByClassName();
|
||||
optly.Cleanse.hasRunStart=!0}};optly.Cleanse.fixGetElementsByClassName=function(){if(!optly.nativity.isNativeFunction(document.getElementsByClassName)){var a=optly.nativity.getNativeGetElementsByClassName();a?(optly.Cleanse.getElementsByClassName=document.getElementsByClassName,document.getElementsByClassName=a):optly.Cleanse.log("Error: native HTMLElement.prototype.getElementsByClassName missing")}};
|
||||
optly.Cleanse.unfixGetElementsByClassName=function(){optly.Cleanse.getElementsByClassName&&(document.getElementsByClassName=optly.Cleanse.getElementsByClassName,optly.Cleanse.getElementsByClassName=null)};optly.Cleanse.getElementsByClassName=null;optly.Cleanse.getters={};optly.Cleanse.logs=[];optly.Cleanse.properties={};optly.Cleanse.setters={};optly.Cleanse.types={Object_:Object};window.optly=window.optly||{};window.optly.Cleanse={finish:optly.Cleanse.finish,logs:optly.Cleanse.logs,start:optly.Cleanse.start};
|
||||
optly.Cleanse.start();
|
||||
var $=function(r,m){function ya(a,b,c){if(c===m&&1===a.nodeType)if(c="data-"+b.replace(kb,"-$1").toLowerCase(),c=a.getAttribute(c),"string"===typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:!d.isNaN(c)?parseFloat(c):lb.test(c)?d.parseJSON(c):c}catch(g){}d.data(a,b,c)}else c=m;return c}function ha(a){for(var b in a)if("toJSON"!==b)return!1;return!0}function za(a,b,c){var g=b+"defer",e=b+"queue",f=b+"mark",h=d.data(a,g,m,!0);h&&(("queue"===c||!d.data(a,e,m,!0))&&("mark"===c||!d.data(a,
|
||||
f,m,!0)))&&setTimeout(function(){!d.data(a,e,m,!0)&&!d.data(a,f,m,!0)&&(d.removeData(a,g,!0),h.resolve())},0)}function w(){return!1}function O(){return!0}function Aa(a,b,c){var g=d.extend({},c[0]);g.type=a;g.originalEvent={};g.liveFired=m;d.event.handle.call(b,g);g.isDefaultPrevented()&&c[0].preventDefault()}function mb(a){var b,c,g,e,f,h,i,j,k,m,l,q=[];e=[];f=d._data(this,"events");if(!(a.liveFired===this||!f||!f.live||a.target.disabled||a.button&&"click"===a.type)){a.namespace&&(l=RegExp("(^|\\.)"+
|
||||
a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)"));a.liveFired=this;var n=f.live.slice(0);for(i=0;i<n.length;i++)f=n[i],f.origType.replace(ia,"")===a.type?e.push(f.selector):n.splice(i--,1);e=d(a.target).closest(e,a.currentTarget);j=0;for(k=e.length;j<k;j++){m=e[j];for(i=0;i<n.length;i++)if(f=n[i],m.selector===f.selector&&(!l||l.test(f.namespace))&&!m.elem.disabled){h=m.elem;g=null;if("mouseenter"===f.preType||"mouseleave"===f.preType)a.type=f.preType,(g=d(a.relatedTarget).closest(f.selector)[0])&&
|
||||
d.contains(h,g)&&(g=h);(!g||g!==h)&&q.push({elem:h,handleObj:f,level:m.level})}}j=0;for(k=q.length;j<k;j++){e=q[j];if(c&&e.level>c)break;a.currentTarget=e.elem;a.data=e.handleObj.data;a.handleObj=e.handleObj;l=e.handleObj.origHandler.apply(e.elem,arguments);if(!1===l||a.isPropagationStopped())if(c=e.level,!1===l&&(b=!1),a.isImmediatePropagationStopped())break}return b}}function P(a,b){return(a&&"*"!==a?a+".":"")+b.replace(nb,"`").replace(ob,"&")}function Ba(a,b,c){b=b||0;if(d.isFunction(b))return d.grep(a,
|
||||
function(a,g){return!!b.call(a,g,a)===c});if(b.nodeType)return d.grep(a,function(a){return a===b===c});if("string"===typeof b){var g=d.grep(a,function(a){return 1===a.nodeType});if(pb.test(b))return d.filter(b,g,!c);b=d.filter(b,g)}return d.grep(a,function(a){return 0<=d.inArray(a,b)===c})}function Ca(a,b){if(1===b.nodeType&&d.hasData(a)){var c=d.expando,g=d.data(a),e=d.data(b,g);if(g=g[c]){var f=g.events,e=e[c]=d.extend({},g);if(f){delete e.handle;e.events={};for(var h in f){c=0;for(g=f[h].length;c<
|
||||
g;c++)d.event.add(b,h+(f[h][c].namespace?".":"")+f[h][c].namespace,f[h][c],f[h][c].data)}}}}}function Da(a,b){var c;if(1===b.nodeType){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);c=b.nodeName.toLowerCase();if("object"===c)b.outerHTML=a.outerHTML;else if("input"===c&&("checkbox"===a.type||"radio"===a.type)){if(a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value)b.value=a.value}else if("option"===c)b.selected=a.defaultSelected;else if("input"===c||
|
||||
"textarea"===c)b.defaultValue=a.defaultValue;b.removeAttribute(d.expando)}}function Q(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function Ea(a){if("checkbox"===a.type||"radio"===a.type)a.defaultChecked=a.checked}function Fa(a){d.nodeName(a,"input")?Ea(a):"getElementsByTagName"in a&&d.grep(a.getElementsByTagName("input"),Ea)}function qb(a,b){b.src?d.ajax({url:b.src,async:!1,dataType:"script"}):d.globalEval((b.text||b.textContent||
|
||||
b.innerHTML||"").replace(rb,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}function Ga(a,b,c){var g="width"===b?a.offsetWidth:a.offsetHeight,e="width"===b?sb:tb;if(0<g)return"border"!==c&&d.each(e,function(){c||(g-=parseFloat(d.css(a,"padding"+this))||0);g="margin"===c?g+(parseFloat(d.css(a,c+this))||0):g-(parseFloat(d.css(a,"border"+this+"Width"))||0)}),g+"px";g=A(a,b,b);if(0>g||null==g)g=a.style[b]||0;g=parseFloat(g)||0;c&&d.each(e,function(){g+=parseFloat(d.css(a,"padding"+this))||0;"padding"!==
|
||||
c&&(g+=parseFloat(d.css(a,"border"+this+"Width"))||0);"margin"===c&&(g+=parseFloat(d.css(a,c+this))||0)});return g+"px"}var l=r.document,d,Ha=function(){if(!k.isReady){try{l.documentElement.doScroll("left")}catch(a){setTimeout(Ha,1);return}k.ready()}},k=function(a,b){return new k.fn.init(a,b,Ia)},ub=r.jQuery,vb=r.$,Ia,wb=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Ja=/\S/,Ka=/^\s+/,La=/\s+$/,xb=/\d/,yb=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,zb=/^[\],:{}\s]*$/,Ab=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,Bb=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
|
||||
Cb=/(?:^|:|,)(?:\s*\[)+/g,Db=/(webkit)[ \/]([\w.]+)/,Eb=/(opera)(?:.*version)?[ \/]([\w.]+)/,Fb=/(msie) ([\w.]+)/,Gb=/(mozilla)(?:.*? rv:([\w.]+))?/,Hb=/-([a-z]|[0-9])/ig,Ib=/^-ms-/,Jb=function(a,b){return(b+"").toUpperCase()},Kb=r.navigator.userAgent,R,S,B,Lb=Object.prototype.toString,ja=Object.prototype.hasOwnProperty,ka=Array.prototype.push,I=Array.prototype.slice,Ma=String.prototype.trim,Na=Array.prototype.indexOf,Oa={};k.fn=k.prototype={constructor:k,init:function(a,b,c){var g;if(!a)return this;
|
||||
if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if("body"===a&&!b&&l.body)return this.context=l,this[0]=l.body,this.selector=a,this.length=1,this;if("string"===typeof a){if((g="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:wb.exec(a))&&(g[1]||!b)){if(g[1])return c=(b=b instanceof k?b[0]:b)?b.ownerDocument||b:l,(a=yb.exec(a))?k.isPlainObject(b)?(a=[l.createElement(a[1])],k.fn.attr.call(a,b,!0)):a=[c.createElement(a[1])]:(a=k.buildFragment([g[1]],[c]),a=(a.cacheable?
|
||||
k.clone(a.fragment):a.fragment).childNodes),k.merge(this,a);if((b=l.getElementById(g[2]))&&b.parentNode){if(b.id!==g[2])return c.find(a);this.length=1;this[0]=b}this.context=l;this.selector=a;return this}return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a)}if(k.isFunction(a))return c.ready(a);a.selector!==m&&(this.selector=a.selector,this.context=a.context);return k.makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return I.call(this,
|
||||
0)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a,b,c){var g=this.constructor();k.isArray(a)?ka.apply(g,a):k.merge(g,a);g.prevObject=this;g.context=this.context;"find"===b?g.selector=this.selector+(this.selector?" ":"")+c:b&&(g.selector=this.selector+"."+b+"("+c+")");return g},each:function(a,b){return k.each(this,a,b)},ready:function(a){k.bindReady();S.done(a);return this},eq:function(a){return-1===a?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},
|
||||
last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(a){return this.pushStack(k.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:ka,sort:[].sort,splice:[].splice};k.fn.init.prototype=k.fn;k.extend=k.fn.extend=function(){var a,b,c,g,d,f=arguments[0]||{},h=1,i=arguments.length,j=!1;"boolean"===typeof f&&(j=f,f=arguments[1]||{},h=2);"object"!==
|
||||
typeof f&&!k.isFunction(f)&&(f={});i===h&&(f=this,--h);for(;h<i;h++)if(null!=(a=arguments[h]))for(b in a)c=f[b],g=a[b],f!==g&&(j&&g&&(k.isPlainObject(g)||(d=k.isArray(g)))?(d?(d=!1,c=c&&k.isArray(c)?c:[]):c=c&&k.isPlainObject(c)?c:{},f[b]=k.extend(j,c,g)):g!==m&&(f[b]=g));return f};k.extend({noConflict:function(a){r.$===k&&(r.$=vb);a&&r.jQuery===k&&(r.jQuery=ub);return k},isReady:!1,readyWait:1,holdReady:function(a){a?k.readyWait++:k.ready(!0)},ready:function(a){if(!0===a&&!--k.readyWait||!0!==a&&
|
||||
!k.isReady){if(!l.body)return setTimeout(k.ready,1);k.isReady=!0;!0!==a&&0<--k.readyWait||(S.resolveWith(l,[k]),k.fn.trigger&&k(l).trigger("ready").unbind("ready"))}},bindReady:function(){if(!S){S=k._Deferred();if("complete"===l.readyState)return setTimeout(k.ready,1);if(l.addEventListener)l.addEventListener("DOMContentLoaded",B,!1),r.addEventListener("load",k.ready,!1);else if(l.attachEvent){l.attachEvent("onreadystatechange",B);r.attachEvent("onload",k.ready);var a=!1;try{a=null==r.frameElement}catch(b){}l.documentElement.doScroll&&
|
||||
a&&Ha()}}},isFunction:function(a){return"function"===k.type(a)},isArray:Array.isArray||function(a){return"array"===k.type(a)},isWindow:function(a){return a&&"object"===typeof a&&"setInterval"in a},isNaN:function(a){return null==a||!xb.test(a)||isNaN(a)},type:function(a){return null==a?String(a):Oa[Lb.call(a)]||"object"},isPlainObject:function(a){if(!a||"object"!==k.type(a)||a.nodeType||k.isWindow(a))return!1;try{if(a.constructor&&!ja.call(a,"constructor")&&!ja.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}for(var c in a);
|
||||
return c===m||ja.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a;},parseJSON:function(a){if("string"!==typeof a||!a)return null;a=k.trim(a);if(r.JSON&&r.JSON.parse)return r.JSON.parse(a);if(zb.test(a.replace(Ab,"@").replace(Bb,"]").replace(Cb,"")))return(new Function("return "+a))();k.error("Invalid JSON: "+a)},parseXML:function(a){var b,c;try{r.DOMParser?(c=new DOMParser,b=c.parseFromString(a,"text/xml")):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async=
|
||||
"false",b.loadXML(a))}catch(g){b=m}(!b||!b.documentElement||b.getElementsByTagName("parsererror").length)&&k.error("Invalid XML: "+a);return b},noop:function(){},globalEval:function(a){a&&Ja.test(a)&&(r.execScript||function(a){r.eval.call(r,a)})(a)},camelCase:function(a){return a.replace(Ib,"ms-").replace(Hb,Jb)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,c){var g,d=0,f=a.length,h=f===m||k.isFunction(a);if(c)if(h)for(g in a){if(!1===b.apply(a[g],
|
||||
c))break}else for(;d<f&&!1!==b.apply(a[d++],c););else if(h)for(g in a){if(!1===b.call(a[g],g,a[g]))break}else for(;d<f&&!1!==b.call(a[d],d,a[d++]););return a},trim:Ma?function(a){return null==a?"":Ma.call(a)}:function(a){return null==a?"":a.toString().replace(Ka,"").replace(La,"")},makeArray:function(a,b){var c=b||[];if(null!=a){var g=k.type(a);null==a.length||"string"===g||"function"===g||"regexp"===g||k.isWindow(a)?ka.call(c,a):k.merge(c,a)}return c},inArray:function(a,b){if(!b)return-1;if(Na)return Na.call(b,
|
||||
a);for(var c=0,g=b.length;c<g;c++)if(b[c]===a)return c;return-1},merge:function(a,b){var c=a.length,g=0;if("number"===typeof b.length)for(var d=b.length;g<d;g++)a[c++]=b[g];else for(;b[g]!==m;)a[c++]=b[g++];a.length=c;return a},grep:function(a,b,c){for(var g=[],d,c=!!c,f=0,h=a.length;f<h;f++)d=!!b(a[f],f),c!==d&&g.push(a[f]);return g},map:function(a,b,c){var g,d,f=[],h=0,i=a.length;if(a instanceof k||i!==m&&"number"===typeof i&&(0<i&&a[0]&&a[i-1]||0===i||k.isArray(a)))for(;h<i;h++)g=b(a[h],h,c),null!=
|
||||
g&&(f[f.length]=g);else for(d in a)g=b(a[d],d,c),null!=g&&(f[f.length]=g);return f.concat.apply([],f)},guid:1,proxy:function(a,b){if("string"===typeof b)var c=a[b],b=a,a=c;if(!k.isFunction(a))return m;var d=I.call(arguments,2),c=function(){return a.apply(b,d.concat(I.call(arguments)))};c.guid=a.guid=a.guid||c.guid||k.guid++;return c},access:function(a,b,c,d,e,f){var h=a.length;if("object"===typeof b){for(var i in b)k.access(a,i,b[i],d,e,c);return a}if(c!==m){d=!f&&d&&k.isFunction(c);for(i=0;i<h;i++)e(a[i],
|
||||
b,d?c.call(a[i],i,e(a[i],b)):c,f);return a}return h?e(a[0],b):m},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=Db.exec(a)||Eb.exec(a)||Fb.exec(a)||0>a.indexOf("compatible")&&Gb.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,d){return new a.fn.init(b,d)}k.extend(!0,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(c,d){d&&(d instanceof k&&!(d instanceof a))&&(d=a(d));return k.fn.init.call(this,
|
||||
c,d,b)};a.fn.init.prototype=a.fn;var b=a(l);return a},browser:{}});k.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){Oa["[object "+b+"]"]=b.toLowerCase()});R=k.uaMatch(Kb);R.browser&&(k.browser[R.browser]=!0,k.browser.version=R.version);k.browser.webkit&&(k.browser.safari=!0);Ja.test("\u00a0")&&(Ka=/^[\s\xA0]+/,La=/[\s\xA0]+$/);Ia=k(l);l.addEventListener?B=function(){l.removeEventListener("DOMContentLoaded",B,false);k.ready()}:l.attachEvent&&(B=function(){if(l.readyState===
|
||||
"complete"){l.detachEvent("onreadystatechange",B);k.ready()}});d=k;var la="done fail isResolved isRejected promise then always pipe".split(" "),Pa=[].slice;d.extend({_Deferred:function(){var a=[],b,c,g,e={done:function(){if(!g){var c=arguments,h,i,j,k,m;if(b){m=b;b=0}h=0;for(i=c.length;h<i;h++){j=c[h];k=d.type(j);k==="array"?e.done.apply(e,j):k==="function"&&a.push(j)}m&&e.resolveWith(m[0],m[1])}return this},resolveWith:function(d,e){if(!g&&!b&&!c){e=e||[];c=1;try{for(;a[0];)a.shift().apply(d,e)}finally{b=
|
||||
[d,e];c=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return!(!c&&!b)},cancel:function(){g=1;a=[];return this}};return e},Deferred:function(a){var b=d._Deferred(),c=d._Deferred(),g;d.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,c){return d.Deferred(function(g){d.each({done:[a,
|
||||
"resolve"],fail:[c,"reject"]},function(a,c){var f=c[0],e=c[1],k;if(d.isFunction(f))b[a](function(){if((k=f.apply(this,arguments))&&d.isFunction(k.promise))k.promise().then(g.resolve,g.reject);else g[e+"With"](this===b?g:this,[k])});else b[a](g[e])})}).promise()},promise:function(a){if(a==null){if(g)return g;g=a={}}for(var c=la.length;c--;)a[la[c]]=b[la[c]];return a}});b.done(c.cancel).fail(b.cancel);delete b.cancel;a&&a.call(b,b);return b},when:function(a){function b(a){return function(b){c[a]=arguments.length>
|
||||
1?Pa.call(arguments,0):b;--f||h.resolveWith(h,Pa.call(c,0))}}var c=arguments,g=0,e=c.length,f=e,h=e<=1&&a&&d.isFunction(a.promise)?a:d.Deferred();if(e>1){for(;g<e;g++)c[g]&&d.isFunction(c[g].promise)?c[g].promise().then(b(g),h.reject):--f;f||h.resolveWith(h,c)}else h!==a&&h.resolveWith(h,e?[a]:[]);return h.promise()}});var Mb=d,ma;var o=l.createElement("div"),Nb=l.documentElement,na,C,T,U,u,D,s,V,J,W,x,X,K,Y,E,F;o.setAttribute("className","t");o.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
|
||||
na=o.getElementsByTagName("*");C=o.getElementsByTagName("a")[0];if(!na||!na.length||!C)ma={};else{T=l.createElement("select");U=T.appendChild(l.createElement("option"));u=o.getElementsByTagName("input")[0];s={leadingWhitespace:3===o.firstChild.nodeType,tbody:!o.getElementsByTagName("tbody").length,htmlSerialize:!!o.getElementsByTagName("link").length,style:/top/.test(C.getAttribute("style")),hrefNormalized:"/a"===C.getAttribute("href"),opacity:/^0.55$/.test(C.style.opacity),cssFloat:!!C.style.cssFloat,
|
||||
checkOn:"on"===u.value,optSelected:U.selected,getSetAttribute:"t"!==o.className,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};u.checked=!0;s.noCloneChecked=u.cloneNode(!0).checked;T.disabled=!0;s.optDisabled=!U.disabled;try{delete o.test}catch(jc){s.deleteExpando=!1}!o.addEventListener&&(o.attachEvent&&o.fireEvent)&&(o.attachEvent("onclick",function(){s.noCloneEvent=false}),o.cloneNode(!0).fireEvent("onclick"));
|
||||
u=l.createElement("input");u.value="t";u.setAttribute("type","radio");s.radioValue="t"===u.value;u.setAttribute("checked","checked");o.appendChild(u);V=l.createDocumentFragment();V.appendChild(o.firstChild);s.checkClone=V.cloneNode(!0).cloneNode(!0).lastChild.checked;o.innerHTML="";o.style.width=o.style.paddingLeft="1px";J=l.getElementsByTagName("body")[0];x=l.createElement(J?"div":"body");X={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};J&&d.extend(X,{position:"absolute",
|
||||
left:"-1000px",top:"-1000px"});for(E in X)x.style[E]=X[E];x.appendChild(o);W=J||Nb;W.insertBefore(x,W.firstChild);s.appendChecked=u.checked;s.boxModel=2===o.offsetWidth;"zoom"in o.style&&(o.style.display="inline",o.style.zoom=1,s.inlineBlockNeedsLayout=2===o.offsetWidth,o.style.display="",o.innerHTML="<div style='width:4px;'></div>",s.shrinkWrapBlocks=2!==o.offsetWidth);o.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";K=o.getElementsByTagName("td");
|
||||
F=0===K[0].offsetHeight;K[0].style.display="";K[1].style.display="none";s.reliableHiddenOffsets=F&&0===K[0].offsetHeight;o.innerHTML="";l.defaultView&&l.defaultView.getComputedStyle&&(D=l.createElement("div"),D.style.width="0",D.style.marginRight="0",o.appendChild(D),s.reliableMarginRight=0===(parseInt((l.defaultView.getComputedStyle(D,null)||{marginRight:0}).marginRight,10)||0));x.innerHTML="";W.removeChild(x);if(o.attachEvent)for(E in{submit:1,change:1,focusin:1})Y="on"+E,F=Y in o,F||(o.setAttribute(Y,
|
||||
"return;"),F="function"===typeof o[Y]),s[E+"Bubbles"]=F;x=V=T=U=J=D=o=u=null;ma=s}Mb.support=ma;d.boxModel=d.support.boxModel;var lb=/^(?:\{.*\}|\[.*\])$/,kb=/([A-Z])/g;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!ha(a)},data:function(a,b,c,g){if(d.acceptData(a)){var e=d.expando,f=typeof b==="string",
|
||||
h=a.nodeType,i=h?d.cache:a,j=h?a[d.expando]:a[d.expando]&&d.expando;if(j&&(!g||!j||!i[j]||i[j][e])||!(f&&c===m)){if(!j)h?a[d.expando]=j=++d.uuid:j=d.expando;if(!i[j]){i[j]={};if(!h)i[j].toJSON=d.noop}if(typeof b==="object"||typeof b==="function")g?i[j][e]=d.extend(i[j][e],b):i[j]=d.extend(i[j],b);a=i[j];if(g){a[e]||(a[e]={});a=a[e]}c!==m&&(a[d.camelCase(b)]=c);if(b==="events"&&!a[b])return a[e]&&a[e].events;if(f){c=a[b];c==null&&(c=a[d.camelCase(b)])}else c=a;return c}}},removeData:function(a,b,c){if(d.acceptData(a)){var g,
|
||||
e=d.expando,f=a.nodeType,h=f?d.cache:a,i=f?a[d.expando]:d.expando;if(h[i]){if(b)if(g=c?h[i][e]:h[i]){g[b]||(b=d.camelCase(b));delete g[b];if(!ha(g))return}if(c){delete h[i][e];if(!ha(h[i]))return}b=h[i][e];d.support.deleteExpando||!h.setInterval?delete h[i]:h[i]=null;if(b){h[i]={};if(!f)h[i].toJSON=d.noop;h[i][e]=b}else f&&(d.support.deleteExpando?delete a[d.expando]:a.removeAttribute?a.removeAttribute(d.expando):a[d.expando]=null)}}},_data:function(a,b,c){return d.data(a,b,c,true)},acceptData:function(a){if(a.nodeName){var b=
|
||||
d.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});d.fn.extend({data:function(a,b){var c=null;if(typeof a==="undefined"){if(this.length){c=d.data(this[0]);if(this[0].nodeType===1)for(var g=this[0].attributes,e,f=0,h=g.length;f<h;f++){e=g[f].name;if(e.indexOf("data-")===0){e=d.camelCase(e.substring(5));ya(this[0],e,c[e])}}}return c}if(typeof a==="object")return this.each(function(){d.data(this,a)});var i=a.split(".");i[1]=i[1]?"."+i[1]:"";if(b===
|
||||
m){c=this.triggerHandler("getData"+i[1]+"!",[i[0]]);if(c===m&&this.length){c=d.data(this[0],a);c=ya(this[0],a,c)}return c===m&&i[1]?this.data(i[0]):c}return this.each(function(){var c=d(this),g=[i[0],b];c.triggerHandler("setData"+i[1]+"!",g);d.data(this,a,b);c.triggerHandler("changeData"+i[1]+"!",g)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});d.extend({_mark:function(a,b){if(a){b=(b||"fx")+"mark";d.data(a,b,(d.data(a,b,m,true)||0)+1,true)}},_unmark:function(a,b,
|
||||
c){if(a!==true){c=b;b=a;a=false}if(b){var c=c||"fx",g=c+"mark";if(a=a?0:(d.data(b,g,m,true)||1)-1)d.data(b,g,a,true);else{d.removeData(b,g,true);za(b,c,"mark")}}},queue:function(a,b,c){if(a){var b=(b||"fx")+"queue",g=d.data(a,b,m,true);c&&(!g||d.isArray(c)?g=d.data(a,b,d.makeArray(c),true):g.push(c));return g||[]}},dequeue:function(a,b){var b=b||"fx",c=d.queue(a,b),g=c.shift();g==="inprogress"&&(g=c.shift());if(g){b==="fx"&&c.unshift("inprogress");g.call(a,function(){d.dequeue(a,b)})}if(!c.length){d.removeData(a,
|
||||
b+"queue",true);za(a,b,"queue")}}});d.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}return b===m?d.queue(this[0],a):this.each(function(){var c=d.queue(this,a,b);a==="fx"&&c[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){d.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a){function b(){--f||
|
||||
c.resolveWith(g,[g])}typeof a!=="string"&&(a=m);for(var a=a||"fx",c=d.Deferred(),g=this,e=g.length,f=1,h=a+"defer",i=a+"queue",a=a+"mark",j;e--;)if(j=d.data(g[e],h,m,true)||(d.data(g[e],i,m,true)||d.data(g[e],a,m,true))&&d.data(g[e],h,d._Deferred(),true)){f++;j.done(b)}b();return c.promise()}});var Qa=/[\n\t\r]/g,oa=/\s+/,Ob=/\r/g,Pb=/^(?:button|input)$/i,Qb=/^(?:button|input|object|select|textarea)$/i,Rb=/^a(?:rea)?$/i,Ra=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
|
||||
y,Sa;d.fn.extend({attr:function(a,b){return d.access(this,a,b,true,d.attr)},removeAttr:function(a){return this.each(function(){d.removeAttr(this,a)})},prop:function(a,b){return d.access(this,a,b,true,d.prop)},removeProp:function(a){a=d.propFix[a]||a;return this.each(function(){try{this[a]=m;delete this[a]}catch(b){}})},addClass:function(a){var b,c,g,e,f,h,i;if(d.isFunction(a))return this.each(function(b){d(this).addClass(a.call(this,b,this.className))});if(a&&typeof a==="string"){b=a.split(oa);c=
|
||||
0;for(g=this.length;c<g;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{f=" "+e.className+" ";h=0;for(i=b.length;h<i;h++)~f.indexOf(" "+b[h]+" ")||(f=f+(b[h]+" "));e.className=d.trim(f)}}}return this},removeClass:function(a){var b,c,g,e,f,h,i;if(d.isFunction(a))return this.each(function(b){d(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a==="string"||a===m){b=(a||"").split(oa);c=0;for(g=this.length;c<g;c++){e=this[c];if(e.nodeType===1&&e.className)if(a){f=
|
||||
(" "+e.className+" ").replace(Qa," ");h=0;for(i=b.length;h<i;h++)f=f.replace(" "+b[h]+" "," ");e.className=d.trim(f)}else e.className=""}}return this},toggleClass:function(a,b){var c=typeof a,g=typeof b==="boolean";return d.isFunction(a)?this.each(function(c){d(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string")for(var e,f=0,h=d(this),i=b,j=a.split(oa);e=j[f++];){i=g?i:!h.hasClass(e);h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean"){this.className&&
|
||||
d._data(this,"__className__",this.className);this.className=this.className||a===false?"":d._data(this,"__className__")||""}})},hasClass:function(a){for(var a=" "+a+" ",b=0,c=this.length;b<c;b++)if(this[b].nodeType===1&&(" "+this[b].className+" ").replace(Qa," ").indexOf(a)>-1)return true;return false},val:function(a){var b,c,g=this[0];if(!arguments.length){if(g){if((b=d.valHooks[g.nodeName.toLowerCase()]||d.valHooks[g.type])&&"get"in b&&(c=b.get(g,"value"))!==m)return c;c=g.value;return typeof c===
|
||||
"string"?c.replace(Ob,""):c==null?"":c}return m}var e=d.isFunction(a);return this.each(function(c){var g=d(this);if(this.nodeType===1){c=e?a.call(this,c,g.val()):a;c==null?c="":typeof c==="number"?c=c+"":d.isArray(c)&&(c=d.map(c,function(a){return a==null?"":a+""}));b=d.valHooks[this.nodeName.toLowerCase()]||d.valHooks[this.type];if(!b||!("set"in b)||b.set(this,c,"value")===m)this.value=c}})}});d.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},
|
||||
select:{get:function(a){var b,c=a.selectedIndex,g=[],e=a.options,a=a.type==="select-one";if(c<0)return null;for(var f=a?c:0,h=a?c+1:e.length;f<h;f++){b=e[f];if(b.selected&&(d.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!d.nodeName(b.parentNode,"optgroup"))){b=d(b).val();if(a)return b;g.push(b)}}return a&&!g.length&&e.length?d(e[c]).val():g},set:function(a,b){var c=d.makeArray(b);d(a).find("option").each(function(){this.selected=d.inArray(d(this).val(),
|
||||
c)>=0});if(!c.length)a.selectedIndex=-1;return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,b,c,g){var e=a.nodeType;if(!a||e===3||e===8||e===2)return m;if(g&&b in d.attrFn)return d(a)[b](c);if(!("getAttribute"in a))return d.prop(a,b,c);var f,h;if(g=e!==1||!d.isXMLDoc(a)){b=d.attrFix[b]||b;(h=d.attrHooks[b])||(Ra.test(b)?h=Sa:y&&(h=y))}if(c!==m){if(c===null){d.removeAttr(a,b);return m}if(h&&"set"in h&&g&&(f=h.set(a,c,
|
||||
b))!==m)return f;a.setAttribute(b,""+c);return c}if(h&&"get"in h&&g&&(f=h.get(a,b))!==null)return f;f=a.getAttribute(b);return f===null?m:f},removeAttr:function(a,b){var c;if(a.nodeType===1){b=d.attrFix[b]||b;d.attr(a,b,"");a.removeAttribute(b);if(Ra.test(b)&&(c=d.propFix[b]||b)in a)a[c]=false}},attrHooks:{type:{set:function(a,b){if(Pb.test(a.nodeName)&&a.parentNode)d.error("type property can't be changed");else if(!d.support.radioValue&&b==="radio"&&d.nodeName(a,"input")){var c=a.value;a.setAttribute("type",
|
||||
b);if(c)a.value=c;return b}}},value:{get:function(a,b){return y&&d.nodeName(a,"button")?y.get(a,b):b in a?a.value:null},set:function(a,b,c){if(y&&d.nodeName(a,"button"))return y.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,b,c){var g=
|
||||
a.nodeType;if(!a||g===3||g===8||g===2)return m;var e,f;if(g!==1||!d.isXMLDoc(a)){b=d.propFix[b]||b;f=d.propHooks[b]}return c!==m?f&&"set"in f&&(e=f.set(a,c,b))!==m?e:a[b]=c:f&&"get"in f&&(e=f.get(a,b))!==null?e:a[b]},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):Qb.test(a.nodeName)||Rb.test(a.nodeName)&&a.href?0:m}}}});d.attrHooks.tabIndex=d.propHooks.tabIndex;Sa={get:function(a,b){var c;return d.prop(a,b)===true||(c=a.getAttributeNode(b))&&
|
||||
c.nodeValue!==false?b.toLowerCase():m},set:function(a,b,c){if(b===false)d.removeAttr(a,c);else{b=d.propFix[c]||c;b in a&&(a[b]=true);a.setAttribute(c,c.toLowerCase())}return c}};d.support.getSetAttribute||(y=d.valHooks.button={get:function(a,b){var c;return(c=a.getAttributeNode(b))&&c.nodeValue!==""?c.nodeValue:m},set:function(a,b,c){var d=a.getAttributeNode(c);if(!d){d=l.createAttribute(c);a.setAttributeNode(d)}return d.nodeValue=b+""}},d.each(["width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b],
|
||||
{set:function(a,d){if(d===""){a.setAttribute(b,"auto");return d}}})}));d.support.hrefNormalized||d.each(["href","src","width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return a===null?m:a}})});d.support.style||(d.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||m},set:function(a,b){return a.style.cssText=""+b}});d.support.optSelected||(d.propHooks.selected=d.extend(d.propHooks.selected,{get:function(a){if(a=a.parentNode){a.selectedIndex;
|
||||
a.parentNode&&a.parentNode.selectedIndex}return null}}));d.support.checkOn||d.each(["radio","checkbox"],function(){d.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});d.each(["radio","checkbox"],function(){d.valHooks[this]=d.extend(d.valHooks[this],{set:function(a,b){if(d.isArray(b))return a.checked=d.inArray(d(a).val(),b)>=0}})});var ia=/\.(.*)$/,pa=/^(?:textarea|input|select)$/i,nb=/\./g,ob=/ /g,Sb=/[^\w\s.|`]/g,Tb=function(a){return a.replace(Sb,"\\$&")};d.event=
|
||||
{add:function(a,b,c,g){if(!(a.nodeType===3||a.nodeType===8)){if(c===false)c=w;else if(!c)return;var e,f;if(c.handler){e=c;c=e.handler}if(!c.guid)c.guid=d.guid++;if(f=d._data(a)){var h=f.events,i=f.handle;if(!h)f.events=h={};if(!i)f.handle=i=function(a){return typeof d!=="undefined"&&(!a||d.event.triggered!==a.type)?d.event.handle.apply(i.elem,arguments):m};i.elem=a;for(var b=b.split(" "),j,k=0,l;j=b[k++];){f=e?d.extend({},e):{handler:c,data:g};if(j.indexOf(".")>-1){l=j.split(".");j=l.shift();f.namespace=
|
||||
l.slice(0).sort().join(".")}else{l=[];f.namespace=""}f.type=j;if(!f.guid)f.guid=c.guid;var n=h[j],q=d.event.special[j]||{};if(!n){n=h[j]=[];if(!q.setup||q.setup.call(a,g,l,i)===false)a.addEventListener?a.addEventListener(j,i,false):a.attachEvent&&a.attachEvent("on"+j,i)}if(q.add){q.add.call(a,f);if(!f.handler.guid)f.handler.guid=c.guid}n.push(f);d.event.global[j]=true}a=null}}},global:{},remove:function(a,b,c,g){if(!(a.nodeType===3||a.nodeType===8)){c===false&&(c=w);var e,f,h=0,i,j,k,l,n,q,p=d.hasData(a)&&
|
||||
d._data(a),o=p&&p.events;if(p&&o){if(b&&b.type){c=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in o)d.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[h++];){l=e;i=e.indexOf(".")<0;j=[];if(!i){j=e.split(".");e=j.shift();k=RegExp("(^|\\.)"+d.map(j.slice(0).sort(),Tb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(n=o[e])if(c){l=d.event.special[e]||{};for(f=g||0;f<n.length;f++){q=n[f];if(c.guid===q.guid){if(i||k.test(q.namespace)){g==null&&n.splice(f--,1);l.remove&&l.remove.call(a,
|
||||
q)}if(g!=null)break}}if(n.length===0||g!=null&&n.length===1){(!l.teardown||l.teardown.call(a,j)===false)&&d.removeEvent(a,e,p.handle);delete o[e]}}else for(f=0;f<n.length;f++){q=n[f];if(i||k.test(q.namespace)){d.event.remove(a,l,q.handler,f);n.splice(f--,1)}}}if(d.isEmptyObject(o)){if(b=p.handle)b.elem=null;delete p.events;delete p.handle;d.isEmptyObject(p)&&d.removeData(a,m,true)}}}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(a,b,c,g){var e=a.type||a,f=[],h;if(e.indexOf("!")>=
|
||||
0){e=e.slice(0,-1);h=true}if(e.indexOf(".")>=0){f=e.split(".");e=f.shift();f.sort()}if(c&&!d.event.customEvent[e]||d.event.global[e]){a=typeof a==="object"?a[d.expando]?a:new d.Event(e,a):new d.Event(e);a.type=e;a.exclusive=h;a.namespace=f.join(".");a.namespace_re=RegExp("(^|\\.)"+f.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!c){a.preventDefault();a.stopPropagation()}if(c){if(!(c.nodeType===3||c.nodeType===8)){a.result=m;a.target=c;b=b!=null?d.makeArray(b):[];b.unshift(a);f=c;g=e.indexOf(":")<0?"on"+
|
||||
e:"";do{h=d._data(f,"handle");a.currentTarget=f;h&&h.apply(f,b);if(g&&d.acceptData(f)&&f[g]&&f[g].apply(f,b)===false){a.result=false;a.preventDefault()}f=f.parentNode||f.ownerDocument||f===a.target.ownerDocument&&r}while(f&&!a.isPropagationStopped());if(!a.isDefaultPrevented()){var i,f=d.event.special[e]||{};if((!f._default||f._default.call(c.ownerDocument,a)===false)&&!(e==="click"&&d.nodeName(c,"a"))&&d.acceptData(c)){try{if(g&&c[e]){(i=c[g])&&(c[g]=null);d.event.triggered=e;c[e]()}}catch(j){}i&&
|
||||
(c[g]=i);d.event.triggered=m}}return a.result}}else d.each(d.cache,function(){var c=this[d.expando];c&&(c.events&&c.events[e])&&d.event.trigger(a,b,c.handle.elem)})}},handle:function(a){var a=d.event.fix(a||r.event),b=((d._data(this,"events")||{})[a.type]||[]).slice(0),c=!a.exclusive&&!a.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=a;a.currentTarget=this;for(var e=0,f=b.length;e<f;e++){var h=b[e];if(c||a.namespace_re.test(h.namespace)){a.handler=h.handler;a.data=h.data;a.handleObj=h;h=
|
||||
h.handler.apply(this,g);if(h!==m){a.result=h;if(h===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[d.expando])return a;
|
||||
for(var b=a,a=d.Event(b),c=this.props.length,g;c;){g=this.props[--c];a[g]=b[g]}if(!a.target)a.target=a.srcElement||l;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){c=a.target.ownerDocument||l;b=c.documentElement;c=c.body;a.pageX=a.clientX+(b&&b.scrollLeft||c&&c.scrollLeft||0)-(b&&b.clientLeft||c&&c.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||c&&c.scrollTop||
|
||||
0)-(b&&b.clientTop||c&&c.clientTop||0)}if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==m)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,P(a.origType,a.selector),d.extend({},a,{handler:mb,guid:a.handler.guid}))},remove:function(a){d.event.remove(this,P(a.origType,
|
||||
a.selector),a)}},beforeunload:{setup:function(a,b,c){if(d.isWindow(this))this.onbeforeunload=c},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};d.removeEvent=l.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,false)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)};d.Event=function(a,b){if(!this.preventDefault)return new d.Event(a,b);if(a&&a.type){this.originalEvent=a;this.type=a.type;this.isDefaultPrevented=a.defaultPrevented||
|
||||
a.returnValue===false||a.getPreventDefault&&a.getPreventDefault()?O:w}else this.type=a;b&&d.extend(this,b);this.timeStamp=d.now();this[d.expando]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=O;var a=this.originalEvent;if(a)a.preventDefault?a.preventDefault():a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=O;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=
|
||||
O;this.stopPropagation()},isDefaultPrevented:w,isPropagationStopped:w,isImmediatePropagationStopped:w};var Ta=function(a){var b=a.relatedTarget,c=false,g=a.type;a.type=a.data;if(b!==this){b&&(c=d.contains(this,b));if(!c){d.event.handle.apply(this,arguments);a.type=g}}},Ua=function(a){a.type=a.data;d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={setup:function(c){d.event.add(this,b,c&&c.selector?Ua:Ta,a)},teardown:function(a){d.event.remove(this,
|
||||
b,a&&a.selector?Ua:Ta)}}});d.support.submitBubbles||(d.event.special.submit={setup:function(){if(d.nodeName(this,"form"))return false;d.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=d.nodeName(b,"input")||d.nodeName(b,"button")?b.type:"";(c==="submit"||c==="image")&&d(b).closest("form").length&&Aa("submit",this,arguments)});d.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=d.nodeName(b,"input")||d.nodeName(b,"button")?b.type:"";(c==="text"||c==="password")&&
|
||||
(d(b).closest("form").length&&a.keyCode===13)&&Aa("submit",this,arguments)})},teardown:function(){d.event.remove(this,".specialSubmit")}});if(!d.support.changeBubbles){var L,Va=function(a){var b=d.nodeName(a,"input")?a.type:"",c=a.value;if(b==="radio"||b==="checkbox")c=a.checked;else if(b==="select-multiple")c=a.selectedIndex>-1?d.map(a.options,function(a){return a.selected}).join("-"):"";else if(d.nodeName(a,"select"))c=a.selectedIndex;return c},Z=function(a,b){var c=a.target,g,e;if(pa.test(c.nodeName)&&
|
||||
!c.readOnly){g=d._data(c,"_change_data");e=Va(c);(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",e);if(!(g===m||e===g))if(g!=null||e){a.type="change";a.liveFired=m;d.event.trigger(a,b,c)}}};d.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,c=d.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||d.nodeName(b,"select"))&&Z.call(this,a)},keydown:function(a){var b=a.target,c=d.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!d.nodeName(b,
|
||||
"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&Z.call(this,a)},beforeactivate:function(a){a=a.target;d._data(a,"_change_data",Va(a))}},setup:function(){if(this.type==="file")return false;for(var a in L)d.event.add(this,a+".specialChange",L[a]);return pa.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return pa.test(this.nodeName)}};L=d.event.special.change.filters;L.focus=L.beforeactivate}d.support.focusinBubbles||d.each({focus:"focusin",
|
||||
blur:"focusout"},function(a,b){function c(a){var c=d.event.fix(a);c.type=b;c.originalEvent={};d.event.trigger(c,null,c.target);c.isDefaultPrevented()&&a.preventDefault()}var g=0;d.event.special[b]={setup:function(){g++===0&&l.addEventListener(a,c,true)},teardown:function(){--g===0&&l.removeEventListener(a,c,true)}}});d.each(["bind","one"],function(a,b){d.fn[b]=function(a,g,e){var f;if(typeof a==="object"){for(var h in a)this[b](h,g,a[h],e);return this}if(arguments.length===2||g===false){e=g;g=m}if(b===
|
||||
"one"){f=function(a){d(this).unbind(a,f);return e.apply(this,arguments)};f.guid=e.guid||d.guid++}else f=e;if(a==="unload"&&b!=="one")this.one(a,g,e);else{h=0;for(var i=this.length;h<i;h++)d.event.add(this[h],a,f,g)}return this}});d.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else{c=0;for(var g=this.length;c<g;c++)d.event.remove(this[c],a,b)}return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===
|
||||
0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return d.event.trigger(a,b,this[0],true)},toggle:function(a){var b=arguments,c=a.guid||d.guid++,g=0,e=function(c){var e=(d.data(this,"lastToggle"+a.guid)||0)%g;d.data(this,"lastToggle"+a.guid,e+1);c.preventDefault();return b[e].apply(this,arguments)||false};for(e.guid=c;g<b.length;)b[g++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||
|
||||
a)}});var qa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,b){d.fn[b]=function(a,g,e,f){var h=0,i,j,k=f||this.selector,l=f?this:d(this.context);if(typeof a==="object"&&!a.preventDefault){for(i in a)l[b](i,g,a[i],k);return this}if(b==="die"&&!a&&f&&f.charAt(0)==="."){l.unbind(f);return this}if(g===false||d.isFunction(g)){e=g||w;g=m}for(a=(a||"").split(" ");(f=a[h++])!=null;){i=ia.exec(f);j="";if(i){j=i[0];f=f.replace(ia,"")}if(f==="hover")a.push("mouseenter"+
|
||||
j,"mouseleave"+j);else{i=f;if(qa[f]){a.push(qa[f]+j);f=f+j}else f=(qa[f]||f)+j;if(b==="live"){j=0;for(var n=l.length;j<n;j++)d.event.add(l[j],"live."+P(f,k),{data:g,selector:k,handler:e,origType:f,origHandler:e,preType:i})}else l.unbind("live."+P(f,k),e)}}return this}});d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){d.fn[b]=
|
||||
function(a,d){if(d==null){d=a;a=null}return arguments.length>0?this.bind(b,a,d):this.trigger(b)};d.attrFn&&(d.attrFn[b]=true)});var Wa=function(a,b,c,d,e,f){for(var e=0,h=d.length;e<h;e++){var i=d[e];if(i){for(var j=false,i=i[a];i;){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1&&!f){i.sizcache=c;i.sizset=e}if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[e]=j}}},Xa=function(a,b,c,d,e,f){for(var e=0,h=d.length;e<h;e++){var i=d[e];if(i){for(var j=false,i=i[a];i;){if(i.sizcache===c){j=
|
||||
d[i.sizset];break}if(i.nodeType===1){if(!f){i.sizcache=c;i.sizset=e}if(typeof b!=="string"){if(i===b){j=true;break}}else if(n.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[e]=j}}},ra=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,sa=0,Ya=Object.prototype.toString,aa=!1,Za=!0,G=/\\/g,ba=/\W/;[0,0].sort(function(){Za=false;return 0});var n=function(a,b,c,d){var c=c||[],e=b=b||l;if(b.nodeType!==1&&b.nodeType!==9)return[];
|
||||
if(!a||typeof a!=="string")return c;var f,h,i,j,k,m=true,o=n.isXML(b),q=[],r=a;do{ra.exec("");if(f=ra.exec(r)){r=f[3];q.push(f[1]);if(f[2]){j=f[3];break}}}while(f);if(q.length>1&&Ub.exec(a))if(q.length===2&&p.relative[q[0]])h=$a(q[0]+q[1],b);else for(h=p.relative[q[0]]?[b]:n(q.shift(),b);q.length;){a=q.shift();p.relative[a]&&(a=a+q.shift());h=$a(a,h)}else{if(!d&&q.length>1&&b.nodeType===9&&!o&&p.match.ID.test(q[0])&&!p.match.ID.test(q[q.length-1])){f=n.find(q.shift(),b,o);b=f.expr?n.filter(f.expr,
|
||||
f.set)[0]:f.set[0]}if(b){f=d?{expr:q.pop(),set:v(d)}:n.find(q.pop(),q.length===1&&(q[0]==="~"||q[0]==="+")&&b.parentNode?b.parentNode:b,o);h=f.expr?n.filter(f.expr,f.set):f.set;for(q.length>0?i=v(h):m=false;q.length;){f=k=q.pop();p.relative[k]?f=q.pop():k="";f==null&&(f=b);p.relative[k](i,f,o)}}else i=[]}i||(i=h);i||n.error(k||a);if(Ya.call(i)==="[object Array]")if(m)if(b&&b.nodeType===1)for(a=0;i[a]!=null;a++)i[a]&&(i[a]===true||i[a].nodeType===1&&n.contains(b,i[a]))&&c.push(h[a]);else for(a=0;i[a]!=
|
||||
null;a++)i[a]&&i[a].nodeType===1&&c.push(h[a]);else c.push.apply(c,i);else v(i,c);if(j){n(j,e,c,d);n.uniqueSort(c)}return c};n.uniqueSort=function(a){if(ca){aa=Za;a.sort(ca);if(aa)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a};n.matches=function(a,b){return n(a,null,null,b)};n.matchesSelector=function(a,b){return n(b,null,null,[a]).length>0};n.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=p.order.length;e<f;e++){var h,i=p.order[e];if(h=p.leftMatch[i].exec(a)){var j=
|
||||
h[1];h.splice(1,1);if(j.substr(j.length-1)!=="\\"){h[1]=(h[1]||"").replace(G,"");d=p.find[i](h,b,c);if(d!=null){a=a.replace(p.match[i],"");break}}}}d||(d=typeof b.getElementsByTagName!=="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}};n.filter=function(a,b,c,d){for(var e,f,h=a,i=[],j=b,k=b&&b[0]&&n.isXML(b[0]);a&&b.length;){for(var l in p.filter)if((e=p.leftMatch[l].exec(a))!=null&&e[2]){var o,q,r=p.filter[l];q=e[1];f=false;e.splice(1,1);if(q.substr(q.length-1)!=="\\"){j===i&&(i=
|
||||
[]);if(p.preFilter[l])if(e=p.preFilter[l](e,j,c,i,d,k)){if(e===true)continue}else f=o=true;if(e)for(var s=0;(q=j[s])!=null;s++)if(q){o=r(q,e,s,j);var t=d^!!o;if(c&&o!=null)t?f=true:j[s]=false;else if(t){i.push(q);f=true}}if(o!==m){c||(j=i);a=a.replace(p.match[l],"");if(!f)return[];break}}}if(a===h)if(f==null)n.error(a);else break;h=a}return j};n.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var p=n.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
|
||||
CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},
|
||||
leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b==="string",d=c&&!ba.test(b),c=c&&!d;d&&(b=b.toLowerCase());for(var d=0,e=a.length,f;d<e;d++)if(f=a[d]){for(;(f=f.previousSibling)&&f.nodeType!==1;);a[d]=c||f&&f.nodeName.toLowerCase()===b?f||false:f===b}c&&n.filter(b,a,true)},">":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&
|
||||
!ba.test(b))for(b=b.toLowerCase();e<f;e++){if(c=a[e]){c=c.parentNode;a[e]=c.nodeName.toLowerCase()===b?c:false}}else{for(;e<f;e++)(c=a[e])&&(a[e]=d?c.parentNode:c.parentNode===b);d&&n.filter(b,a,true)}},"":function(a,b,c){var d,e=sa++,f=Xa;if(typeof b==="string"&&!ba.test(b)){d=b=b.toLowerCase();f=Wa}f("parentNode",b,e,a,d,c)},"~":function(a,b,c){var d,e=sa++,f=Xa;if(typeof b==="string"&&!ba.test(b)){d=b=b.toLowerCase();f=Wa}f("previousSibling",b,e,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!==
|
||||
"undefined"&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){for(var c=[],d=b.getElementsByName(a[1]),e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(G,"")+" ";if(f)return a;for(var f=0,h;(h=b[f])!=null;f++)h&&(e^(h.className&&
|
||||
(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[f]=false));return false},ID:function(a){return a[1].replace(G,"")},TAG:function(a){return a[1].replace(G,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||n.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&n.error(a[0]);a[0]=sa++;return a},ATTR:function(a,
|
||||
b,c,d,e,f){b=a[1]=a[1].replace(G,"");!f&&p.attrMap[b]&&(a[1]=p.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(G,"");a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,c,d,e){if(a[1]==="not")if((ra.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=n(a[3],null,null,b);else{a=n.filter(a[3],b,c,1^e);c||d.push.apply(d,a);return false}else if(p.match.POS.test(a[0])||p.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===
|
||||
false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!n(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===
|
||||
a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===
|
||||
0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=p.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){b=b[3];c=0;for(d=b.length;c<d;c++)if(b[c]===a)return false;return true}n.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case "only":case "first":for(;d=
|
||||
d.previousSibling;)if(d.nodeType===1)return false;if(c==="first")return true;d=a;case "last":for(;d=d.nextSibling;)if(d.nodeType===1)return false;return true;case "nth":var c=b[2],e=b[3];if(c===1&&e===0)return true;var f=b[0],h=a.parentNode;if(h&&(h.sizcache!==f||!a.nodeIndex)){for(var i=0,d=h.firstChild;d;d=d.nextSibling)if(d.nodeType===1)d.nodeIndex=++i;h.sizcache=f}d=a.nodeIndex-e;return c===0?d===0:d%c===0&&d/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,
|
||||
b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],c=p.attrHandle[c]?p.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),d=c+"",e=b[2],f=b[4];return c==null?e==="!=":e==="="?d===f:e==="*="?d.indexOf(f)>=0:e==="~="?(" "+d+" ").indexOf(f)>=0:!f?d&&c!==false:e==="!="?d!==f:e==="^="?d.indexOf(f)===0:e==="$="?d.substr(d.length-f.length)===f:e==="|="?d===f||d.substr(0,f.length+
|
||||
1)===f+"-":false},POS:function(a,b,c,d){var e=p.setFilters[b[2]];if(e)return e(a,c,b,d)}}},Ub=p.match.POS,Vb=function(a,b){return"\\"+(b-0+1)},M;for(M in p.match)p.match[M]=RegExp(p.match[M].source+/(?![^\[]*\])(?![^\(]*\))/.source),p.leftMatch[M]=RegExp(/(^(?:.|\r|\n)*?)/.source+p.match[M].source.replace(/\\(\d+)/g,Vb));var v=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(l.documentElement.childNodes,0)[0].nodeType}catch(kc){v=
|
||||
function(a,b){var c=0,d=b||[];if(Ya.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var ca,N;l.documentElement.compareDocumentPosition?ca=function(a,b){if(a===b){aa=true;return 0}return!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:(ca=function(a,b){var c,d,e=[],f=[];c=a.parentNode;d=b.parentNode;
|
||||
var h=c;if(a===b){aa=true;return 0}if(c===d)return N(a,b);if(c){if(!d)return 1}else return-1;for(;h;){e.unshift(h);h=h.parentNode}for(h=d;h;){f.unshift(h);h=h.parentNode}c=e.length;d=f.length;for(h=0;h<c&&h<d;h++)if(e[h]!==f[h])return N(e[h],f[h]);return h===c?N(a,f[h],-1):N(e[h],b,1)},N=function(a,b,c){if(a===b)return c;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});n.getText=function(a){for(var b="",c,d=0;a[d];d++){c=a[d];c.nodeType===3||c.nodeType===4?b=b+c.nodeValue:c.nodeType!==
|
||||
8&&(b=b+n.getText(c.childNodes))}return b};var da=l.createElement("div"),ab="script"+(new Date).getTime(),ea=l.documentElement;da.innerHTML="<a name='"+ab+"'/>";ea.insertBefore(da,ea.firstChild);l.getElementById(ab)&&(p.find.ID=function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!=="undefined"&&b.getAttributeNode("id").nodeValue===a[1]?[b]:m:[]},p.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&
|
||||
a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b});ea.removeChild(da);var ea=da=null,z=l.createElement("div");z.appendChild(l.createComment(""));0<z.getElementsByTagName("*").length&&(p.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){for(var d=[],e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c});z.innerHTML="<a href='#'></a>";z.firstChild&&("undefined"!==typeof z.firstChild.getAttribute&&"#"!==z.firstChild.getAttribute("href"))&&(p.attrHandle.href=
|
||||
function(a){return a.getAttribute("href",2)});z=null;if(l.querySelectorAll){var ta=n,fa=l.createElement("div");fa.innerHTML="<p class='TEST'></p>";if(!(fa.querySelectorAll&&0===fa.querySelectorAll(".TEST").length)){var n=function(a,b,c,d){b=b||l;if(!d&&!n.isXML(b)){var e=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a);if(e&&(b.nodeType===1||b.nodeType===9)){if(e[1])return v(b.getElementsByTagName(a),c);if(e[2]&&p.find.CLASS&&b.getElementsByClassName)return v(b.getElementsByClassName(e[2]),c)}if(b.nodeType===
|
||||
9){if(a==="body"&&b.body)return v([b.body],c);if(e&&e[3]){var f=b.getElementById(e[3]);if(f&&f.parentNode){if(f.id===e[3])return v([f],c)}else return v([],c)}try{return v(b.querySelectorAll(a),c)}catch(h){}}else if(b.nodeType===1&&b.nodeName.toLowerCase()!=="object"){var e=b,i=(f=b.getAttribute("id"))||"__sizzle__",j=b.parentNode,k=/^\s*[+~]/.test(a);f?i=i.replace(/'/g,"\\$&"):b.setAttribute("id",i);if(k&&j)b=b.parentNode;try{if(!k||j)return v(b.querySelectorAll("[id='"+i+"'] "+a),c)}catch(m){}finally{f||
|
||||
e.removeAttribute("id")}}}return ta(a,b,c,d)},ua;for(ua in ta)n[ua]=ta[ua];fa=null}}var ga=l.documentElement,va=ga.matchesSelector||ga.mozMatchesSelector||ga.webkitMatchesSelector||ga.msMatchesSelector,bb=!1;try{va.call(l.documentElement,"[test!='']:sizzle")}catch(lc){bb=!0}va&&(n.matchesSelector=function(a,b){b=b.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(a))try{if(bb||!p.match.PSEUDO.test(b)&&!/!=/.test(b))return va.call(a,b)}catch(c){}return n(b,null,null,[a]).length>0});var H=l.createElement("div");
|
||||
H.innerHTML="<div class='test e'></div><div class='test'></div>";H.getElementsByClassName&&0!==H.getElementsByClassName("e").length&&(H.lastChild.className="e",1!==H.getElementsByClassName("e").length&&(p.order.splice(1,0,"CLASS"),p.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},H=null));n.contains=l.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):true)}:l.documentElement.compareDocumentPosition?
|
||||
function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return false};n.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":false};var $a=function(a,b){for(var c,d=[],e="",f=b.nodeType?[b]:b;c=p.match.PSEUDO.exec(a);){e=e+c[0];a=a.replace(p.match.PSEUDO,"")}a=p.relative[a]?a+"*":a;c=0;for(var h=f.length;c<h;c++)n(a,f[c],d);return n.filter(e,d)};d.find=n;d.expr=n.selectors;d.expr[":"]=d.expr.filters;d.unique=n.uniqueSort;d.text=n.getText;d.isXMLDoc=
|
||||
n.isXML;d.contains=n.contains;var Wb=/Until$/,Xb=/^(?:parents|prevUntil|prevAll)/,Yb=/,/,pb=/^.[^:#\[\.,]*$/,Zb=Array.prototype.slice,cb=d.expr.match.POS,$b={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({find:function(a){var b=this,c,g;if(typeof a!=="string")return d(a).filter(function(){c=0;for(g=b.length;c<g;c++)if(d.contains(b[c],this))return true});var e=this.pushStack("","find",a),f,h,i;c=0;for(g=this.length;c<g;c++){f=e.length;d.find(a,this[c],e);if(c>0)for(h=f;h<e.length;h++)for(i=
|
||||
0;i<f;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=d(a);return this.filter(function(){for(var a=0,g=b.length;a<g;a++)if(d.contains(this,b[a]))return true})},not:function(a){return this.pushStack(Ba(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ba(this,a,true),"filter",a)},is:function(a){return!!a&&(typeof a==="string"?d.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],g,e,f=this[0];if(d.isArray(a)){var h,i={},j=1;if(f&&
|
||||
a.length){g=0;for(e=a.length;g<e;g++){h=a[g];i[h]||(i[h]=cb.test(h)?d(h,b||this.context):h)}for(;f&&f.ownerDocument&&f!==b;){for(h in i){g=i[h];(g.jquery?g.index(f)>-1:d(f).is(g))&&c.push({selector:h,elem:f,level:j})}f=f.parentNode;j++}}return c}h=cb.test(a)||typeof a!=="string"?d(a,b||this.context):0;g=0;for(e=this.length;g<e;g++)for(f=this[g];f;)if(h?h.index(f)>-1:d.find.matchesSelector(f,a)){c.push(f);break}else{f=f.parentNode;if(!f||!f.ownerDocument||f===b||f.nodeType===11)break}c=c.length>1?
|
||||
d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){return!a?this[0]&&this[0].parentNode?this.prevAll().length:-1:typeof a==="string"?d.inArray(this[0],d(a)):d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a&&a.nodeType?[a]:a),g=d.merge(this.get(),c);return this.pushStack(!c[0]||!c[0].parentNode||c[0].parentNode.nodeType===11||!g[0]||!g[0].parentNode||g[0].parentNode.nodeType===11?g:d.unique(g))},andSelf:function(){return this.add(this.prevObject)}});
|
||||
d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",
|
||||
c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,g){var e=d.map(this,b,c),f=Zb.call(arguments);Wb.test(a)||(g=c);g&&typeof g==="string"&&(e=d.filter(g,e));e=this.length>1&&!$b[a]?d.unique(e):e;if((this.length>1||Yb.test(g))&&Xb.test(a))e=e.reverse();return this.pushStack(e,
|
||||
a,f.join(","))}});d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,b,c){for(var g=[],a=a[b];a&&a.nodeType!==9&&(c===m||a.nodeType!==1||!d(a).is(c));){a.nodeType===1&&g.push(a);a=a[b]}return g},nth:function(a,b,c){for(var b=b||1,d=0;a;a=a[c])if(a.nodeType===1&&++d===b)break;return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var ac=/ jQuery\d+="(?:\d+|null)"/g,
|
||||
wa=/^\s+/,db=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,eb=/<([\w:]+)/,bc=/<tbody/i,cc=/<|&#?\w+;/,fb=/<(?:script|object|embed|option|style)/i,gb=/checked\s*(?:[^=]|=\s*.checked.)/i,dc=/\/(java|ecma)script/i,rb=/^\s*<!(?:\[CDATA\[|\-\-)/,t={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>",
|
||||
"</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};t.optgroup=t.option;t.tbody=t.tfoot=t.colgroup=t.caption=t.thead;t.th=t.td;d.support.htmlSerialize||(t._default=[1,"div<div>","</div>"]);d.fn.extend({text:function(a){return d.isFunction(a)?this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))}):typeof a!=="object"&&a!==m?this.empty().append((this[0]&&this[0].ownerDocument||l).createTextNode(a)):d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,
|
||||
b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return d.isFunction(a)?this.each(function(b){d(this).wrapInner(a.call(this,b))}):this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,
|
||||
"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,
|
||||
"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,g;(g=this[c])!=null;c++)if(!a||d.filter(a,[g]).length){if(!b&&g.nodeType===1){d.cleanData(g.getElementsByTagName("*"));d.cleanData([g])}g.parentNode&&g.parentNode.removeChild(g)}return this},
|
||||
empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=a==null?false:a;b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===m)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ac,""):null;if(typeof a==="string"&&!fb.test(a)&&(d.support.leadingWhitespace||!wa.test(a))&&!t[(eb.exec(a)||["",""])[1].toLowerCase()]){a=
|
||||
a.replace(db,"<$1></$2>");try{for(var b=0,c=this.length;b<c;b++)if(this[b].nodeType===1){d.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(g){this.empty().append(a)}}else d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(b){var c=d(this),g=c.html();c.replaceWith(a.call(this,b,g))});typeof a!=="string"&&
|
||||
(a=d(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;d(this).remove();b?d(b).before(a):d(c).append(a)})}return this.length?this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,true)},domManip:function(a,b,c){var g,e,f,h=a[0],i=[];if(!d.support.checkClone&&arguments.length===3&&typeof h==="string"&&gb.test(h))return this.each(function(){d(this).domManip(a,b,c,true)});if(d.isFunction(h))return this.each(function(e){var f=
|
||||
d(this);a[0]=h.call(this,e,b?f.html():m);f.domManip(a,b,c)});if(this[0]){g=h&&h.parentNode;g=d.support.parentNode&&g&&g.nodeType===11&&g.childNodes.length===this.length?{fragment:g}:d.buildFragment(a,this,i);f=g.fragment;if(e=f.childNodes.length===1?f=f.firstChild:f.firstChild){b=b&&d.nodeName(e,"tr");e=0;for(var j=this.length,k=j-1;e<j;e++)c.call(b?d.nodeName(this[e],"table")?this[e].getElementsByTagName("tbody")[0]||this[e].appendChild(this[e].ownerDocument.createElement("tbody")):this[e]:this[e],
|
||||
g.cacheable||j>1&&e<k?d.clone(f,true,true):f)}i.length&&d.each(i,qb)}return this}});d.buildFragment=function(a,b,c){var g,e,f,h;b&&b[0]&&(h=b[0].ownerDocument||b[0]);h.createDocumentFragment||(h=l);if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&h===l&&a[0].charAt(0)==="<"&&!fb.test(a[0])&&(d.support.checkClone||!gb.test(a[0]))){e=true;(f=d.fragments[a[0]])&&f!==1&&(g=f)}if(!g){g=h.createDocumentFragment();d.clean(a,h,g,c)}e&&(d.fragments[a[0]]=f?g:1);return{fragment:g,cacheable:e}};d.fragments=
|
||||
{};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(c){var g=[],c=d(c),e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&c.length===1){c[b](this[0]);return this}for(var e=0,f=c.length;e<f;e++){var h=(e>0?this.clone(true):this).get();d(c[e])[b](h);g=g.concat(h)}return this.pushStack(g,a,c.selector)}});d.extend({clone:function(a,b,c){var g=a.cloneNode(true),e,f,h;if((!d.support.noCloneEvent||
|
||||
!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){Da(a,g);e=Q(a);f=Q(g);for(h=0;e[h];++h)f[h]&&Da(e[h],f[h])}if(b){Ca(a,g);if(c){e=Q(a);f=Q(g);for(h=0;e[h];++h)Ca(e[h],f[h])}}return g},clean:function(a,b,c,g){b=b||l;typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||l);for(var e=[],f,h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i=i+"");if(i){if(typeof i==="string")if(cc.test(i)){i=i.replace(db,"<$1></$2>");f=(eb.exec(i)||["",""])[1].toLowerCase();
|
||||
var j=t[f]||t._default,k=j[0],m=b.createElement("div");for(m.innerHTML=j[1]+i+j[2];k--;)m=m.lastChild;if(!d.support.tbody){k=bc.test(i);j=f==="table"&&!k?m.firstChild&&m.firstChild.childNodes:j[1]==="<table>"&&!k?m.childNodes:[];for(f=j.length-1;f>=0;--f)d.nodeName(j[f],"tbody")&&!j[f].childNodes.length&&j[f].parentNode.removeChild(j[f])}!d.support.leadingWhitespace&&wa.test(i)&&m.insertBefore(b.createTextNode(wa.exec(i)[0]),m.firstChild);i=m.childNodes}else i=b.createTextNode(i);var n;if(!d.support.appendChecked)if(i[0]&&
|
||||
typeof(n=i.length)==="number")for(f=0;f<n;f++)Fa(i[f]);else Fa(i);i.nodeType?e.push(i):e=d.merge(e,i)}}if(c){a=function(a){return!a.type||dc.test(a.type)};for(h=0;e[h];h++)if(g&&d.nodeName(e[h],"script")&&(!e[h].type||e[h].type.toLowerCase()==="text/javascript"))g.push(e[h].parentNode?e[h].parentNode.removeChild(e[h]):e[h]);else{if(e[h].nodeType===1){b=d.grep(e[h].getElementsByTagName("script"),a);e.splice.apply(e,[h+1,0].concat(b))}c.appendChild(e[h])}}return e},cleanData:function(a){for(var b,c,
|
||||
g=d.cache,e=d.expando,f=d.event.special,h=d.support.deleteExpando,i=0,j;(j=a[i])!=null;i++)if(!j.nodeName||!d.noData[j.nodeName.toLowerCase()])if(c=j[d.expando]){if((b=g[c]&&g[c][e])&&b.events){for(var k in b.events)f[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);if(b.handle)b.handle.elem=null}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando);delete g[c]}}});var xa=/alpha\([^)]*\)/i,ec=/opacity=([^)]*)/,fc=/([A-Z]|^ms)/g,hb=/^-?\d+(?:px)?$/i,gc=/^-?\d/,hc=/^([\-+])=([\-+.\de]+)/,
|
||||
ic={position:"absolute",visibility:"hidden",display:"block"},sb=["Left","Right"],tb=["Top","Bottom"],A,ib,jb;d.fn.css=function(a,b){return arguments.length===2&&b===m?this:d.access(this,a,b,true,function(a,b,e){return e!==m?d.style(a,b,e):d.css(a,b)})};d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=A(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":d.support.cssFloat?
|
||||
"cssFloat":"styleFloat"},style:function(a,b,c,g){if(a&&!(a.nodeType===3||a.nodeType===8||!a.style)){var e,f=d.camelCase(b),h=a.style,i=d.cssHooks[f],b=d.cssProps[f]||f;if(c!==m){g=typeof c;if(g==="string"&&(e=hc.exec(c))){c=+(e[1]+1)*+e[2]+parseFloat(d.css(a,b));g="number"}if(!(c==null||g==="number"&&isNaN(c))){g==="number"&&!d.cssNumber[f]&&(c=c+"px");if(!i||!("set"in i)||(c=i.set(a,c))!==m)try{h[b]=c}catch(j){}}}else return i&&"get"in i&&(e=i.get(a,false,g))!==m?e:h[b]}},css:function(a,b,c){var g,
|
||||
e,b=d.camelCase(b);e=d.cssHooks[b];b=d.cssProps[b]||b;b==="cssFloat"&&(b="float");if(e&&"get"in e&&(g=e.get(a,true,c))!==m)return g;if(A)return A(a,b)},swap:function(a,b,c){var d={},e;for(e in b){d[e]=a.style[e];a.style[e]=b[e]}c.call(a);for(e in b)a.style[e]=d[e]}});d.curCSS=d.css;d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,g,e){var f;if(g){if(a.offsetWidth!==0)return Ga(a,b,e);d.swap(a,ic,function(){f=Ga(a,b,e)});return f}},set:function(a,b){if(hb.test(b)){b=parseFloat(b);
|
||||
if(b>=0)return b+"px"}else return b}}});d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return ec.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,g=a.currentStyle,e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=g&&g.filter||c.filter||"";c.zoom=1;if(b>=1&&d.trim(f.replace(xa,""))===""){c.removeAttribute("filter");if(g&&!g.filter)return}c.filter=xa.test(f)?f.replace(xa,e):f+" "+e}});d(function(){if(!d.support.reliableMarginRight)d.cssHooks.marginRight=
|
||||
{get:function(a,b){var c;d.swap(a,{display:"inline-block"},function(){c=b?A(a,"margin-right","marginRight"):a.style.marginRight});return c}}});l.defaultView&&l.defaultView.getComputedStyle&&(ib=function(a,b){var c,g,b=b.replace(fc,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return m;if(g=g.getComputedStyle(a,null)){c=g.getPropertyValue(b);c===""&&!d.contains(a.ownerDocument.documentElement,a)&&(c=d.style(a,b))}return c});l.documentElement.currentStyle&&(jb=function(a,b){var c,d=a.currentStyle&&
|
||||
a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;if(!hb.test(d)&&gc.test(d)){c=f.left;if(e)a.runtimeStyle.left=a.currentStyle.left;f.left=b==="fontSize"?"1em":d||0;d=f.pixelLeft+"px";f.left=c;if(e)a.runtimeStyle.left=e}return d===""?"auto":d});A=ib||jb;d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});
|
||||
return d}(window);
|
||||
|
||||
function i(a){throw a;}var j=void 0,k=!0,m=null,o=!1;function aa(){return function(a){return a}}function ba(a){var b=typeof a;return"object"==b&&a!=m||"function"==b}function ca(a,b,c){return a.call.apply(a.bind,arguments)}function da(a,b,c){a||i(Error());if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
|
||||
function p(a,b,c){p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ca:da;return p.apply(m,arguments)}function q(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}};var t,ea;
|
||||
(function(){function a(a){d.lastIndex=0;return d.test(a)?'"'+a.replace(d,function(a){var b=h[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function b(c,d){var h,u,A,y,C=e,D,B=d[c];"function"===typeof g&&(B=g.call(d,c,B));switch(typeof B){case "string":return a(B);case "number":return isFinite(B)?String(B):"null";case "boolean":case "null":return String(B);case "object":if(!B)return"null";e+=f;D=[];if("[object Array]"===Object.prototype.toString.apply(B)){y=B.length;
|
||||
for(h=0;h<y;h+=1)D[h]=b(h,B)||"null";A=0===D.length?"[]":e?"[\n"+e+D.join(",\n"+e)+"\n"+C+"]":"["+D.join(",")+"]";e=C;return A}if(g&&"object"===typeof g){y=g.length;for(h=0;h<y;h+=1)"string"===typeof g[h]&&(u=g[h],(A=b(u,B))&&D.push(a(u)+(e?": ":":")+A))}else for(u in B)Object.prototype.hasOwnProperty.call(B,u)&&(A=b(u,B))&&D.push(a(u)+(e?": ":":")+A);A=0===D.length?"{}":e?"{\n"+e+D.join(",\n"+e)+"\n"+C+"}":"{"+D.join(",")+"}";e=C;return A}}var c=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
||||
d=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e,f,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},g;t=function(a,c,d){var h;f=e="";if("number"===typeof d)for(h=0;h<d;h+=1)f+=" ";else"string"===typeof d&&(f=d);(g=c)&&("function"!==typeof c&&("object"!==typeof c||"number"!==typeof c.length))&&i(Error("JSON.stringify"));return b("",{"":a})};ea=function(a,b){function d(a,c){var e,f,g=a[c];if(g&&
|
||||
"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=d(g,e),f!==j?g[e]=f:delete g[e]);return b.call(a,c,g)}var e,a=String(a);c.lastIndex=0;c.test(a)&&(a=a.replace(c,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?
|
||||
d({"":e},""):e;i(new SyntaxError("JSON.parse"))}})();var fa=/\s*;\s*/,ha=/^([^=]+)=?(.*)$/;function v(a){var b=[];w(ia(),function(c){a===c.name&&b.push(ja(c.value))});if(0===b.length)return m;1<b.length&&x("Cookie","Values found for %s: %s",a,b.length);return b.pop()}function ia(){var a,b=[];a=a||"";w((document.cookie||"").split(fa),function(c){var d=c.match(ha);d&&0===d[1].indexOf(a)&&b.push({name:d[1],value:d[2],N:c})});return b}
|
||||
function z(a,b,c){b=b||"";if(ka()){w(la,function(b){ma(a,b)});var d=na();oa(a,b,d,c);c=v(a)===b?"Succeeded":"Failed";x("Cookie","%s setting %s=%s on %s",c,a,b,d)}else{var d=na(),e=document.location.hostname;!pa&&E("remote_public_suffix")&&qa.push({ub:c,name:a,value:b});d&&(d===pa&&d!==ra)&&(ma(a,e),ma(a,ra));oa(a,b,d,c);var f=v(a);f===b?x("Cookie","Successful set %s=%s on %s",a,b,d):(x("Cookie","Setting %s on %s apparently failed (%s != %s)",a,d,f,b),x("Cookie","Setting %s on %s",a,e),oa(a,b,e,c),
|
||||
f=v(a),f===b?(x("Cookie","Setting %s on %s worked; saving as new public suffix",a,e),ra=e):(x("Cookie","Could not set cookie %s, disabling event tracking.",a),F=o))}}function ma(a,b){var c=[a,"=","; ",sa(b),"; path=/","; expires=",(new Date(0)).toUTCString()];document.cookie=c.join("")}function na(){return ka()?ta||ua:ta||pa||ra}function sa(a){var b=[];b.push("domain=");"localhost"!==a&&(b.push("."),b.push(a));return b.join("")}
|
||||
function oa(a,b,c,d){a=[a,"=",encodeURIComponent(b),"; ",sa(c),"; path=/"];d&&a.push("; expires=",(new Date(+new Date+1E3*d)).toUTCString());document.cookie=a.join("")}function va(a){var b=na();b!==a&&(ta=String(a)||"",x("Cookie","Api public suffix set to: %s",ta),wa(),ma("optimizelySegments",b))}var ra="",ta="",ua="",la=[],pa="",qa=[];var xa=window.OPTIMIZELY_TEST_MODULE,ya="com local net org xxx edu es gov biz info fr nl ca de kr it me ly tv mx cn jp il in iq test".split(" "),za=/\/\*\s*_optimizely_variation_url( +include="([^"]*)")?( +exclude="([^"]*)")?( +match_type="([^"]*)")?( +include_match_types="([^"]*)")?( +exclude_match_types="([^"]*)")?( +id="([^"]*)")?\s*\*\//;var Aa,Ba=0,Ca=o,G=k,Da=o,Ea=o,Fa="",Ga=o,Ha=o,Ia=o,Ja=o,Ka=o,La=o,F=k,Ma=31536E4;function Na(){var a=v("optimizelyEndUserId");a||(a="oeu"+ +new Date+"r"+Math.random(),z("optimizelyEndUserId",a,Ma));return a}function Oa(){return v("optimizelyPPID")};function Pa(a,b){var c=k;w(a,function(a){if(!b(a))return c=o});return c}function H(a,b){var c=o;w(a,function(a){if(b(a))return c=k});return c}function I(a,b){for(var c=0;c<a.length;c++)if(b==a[c])return k;return o}function Qa(a,b){var c=Ra(arguments,1);return function(){var b=Ra(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}
|
||||
function w(a,b){var c=m;if(J(a))for(var d=a.length,e=0;e<d&&!(c=b.call(j,a[e],e),K(c));++e);else for(d in a)if(Object.prototype.hasOwnProperty.call(a,d)&&(c=b.call(j,d,a[d]),K(c)))break;return c}function Sa(a,b){if("function"===typeof a.map)return a.map(b);for(var c=[],d=0;d<a.length;d++)c.push(b(a[d],d));return c}function L(a,b){w(b,function(b,d){a[b]=d});return a}function Ta(a,b){if(J(b)){for(var c=a,d=0;d<b.length;d++){var e=b[d];if(!ba(c)||!c.hasOwnProperty(e))return;c=c[e]}return c}}
|
||||
function Ua(a,b){for(var c=[],d=0,e=a.length;d<e;d++){var f=a[d];b(f)&&c.push(f)}return c}function Va(a,b){return w(b,function(b){if(b===a)return k})||o}function J(a){return!!a&&"object"===typeof a&&"number"===typeof a.length}function K(a){return"undefined"!==typeof a}function Wa(a){return("number"===typeof a||"string"===typeof a)&&Number(a)==a}function M(a){M=Object.vb||function(a){var c=[];w(a,function(a){c.push(a)});return c};return M.call(m,a)}
|
||||
function Xa(a,b){function c(){var b=document.head||document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.src=a;c.type="text/javascript";b.appendChild(c)}if(b)try{if("loading"===document.readyState){var d="optimizely_synchronous_script_"+Math.floor(1E5*Math.random());-1!==a.indexOf('"')?N("loadScript","Blocked attempt to load unsafe script: "+a):(document.write('<script id="'+d+'" src="'+a+'"><\/script>'),1!==$("#"+d).length&&i(Error("Document.write failed to append script")))}else i(Error("Not safe to attempt document.write"))}catch(e){try{var f=
|
||||
new XMLHttpRequest;f.open("GET",a,o);f.onload=function(){eval(f.responseText)};f.onerror=function(){i(Error())};f.send()}catch(h){x("Common","Failed to load %s synchronously",a),c()}}else c()}function x(a,b,c){var d=window.console;if(Ia&&d&&d.log){var e=Ra(arguments,1);e[0]="Optimizely / "+a+" / "+b;Function.prototype.apply.call(d.log,d,e)}}function ja(a){try{return decodeURIComponent(a)}catch(b){return a}}function Ra(a,b){return Array.prototype.slice.call(a,b||0,a.length)}
|
||||
function Ya(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function Za(a){this.A=a;this.b={totalGets:0,totalGetLength:0,totalGetTime:0,totalSets:0,totalSetLength:0,totalSetTime:0}}Za.prototype.get=function(a){try{var b=+new Date,c=this.A.getItem([$a,a].join("$$")),d=ea(c);this.b.totalGetTime+=+new Date-b;this.b.totalGets++;this.b.totalGetLength+=(c||"").length;return d}catch(e){return m}};
|
||||
Za.prototype.set=function(a,b){try{var c=+new Date,d=t(b);K(b)?this.A.setItem([$a,a].join("$$"),d):this.A.removeItem([$a,a].join("$$"));this.b.totalSetTime+=+new Date-c;this.b.totalSets++;this.b.totalSetLength+=d.length}catch(e){}};Za.prototype.pa=function(){return this.b};var ab={get:function(){},set:function(){},pa:function(){return{}}},$a="optimizely_data",O=ab,bb=ab;
|
||||
try{var O=new Za(window.localStorage),bb=new Za(window.sessionStorage),cb=O,db=cb.A.getItem($a),eb={};try{eb=ea(db)||{}}catch(fb){}if(0!==M(eb).length){var gb=Oa()||v("optimizelyEndUserId"),hb=eb[gb]||{},ib;for(ib in hb)if(hb.hasOwnProperty(ib)){var jb=[gb,ib].join("$$");cb.get(jb)===m&&cb.set(jb,hb[ib])}delete eb[gb];for(ib in eb)eb.hasOwnProperty(ib)&&(cb.get(ib)===m&&cb.set(ib,eb[ib]),delete eb[ib]);try{db=t(eb)}catch(kb){db={}}cb.A.setItem($a,db)}}catch(lb){};var P={};function mb(a,b){P[a]=b}function nb(){var a=(P.odds||m)&&(P.odds||m).ip||(P.cdn3||m)&&(P.cdn3||m).ip;return a?ob(a):m}function pb(){return!P.odds?m:(P.odds||m).lists||{}}function qb(){if(!P.cdn3)return m;var a=(P.cdn3||m).location||{};return{continent:ob(a.continent),country:ob(a.country),region:ob(a.region),city:ob(a.city)}}function rb(){return!P.dcps?m:(P.dcps||m).matchingRules||[]}function ob(a){return"string"!==typeof a||"N/A"===a.toUpperCase()?m:a.toUpperCase()};function sb(a){a=a||{};if(F){a&&a.sVariable&&(tb=a.sVariable);var b=tb||("undefined"!==typeof window.s?window.s:m);if(b)if(ub){a=vb;if(a!==m&&b)try{x("Integrator","Fixing SiteCatalyst referrer to %s",a),b.referrer=String(a)}catch(c){x("Integrator","Error setting SiteCatalyst referrer: %s",c)}x("Integrator","Tracking with SiteCatalyst");w(wb(),function(a){var c=Q(a),a=R(c,a,100,100,25,k),f=a.key+": "+a.value,a=[],h=S(c,"site_catalyst_evar")||m,c=S(c,"site_catalyst_prop")||m;h!==m&&a.push("eVar"+h);
|
||||
c!==m&&a.push("prop"+c);w(a,function(a){x("Integrator","Setting SiteCatalyst %s='%s'",a,f);b[a]=f})})}else xb=k;else N("Integrator","Error with SiteCatalyst integration: 's' variable not defined")}}function yb(a){a=Wa(a)?Number(a):-1;if(-1!==[1,2,3].indexOf(a))zb=a;else return zb}
|
||||
function Ab(){if(F){var a=vb;if(a!==m)try{x("Integrator","Fixing _gaq._setReferrerOverride with %s",a),_gaq.push(["_setReferrerOverride",a])}catch(b){x("Integrator","Error setting Google Analytics referrer: %s",b)}var c=[];w(wb(),function(a){var b=Q(a);if(S(b,"chartbeat")){var d=Bb;Bb="";var e=R(b,a,10,10,5,o);Bb=d;d=Db(a);Eb=e.key+": "+String(d);try{x("Integrator","Calling _cbq.push"),_cbq.push(["_optlyx",Eb])}catch(r){N("Integrator","Error sending Chartbeat data for "+T(b))}}if(Fb(b)){var e=Fb(b),
|
||||
d=R(b,a,100,100,25,k),l=e+(-1!==e.indexOf("?")?"&":"?")+"optimizely_experiment_id="+b+"&optimizely_experiment_name="+encodeURIComponent(d.key)+"&optimizely_variation_id="+a+"&optimizely_variation_name="+encodeURIComponent(d.value)+"&ns_m_exp=("+b+") "+encodeURIComponent(d.key)+"&ns_m_chs=("+a+") "+encodeURIComponent(d.value)+"&type=hidden";try{$(window).load(function(){N("Integrator","Sending comScore log call");Gb(l,m)})}catch(u){N("Integrator","Error sending comScore data for "+T(b))}}if(S(b,"crazyegg")){e=
|
||||
R(b,a,100,100,15,o);try{x("Integrator","Defining CE_SNAPSHOT_NAME"),window.CE_SNAPSHOT_NAME=e.key+": "+e.value}catch(A){N("Integrator","Error sending CrazyEgg data for "+T(b))}}if(Hb(b)){e=Hb(b);d=0;K(e)&&(d=e.slot||d);var e=d,d=Hb(b),y="";K(d)&&(y=d.tracker||y);d=y;y=R(b,a,28,24,5,k);try{var C="";""!==d&&(C=d+".");x("Integrator","Calling _gaq._setCustomVar for slot %d and scope %d",e,zb);_gaq.push([C+"_setCustomVar",e,y.key,y.value,zb])}catch(D){N("Integrator","Error sending Google Analytics data for "+
|
||||
T(b))}}if(S(b,"inspectlet")){e=Bb;Bb="";d=R(b,a,100,100,25,o);Bb=e;try{N("Integrator","Calling __insp.push for sending data to Inspectlet"),window.__insp=window.__insp||[],window.__insp.push(["tagSession",{"Optimizely Experiment Name":d.key,"Optimizely Variation Name":d.value,"Optimizely Experiment ID":b,"Optimizely Variation ID":a}])}catch(B){N("Integrator","Error sending Inspectlet data for "+T(b))}}if(E("kissmetrics")){e=R(b,a,100,100,15,k);d={};d[e.key]=e.value;try{x("Integrator","Calling _kmq.set"),
|
||||
_kmq.push(["set",d])}catch(Nd){N("Integrator","Error sending KISSmetrics data for "+T(b))}}if(S(b,"mixpanel")){e=R(b,a,100,100,15,o);d={};d[e.key]=e.value;try{x("Integrator","Calling mixpanel.push"),mixpanel.push(["register",d])}catch(Ug){N("Integrator","Error sending Mixpanel data for "+T(b))}}if(S(b,"moat")){e=R(b,a,100,100,15,o);e=e.key+": "+e.value;try{x("Integrator","Calling optimizelyMoat.push"),optimizelyMoat.push(e)}catch(Cb){N("Integrator","Error sending Moat data for "+T(b))}}S(b,"sessioncam")&&
|
||||
(c=c.concat(Ib(b,a)));if(Jb(b,"acct_no")){e=Jb(b,"acct_no");d=Jb(b,"url");y=R(b,a,28,24,5,k);a=d+"/hit.xiti?s="+e+"&abmvc="+(b+"["+encodeURIComponent(y.key)+"]-0-"+a+"["+encodeURIComponent(y.value)+"]")+"&type=mvt";try{x("Integrator","Sending AT Internet log call for account %s",e),Gb(a,m)}catch(Vg){N("Integrator","Error sending AT Internet data for "+T(b))}}});if(0<c.length){a=c;try{N("Integrator","Calling sessioncamConfiguration object"),window.sessioncamConfiguration=window.sessioncamConfiguration||
|
||||
{},window.sessioncamConfiguration.customDataObjects=window.sessioncamConfiguration.customDataObjects||[],window.sessioncamConfiguration.customDataObjects=window.sessioncamConfiguration.customDataObjects.concat(a)}catch(d){N("Integrator","Error sending sessioncam data "+a)}}a=v("optimizelyChartbeat")||"";try{if(a&&Eb!=a&&(x("Integrator","Calling _cbq.push for referral"),_cbq.push(["_optlyr",a])),Eb!=a)x("Integrator","Set new Chartbeat referral cookie."),z("optimizelyChartbeat",Eb)}catch(e){N("Integrator",
|
||||
"Error sending Chartbeat referral for "+a)}ub=k;Kb&&(Lb(),Kb=o);xb&&(sb(),xb=o)}}
|
||||
function Mb(){if(window.ClickTaleContext){try{window.ClickTaleContext.getAggregationContextAsync("1",function(a){a.Location&&window.optimizely.push(["overrideUrl",a.Location]);for(var b in a.PageEvents){var e=a.PageEvents[b][2].match(/x[0-9]+=[0-9_]+/g);x("Integrator","Playback ClickTale Integration - %s",e);for(b=0;b<e.length;b++){x("Integrator","Playback ClickTale Integration - %s",e[b]);for(var f=e[b].split("=")[0].substr(1),h=e[b].split("=")[1].split("_"),g=0;g<h.length;g++)Nb(h[g])?x("Integrator",
|
||||
"Skip activation for redirect."):window.optimizely.push(["activate",f,h[g],{force:k}])}}})}catch(a){x("Integrator","Playback ClickTale Aggregation Integration failed.")}try{window.ClickTaleContext.getRecordingContextAsync("1.1",function(a){if(a.inSingleRecordingScope){a.location&&window.optimizely.push(["overrideUrl",a.location]);x("Integrator","Playback ClickTale getRecordingContextAsync callback");for(var b in a.fields)x("Integrator","Playback ClickTale Integration - %s=%s",b,a.fields[b]),Nb(a.fields[b])?
|
||||
x("Integrator","Skip activation for redirect."):window.optimizely.push(["activate",b,a.fields[b],{force:k}])}})}catch(b){x("Integrator","Playback ClickTale Recording Integration failed.")}}else x("Integrator","ClickTaleContext not defined.")}
|
||||
function Ob(){x("Integrator","Tracking with ClickTale.");"function"==typeof window.ClickTaleField?w(wb(),function(a){var b=Q(a),c=R(b,a,100,100,15,o),c=c.key+": "+c.value+" (x"+b+"="+a+")";x("Integrator","Setting ClickTale - %s",c);window.ClickTaleField(b,a);window.ClickTaleEvent(c)}):x("Integrator","ClickTaleField() not defined.")}function Pb(a){Bb=a}function Qb(a){tb=a}function Rb(a,b){return a.replace(/[^a-zA-Z0-9\.\~\!\*\(\)\']+/g,"_").substring(0,b)}
|
||||
function wb(){var a=Sb.concat(U),b=[];w(Tb(),function(c){var e=Q(c),f=o;if(Ub(e)){var h=Vb(c);I(a,e)&&(x("Integrator",'"%s" relevant because experiment active',h),f=k);f&&b.push(c)}});var c=Wb;c&&b.push(c);return b}function Nb(a){return(a=Xb(Yb(a)))?a[1]:m}
|
||||
function Lb(){if(F)if(ub){var a=window[window.GoogleAnalyticsObject||"ga"];if(a){var b=vb;if(b!==m)try{x("Integrator","Fixing Universal Analytics set referrer with %s",b),(0,window[window.GoogleAnalyticsObject||"ga"])("set","referrer",b)}catch(c){x("Integrator","Error setting Universal Analytics referrer: %s",c)}x("Integrator","Tracking with Universal Analytics");w(wb(),function(b){var c=Q(b);if(Zb(c,"slot")){var f=Zb(c,"slot"),h=Zb(c,"tracker"),g=R(c,b,100,100,25,k),b=g.key+" ("+c+"): "+g.value;
|
||||
150<b.length&&(b=g.key.substring(0,80)+" ("+c+"): "+g.value,b=b.substring(0,149));c=h?h+".":"";x("Integrator","Calling ua set dimension - ga(%sset, dimension%d, %s)",c,f,b);a(c+"set","dimension"+f,b)}})}else N("Integrator","Error with Universal Analytics integration: 'GoogleAnalyticsObject' not defined")}else Kb=k}function Ib(a,b){N("Integrator","Preparing to send data to Sessioncam");return[R(a,b,100,100,15,o),{key:"Optimizely Exp "+a,value:"Optimizely Var "+b}]}
|
||||
function R(a,b,c,d,e,f){a=Bb+$b(a);b=ac(b);1<b.length?(b=$.map(b,function(a){return a.substr(0,e-1)}),b=b.join("~")):b=b[0];f?(a=Rb(a,c),b=Rb(b.replace("#",""),d)):(a=a.substring(0,c),b=b.substring(0,d));return{key:a,value:b}}function bc(a,b){try{var c=O.get(cc)||{};c[a]=b;O.set(cc,c)}catch(d){}}var Kb=o,xb=o,Eb="",zb=2,ub=o,Bb="Optimizely ",tb=m,cc="thirdParty";function dc(){return E("admin_account_id")}function ec(a){return E("audiences",a)}function fc(a){a=E("audiences",a,"segment_id");return!a?m:a}
|
||||
function gc(){if(!hc){var a=E("click_goals")||[];hc=[];for(var b=0,c=a.length;b<c;b++)for(var d=a[b],e=d.selector.split(","),f=0,h=e.length;f<h;f++){var g=e[f];g&&(g={event_name:d.event_name,selector:g},"experiments"in d?g.experiments=d.experiments:"url_conditions"in d&&(g.url_conditions=d.url_conditions),"revenue"in d&&(g.revenue=d.revenue),hc.push(g))}}return hc}function ic(){return E("dcp_keyfield_locators")||[]}function jc(a,b){return E("dimensions",a,b)}
|
||||
function kc(a){a=jc(a,"condition_type");return!a?m:a}function lc(a){a=jc(a,"name");return!a?m:a}function mc(){nc||(nc=Ua(oc(),Ub));return nc}function pc(a){var b=E("goal_expressions"),c=[],d;for(d in b)if(b.hasOwnProperty(d))for(var e=b[d],f=0;f<e.length;f++)try{if(RegExp(e[f],"i").test(a)){c.push(d);break}}catch(h){}return c}function qc(a){var b=rc(),c;for(c in b)if(Object.prototype.hasOwnProperty.call(b,c)){var d=b[c];if(d&&d.api_name===a)return String(c)}return m}
|
||||
function sc(){return E("experiments")||{}}function oc(){return M(E("experiments")||{})}function tc(a){return"manual"===S(a,"activation_mode")}function uc(a){return"conditional"===S(a,"activation_mode")}function $b(a){return S(a,"name")||"Exp "+a}function T(a){return'experiment "'+$b(a)+'" ('+a+")"}function vc(a){return S(a,"section_ids")||[]}function wc(a){return S(a,"variation_ids")||[]}function xc(){return E("project_id")}function rc(){return E("segments")||{}}
|
||||
function yc(a,b){for(var c=vc(a),d=0;d<c.length;d++){var e=zc(c[d]);if(I(e,b))return c[d]}return""}function Ac(a){var b={},c=E("public_suffixes")||{};w(c,function(a,c){w(c,function(c){b[c]=a})});Ac=function(a){return b[a]||""};return Ac.call(m,a)}function zc(a){return E("sections",a,"variation_ids")||[]}function Yb(a){var b=[];w(a.split("_"),function(a){(a=E("variations",a,"code"))&&b.push(a)});return b.join("\n")}
|
||||
function Q(a){if(!Bc){var b={};w(oc(),function(a){w(vc(a),function(d){w(zc(d),function(d){b[d]=a})});w(wc(a),function(d){b[d]=a})});Bc=b}return Bc[a.split("_")[0]]||""}function Db(a){var b=Q(a),c=vc(b);if(0===c.length){c=wc(b);for(b=0;b<c.length;b++)if(c[b]===a)return b}else{for(var a=a.split("_"),b=[],d=0;d<c.length;d++)for(var e=zc(c[d]),f=0;f<e.length;f++)e[f]===a[d]&&b.push(f);if(b!==[])return b}return-1}function Vb(a){var b;return ac(a).join(b||", ")}
|
||||
function ac(a){var b=[];w(a.split("_"),function(a){b.push(E("variations",a,"name")||"Var "+a)});return b}function Ub(a){return!!S(a,"enabled")}function ka(){return!!E("simple_cookies")}function Cc(){return!!E("uses_dynamic_customer_profile_targeting")}function S(a,b){return E("experiments",a,b)}function Fb(a){a=S(a,"comscore");return K(a)?a.url:m}function Hb(a){return S(a,"google_analytics")}function Zb(a,b){var c=S(a,"universal_analytics");return K(c)?c[b]:m}
|
||||
function Jb(a,b){var c=S(a,"at_internet");return K(c)?c[b]:m}function E(a){var b=DATA;if(w(arguments,function(a){a=b[a];if(K(a))b=a;else return m})!==m)return b}function Dc(a,b){return E("segments",a,b)}function Ec(){var a=E("rum_sampling_rate");return K(a)?a:0.001}function Fc(){return!!E("is_behavior_enabled")}function Gc(){return!!E("slave")}var hc=m,nc=m,Bc=m;function Hc(a,b,c,d){if(!G)return o;var e="number"===typeof c||"string"===typeof c?String(c):m,f=!!(c===k||c&&c.force===k||d&&d.force===k),d=("object"===typeof c?c:d)||{},c=d.skip===k,h=d.skipPageview===k,d=d.enabledStatus;if(e)try{Ic(b,e,k)}catch(g){N("Activator","Error while activating experiment "+b+" for variation "+e+" -- proceeding without bucketing user.")}var n=[];Wa(b)?n.push(b):w(oc(),function(a){tc(a)&&n.push(a)});Jc(a,n,{Ca:f,Ya:k,Ba:d,ab:c,ta:h})}
|
||||
function Kc(a,b,c){if(!G)return o;if(!("object"===typeof b&&"string"===typeof c))if("object"===typeof b&&!K(c))c=b.hasOwnProperty("lists")?"odds":"cdn3";else if(K(b)||K(c)){N("Activator","Unrecognized arguments to activateGeoDelayedExperiment: "+arguments);return}if("object"===typeof b&&"string"===typeof c){N("Activator","Saving async info from '"+c+"'");"cdn3"===c&&V("geoArrive");var d=c,e=b,f=O.get("asyncInfo")||{};f[d]=e;O.set("asyncInfo",f);var d=(P[c]=b)&&b.lists||{},e={},h,g,n,r;for(r in d)d.hasOwnProperty(r)&&
|
||||
(0===r.indexOf("_")&&d[r])&&(h=r.substring(1).split("__"),g=h.shift(),f=h.shift(),h=h.join("__"),g&&(f&&h)&&(n=e,n[g]||(n[g]={}),n=n[g],n[f]||(n[f]=[]),n=n[f],n.push(h)));for(g in e)bc(g,e[g]);Lc?(N("Activator","Post-timeout; too late to act on new async info."),geolocation.cdn3Requested&&V("geoFailed")):(g=Mc.slice(),N("Activator","Trying to activate "+g.length+" delayed segments"),Nc(g),g=Oc.slice(),N("Activator","Trying to activate "+g.length+" experiments"),Jc(a,g,{ta:La}),Pc(),"object"===typeof b&&
|
||||
"string"===typeof c&&"cdn3"===c&&V("geoSuccess"))}else N("Activator","Timeout: will not act on future async info."),V("geoTimeout"),Lc=k}
|
||||
function Jc(a,b,c){N("Activator","Triaging "+b.length+" experiments.");var d=[],e=[],f=[];w(b,function(b){c.Ca?(N("Activator","Force-ignoring conditions for experiment "+b),d.push(b)):Qc(b)?Rc(b,{manualActivation:c.Ya,objectType:"experiment",enabledStatus:c.Ba,visitor:a})?(N("Activator","Passed conditions for experiment "+b),d.push(b)):(N("Activator","Failed conditions for experiment "+b),f.push(b)):(N("Activator","Can't test conditions for experiment "+b),e.push(b))});Oc=[];w(e,Sc);var h=[];w(d,
|
||||
function(a){Tc(a,c.ab)&&h.push(a)});Uc(h,b);Vc();Ab();G&&!c.ta&&Wc(document.location.href,"pageview",{X:k})}
|
||||
function Nc(a){N("Activator","Triaging "+a.length+" segments.");var b=[],c=[],d=[],e=[];w(a,function(a){Dc(a,"is_api_only")?(N("Activator","Ignoring API-only segment "+a),e.push(a)):Qc(a)?Rc(a,{objectType:"segment"})?(N("Activator","Passed conditions for segment "+a),b.push(a)):(N("Activator","Failed conditions for segment "+a),d.push(a)):(N("Activator","Can't test conditions for segment "+a),c.push(a))});Mc=[];w(c,Xc);w(b,Yc)}
|
||||
function Sc(a){N("Activator","Deferring test for experiment "+a);Oc.push(a)}function Xc(a){N("Activator","Deferring test for segment "+a);Mc.push(a)}var Oc=[],Mc=[],Lc=o;function Zc(a,b){function c(a,b){var c=b&65535;return((b-c)*a|0)+(c*a|0)|0}for(var d=a.length,e=b||0,f=d&-4,h,g=0;g<f;g+=4)h=a.charCodeAt(g)&255|(a.charCodeAt(g+1)&255)<<8|(a.charCodeAt(g+2)&255)<<16|(a.charCodeAt(g+3)&255)<<24,h=c(h,3432918353),h=(h&131071)<<15|h>>>17,h=c(h,461845907),e^=h,e=(e&524287)<<13|e>>>19,e=5*e+3864292196|0;h=0;switch(d%4){case 3:h=(a.charCodeAt(f+2)&255)<<16;case 2:h|=(a.charCodeAt(f+1)&255)<<8;case 1:h|=a.charCodeAt(f)&255,h=c(h,3432918353),e^=c((h&131071)<<15|h>>>17,461845907)}e^=
|
||||
d;e=c(e^e>>>16,2246822507);e=c(e^e>>>13,3266489909);return e^e>>>16};var $c=Math.pow(2,32);/*
|
||||
|
||||
|
||||
UAParser.js v0.7.3
|
||||
Lightweight JavaScript-based User-Agent string parser
|
||||
https://github.com/faisalman/ua-parser-js
|
||||
|
||||
Copyright ? 2012-2014 Faisal Salman <fyzlman@gmail.com>
|
||||
Dual licensed under GPLv2 & MIT
|
||||
*/
|
||||
function ad(){}var bd={extend:function(a,b){for(var c in b)-1!=="browser cpu device engine os".indexOf(c)&&0===b[c].length%2&&(a[c]=b[c].concat(a[c]));return a},has:function(a,b){if("string"===typeof a)return-1!==b.toLowerCase().indexOf(a.toLowerCase())},L:function(a){return a.toLowerCase()}};
|
||||
function cd(){for(var a,b=0,c,d,e,f,h,g,n=arguments;b<n.length&&!h;){var r=n[b],l=n[b+1];if("undefined"===typeof a)for(e in a={},l)f=l[e],"object"===typeof f?a[f[0]]=j:a[f]=j;for(c=d=0;c<r.length&&!h;)if(h=r[c++].exec(this.ma()))for(e=0;e<l.length;e++)g=h[++d],f=l[e],"object"===typeof f&&0<f.length?2==f.length?a[f[0]]="function"==typeof f[1]?f[1].call(this,g):f[1]:3==f.length?a[f[0]]="function"===typeof f[1]&&(!f[1].exec||!f[1].test)?g?f[1].call(this,g,f[2]):j:g?g.replace(f[1],f[2]):j:4==f.length&&
|
||||
(a[f[0]]=g?f[3].call(this,g.replace(f[1],f[2])):j):a[f]=g?g:j;b+=2}return a}function dd(a,b){for(var c in b)if("object"===typeof b[c]&&0<b[c].length)for(var d=0;d<b[c].length;d++){if(bd.has(b[c][d],a))return"?"===c?j:c}else if(bd.has(b[c],a))return"?"===c?j:c;return a}
|
||||
var ed={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2E3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:"NT 6.4",RT:"ARM"},fd={browser:[[/(opera\smini)\/((\d+)?[\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/((\d+)?[\w\.-]+)/i,/(opera).+version\/((\d+)?[\w\.]+)/i,/(opera)[\/\s]+((\d+)?[\w\.]+)/i],["name","version","major"],[/\s(opr)\/((\d+)?[\w\.]+)/i],[["name","Opera"],"version","major"],[/(kindle)\/((\d+)?[\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?((\d+)?[\w\.]+)*/i,
|
||||
/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?((\d+)?[\w\.]*)/i,/(?:ms|\()(ie)\s((\d+)?[\w\.]+)/i,/(rekonq)((?:\/)[\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron)\/((\d+)?[\w\.-]+)/i],["name","version","major"],[/(trident).+rv[:\s]((\d+)?[\w\.]+).+like\sgecko/i],[["name","IE"],"version","major"],[/(yabrowser)\/((\d+)?[\w\.]+)/i],[["name","Yandex"],"version","major"],[/(comodo_dragon)\/((\d+)?[\w\.]+)/i],[["name",/_/g," "],"version","major"],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?((\d+)?[\w\.]+)/i,
|
||||
/(uc\s?browser|qqbrowser)[\/\s]?((\d+)?[\w\.]+)/i],["name","version","major"],[/(dolfin)\/((\d+)?[\w\.]+)/i],[["name","Dolphin"],"version","major"],[/((?:android.+)crmo|crios)\/((\d+)?[\w\.]+)/i],[["name","Chrome"],"version","major"],[/version\/((\d+)?[\w\.]+).+?mobile\/\w+\s(safari)/i],["version","major",["name","Mobile Safari"]],[/version\/((\d+)?[\w\.]+).+?(mobile\s?safari|safari)/i],["version","major","name"],[/webkit.+?(mobile\s?safari|safari)((\/[\w\.]+))/i],["name",["major",dd,{1:["/8","/1",
|
||||
"/3"],2:"/4","?":"/"}],["version",dd,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(konqueror)\/((\d+)?[\w\.]+)/i,/(webkit|khtml)\/((\d+)?[\w\.]+)/i],["name","version","major"],[/(navigator|netscape)\/((\d+)?[\w\.-]+)/i],[["name","Netscape"],"version","major"],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?((\d+)?[\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/((\d+)?[\w\.-]+)/i,
|
||||
/(mozilla)\/((\d+)?[\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf)[\/\s]?((\d+)?[\w\.]+)/i,/(links)\s\(((\d+)?[\w\.]+)/i,/(gobrowser)\/?((\d+)?[\w\.]+)*/i,/(ice\s?browser)\/v?((\d+)?[\w\._]+)/i,/(mosaic)[\/\s]((\d+)?[\w\.]+)/i],["name","version","major"]],Z:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",bd.L]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture",
|
||||
"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",bd.L]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",bd.L]]],F:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],["model","vendor",["type","tablet"]],[/applecoremedia\/[\w\.]+ \((ipad)/],["model",["vendor","Apple"],["type","tablet"]],[/(apple\s{0,1}tv)/i],[["model","Apple TV"],["vendor","Apple"]],
|
||||
[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],["vendor","model",["type","tablet"]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],["model",["vendor","Amazon"],["type","tablet"]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[["model",dd,{"Fire Phone":["SD","KF"]}],["vendor","Amazon"],["type","mobile"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],["model","vendor",["type","mobile"]],[/\((ip[honed|\s\w*]+);/i],["model",
|
||||
["vendor","Apple"],["type","mobile"]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],["vendor","model",["type","mobile"]],[/\(bb10;\s(\w+)/i],["model",["vendor","BlackBerry"],["type","mobile"]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7)/i],["model",["vendor","Asus"],["type","tablet"]],[/(sony)\s(tablet\s[ps])/i],["vendor","model",["type","tablet"]],
|
||||
[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],["vendor","model",["type","console"]],[/android.+;\s(shield)\sbuild/i],["model",["vendor","Nvidia"],["type","console"]],[/(playstation\s[3portablevi]+)/i],["model",["vendor","Sony"],["type","console"]],[/(sprint\s(\w+))/i],[["vendor",dd,{HTC:"APA",Sprint:"Sprint"}],["model",dd,{"Evo Shift 4G":"7373KT"}],["type","mobile"]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],["vendor","model",["type","tablet"]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,
|
||||
/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],["vendor",["model",/_/g," "],["type","mobile"]],[/(nexus\s9)/i],["model",["vendor","HTC"],["type","tablet"]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],["model",["vendor","Microsoft"],["type","console"]],[/(kin\.[onetw]{3})/i],[["model",/\./g," "],["vendor","Microsoft"],["type","mobile"]],[/\s((milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?))[\w\s]+build\//i,/(mot)[\s-]?(\w+)*/i],[["vendor","Motorola"],"model",
|
||||
["type","mobile"]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],["model",["vendor","Motorola"],["type","tablet"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n8000|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[["vendor","Samsung"],"model",["type","tablet"]],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-n900))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[["vendor","Samsung"],"model",["type","mobile"]],[/(samsung);smarttv/i],["vendor","model",["type","smarttv"]],[/\(dtv[\);].+(aquos)/i],
|
||||
["model",["vendor","Sharp"],["type","smarttv"]],[/sie-(\w+)*/i],["model",["vendor","Siemens"],["type","mobile"]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[["vendor","Nokia"],"model",["type","mobile"]],[/android\s3\.[\s\w-;]{10}(a\d{3})/i],["model",["vendor","Acer"],["type","tablet"]],[/android\s3\.[\s\w-;]{10}(lg?)-([06cv9]{3,4})/i],[["vendor","LG"],"model",["type","tablet"]],[/(lg) netcast\.tv/i],["vendor","model",["type","smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i],
|
||||
["model",["vendor","LG"],["type","mobile"]],[/android.+(ideatab[a-z0-9\-\s]+)/i],["model",["vendor","Lenovo"],["type","tablet"]],[/linux;.+((jolla));/i],["vendor","model",["type","mobile"]],[/((pebble))app\/[\d\.]+\s/i],["vendor","model",["type","wearable"]],[/android.+;\s(glass)\s\d/i],["model",["vendor","Google"],["type","wearable"]],[/(mobile|tablet);.+rv\:.+gecko\//i],[["type",bd.L],"vendor","model"]],ba:[[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,
|
||||
/(icab)[\/\s]([23]\.[\d\.]+)/i],["name","version"],[/rv\:([\w\.]+).*(gecko)/i],["version","name"]],qa:[[/microsoft\s(windows)\s(vista|xp)/i],["name","version"],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],["name",["version",dd,ed]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[["name","Windows"],["version",dd,ed]],[/\((bb)(10);/i],[["name","BlackBerry"],"version"],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\os|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,
|
||||
/linux;.+(sailfish);/i],["name","version"],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[["name","Symbian"],"version"],[/\((series40);/i],["name"],[/mozilla.+\(mobile;.+gecko.+firefox/i],[["name","Firefox OS"],"version"],[/(nintendo|playstation)\s([wids3portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,
|
||||
/(gnu)\s?([\w\.]+)*/i],["name","version"],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[["name","Chromium OS"],"version"],[/(sunos)\s?([\w\.]+\d)*/i],[["name","Solaris"],"version"],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],["name","version"],[/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],[["name","iOS"],["version",/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[["name","Mac OS"],["version",/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(haiku)\s(\w+)/i,
|
||||
/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],["name","version"]]};
|
||||
function gd(a,b){if(!(this instanceof gd))return(new gd(a,b)).Oa();var c=a||(ad&&ad.navigator&&ad.navigator.userAgent?ad.navigator.userAgent:""),d=b?bd.extend(fd,b):fd;this.p=function(){return cd.apply(this,d.browser)};this.Ga=function(){return cd.apply(this,d.Z)};this.J=function(){return cd.apply(this,d.F)};this.Ka=function(){return cd.apply(this,d.ba)};this.ja=function(){return cd.apply(this,d.qa)};this.Oa=function(){return{wb:this.ma(),browser:this.p(),ba:this.Ka(),qa:this.ja(),F:this.J(),Z:this.Ga()}};
|
||||
this.ma=function(){return c};this.$a=function(a){c=a};this.$a(c)}gd.VERSION="0.7.3";gd.fb={Y:"name",lb:"major",VERSION:"version"};gd.hb={cb:"architecture"};gd.ib={nb:"model",VENDOR:"vendor",rb:"type",gb:"console",mb:"mobile",pb:"smarttv",qb:"tablet",sb:"wearable",jb:"embedded"};gd.kb={Y:"name",VERSION:"version"};gd.ob={Y:"name",VERSION:"version"};ad.va=gd;function hd(a){a=(a||"").toLowerCase();if(a in id)return a;for(var b in id)if(H(id[b]||[],function(b){return b.toLowerCase()===a}))return b;return"unknown"}var id={gc:["Chrome","chromium","silk","yandex","maxthon"],ie:["Internet Explorer","iemobile"],ff:["Firefox","iceweasel"],opera:["Opera","opera mini","opera tablet"],safari:["Safari","mobile safari","webkit"],ucbrowser:["UC Browser"]},jd={iPhone:"iphone",iPad:"ipad"};var kd,ld;function md(a,b){bc(a,b);Pc()}function nd(a,b){var c=qc(a)||a,d=rc()[c];d?d.audience_id?W.D(d.audience_id):d.dimension_id?W.O(d.dimension_id,b||k,o):od(c,b):N("API","Unable to find segment: "+c)}
|
||||
function Ic(a,b,c){Ka=k;G&&c!==k&&Wc(document.location.href,"pageview",{X:k});var a=String(a),b=String(b),d=m,e=b.split("_"),f=vc(a),b=f&&0!==f.length;if("-1"===e[0]){c=a;pd[c]&&delete pd[c];qd[c]&&delete qd[c];for(e=0;e<X.length;e++)X[e].G===c&&X.splice(e,1);rd()}else if(b&&e.length==f.length)d=[],w(e,function(a,b){256>=Number(a)?d.push(zc(f[b])[a]):d.push(a)}),d=d.join("_");else if(!b&&1==e.length&&256>=Number(e[0])){var c=String,e=e[0],h=wc(a),g=m;try{g=h[e]}catch(n){}d=c(g)}else 1==e.length?d=
|
||||
e[0]:N("API","Error: could not bucket user. Unknown arguments.");d&&(b&&yc(a,d)?(b=d,c=yc(a,b),sd[a]=sd[a]||{},sd[a][c]=b,N("Distributor","Preferring variation partial "+b+" of section "+c+" of experiment "+a),a=td(a),1===a.length&&ud(a[0],"api.bucketUser",k)):ud(d,"api.bucketUser",k));Vc()}function vd(a){a&&"tracking"===a||(N("API","Optimizely disabled"),G=o);F=o}function wd(){N("API","Finalizing API.");Pc();kd=k}
|
||||
function xd(a,b,c){var d=[],e=b,c=K(c)?c:o;J(b)&&(e=b[0],d=Ra(b,1));(a=a[e])?(N("API",'Called function "'+e+'"'),a.apply(m,d)):c||N("API",'Error for unknown function "'+e+'"');Gc()&&SLAVE_CLIENT.optimizely.push(b);yd()}function zd(a,b){kd?N("API","Error: can't add custom tags after Optimizely loads"):(ld=ld||{},2==arguments.length?ld[a]=b:1==arguments.length&&$.extend(k,ld,a))}
|
||||
function Ad(a,b){var c=qc(a)||a,b=K(b)?b:k,d=rc()[c];d?d.audience_id?W.W(d.audience_id):d.dimension_id?W.O(d.dimension_id,m):Bd(c,b):N("API","Unable find segment for: "+c)}function Cd(){var a=M(rc());w(a,function(a){Ad(a,o)});Dd()}
|
||||
function Pc(){Ed={};Fd={};Gd={};w(Tb(),function(a){var b=Q(a);Ed[b]=a.split("_");Fd[b]=Db(a);Gd[b]=Vb(a)});Y={};var a=E("audiences");a&&(Y.audiences=a);Y.experiments={};Y.sections={};Y.segments={};Y.state={};Y.variations={};Y.visitor={};Y.customTags=ld;Y.thirdParty=O.get(cc)||{};for(var b=oc(),a=0;a<b.length;a++){var c=b[a],d={};d.code=S(c,"code")||"";d.name=$b(c);d.conditional=uc(c);d.manual=tc(c);d.section_ids=vc(c);d.variation_ids=wc(c);Y.experiments[c]=d}b=M(rc());for(a=0;a<b.length;a++)c=b[a],
|
||||
Y.segments[c]={name:Dc(c,"name")||"Seg "+c};b=M(E("sections")||{});for(a=0;a<b.length;a++)c=b[a],d={},d.name=E("sections",c,"name")||"Sec "+c,d.variation_ids=zc(c),Y.sections[c]=d;b=M(E("variations")||{});for(a=0;a<b.length;a++)c=b[a],d={},d.name=Vb(c),d.code=Yb(c),Y.variations[c]=d;b={};a=Hd();L(b,{browser:id[a]?id[a][0]:a,browserVersion:Id(),device:Jd().id,deviceType:Jd().type,platform:Kd(),mobile:Ld(),mobileId:Md(),os:Kd().id});b.lists=pb();b.location=qb();b.ip=nb();b.matchingRules=rb();b.params=
|
||||
{};c=Od();c.reverse();a=0;for(d=c.length;a<d;a++)try{b.params[ja(c[a][0])]=ja(c[a][1])}catch(e){N("API","Failed to decode parameter "+c[a][0]+"="+c[a][1])}b.referrer=String(document.referrer);b.segments=Pd();b.dimensions=W.k;b.audiences=W.j;Y.visitor=b;a={};a.activeExperiments=Sb||[];a.variationIdsMap=Ed;a.variationMap=Fd;a.variationNamesMap=Gd;a.enabled=G;Y.state=a;L(window.optimizely,{activeExperiments:Sb,allExperiments:sc(),all_experiments:sc(),data:Y,variationIdsMap:Ed,variationMap:Fd,variationNamesMap:Gd,
|
||||
variation_map:Fd})}function Qd(a){if(!Wa(a))return o;Ba=Number(a)}function Rd(){Ea=k}function Sd(a){var b="";"number"!==typeof a?(b="must be a number.",a=31536E4):a=Math.floor(86400*a);7776E3>a&&(b="less then minimum.",a=7776E3);N("API",(b&&"Days argument "+b)+" Cookie expiration set to "+a+" seconds.");Ma=a;wa()}function Td(){La=k}
|
||||
function Ud(){v("optimizelyReportableFix")?N("API","skipping because cookie is set"):(w(E("audiences"),function(a){fc(a)&&(N("API","Removing from reportable audience: "+a),W.W(a))}),z("optimizelyReportableFix","1",7776E3))}function Vd(a){var b=Oa();a?z("optimizelyPPID",a,Ma):ma("optimizelyPPID",na());a!==b&&(N("Plan","Resetting visitor buckets"),Wd={},pd={},qd={},X=[],Vc());N("API","Set PPID to "+a)}var Y={},Xd={},Ed={},Fd={},Gd={},W=m;function Yd(a,b,c,d){this.n=a;this.y=b;c&&0<M(c).length&&(this.o=c);K(d)&&(this.r=d)}
|
||||
Yd.prototype.hash=function(){if(this.u)return this.u;var a;a=[];a.push(encodeURIComponent("n")+"="+encodeURIComponent(this.n));a.push(encodeURIComponent("y")+"="+encodeURIComponent(this.y));this.r&&a.push(encodeURIComponent("r")+"="+encodeURIComponent(this.r));if(this.o)for(var b=this.o||{},c=Ua(M(b),function(a){return b.hasOwnProperty(a)}),c=c.sort(),d=0;d<c.length;d++)a.push(encodeURIComponent(c[d])+"="+encodeURIComponent(b[c[d]]));a=a.join("&");var e=String.fromCharCode;a=a.replace(/[\S\s]/gi,
|
||||
function(a){var a=a.charCodeAt(0),b=e(a&255);255<a&&(b=e(a>>>8&255)+b);65535<a&&(b=e(a>>>16)+b);return b});a=Zc(a,2716770798);return this.u=(a>>>16).toString(16)+(a&65535).toString(16)};
|
||||
function Zd(a,b){if(a.hash()!==b.hash()||a.n!==b.n||a.y!==b.y||a.r!==b.r)return o;if(!a.o&&!b.o)return k;var c=a.o||{},d=b.o||{},e=Ua(M(c),function(a){return c.hasOwnProperty(a)}),f=Ua(M(d),function(a){return d.hasOwnProperty(a)});if(e.length!==f.length)return o;for(f=0;f<e.length;f++){var h=e[f];if(!d.hasOwnProperty(h)||c[h]!==d[h])return o}return k}Yd.prototype.a=function(a,b){var c=Ta(this,a);return K(c)?c:b};
|
||||
Yd.prototype.z=function(a,b){if("n"===a||"y"===a||"r"===a||"o"===a)this[a]=b,this.u=m,this.hash()};function $d(a,b,c){this.l=a;this.t=b;K(c)&&(this.s=c)}$d.prototype.a=function(a,b){if(0===a.length)return this;var c={};c.t=this.t;c.s=this.s;c=Ta(c,a);return K(c)?c:this.l.a(a,b)};$d.prototype.z=function(a,b){"t"===a||"s"===a?this[a]=b:this.l.z(a,b)};function ae(a,b){b.z("s",18E5>Math.abs(a.a(["t"],0)-b.a(["t"],0))?a.a(["s"]):b.a(["t"]))};function be(){var a;if(!(a=ce)){var b=new ad.va(window.navigator.userAgent);a=b.p();var c=b.ja(),b=b.J(),d=b.model in jd?jd[b.model]:"unknown",e=(c.name||"unknown").toLowerCase(),f;a:if(I(["mobile","tablet"],b.type))f=k;else{if(d&&"unknown"!==d)for(f in jd)if(d===jd[f]){f=k;break a}f=I(["android","blackberry","ios","windows phone"],e)?k:o}a={wa:hd(a.name),xa:a.version,platform:{id:e,version:c.version},F:{id:d,type:b.type||(f?"mobile":"desktop"),v:f}}}return ce=a}function Hd(){return be().wa}
|
||||
function Id(){return be().xa}function Jd(){return be().F}function de(a){if(!a)return"";try{return a.match(/:\/\/(?:www[0-9]?\.)?(.[^/:]+)/)[1]}catch(b){return""}}function Kd(){return be().platform}function ee(){return O.get([Oa()||Na(),"events"].join("$$"))}function fe(a){O.set([Oa()||Na(),"events"].join("$$"),a)}function Md(){var a="android;blackberry;ipad;iphone;ipod;windows phone".split(";");return I(a,Jd().id)?Jd().id:I(a,Kd().id)?Kd().id:Ld()?"mobile":"unknown"}function Ld(){return Jd().v}
|
||||
function ge(){return he?"returning":"new"}Kd=function(){return be().platform};function ie(a){x("User","Setting current URL to %s",a);je=a}var je=j,ce=j,he=j;var ke={},le=[],me=[],ne=m,oe=o;
|
||||
function pe(){if(!Fc())return qe(),[];if(0===le.length)if(Fc()){var a;var b=ee()||[];if(0===b.length)le=[],a=o;else{a=o;if("eb"in b[0])for(var c=[],d=0;d<b.length;d++)for(var e=b[d],f=re(e.eb,e.h),h=e.tb,e=e.ts,g=0;g<e.length;g++){var n=e[g];c[n.i]=new $d(f,h+n.d)}else{a=k;c=[];for(d=0;d<b.length;d++)f=b[d],h=re(f),c[d]=new $d(h,f.t)}b=le=c;for(c=0;c<b.length;c++)b[c].l=se(b[c].l)}a&&te(le);a=le;b=a.length;if(0!==b){a[0].z("s",a[0].a(["t"]));for(c=1;c<b;c++)ae(a[c-1],a[c])}0<le.length&&(ne=le[le.length-
|
||||
1]);0<me.length&&(ne=me[me.length-1])}else qe();return le.concat(me).slice(-ue)}function te(a){if(!Gc()){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=d.l,f;if(e.hasOwnProperty("_idx_"))f=b[e._idx_],e=d.t-(f.tb||0),d={},d.d=e,d.i=c,f.ts.push(d);else{f={};var h=d,g={};g.n=h.a(["n"]);g.y=h.a(["y"]);var n=h.a(["r"]);K(n)&&(g.r=n);h=h.a(["o"]);K(h)&&(g.o=h);f.eb=g;f.h=e.hash();f.tb=d.t;d={d:0};d.i=c;f.ts=[d];b.push(f);e._idx_=b.length-1}}for(c=0;c<a.length;c++)delete a[c].l._idx_;fe(b)}}
|
||||
function qe(){!oe&&!Gc()&&(fe([]),le=[],me=[],ke={},ne=m,oe=k)}function se(a){var b=a.hash(),c=ke[b];if("undefined"===typeof c)return ke[b]=[a],a;for(b=0;b<c.length;b++)if(Zd(a,c[b]))return c[b];c.push(a);return a}function re(a,b){var c=new Yd(a.n,a.y,a.o,a.r);K(b)&&(c.u=b);return c}var ue=1E3;function ve(){try{return pe()}catch(a){x("Behavior","Error "+a.toString()+" getting events")}return[]};function we(a,b){var c;a:{c={};var d,e=E("custom_revenue_goals");e&&(a in e&&Wa(e[a]))&&(d=Number(e[a]));if(b)if(Wa(b))d=Number(b);else if("object"===typeof b){if(c=L({},b),"revenue"in c)if(Wa(c.revenue))d=Number(c.revenue),delete c.revenue;else{x("tracker","Revenue field %s not a number.",c.revenue);c=m;break a}}else{x("tracker","Revenue argument %s not a number.",b);c=m;break a}K(d)&&(c.c=d)}if(c===m)x("tracker","Bad options. Will not track this event.");else{d=mc();var f={};w(d,function(a){f[a]=
|
||||
k});$.extend(c,{q:f});Wc(a,"custom",c)}}
|
||||
function Wc(a,b,c){c=c||{};if(F){b={name:a,type:b,aa:+new Date/1E3,options:c};xe.push(b);if(c.X!==k){var b=L({},b),d=pc(b.name);0<d.length&&(b.name=d[0]);d=ld||{};try{if(!Gc())if(Fc()){var e=b.name,f=b.type||"default",h,g=L({},b.options||{});g.c&&(h=g.c);var g=L(d||{},g.tags||{}),n=new Yd(e,f,g,h),n=se(n),r=new $d(n,+new Date,-1);if(e=ne){var l=e.a(["t"]),u=e.a(["s"]),A=r.a(["t"]),l="number"!==typeof l?A-36E5:l,e=new $d(new Yd("",""),l,"number"!==typeof u?l:u);ae(e,r)}else r.z("s",r.a(["t"]));ne=
|
||||
r;me.push(r);var y=pe();te(y);le=y;me=[]}else qe()}catch(C){x("Behavior","Error "+C.toString()+" while adding event")}}delete c.X;ye?(ze(),N("Tracker","Tracking event '"+a+"'")):N("Tracker","Queued tracking event '"+a+"'")}}function Ae(){Be();$("html").bind("mousedown",Ce);$("html").bind("touchstart",De)}function Be(){$("html").unbind("touchstart",De);$("html").unbind("mousedown touchend",Ce);$("html").unbind("touchmove",Ae)}
|
||||
function De(){$("html").bind("touchend",Ce);$("html").bind("touchmove",Ae)}function Ee(){var a=document.location.href,b=E("pageview_revenue_goals");b&&0<M(b)?w(M(b),function(c){Wc(a,"pageview",{c:c,q:b[c]})}):Wc(a,"pageview")}function Fe(){var a=v("optimizelyPendingLogEvents")||"[]",b=[];try{b=ea(a)}catch(c){}if(J(b))for(var a=0,d=b.length;a<d;a++){var e=b[a];if("string"!==typeof e){b=[];break}else try{ea(e);b=[];break}catch(f){}}else b=[];return b}
|
||||
function Gb(a,b){if(Ge&&-1!==a.indexOf(He))try{var c=new XMLHttpRequest;if("withCredentials"in c){c.onload=b;c.open("GET",a,k);c.withCredentials=k;c.send();return}Ge=o;N("Tracker","Found that XHR with credentials is not supported in this browser.")}catch(d){N("Tracker","XHR not supported"),Ge=o}var c=a,e=new Image;e.onload=b;c=c.replace("&"+He,"");e.src=c;Ie.push(e)}
|
||||
function Je(a){var b=(a=a===k||"true"===a)?"true":"false";a?(z("optimizelyOptOut",b,Ma),z("optimizelyBuckets",b,Ma),alert("You have successfully opted out of Optimizely for this domain.")):(z("optimizelyOptOut",b,Ma),alert("You are NOT opted out of Optimizely for this domain."))}function Ce(){Be();Wc("engagement","engagement")}var xe=[],ye=o;
|
||||
function ze(){var a=["a="+xc(),"d="+dc(),"y="+!!E("ip_anonymization"),"src=js"];Ka&&a.push("override=true");w(Tb(),function(b){var c=Q(b);a.push("x"+c+"="+b)});w(Pd(),function(b,c){a.push("s"+b+"="+c)});a.push("tsent="+ +new Date/1E3);var b=[],c=Na(),d=Oa();w(xe,function(a){var e=[],f=[];a.name&&(e.push("n="+encodeURIComponent(a.name)),f=f.concat(pc(a.name)));if(a.type&&"pageview"===a.type){var f=f.concat(Sb.concat(U)),g=Wb;g&&(g=Q(g),f.push(g))}a.options.anonymous!==k&&(e.push("u="+c),d&&e.push("p="+
|
||||
encodeURIComponent(d)));Ge&&e.push(He);a.aa&&e.push("time="+a.aa);Ea&&e.push("dtpc="+Ea);var h=!!a.options&&!!a.options.c&&a.options.q||{},g=M(h),Nd=Ua(mc(),function(a){return!h[a]}),f=[{Q:g,na:f.concat([E("summary_revenue_goal_id")||m]),ca:["v="+encodeURIComponent(a.options.c)]},{Q:Nd,na:f,ca:[]}];w(f,function(a){(a.Q.length||Ca)&&b.push(e.concat(a.ca).concat(["f="+a.Q.join(","),"g="+a.na.join(",")]).join("&"))});if("custom"===a.type)try{var l=a.name,Cb=Na(),n=O.get("customEvents")||{},r=n[Cb]||
|
||||
(n[Cb]=[]),r=J(r)?r:[];-1!==$.inArray(l,r)&&r.splice($.inArray(l,r),1);r.push(l);100<r.length&&r.shift();n[Cb]=r;O.set("customEvents",n);ma("optimizelyCustomEvents",na())}catch(u){}});var e=b.concat(Fe());Ke(e);var f=a.join("&"),e=Le?b:e;Le=k;for(var h=0,g=e.length;h<g;h++){var n=e[h],r=f+"&"+n;N("Tracker","Making a log request.");var l=xc(),u=E("log_host");l&&(u=l.toString()+"."+u);l=document.location.protocol;"chrome-extension:"===l&&(l="http:");Gb(l+"//"+u+"/event?"+r,function(){for(var a=n,b=
|
||||
Fe(),c=0,d=b.length;c<d;c++)if(b[c]===a){b.splice(c,1);break}Ke(b);N("Tracker","Removed a pending log event from the pending events cookie.")})}xe=[];ye=k}function Ke(a){for(var b=t(a);1536<b.length;)a=a.slice(0,-1),b=t(a);z("optimizelyPendingLogEvents",b,15)}var Ie=[],Le=o,He="wxhr=true",Ge=k;function Me(){return(new Date).getTime()-(Ne||0)}var Ne=Me();function V(a){var b=Oe;b.e[a]||(b.e[a]=Me())}var Pe;try{Pe=!document.getElementsByTagName("body")[0]}catch(Qe){Pe=m}var Re=m;try{window.requestAnimationFrame(function(){Re=Me()})}catch(Se){}var Te=/\/\/[^.]+\.optimizely\.(com|test)\/(js|api\/client)\/[\d]+\.js/gi;
|
||||
function Ue(){try{var a=Ua(window.performance.getEntries(),function(a){return!!Te.test(a.name)})[0];if(!a)return m;var a=L({},a),b;for(b in a){var c=a[b];(0===c||"string"===typeof c)&&delete a[b]}return a}catch(d){return m}}var Oe=new function(){this.e={};this.Ua=Math.random()<Ec();geolocation.cdn3Requested&&(this.e.geoRequest=geolocation.cdn3Requested-Ne)};function Tc(a,b){var b=b===k,c,d=m;w(X,function(b){a==b.G&&(d=b.id)});if((c=d)&&0<c.length)return N("Distributor","Not distributing experiment "+a+" (already in plan)"),k;if(b||a in pd)return N("Distributor","Not distributing experiment "+a+" (is ignored)"),o;c=S(a,"enabled_variation_ids")||[];if(0===c.length)return N("Distributor","Permanently ignoring experiment "+a+" (no enabled variations)"),Ve(a),o;var e=S(a,"ignore")||0,f=We();if(e>Math.floor(1E4*((Zc(f+a,0)>>>0)/$c)))return N("Distributor",
|
||||
"Permanently ignoring experiment "+a+"("+e/100+"% likelihood)"),Ve(a),o;e=c;sd[a]!==j&&(N("Distributor","Taking into account bucketUser variations for experiment "+a),e=td(a));var f=e,h=[],g=S(a,"variation_weights")||{};w(f,function(a){h.push(g[a])});f=Xe(a,h);e=e[f];N("Distributor","Picked variation "+e+" [index "+f+" of "+c.length+"]");ud(e,"distributor");return k}
|
||||
function Ye(a,b){b=b||{};N("Distributor","Configuring conditionally-activated experiment: "+a);Xd[a]?N("Distributor","Not configuring conditionally-activated experiment (already done): "+a):!Ub(a)&&b.force!==k?N("Distributor","Not configuring conditionally-activated experiment (not enabled): "+a):(Ze(a,b),kd&&Pc())}
|
||||
function Ze(a,b){function c(){Hc(W,a,b);n.isActive=I(Sb.concat(U),a);N("Distributor","Activating conditionally activated experiment "+a)}var d=S(a,"conditional_code"),e=k,f;try{var h=eval("(function() {return "+("("+d+")")+";})()");"function"===typeof h&&(e=o,f=h)}catch(g){}var n={isActive:o,experimentId:a};if(e){if(e={objectType:"experiment",enabledStatus:b.enabledStatus},b.force||!Qc(a)||Rc(a,e)){var r=function(){Qc(a)&&($e(0,{value:d})||h)?c():setTimeout(r,50)};r();N("Distributor","Set up conditional polling for "+
|
||||
a);Xd[a]=k}}else try{f(c,n),N("Distributor","Set up conditional callback for "+a),Xd[a]=k}catch(l){N("Distributor","Error running conditional callback function for "+a)}}function We(){return Oa()||Na()}function Xe(a,b){var c=b.length;if(0===c)return m;if(1===c)return 0;for(var d=0,e=0;e<c;e++)d+=b[e];e=We();d*=(Zc(e+a,1)>>>0)/$c;for(e=0;e<c;e++){if(d<b[e])return e;d-=b[e]}d=We();return Math.floor((Zc(d+a,2)>>>0)/$c*c)}
|
||||
function td(a){var b=[];w(S(a,"enabled_variation_ids")||[],function(c){var d=k,e;for(e in sd[a])-1===c.indexOf(sd[a][e])&&(d=o);d&&b.push(c)});return b}var sd={};var af=We;function bf(a){if(0===$("body").length)setTimeout(function(){bf(a)},20);else{var b;b='<div id="optimizely-loading" style="position:absolute;top:0;right:0;left:0;bottom:0;background-color:white;opacity:0.9;z-index: 3271000;"><h2 style="color:#9a9a9a;top:40%;position:absolute;font-size:2.25em;text-align:center;width:100%;font-family:\'Lucida Grande\',sans-serif;">'+a+"</h2></div>";$("#optimizely-loading").remove();$("body").append(b)}}var cf=E("preview_host");function Od(){var a=window.location.search||"";0===a.indexOf("?")&&(a=a.substring(1));for(var a=a.split("&"),b=[],c=0;c<a.length;c++){var d="",e="",f=a[c].split("=");0<f.length&&(d=f[0]);1<f.length&&(e=f[1]);b.push([d,e])}return b}function df(){for(var a=window.location.search,b,c=/optimizely_([^=]+)=([^&]*)/g,d={};b=c.exec(a);)d[b[1]]=b[2];return d}var ef=/x(\d+)/;function ff(a){return a&&-1!==String(a).indexOf("[native code]")};function Xb(a){return a.match(/_optimizely_redirect(?:_no_cookie)?=(\S+)/)}function gf(a){return-1!==a.indexOf("_optimizely_redirect_no_cookie")}function hf(a){var a=a||"",b=v("optimizelyRedirect");return gf(a)||!b||b&&"true"===b.split("|")[1]?k:o}function jf(){var a;a=K(a)?a:document.referrer;z("optimizelyReferrer",a,5)}
|
||||
var vb=m,Wb="",kf=/^\/\* _optimizely_redirect.+\*\/[ ]*\nwindow\.location\.replace\(_optly\.redir\.href.*\)[ ]*[;]?$/,lf=/^\/\* _optimizely_redirect.+\*\/[ ]*\nvar[ ]*_optly[ ]*=[ ]*{[ ]*redir:document\.createElement\("a"\)\}[;]?\n_optly\.redir\.href\=.*\n_optly\.cur=.+\nif \(_optly.cur\)[ ]?{.+}[ ]*\nwindow\.location\.replace\(_optly\.redir\.href.*\)[ ]*[;]?$/,mf=/^\/\* _optimizely_redirect.+\*\/[ ]*[\n]+window\.location\.replace\([ ]*redirectFirst.*\)[ ]*[;]?$/;function nf(a){var b=a||of;N("Segmenter","Loading segments cookie.");if(a=v("optimizelySegments")){try{a=ea(a)}catch(c){a={}}w(a,function(a,c){var d=rc()[a];N("Segmenter","Segments cookie contains segment id: "+a);d&&d.audience_id?b.D(d.audience_id):d&&d.dimension_id?b.O(d.dimension_id,c,o):pf[a]=c})}Nc(M(rc()));qf.push(wa);Dd();N("Integrator","Loading third-party segments.");if(window.bk_results){a=window.bk_results;N("Integrator","Loading BlueKai segments.");try{w(a.campaigns,function(a){a=a.seg_id;
|
||||
rc()[a]?od(a,k):ec(a)&&b.D(a)})}catch(d){N("Integrator","Error loading BlueKai segments.")}}}function wa(){var a={};w(pf,function(b,c){c&&(a[b]=c)});z("optimizelySegments",t(a),Ma)}function od(a,b){a&&!isNaN(parseInt(a,10))?(!b&&""!==b&&(b=k),pf[a]=b,Dd()):N("Segmenter","Unable to find segment for ID: "+a)}function Dd(){w(qf,function(a){a()})}function Yc(a){N("Segmenter","Evaluating Segment "+a);var b=rf(a);b!==m&&od(a,b)}
|
||||
function rf(a){if(Dc(a,"is_api_only"))return m;var b=m,c=m;switch(Dc(a,"segment_value_type")||""){case "browser":b=Z.ea();c="unknown";break;case "campaign":b=Z.Ha();c="none";break;case "country":b=Z.K().country;c="unknown";break;case "language":b=Z.R();c="none";break;case "mobile":b=Z.v();break;case "os":b=Z.ka().id;c="unknown";break;case "referrer":b=Z.Na();c="none";break;case "source_type":b=Z.Pa();c="direct";break;default:return"true"}if(b===m){if(pf.hasOwnProperty(a))return m;b=c}return sf(b)}
|
||||
function tf(){var a=Z.T();if(Z.f("utm_source")||Z.f("utm_campaign")||Z.f("gclid")||Z.f("otm_source"))return"campaign";for(var b=["google\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)","https://(www\\.)?google\\..*?/$","http(s)?://www\\.bing\\.\\w{2,3}(\\.\\w{2,3})?/","r\\.search\\.yahoo\\.\\w{2,3}(\\.\\w{2,3})?/","baidu\\.\\w{2,3}(\\.\\w{2,3})?/"],c=0;c<b.length;c++){var d=b[c];try{if(a.match(d))return"search"}catch(e){x("Segmenter","%s: %s while matching %s",e.name,e.message,d)}}return a&&de(a)!==de(Z.I())?
|
||||
"referral":m}function uf(){var a=[];w(pf,function(b,c){c&&a.push(b)});return a}function Pd(){var a={};w(pf,function(b,c){c&&(a[String(b)]=c)});return a}function vf(a){return w(pf,function(b,c){if((Dc(b,"segment_value_type")||"")==a)return c})}function Bd(a,b){var c=qc(a)||a;pf[c]?(pf[c]=o,("undefined"===typeof b||b)&&Dd()):N("Segmenter","Not removing "+a+", not found")}
|
||||
function sf(a,b){var c,b=K(b)?b:k;c=c||wf;a=ja(a);a=String(a);b&&(a=a.toLowerCase());a=a.substring(0,c);return encodeURIComponent(a)}var qf=[],pf={},wf=20;function xf(){}
|
||||
L(xf.prototype,{ea:Hd,Fa:Id,Ma:Md,v:Ld,p:function(){return{id:this.ea(),version:this.Fa(),mobileId:this.Ma()}},Ha:function(){return this.f("utm_campaign")},H:v,J:Jd,S:nb,Ea:ve,R:function(){var a="";try{a=navigator.userLanguage||window.navigator.language,a=a.toLowerCase()}catch(b){a=""}return a},K:qb,I:function(){return je||window.location.href},ia:ge,La:function(){return!he?k:!!bb.get("first_session")},Da:Od,ka:Kd,T:function(){return v("optimizelyReferrer")||document.referrer||""},Qa:function(a){var a=
|
||||
a.split("."),b=a[0];a:{for(var a=a.slice(1),b=(O.get(cc)||{})[b],c=0,d=a.length;c<d;c++)if(ba(b)&&b.hasOwnProperty(a[c]))b=b[a[c]];else{a=j;break a}a=b}return a},Sa:function(){return Oa()!==m},Na:function(){return de(this.T())},la:uf,Pa:tf,Ja:function(){return document.referrer},f:function(a){a:{for(var b=this.Da(),b=b||Od(),c=0;c<b.length;c++){var d=b[c];if(d[0]===a){a=d[1];a=a.replace(/\+/g," ");a=ja(a);break a}}a=m}return a},Ia:function(){return ld},fa:function(a){return(this.Ia()||{})[a]},Ra:function(){var a=
|
||||
(O.get("customEvents")||{})[Na()]||[];return J(a)?a:[]},Ta:function(a){var b=this.la();return I(b,a)},ua:function(a){return I(this.Ra(),a)},getDate:function(){return new Date},ga:function(a){return!pb()?m:pb()[a]||o},ha:rb});var Z=new xf;function yf(a,b,c){if(a.a)return a.a(b,c);a=Ta(a,b);"undefined"===typeof a&&(a=c);return a}
|
||||
var zf=["*"],Af={eq:function(a){a=Sa(a,function(a){return"string"===typeof a?Ya(a).toLowerCase():a});return a[0]==a[1]},is:function(a){return a[0]===a[1]},gt:function(a){return a[0]>a[1]},lt:function(a){return a[0]<a[1]},gte:function(a){return a[0]>=a[1]},lte:function(a){return a[0]<=a[1]},"in":function(a){return I(a[1],a[0])},between:function(a){return a[1]<=a[0]&&a[0]<=a[2]},and:function(a){return Pa(a,aa())},or:function(a){return H(a,aa())},not:function(a){return!a[0]}},Bf={"+":function(a){return(a[0]||
|
||||
0)+(a[1]||0)},"-":function(a){return(a[0]||0)-(a[1]||0)},"/":function(a){return(a[0]||0)/(a[1]||1)},"%":function(a){return(a[0]||0)%(a[1]||1)}},Cf={sum:function(a,b){for(var c=a[0]||zf,d=0,e=0;e<b.length;e++)d+=yf(b[e],c,0);return d},avg:function(a,b){if(0==b.length)return 0;for(var c=a[0]||zf,d=0,e=0;e<b.length;e++)d+=yf(b[e],c,0);return d/b.length},max:function(a,b){for(var c=a[0]||zf,d=Number.NEGATIVE_INFINITY,e=0;e<b.length;e++)d=Math.max(d,yf(b[e],c,Number.NEGATIVE_INFINITY));return d},min:function(a,
|
||||
b){for(var c=a[0]||zf,d=Number.POSITIVE_INFINITY,e=0;e<b.length;e++)d=Math.min(d,yf(b[e],c,Number.POSITIVE_INFINITY));return d},count:function(a,b){return b.length}},Df={now:function(){return+new Date}};
|
||||
function Ef(a,b){if(b.hasOwnProperty("value"))return b.value;if(b.hasOwnProperty("field"))return yf(a,b.field);if(b.hasOwnProperty("eval")){if(!(b.eval in Df)){x("Rules","Unknown function: "+b.eval);return}return Df[b.eval]()}if(b.op){var c=b.op in Af?Af[b.op]:b.op in Bf?Bf[b.op]:m;if(c){var d=q(Ef,a),e=Sa(b.args||[],function(a){return d(a)});return c(e,a)}x("Rules","Unknown operator: "+b.op)}else x("Rules","No operator specified: "+t(b))}
|
||||
function Ff(a){function b(a,e){J(a)&&("and"!==a[0]&&("or"!==a[0]&&"not"!==a[0])&&x("Rules","Unexpected operation "+a[0]+". Continuing optimistically."),a={op:a[0],args:a.slice(1)});if(a.hasOwnProperty("field")||a.hasOwnProperty("value")||a.hasOwnProperty("eval"))return a;if(e&&a.op in Cf){var f="_"+a.op+"_"+((a.args&&a.args[0]||{}).field||zf).join(".");f in d||(c.push({op:a.op,args:a.args}),d[f]=k);return{field:[f]}}for(var f=[],h=a.args||[],u=0;u<h.length;u++)f[u]=b(h[u],e);return{op:a.op,args:f}}
|
||||
var c=[],d={},e={};a.hasOwnProperty("where")&&(e.where=b(a.where,o));a.hasOwnProperty("having")&&(e.having=b(a.having,k));if(a.hasOwnProperty("aggregate")||0<c.length)e.aggregate=(a.aggregate||[]).concat(c);for(var f=["groupBy","orderBy","select","limit"],h=0;h<f.length;h++)a.hasOwnProperty(f[h])&&(e[f[h]]=a[f[h]]);a.hasOwnProperty("from")&&(e.from=Ff(a.from));return e}
|
||||
function Gf(a,b){var b=b||0,c=[];a.hasOwnProperty("where")?a.where.op?a.where.op in Af||c.push("Non-boolean WHERE clause operator"):c.push("Missing WHERE clause operator"):c.push("Missing WHERE clause");a.hasOwnProperty("having")&&(a.having.op?a.having.op in Af||c.push("Non-boolean HAVING clause operator"):c.push("Missing HAVING clause operator"));a.hasOwnProperty("groupBy")&&!a.hasOwnProperty("aggregate")&&c.push("No AGGREGATE clause specified with GROUP_BY clause");if(a.hasOwnProperty("select")){var d=
|
||||
a.select;if(J(d))for(var e=0;e<d.length;e++)d[e].op&&d[e].op in Cf&&c.push('In SELECT clause, aggregate operator "'+d[e].op+'" specified in selector at index '+e);else c.push("SELECT clause must be an array")}a.hasOwnProperty("limit")&&(d=a.limit,(!Wa(d)||0>=Number(d)||Number(d)!=Math.floor(Number(d)))&&c.push("LIMIT must be a positive integer"));0<b&&(c=Sa(c,function(a){return"Sub-rule "+b+": "+a}));a.hasOwnProperty("from")&&(c=c.concat(Gf(a.from,b+1)));return c}
|
||||
function Hf(a,b){var c=b;a.hasOwnProperty("from")&&(c=Hf(a.from,c));c=Ua(c,function(b){return Ef(b,a.where)});if(a.hasOwnProperty("aggregate")){var d=a.groupBy;if("undefined"===typeof d||!J(d)||0===d.length){var d={},e={};e[zf]="_";d[zf+"=_"]={da:e,e:c};c=d}else{for(var d=Sa(d,function(a){return a.field}),e={},f=0;f<c.length;f++){for(var h=c[f],g=[],n={},r=0;r<d.length;r++){var l=d[r],u=yf(h,l,"_"),l=l.join(".");n[l]=u;g.push(encodeURIComponent(l)+"="+encodeURIComponent(u.toString()))}g=g.join("&");
|
||||
e.hasOwnProperty(g)||(e[g]={da:n,e:[]});e[g].e.push(h)}c=e}var A=a.aggregate,y={};w(c,function(a,b){y[a]={};for(var c=0;c<A.length;c++){var d=A[c],e=d.op;if(e in Cf){var f=(d.args&&d.args[0]||{}).field||zf,d="_"+e+"_"+f.join("."),e=Cf[e]([f],b.e);y[a][d]=e}else x("Rules","Unknown aggregate operator "+e)}});var C=[];w(c,function(a,b){var c=L({},b.da);L(c,y[a]||{});C.push(c)});c=C}a.hasOwnProperty("having")&&(c=Ua(c,function(b){return Ef(b,a.having)}));if(a.hasOwnProperty("orderBy")){var D=a.orderBy;
|
||||
J(D)?c=0==D.length?c:c.sort(function(a,b){for(var c=0;c<D.length;c++){var d=D[c],e="ASC"===(d.direction||"ASC")?1:-1,f=d.field,d=yf(a,f,0),f=yf(b,f,0);if(d<f)return-e;if(d>f)return e}return 0}):x("Rules","groupBy rule must be an array")}a.hasOwnProperty("limit")&&(c=c.slice(0,Number(a.limit)));if(a.hasOwnProperty("select"))var B=a.select,c=Sa(c,function(a){return Sa(B,function(b){return Ef(a,b)})});return c};function N(a,b,c){If.push({Aa:new Date,ya:a,message:b,oa:c||o});Jf&&yd()}function Kf(){Ia=k}function Lf(){Ja=Ia=k}function yd(){Ia&&(w(If,function(a){if(!a.Xa&&(!a.oa||a.oa===Ja)){var b=+a.Aa;x(a.ya,a.message+(" [time "+(Mf?b-Mf:0)+" +"+(Nf?b-Nf:0)+"]"));Nf=b;Mf||(Mf=b);a.Xa=k}}),Jf=k)}var Nf=m,Mf=m,If=[],Jf=o;function Of(){this.j={};this.k={};this.w={};this.sa={}}Of.prototype.Wa=function(a){var b=this.w.hasOwnProperty(a)||this.sa.hasOwnProperty(a);if(!this.j.hasOwnProperty(a)||!b)try{var c=this.j,d=ec(a);d||i(Error("Unable to find audience for id: "+a));var e=Pf(this,d.conditions);N("Visitor","Checking if in audience "+a+": "+e);c[a]=e}catch(f){N("Visitor","Error: "+f.message)}return this.j[a]};
|
||||
function Qf(a,b,c,d){d=L({M:k,ra:k,B:k},d);if(ec(b)){a.j[b]=c;var e=fc(b);e?a.sa[b]=c:d.M?a.w[b]=c:delete a.w[b];e&&d.B&&a.B(e,c);if(!e&&d.M&&d.ra){var f=[];w(a.w,p(function(a){this.j[a]&&f.push(a)},a));f.sort();z("optimizelyAudiences",f.join(","),31536E4)}}else N("Visitor","Unable to find audience "+b)}Of.prototype.D=function(a){Qf(this,a,k)};Of.prototype.W=function(a){Qf(this,a,o)};Of.prototype.Za=function(){w(this.j,p(function(a){Qf(this,a,o,{M:!!this.w.hasOwnProperty(a)})},this))};
|
||||
function Rf(a,b,c,d){d=!K(d)||d;K(c)&&c!==m&&String(c)?(d&&(c=sf(String(c),o)),a.k[b]=c):delete a.k[b];return a.k[b]}Of.prototype.O=function(a,b,c){var d;a:{for(d in E("dimensions")||{}){var e=a,f=jc(d,"api_name");if(e===(!f?m:f))break a}d=m}d=d||a;E("dimensions",d)?"custom_dimension"===kc(d)?(b=Rf(this,d,b,c),a=jc(d,"segment_id"),(a=!a?m:a)&&this.B(a,b),N("Visitor",'Set dimension "'+d+'" to "'+b+'"')):N("Visitor",'Unknown dimension "'+d+'"'):N("Visitor","Unable to find dimension "+a)};
|
||||
Of.prototype.B=function(a,b){b?od(a,b):Bd(a)};var of=new Of;function Sf(a){var b=a.split(":");2!==b.length&&i(Error("optly.timeAndDayInterval.timeStringToMinutes: Invalid time string "+a));return 60*parseInt(b[0],10)+parseInt(b[1],10)};function Rc(a,b){var c=!!b.manualActivation,d=b.objectType?b.objectType:"experiment",e="experiment"===d,f=b.enabledStatus,h=b.visitor||of;N("Condition","Testing "+d+" "+a);var f=e&&(K(f)?!!f:Ub(a)),g=e&&tc(a),n;a:switch(d){case "experiment":n=S(a,"conditions");break a;case "segment":n=Dc(a,"add_condition");break a;default:n=[]}if(e&&!f)return N("Condition","Failed for "+d+" "+a+" (paused)"),o;if(e&&!c&&g)return N("Condition"," Failed for "+d+" "+a+" (manual activation mode)"),o;if(n){var r="experiment"===
|
||||
(d||"experiment"),l=k;w(n,function(b){var c=b.type;if(r&&b.only_first_time&&Tf(a))N("Condition",c+" condition passed because it only gets checked when bucketing",k);else{var d=!b.not,b=(0,Uf[c])(b),e=b!==d;N("Condition","Found that "+("the visitor "+(b?"passed":"failed")+" a "+c+" targeting condition when it needed to "+(d?"pass":"fail")),!e);if(e)return l=o}});if(!l)return N("Condition","Failed for "+d+" "+a+" (condition failed)"),o}else{a:{c=[];e=[];if("experiment"===d)c=S(a,"audiences")||[],e=
|
||||
S(a,"urls")||[];else if("segment"===d)(f=Dc(a,"audience_id"))&&(c=[f]);else{N("Condition","Not a valid objectType: "+d);d=o;break a}if(0<c.length&&(N("Condition","Testing audiences for "+d+" "+a+": "+c),!H(c,p(h.Wa,h)))){N("Condition","Failed to match any audiences for "+d+" "+a);d=o;break a}if(0<e.length){N("Condition","Testing URLs for "+d+" "+a);var h=e,u=Z.I(),A=[],y=[];w(h,function(a){a.negate?y.push(a):A.push(a)});h=function(a){return H(a,function(a){return Vf(u,a)})};if(h(y)||!(0===A.length||
|
||||
h(A))){N("Condition","Failed to match any URL for "+d+" "+a);d=o;break a}}d=k}if(!d)return o}return k}function Wf(a,b){if(!b)return 0;for(var c=b.toString().split("."),d=a.toString().split("."),e=0;e<c.length;e++)if(K(d[e])){if(Number(d[e])<Number(c[e]))return-1;if(Number(d[e])>Number(c[e]))return 1}else return-1;return 0}function Xf(a,b){var c=b.value,d=a.id,e=a.version,f=a.mobileId;return f&&"unknown"!==f?(N("Condition",f,k),"mobile"===c||c===f):0===c.indexOf(d)?0===Wf(e,c.substr(d.length)):o}
|
||||
function $e(a,b){var c=b.value;if(c===j)return k;try{return Boolean(eval(c))}catch(d){return o}}function Yf(a,b){return Zf(b.value,b.match,a)}function $f(a,b){return Zf(b.value,b.match,a)}
|
||||
function ag(a,b){if(a===m)return o;var c=b.value;switch(b.match){case "exact":if(a==c&&""!=a)return k;break;case "prefix":if(0==a.indexOf(c))return k;break;case "regex":try{var d=RegExp(c)}catch(e){break}if(d.test(a))return k;break;case "cidr":try{var f;a:{var h=new bg(c),g=cg(a);g===m&&i(Error("Invalid ip: "+a));for(c=0;4>c;c++)if((g[c]&h.U[c])!==h.V[c]){f=o;break a}f=k}return f}catch(n){}}return o}function dg(a,b){var c=b.value;return"any"===c||0===a.indexOf(c)}
|
||||
function eg(a,b){if(a===m)return o;var c=b.value.split("|"),d=$.trim(c[0]),e=$.trim(c[1]),f=$.trim(c[2]),h=$.trim(c[3]);switch(c.length){case 1:if(a.country===d)return k;break;case 2:if(a.region===e&&a.country===d)return k;break;case 3:if(a.city===f&&(a.region===e||""===e)&&a.country===d)return k;break;case 4:if(a.continent===h)return k}return o}function fg(a,b){return Zf(b.value,b.match,a)}
|
||||
function gg(a,b){var c=b.value,d=b.match;N("Condition","Testing referrer "+a+" against "+c+" ("+d+")",k);return hg(a,c,d)}function ig(a){return!!a}function jg(a){var b=Z.I();return H(a.values,q(Vf,b))}function Vf(a,b){var c=b.value,d=b.match;N("Condition","Testing URL "+a+" against "+c+" ("+d+")",k);return hg(a,c,d)}function kg(a,b){switch(b.value){case "new":if("returning"===a)return o;break;case "returning":return"returning"===a}return k}
|
||||
function Pf(a,b){var c={and:function(b){return Pa(b,q(Pf,a))},or:function(b){return H(b,q(Pf,a))},not:function(b){1!==b.length&&i(Error('"not" argument too long: '+t(b)));return!Pf(a,b[0])}};if(J(b)){if(b[0]in c)return c[b[0]](b.slice(1));i(Error("Not an operator"))}var c=b.dimension_id,d=kc(c),e=b.value;d||i(Error("No dimension type for dimension: "+c));var f=mg[d];f||i(Error("Unknown dimension type: "+d));d=j;if(a.k.hasOwnProperty(c))d=a.k[c];else try{var h=kc(c)||"",g,n;E("dimensions",c)||i(Error("Unable to find dimension for id: "+
|
||||
c));"custom_dimension"===h&&i(Error("calculateDimensionValue called on custom dimension "+c));(g={browser:p(Z.p,Z),browser_version:p(Z.p,Z),behavior:p(Z.Ea,Z),campaign:q(vf,"campaign"),cookies:p(Z.H,Z),custom_tag:p(Z.fa,Z),device:p(Z.J,Z),event:p(Z.ua,Z),first_session:p(Z.La,Z),has_ppid:p(Z.Sa,Z),ip:p(Z.S,Z),language:p(Z.R,Z),list:p(Z.ga,Z),location:p(Z.K,Z),query:p(Z.f,Z),platform:p(Z.ka,Z),referrer:p(Z.T,Z),segment:p(Z.Ta,Z),source_type:q(vf,"source_type"),third_party_dimension:p(Z.Qa,Z),time_and_day:p(Z.getDate,
|
||||
Z),url:p(Z.I,Z),visitor:p(Z.ia,Z),dynamic_customer_profile:p(Z.ha,Z)}[h])&&(n=g(lc(c)));N("Visitor","Got dimension ("+h+") value "+c+": "+t(n));d=n}catch(r){N("Visitor","Error: "+r.message)}return f(d,{value:e,match:b.match||"exact"})}
|
||||
function Qc(a){var b=k;!S(a,"conditions")&&!Dc(a,"add_condition")?(b=[Dc(a,"audience_id")],b[0]||(b=S(a,"audiences")||[]),b=Pa(b,function(a){a=ec(a);return!a.conditions?k:ng(a.conditions)})):(S(a,"uses_geotargeting")||Dc(a,"uses_geotargeting"))&&(b=og.ip(m)||og.location(m));b||N("Condition","Not ready to test (geotargeting): "+a);return b}function ng(a){if(J(a))return Pa(a.slice(1),ng);var b=kc(a.dimension_id)||"";return(b=og[b])?b(a):k}
|
||||
var Uf={browser:function(a){var b=Z.p();return H(a.values,function(a){return Xf(b,{value:a})})},code:function(a){return $e(0,a)},cookies:function(a){for(var b=a.names||[],a=a.values||[],c,d=0;d<b.length;d++)if(c=b[d],Yf(Z.H(c),{value:a[d]||j}))return k;return o},custom_tag:function(a){return H(a.values,function(a){return $f(Z.fa(a.key),{value:a.value})})},event:function(a){return H(a.values,function(a){return Z.ua(a)})},ip:function(a){var b=Z.S();return H(a.values,q(ag,b))},language:function(a){var b=
|
||||
Z.R();return H(a.values,function(a){return dg(b,{value:a})})},location:function(a){var b=Z.K();return H(a.values,function(a){return eg(b,{value:a})})},query:function(a){return 0===a.values.length?k:H(a.values,function(a){return fg(Z.f(a.key),{value:a.value})})},referrer:function(a){return H(a.values,q(gg,Z.Ja()))},segment:function(a){var b=Z.la();return H(a.values,function(a){return ig(Va(a,b))})},url:jg,visitor:function(a){var b=Z.ia();return kg(b,a)}},mg={browser:Xf,browser_version:function(a,b){var c=
|
||||
b.value,d=a.id,e=a.version;return 0===c.indexOf(d)?0===Wf(e,c.substr(d.length)):o},behavior:function(a,b){try{var c;var d=ea(b.value);try{var e;e=Ff(d);var f=Gf(e);0<f.length&&i(Error("Rule "+t(e)+" has violations: "+f.join("\n")));c=0<Hf(e,a).length}catch(h){x("Rules","Error "+h.toString()+" while evaluating rule "+d.toString()),c=o}return c}catch(g){}return o},campaign:function(a,b){"none"===a&&(a=m);return Zf(b.value,b.match,a)},code:$e,cookies:Yf,custom_dimension:function(a,b){var c=b.value;return!K(c)?
|
||||
K(a):c==a},custom_tag:$f,device:function(a,b){var c=b.value;return"unknown"!==a.id?a.id===c:"tablet"===c?"tablet"===a.type:"mobile"===c?a.v&&"tablet"!==a.type:"desktop"===c?!a.v:o},event:aa(),first_session:aa(),ip:ag,language:dg,list:function(a,b){if(a===m||!K(a))return o;var c=b.value;return!K(c)?""===a||a!==o:a.toString()===c},location:eg,query:fg,platform:function(a,b){var c=b.value.split("_"),d=c[0],c=c.slice(1);return d===a.id?0===c.length?k:1<c.length?0<=Wf(a.version,c[0])&&0>=Wf(a.version,
|
||||
c[1]):0===Wf(a.version,c[0]):o},referrer:gg,segment:ig,source_type:function(a,b){return b.value===a},time_and_day:function(a,b){var c,d,e;c=b.value;e=c.split("_");3!==e.length&&i(Error("Invalid time and day string "+c));c=e[0];d=e[1];e=e[2].split(",");c=Sf(c);d=Sf(d);var f=60*a.getHours()+a.getMinutes(),h="sunday monday tuesday wednesday thursday friday saturday".split(" ")[a.getDay()];return f>=c&&f<=d&&-1!==$.inArray(h,e)},third_party_dimension:function(a,b){return J(a)?H(a,q(Zf,b.value,b.match)):
|
||||
Zf(b.value,b.match,a)},url:Vf,visitor:kg,dynamic_customer_profile:function(a,b){return a===m?o:I(a,b.value)},has_ppid:aa()},og={ip:function(){V("checkGeo");return Z.S()!==m},location:function(){V("checkGeo");return Z.K()!==m},list:function(a){return Z.ga(lc(a.dimension_id)||"")!==m},dynamic_customer_profile:function(){return Z.ha()!==m}};
|
||||
function Zf(a,b,c){var d=K(c)&&c!==m,e=K(a)&&a!==m;switch(b||(e?"exact":"exists")){case "exists":return d;case "exact":return d&&String(c)===a;case "substring":return d&&-1!==String(c).indexOf(a);case "regex":try{return e&&d?Boolean(String(c).match(RegExp(a))):o}catch(f){return o}case "range":return a=a.split(":"),b=parseFloat(a[1]),c=parseFloat(c),c>=parseFloat(a[0])&&c<=b;default:return o}};function pg(a,b){var c;c=$.trim(b);var d="";if(window.optimizely&&window.optimizely.data)if(d=c.match(qg))d=window.optimizely.data.visitor.params[d[1]],d===j&&(d="");else{for(var d=c.split("."),e=window.optimizely,f=0,h=d.length;f<h;f++)if(e=e[d[f]],e===j||e===m){e="";break}d=""+e}N("Template",c+" evaluated to: '"+d+"'");return d}var rg=/\{\{ *optimizely\.([^\n\r{}<>]*)\}\}/g,qg=/^data\.visitor\.params\.(.*)$/;function ud(a,b,c){var d;d=o===k;var c=c===k,e=o,f=Q(a);if(f&&(c||!Tf(f))){e=k;if(c&&Tf(f))for(c=0;c<X.length;c++)X[c].G===f&&X.splice(c,1);X.push({G:f,id:a,source:b});d&&(U=U||[],U.push(f));qd[f]=k;rd();N("Plan","Added experiment "+f+" and variation id "+a+" to the plan, source is "+b,k)}return e}function Tf(a){return a in pd||a in qd}function Tb(a){var b=[],c=!K(a),a=a||[];w(X,function(d){(c||I(a,d.G))&&b.push(d.id)});return b}function Ve(a){var b;if(b===k||!Tf(a))pd[a]=k,rd()}
|
||||
function Vc(){var a={};w(Wd,function(b,c){a[b]=c});w(X,function(b){var c=Q(b.id);a[c]=b.id});w(pd,function(b){a[b]="0"});w(E("blacklisted_experiments")||{},function(b){b in a&&delete a[b]});z("optimizelyBuckets",t(a),Ma)}function rd(){w(sg,function(a){a()})}
|
||||
function tg(a,b,c,d){if(-1!==a.indexOf("_optimizely_redirect"))b.push({code:a,type:"code forced (redirect)",P:d});else{for(var a=a.split("\n"),e=o,f=o,h=[],g=[];0<a.length;){var n=Ya(a.shift()),r=0<g.length;if(n)if(Boolean(n.match(/_optimizely_evaluate\s{0,9}=\s{0,9}force/i)))f=k;else if(Boolean(n.match(/_optimizely_evaluate\s{0,9}=\s{0,9}safe/i))||Boolean(n.match(/_optimizely_evaluate\s{0,9}=\s{0,9}end_force/i)))f=o;else if(Boolean(n.match(/_optimizely_evaluate\s{0,9}=\s{0,9}editor_only/i)))e=k;
|
||||
else if(Boolean(n.match(/_optimizely_evaluate\s{0,9}=\s{0,9}end_editor_only/i)))e=o;else if(!ug.exec(n)&&!e)if(f)h.push(n);else{if(!r){var l=vg.exec(n),u=[];l?(u.push(l[1].replace(/^['"]|['"]$/g,"")),(l=wg.exec(n))&&4<l.length&&u.push(l[4]),c.push({code:n,g:u,type:"safe jquery",C:k,P:d})):r=k}r&&g.push(n)}}0<h.length&&b.push({code:h.join("\n"),type:"forced evaluation",P:d});0<g.length&&c.push({code:g.join("\n"),type:"safe non-jquery",bb:k,P:d})}}
|
||||
function xg(a,b,c){for(var d={values:[]},e=0,f=a.length;e<f;e++)d.values.push({value:a[e],match:b[e]||c});return d}var sg=[],Wd={},pd={},wg=/^\$j?\(['"](.+?)['"]\)\.detach\(\)\.(appendTo|insertAfter|insertBefore|prependTo)\(['"](.+?)['"]\);(?:\s|(?:\/\/.*|\/\*(?:[^*]|\*(?!\/))*\*\/))*$/,ug=/^(?:\s|(?:\/\/.*|\/\*(?:[^*]|\*(?!\/))*\*\/))*$/,vg=/^\$j?\((['"].+?['"]|document)\)\..+;(?:\s|(?:\/\/.*|\/\*(?:[^*]|\*(?!\/))*\*\/))*$/,qd={},X=[];function yg(a){pf={};nf(a)};function zg(a,b){if(a&&b)if(Ag)N("Evaluator","Bound event "+b+" to selector "+a),Bg(a,b);else{var c={m:b,g:a,type:"event '"+b+"' (click goal)",C:k};N("Evaluator","Add step to bind event "+c.m+" to selector "+c.g);Cg.push(c)}}
|
||||
function Uc(a,b){if(G){J(a)?Dg(a):(a=[],Dg(b));a=a.concat(U);U=[];for(var c=0;c<a.length;c++)I(Sb,a[c])||Sb.push(a[c]);c=a;c===j?c=[]:Wa(c)&&(c=[c]);for(var d=Tb(c),e=[],f=[],h=[],g=[],n=Ua(gc(),function(a){return a.experiments?o:jg(a.url_conditions||[])}),r=0,l=n.length;r<l;r++){var u={m:n[r].event_name,g:n[r].selector,type:"event '"+n[r].event_name+"' (click goal)",C:k};"revenue"in n[r]&&(u.revenue=n[r].revenue);e.push(u)}w(c,function(a){var b={},c=S(a,"events")||{};w(c,function(a,c){b[a]=[c]});
|
||||
var c=Ua(gc(),function(b){return"experiments"in b?a in b.experiments:o}),d=0;for(;d<c.length;d++){var l=c[d];b[l.selector]||(b[l.selector]=[]);b[l.selector].push({eventName:l.event_name,revenue:l.revenue,experimentIds:l.experiments})}w(b,function(b,c){w(c,function(c){e.push({m:c.eventName,q:c.experimentIds,c:c.revenue,g:b,type:"event '"+c.eventName+"' (experiment "+a+")",C:k})})});c=S(a,"css")||"";d=S(a,"code")||"";c&&h.push({code:'$("body").append("<style>'+c.replace(/([\f\n\r\t\\'"])/g,"\\$1")+
|
||||
'</style>");',g:"body",type:"global css (experiment "+a+")",C:k});d&&tg(d,f,g)});w(d,function(a){for(var b=Yb(a),b=b.split("\n"),c=[],d=k,e=0,h=b.length;e<h;e++){var l=$.trim(b[e]);if(l==="/* _optimizely_variation_url_end */")d=k;else if(l!==""){var n=za.exec(l);if(n&&n.length===13){var r=n[2]?n[2].split(" "):[],l=n[4]?n[4].split(" "):[],u=n[6]?n[6]:"substring",lg=n[8]?n[8].split(" "):[],n=n[10]?n[10].split(" "):[];if(r.length>0){d=xg(r,lg,u);d=jg(d)}if(d&&l.length>0){d=xg(l,n,u);d=!jg(d)}}else d&&
|
||||
c.push(l)}}b=c.join("\n");tg(b,f,g,a)});c=[];c.push.apply(c,f);c.push.apply(c,h);c.push.apply(c,g);c.push.apply(c,e);Cg.push.apply(Cg,c);Eg()}}
|
||||
function Eg(){var a=o;Fg=m;for(N("Evaluator",Gg+" times waited");!a&&0<Cg.length;){N("Evaluator",Cg.length+" steps remaining");var b=Cg.shift(),c=b,a=o;if(c.bb&&!Ag)N("Evaluator","Document not ready yet"),a=k;else if(c.C&&!Ag&&(c=c.g))for(var c=J(c)?c:[c],d=0;d<c.length;d++){var e=c[d];if(!(e===m||e===j||!e.length))if(0===("document"==e?$(document):$(e)).length)N("Evaluator","'"+e+"' not found"),a=k}a?Cg.unshift(b):b.m?(Hg(),N("Evaluator","Bound event "+b.m+" to selector "+b.g),c={},b.c&&(c={c:b.c,
|
||||
q:b.q}),Bg(b.g,b.m,c)):b.code&&(N("Evaluator","Run code: "+b.code),Ig(b.code,b.P))}a?(Fg=setTimeout(Eg,0===Gg?10:50),Gg++):(N("Evaluator",Gg+" total times waited"),Hg())}function Hg(){V("flash");0<Oc.length||V("flashGeo")}
|
||||
function Ig(a,b){a=a.replace(rg,pg);if(Xb(a))if(N("Evaluator","Redirect detected"),hf(a)){N("Evaluator","OK to redirect");var c=gf(a);N("Evaluator","setting a redirect cookie"+(b?" for variation: "+b:""));z("optimizelyRedirect",(b||"unknown variation")+"|"+(c?"true":"false"),5);jf()}else{N("Evaluator","NOT OK to redirect");return}eval("var $j = $;");try{if(Xb(a)){$("head").append("<style type='text/css'>body{display:none;visibility:hidden;}</style>");N("Evaluator","Hiding body before redirect");var d=
|
||||
lf.test(a)||kf.test(a)||mf.test(a),e=/_keep_body_hidden=(\S+)/.test(a);d||e?N("Evaluator","Standard redirect detected - Will not unhide body."):setTimeout(function(){document.body&&(document.body.style.visibility="visible",document.body.style.display="block",N("Evaluator","Unhiding body -- did not redirect"),V("bodyUnhidden"))},1700)}eval(a)}catch(f){c=Ia,Ia=k,N("Evaluator","Error: "+f.message),N("Evaluator","Code: "+a),Ia=c,N("Evaluator","Failed to run code: "+f.message)}}
|
||||
function Bg(a,b,c){c=c||{};if(!Jg[a]||!Jg[a][b]){var d=function(){Wc(b,"custom",c)},e=$(a);if(0<e.length){var f=function(){e.unbind("touchend",d);e.unbind("touchmove",f);e.unbind("mousedown",d)},h=function(){f();e.bind("touchmove",f);e.bind("touchend",d)};e.bind("mousedown",d);e.bind("touchstart",h)}else e=$("html"),f=function(){e.undelegate(a,"touchend",d);e.undelegate(a,"touchmove",f);e.undelegate(a,"mousedown",d)},e.delegate(a,"touchstart",function(){f();e.delegate(a,"touchend",d);e.delegate(a,
|
||||
"touchmove",f)}),e.delegate(a,"mousedown",d);Jg[a]||(Jg[a]={});Jg[a][b]="mousedown touchstart"}}function Kg(a){Lg=a}function Dg(a){a||(a=oc());for(var b=0;b<a.length;b++)T(a[b])}var Jg={},Sb=[],U=U||[],Lg=0,Ag=o,Cg=[],Fg=m,Gg=0;$(function(){setTimeout(function(){V("docReady");Ag=k;Fg!==m&&(N("Evaluator","Document is ready"),clearTimeout(Fg),0<Lg?setTimeout(Eg,Lg):Eg())},50)});function bg(a){this.za=$.trim(a);a=Mg(this.za);a===m&&i(Error("Invalid CIDR specification"));this.V=a.V;this.U=a.U}function Mg(a){a=a.split("/");if(2!=a.length)return m;var b=parseInt(a[1],10);if(isNaN(b)||0>b||32<b)return m;a=cg(a[0]);if(a===m)return m;if(0>b||32<b)b=m;else{for(var c=[],d=0;4>d;d++)c[d]=0;for(var e=Math.floor(b/8),d=0;d<e;d++)c[d]=255;4>e&&(c[e]=Ng[b%8]);b=c}for(c=0;4>c;c++)a[c]&=b[c];return{V:a,U:b}}
|
||||
function cg(a){a=a.split(".");if(4!=a.length)return m;for(var b=[],c=0;4>c;c++){var d;d=a[c];if(3<d.length)d=m;else{var e=parseInt(d,10);d=isNaN(e)||d!==e.toString()||0>e||255<e?m:e}if(d===m)return m;b[c]=d}return b}var Ng=[0,128,192,224,240,248,252,254,255];function hg(a,b,c){var d=a.split("?");if(d[1]){var e=[];$.each(d[1].split("&"),function(){0!==this.indexOf(Og)&&e.push(this)});d[1]=e.join("&");a=d.join("?")}switch(c){case "exact":return a=Pg(a),a===Pg(b);case "regex":try{return Boolean(a.match(b))}catch(f){return o}case "simple":return a=Pg(Qg(a)),b=Pg(Qg(b)),a===b;case "substring":return a=Pg(a,k),b=Pg(b,k),-1!==a.indexOf(b);default:return o}}
|
||||
function Qg(a){var b=a.indexOf("?");-1!==b&&(a=a.substring(0,b));b=a.indexOf("#");-1!==b&&(a=a.substring(0,b));return a}function Pg(a,b){var a=a.replace("/?","?"),a=a.toLowerCase().replace(/[/&?]+$/,""),c=Rg.slice(0);b||(c=c.concat(Sg));for(var d=c.length,e=0;e<d;e++)a=a.replace(RegExp("^"+c[e]),"");return a}
|
||||
var Rg=["https?://.*?.?optimizelyedit.(com|test)/","https?://.*.?optimizelypreview.(com|test)/","https?://(edit|preview)(-hrd|-devel)?.optimizely.(com|test)/","https?://.*?.?optimizelyedit(-hrd)?.appspot.com/","https?://"],Sg=["www."],Og="optimizely_";function Tg(a){return function(b){if("object"===typeof b&&Wg()){var c=m,d;for(d in b)b.hasOwnProperty(d)&&(c=a.call(this,d,b[d]));return c}return a.apply(this,arguments)}}function Wg(){for(var a in{})return k;return o};function Xg(){if(!xa){var a=$;a.fn.attr=Tg(a.fn.attr);a.fn.css=Tg(a.fn.css);a.fn.extend=Tg(a.fn.extend);var b=a.each;a.each=function(c,d,e){if(!(c.length===j||a.isFunction(c))||!Wg())b.apply(this,arguments);else if(e)for(var f in c){if(c.hasOwnProperty(f)&&d.apply(c[f],e)===o)break}else for(f in c)if(c.hasOwnProperty(f)&&!d.call(c[f],f,c[f])===o)break;return c};var c=a.fn.Va,d=function(a,b,d){return new c(a,b,d)},e,f=document.getElementsByClassName;if(!ff(f))var f=(window.optimizely||{}).getElementsByClassName,
|
||||
h=(window.optly||{}).getElementsByClassName,f=ff(f)?f:ff(h)?h:m;e=f;a.fn.Va=function(b,c,f){var g=d,h=document.getElementsByClassName;!ff(h)&&e&&(g=function(a,b,c){document.getElementsByClassName=e;a=d(a,b,c);document.getElementsByClassName=h;return a});if(!("string"===typeof b&&c&&"object"===a.type(c)&&Wg()))return g(b,c,f);b=g(b,j,f);b.attr(c);return b}}N("Main","Started, revision "+E("revision"));var f=df(),h=o,g;for(g in f)if(ef.exec(g)){h=k;break}("true"===f.opt_out||"false"===f.opt_out)&&Je("true"===
|
||||
f.opt_out);Ca="true"===f.force_tracking;if("true"===f.disable||"true"===f.opt_out||"true"===v("optimizelyOptOut"))G=o;Da="true"===f.editor;Ha="true"===f.show_preview;g=f.token;/^[0-9a-f]{32}$/.test(g)?Fa=g:N("Query","Blocked request to load unsafe script: "+g);Ia="true"===f.log;Ja="true"===f.verbose;F=!(Ha||h)||Ca;"false"===f.client&&(G=o,Aa="js/"+xc()+".js");g=window.optimizely;if(G&&J(g)){var n={disable:vd,verifyPreviewProject:function(a){xc()!==a&&N("API","Preview projectId ("+xc()+") does not match expected ("+
|
||||
a+"), disabling.")}};w(g,function(a){xd(n,a,k)})}if(G&&(g=E("project_js")))N("Evaluator","Running project level javascript."),Ig(g);if(Fa){if(!window.optimizelyPreview){if(!window.optimizely||!window.optimizely.unshift)window.optimizely=[];window.optimizely.unshift(["verifyPreviewProject",xc()]);Xa([cf,"/js/preview/",Fa,".js"].join(""),k);Ha&&bf('Loading Preview<br /><img alt="loading" src="//'+E("www_host")+'/static/img/loading-32.gif" style="padding-top:20px; width: 32px; margin: 0 auto;" />')}}else if(Ha&&
|
||||
!Fa)bf("This preview link has expired. Please return to Optimizely and preview again to get a new link.");else{if(E("uses_list_targeting")){g="https://odds.optimizely.com/js/geo2.js";var r={};w(E("list_targeting_cookie_names"),function(a){var b=Z.H(a);typeof b==="string"&&b.length<=100&&(r["c_"+a]=b)});r.project=xc().toString();var f=[],l;for(l in r)r.hasOwnProperty(l)&&f.push(encodeURIComponent(l)+"="+encodeURIComponent(r[l]));f.length&&(g+="?"+f.join("&"));Xa(g)}if(Cc()){b:{l=ic();for(g=0;g<l.length;g++)if(f=
|
||||
l[g],f.is_optimizely){l=f.dcp_datasource_id||m;break b}l=m}l===m?(x("DCP","No Optimizely datasource found in data."),l=m):(l=Sa([xc().toString(),l,af()],encodeURIComponent),l=["https://vis.optimizely.com/api/targetingEmbed"].concat(l).join("/"));l!==m&&Xa(l)}(E("dcp_service_id")||m)!==m&&setTimeout(function(){var a;if(Cc()){var b=E("dcp_service_id")||m;if(b!==m){a=ic();for(var c=m,d=[],e=0;e<a.length;e++){var f=a[e],g=f.dcp_datasource_id||m,h=f.is_optimizely||o,l=f.type,f=f.name||"";if(g===m)x("DCP",
|
||||
"No DCP datasource id specified");else{var n=m;if(l==="cookie")n=Z.H(f);else if(l==="js_variable")try{n=window[f]}catch(r){n=m}else l==="query_param"?n=Z.f(f):l==="uid"&&(n=af());if(Wa(n)||typeof n==="string"){g={datasourceId:g,id:n};h?c=g:d.push(g)}}}if(a=c)if(d.length===0)x("DCP","Must specify at least one non-Optimizely datasource to alias");else{b=["https://vis.optimizely.com/api/alias"].concat(Sa([b,a.datasourceId,a.id],encodeURIComponent)).join("/");try{var u=new XMLHttpRequest;u.open("POST",
|
||||
b);u.onerror=function(){x("dcp","Failed to POST alias request")};u.setRequestHeader("Content-Type","application/json;charset=UTF-8");u.send(t(d))}catch(y){x("dcp","Exception %s trying to POST alias request",y)}}else x("DCP","Must specify Optimizely datasource in alias")}}},0);(l=O.get("asyncInfo"))&&w(l,mb);l=document.location.hostname;if(ka()){ua=l;l=document.location.hostname.split(".");g=[];for(f=l.length-1;0<=f;--f){var h=l.slice(f).join("."),u="optimizelyDomainTest-"+Math.random().toString(16).replace("0.",
|
||||
""),A=Math.random().toString(16).replace("0.","");oa(u,A,h,3);v(u)===A&&g.push(h)}la=g;0<la.length?(ua=la[0],x("Cookie","Highest level domain: %s",ua)):(x("Cookie","Disabling event tracking because cookies could not be set"),F=o)}else g=l.split("."),f=l,h=g[g.length-1],2<g.length&&"appspot"===g[g.length-2]&&"com"===h?f=g[g.length-3]+".appspot.com":1<g.length&&Va(h,ya)&&(f=g[g.length-2]+"."+h),ra=f,x("Cookie","Guessed public suffix: %s",ra),pa=Ac(l),x("Cookie","Public suffix (from data): %s",pa);ta&&
|
||||
x("Cookie","Domain specified by API: %s",ta);l=Hd();g=Id();"ie"===l&&("unknown"!==g&&8>Number(g))&&(G=o);if(G){l=v("optimizelyEndUserId");he=l!==j&&l!==m;a:{l="googlebot;yahoo! slurp;bingbot;bingpreview;msnbot;keynote;ktxn;khte;gomezagent;alertsite;yottaamonitor;pingdom.com_bot;aihitbot;baiduspider;adsbot-google;mediapartners-google".split(";");g=navigator.userAgent;g=g.toLowerCase();for(f=0;f<l.length;f++)if(-1!==g.indexOf(l[f])){l=k;break a}l=o}l?F=o:he||bb.set("first_session",k)}if(l=v("optimizelyBuckets")){try{l=
|
||||
ea(l)}catch(y){l={}}var C={};w(l,function(a,b){var b=String(b),c=Q(b);if(vc(c).length>1&&b.indexOf("_")===-1){C[c]=C[c]||{};C[c][a]=b}else b!=="0"?ud(b,"cookie")||(Wd[a]=b):Ve(a)});w(C,function(a,b){var c;a:{c=[];for(var d=vc(a),e=0;e<d.length;e++){var f=b[d[e]];if(f==="0"){c="";break a}c.push(f)}c=c.join("_")}c.length>0?ud(c,"cookie"):Ve(a)})}nf();Wb=(v("optimizelyRedirect")||"|").split("|")[0];l=v("optimizelyReferrer");l!==m&&(vb=0==l.length?"":l,z("optimizelyReferrer",""));l=of;N("Visitor","Initializing");
|
||||
(g=v("optimizelyAudiences"))&&0<g.length&&w(g.split(","),p(function(a){Qf(this,a,k,{M:k,ra:o})},l));w(uf(),p(function(a){N("Visitor","Found segment "+a);var b=rc()[a];if(b&&b.audience_id){N("Visitor","Adding to audience "+b.audience_id);Qf(this,b.audience_id,k,{B:o})}else if(b&&b.dimension_id){N("Visitor","Setting dimension value "+b.dimension_id);Rf(this,b.dimension_id,pf[a],o)}},l));W=of;kd=o;qf.push(Pc);sg.push(Pc);l={$:$,activeExperiments:Sb||[],allExperiments:sc(),all_experiments:sc(),allVariations:E("variations")||
|
||||
{},data:Y,getElementsByClassName:document.getElementsByClassName,revision:E("revision"),variationIdsMap:Ed,variation_map:Fd,variationMap:Fd,variationNamesMap:Gd};g={};var D=Qa(xd,g);L(g,{activate:q(Hc,W),activateGeoDelayedExperiments:q(Kc,W),activateSiteCatalyst:sb,activateUniversalAnalytics:Lb,addToAudience:p(W.D,W),addToSegment:nd,bindTrackElement:zg,bucketUser:Ic,bucketVisitor:Ic,clickTaleRecord:Ob,clickTalePlayback:Mb,customTag:zd,delayDomReadyEval:Kg,delayPageviewTracking:Qd,disable:vd,log:Kf,
|
||||
getAccountId:dc,getProjectId:xc,googleAnalyticsCustomVariableScope:yb,integrationPrefix:Pb,optOut:Je,overrideUrl:ie,push:D,removeFromAllAudiences:p(W.Za,W),removeFromAllSegments:Cd,removeFromAudience:p(W.W,W),removeFromSegment:Ad,sc_activate:sb,sc_svar:Qb,setCookieDomain:va,skipPageTracking:Td,optOutThirdPartyCookies:Rd,setCookieExpiration:Sd,setDimensionValue:p(W.O,W),setUserId:Vd,storeThirdPartyData:md,timeout:vd,trackEvent:we,verbose:Lf});g.removeFromReportableAudiences=Ud;L(l,g);g=window.optimizely;
|
||||
J(g)&&w(g,function(a){D(a)});window.optimizely=l;V("apiInitialize");window.optimizely.iapi={evaluateSegments:q(yg,j)};var B=!E("force_variation");l=df();w(l,function(a,b){var c=ef.exec(a);if(c)if(B){Ga=k;x("Query","Ignored parameter %s",a)}else{c=c[1];Ic(c,b,k);uc(c)?Ye(c,{force:k,skipPageviewTracking:k}):Rc(c,{})||Hc(W,c,{force:k,skipPageviewTracking:k})}});Ga?bf("Force parameters are disabled for this project. See Project Code Settings."):(Xg.log(),Da&&Xa("https://"+E("www_host")+"/js/innie.js?_="+
|
||||
+new Date),G&&(V("distributeExperiments"),w(oc(),function(a){if(!Va(a,U))if(uc(a))Ye(a);else if(Qc(a)){if(Rc(a,{objectType:"experiment"})){N("Distributor","Going to distribute "+T(a));if(Tc(a)){U=U||[];U.push(a)}}}else!tc(a)&&!I(Sb,a)&&Sc(a)}),Vc(),Ae(),La||(0<Ba?setTimeout(function(){Ee()},Ba):Ee()),ze(),Ab()),Ia&&(w(pd,function(a){var b=$b(a);N("Plan","Ignore experiment '"+b+"' ("+a+")")}),w(X,function(a){var b=Q(a.id),c=Vb(a.id);N("Plan",T(b)+' in variation "'+c+'" ('+a.id+")")})),Da?wd():G&&(V("beginEvaluate"),
|
||||
Uc(),wd(),yd(),!E("installation_verified")&&F&&(l="//"+E("www_host")+"/account/snippet_installed?project_id="+xc()+"&wxhr=true",N("Tracker","Making snippet verification request."),Gb(l,m))),setTimeout(function(){Kc(W)},2E3),setTimeout(function(){if(F){var a=Oe;if(a.Ua){var b=ve(),c=Na(),d=Oa(),e=xc(),f=Pe,g=Ne,h=Re,l=Ec(),n=Sb.concat(U).length,b=b.length,r;r=ee()||[];r=t(r).length;c={user:c,ppid:d,project:e,sync:f,timebase:g,render:h,sampleRate:l,numExps:n,numBehaviorEvents:b,behaviorEventsSize:r,
|
||||
codeVersion:E("version"),hasSlave:Gc(),docVisibilityState:document.xb||document.webkitVisibilityState,wxhr:k};L(c,Ue()||{});L(c,a.e);var u=["optimizelyAudiences","optimizelyBuckets","optimizelyCustomEvents","optimizelyPendingLogEvents","optimizelyReferrer","optimizelySegments"],y={},A=0,B=0;w(ia(),function(a){if(a.name.indexOf("optimizely")===0){if(I(u,a.name)){N("RUM","Cookie size for "+a.name+": "+a.N.length);y[a.name+"Len"]=a.N.length}A=A+a.N.length}B=B+a.N.length});L(y,{allOptimizelyCookiesLen:A,
|
||||
allCookiesLen:B});L(c,y||{});var D={};w(O.pa()||{},function(a,b){D["ls"+a]=b});L(c,D);var a=[],C;for(C in c)Object.prototype.hasOwnProperty.call(c,C)&&a.push(window.encodeURIComponent(C)+"="+window.encodeURIComponent(c[C]));Gb("https://rum.optimizely.com/rum?"+a.join("&"),m)}}},3E3),N("Main","End of main"),V("mainEnd"))}}
|
||||
Xg.log=function(){N("Info","Is enabled: "+G);N("Info","Diagnostic enabled: false");N("Info","Force variation enabled: "+!!E("force_variation"));N("Info","Script to load: "+(Aa||"none"));N("Info","Browser type: "+Hd());N("Info","Browser version: "+Id());var a=Md();"unknown"!==a&&N("Info","Mobile browser type: "+a);N("Info","New vs returning: "+ge());N("Info","Source type: "+tf());N("Info","User ID: "+Na())};Xg();
|
||||
optly.Cleanse.finish();
|
||||
};
|
||||
|
||||
optimizelyCode();
|
||||
}());
|
|
@ -1,50 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- saved from url=(0051)https://app-sj05.marketo.com/index.php/form/XDFrame -->
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Marketo Forms 2 Cross Domain request proxy frame</title>
|
||||
<script src="forms2.min.js"></script>
|
||||
<script>
|
||||
(function (){
|
||||
var $ = MktoForms2.$;
|
||||
if(!window.parent || window.parent == window){
|
||||
return;
|
||||
}
|
||||
$(window).on("message", function (e){
|
||||
var origin = e.originalEvent.origin;
|
||||
var message = e.originalEvent.data;
|
||||
try{
|
||||
message = $.parseJSON(message);
|
||||
}catch(ex){
|
||||
return; //our messages are always JSON
|
||||
}
|
||||
if(message && message.mktoRequest && message.mktoRequest.ajaxParams){
|
||||
var params = message.mktoRequest.ajaxParams;
|
||||
params.success = function (data){
|
||||
window.parent.postMessage(JSON.stringify({
|
||||
mktoResponse:{
|
||||
"for":message.mktoRequest.id,
|
||||
error:false,
|
||||
data:data
|
||||
}
|
||||
}), origin);
|
||||
}
|
||||
params.error = function (error, code, errMessage){
|
||||
window.parent.postMessage(JSON.stringify({
|
||||
mktoResponse:{
|
||||
"for":message.mktoRequest.id,
|
||||
error:true,
|
||||
data:errMessage
|
||||
}
|
||||
}), origin)
|
||||
}
|
||||
$.ajax(params);
|
||||
}
|
||||
});
|
||||
window.parent.postMessage(JSON.stringify({mktoReady:true}), "*");
|
||||
})()
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>This page is used by Marketo Forms 2 to proxy cross domain AJAX requests.</h2>
|
||||
|
||||
</body></html>
|
109
js/alljs.js
109
js/alljs.js
File diff suppressed because one or more lines are too long
717
js/app.js
717
js/app.js
|
@ -1,717 +0,0 @@
|
|||
jQuery(document).foundation({
|
||||
equalizer : {
|
||||
equalize_on_stack: true
|
||||
}
|
||||
});
|
||||
wow = new WOW(
|
||||
{
|
||||
boxClass: 'wow', // default
|
||||
animateClass: 'animated', // default
|
||||
offset: 200, // default
|
||||
mobile: false, // default
|
||||
live: true // default
|
||||
}
|
||||
)
|
||||
$(document).ready(loadRetina);
|
||||
$(window).resize(loadRetina);
|
||||
function loadRetina() {
|
||||
if(window.devicePixelRatio > 1) {
|
||||
$('html,body').addClass('retina-display');
|
||||
} else {
|
||||
$('html,body').removeClass('retina-display');
|
||||
}
|
||||
}
|
||||
function isRetina(){
|
||||
return ((window.matchMedia && (window.matchMedia('only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx), only screen and (min-resolution: 75.6dpcm)').matches || window.matchMedia('only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)').matches)) || (window.devicePixelRatio && window.devicePixelRatio >= 2)) && /(iPad|iPhone|iPod)/g.test(navigator.userAgent);
|
||||
}
|
||||
if(isRetina()){
|
||||
$('html').addClass('is_retina');
|
||||
}
|
||||
else {
|
||||
$('html').addClass('is_not_retina');
|
||||
}
|
||||
|
||||
wow.init();
|
||||
$('section.section h2').each(function() {
|
||||
if ($(this).siblings('p').size() > 0){ } else { $(this).addClass('marginBottom40'); }
|
||||
});
|
||||
$("div.dockercon16").children().last().append("<i class='footer_mobypadding'> </i>");
|
||||
if (!$('.dockercon16 section').hasClass('title_section')){
|
||||
$('.main-header').addClass('backgroundimage');
|
||||
}
|
||||
if ($('.heronav_section').length > 0) {
|
||||
$('.heronav_section').affix({
|
||||
offset: {
|
||||
top:$(".heronav_section").offset().top,
|
||||
bottom: $('footer').outerHeight(true)
|
||||
}
|
||||
});
|
||||
}
|
||||
if ($('.sidebarnav_section').length > 0) {
|
||||
$('.sidebarnav_section').affix({
|
||||
offset: {
|
||||
top:$(".sidebarnav_section").offset().top -25,
|
||||
bottom: $('footer').outerHeight(true) + $('.sidebarnav_section').outerHeight(true)
|
||||
}
|
||||
});
|
||||
}
|
||||
jQuery.each( jQuery.browser, function( i, val ) {
|
||||
$('html').addClass(i, val);
|
||||
});
|
||||
$('#job-content a.apply_button').on('click', function() {
|
||||
$.smoothScroll({scrollTarget: '#application'});
|
||||
});
|
||||
$(document).on('click', 'a[href*="#"]:not(.noanchor , .find_a_partner_section .cbp-caption-defaultWrap, .strategic_alliances_tabs li a, .docker_captian_section .cbp-caption-defaultWrap, .government_partners_tabs li a, #job-content a)', function() {
|
||||
if ( this.hash && this.pathname === location.pathname ) {
|
||||
$.bbq.pushState( '#/' + this.hash.slice(1) );
|
||||
return false;
|
||||
}
|
||||
}).ready(function() {
|
||||
$(window).bind('hashchange', function(event) {
|
||||
var tgt = location.hash.replace(/^#\/?/,'');
|
||||
if ( document.getElementById(tgt) ) {
|
||||
if ($('body').hasClass('node-type-products') || $('body').hasClass('node-type-product') || $('body').hasClass('node-type-use-cases') || $('body').hasClass('node-type-use-case') || $('body').hasClass('node-type-enterprise') || $('body').hasClass('node-type-government') || $('body').hasClass('node-type-partners') || $('body').hasClass('node-type-partner-programs') || $('body').hasClass('node-type-support-services') || $('body').hasClass('node-type-careers') || $('body').hasClass('node-type-careers-department') || $('body').hasClass('node-type-what-is-docker') || $('body').hasClass('node-type-product-editions') || $('body').hasClass('node-type-projects')) {
|
||||
if ($(window).width() > 991 ) {
|
||||
$('html,body').animate({ scrollTop: $('#' + tgt).offset().top - 51}, 'slow');
|
||||
} else if($(window).width() > 768 && $(window).width() < 991 ) {
|
||||
$('html,body').animate({ scrollTop: $('#' + tgt).offset().top - 51}, 'slow');
|
||||
} else {
|
||||
$('html,body').animate({ scrollTop: $('#' + tgt).offset().top - 51}, 'slow');
|
||||
}
|
||||
} else {
|
||||
$.smoothScroll({scrollTarget: '#' + tgt});
|
||||
}
|
||||
}
|
||||
});
|
||||
$(window).trigger('hashchange');
|
||||
});
|
||||
(function($) {
|
||||
$('.bsr-item-detail').hide();
|
||||
$('.bsr-item').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
// find the target of the clicked anchor tag
|
||||
var targetBSR = $(this).find('a')[0].hash;
|
||||
var parentBSR = $(this);
|
||||
// hide detail containers, not the current target
|
||||
$('.bsr-item-detail').not(targetBSR).hide();
|
||||
// toggle current target detail container
|
||||
$(targetBSR).slideToggle();
|
||||
|
||||
// toggle parent active class
|
||||
if (parentBSR.hasClass('is-active')) {
|
||||
parentBSR.removeClass('is-active');
|
||||
}
|
||||
else {
|
||||
// wipe out all other active classes
|
||||
$('.bsr-item').each(function() {
|
||||
$(this).removeClass('is-active');
|
||||
});
|
||||
// add active class to the current parent
|
||||
parentBSR.addClass('is-active');
|
||||
}
|
||||
});
|
||||
$('.quotes_slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: false
|
||||
});
|
||||
$('.CTA_section').each(function() {
|
||||
$(this).children('.mheight').matchHeight();
|
||||
});
|
||||
$('.CTA_section .row').each(function() {
|
||||
$(this).children('.CTA_item').matchHeight();
|
||||
});
|
||||
$('.resources_items.row').each(function() {
|
||||
$(this).children('.resources_link').matchHeight();
|
||||
});
|
||||
$('.mhp').each(function() {
|
||||
$(this).children('.mhc').matchHeight();
|
||||
});
|
||||
$('a[target="_video"]').magnificPopup({
|
||||
midClick: true,
|
||||
type: 'iframe',
|
||||
mainClass: 'mfp-fade',
|
||||
removalDelay: 160,
|
||||
preloader: false,
|
||||
disableOn: 280,
|
||||
fixedContentPos: false
|
||||
});
|
||||
$('a[rel="video"]').magnificPopup({
|
||||
midClick: true,
|
||||
type: 'iframe',
|
||||
mainClass: 'mfp-fade',
|
||||
removalDelay: 160,
|
||||
preloader: false,
|
||||
disableOn: 280,
|
||||
fixedContentPos: false
|
||||
});
|
||||
$(window).load(function() {
|
||||
$(window).trigger("resize");
|
||||
});
|
||||
$(window).resize(function() {
|
||||
$('body>.off-canvas-wrap').css('min-height', $(window).height() - ($('.main-footer').outerHeight(true) + $('section.title_section').outerHeight(true) + 200));
|
||||
var maxHeight_title = -1;
|
||||
maxHeight_title = maxHeight_title > $(".ibm_solutions .title").height() ? maxHeight_title : $(".ibm_solutions .title").height();
|
||||
$(".ibm_solutions .title").height(maxHeight_title);
|
||||
var maxHeight_body = -1;
|
||||
|
||||
maxHeight_body = maxHeight_body > $(".ibm_solutions .body").height() ? maxHeight_body : $(".ibm_solutions .body").height();
|
||||
$(".ibm_solutions .body").height(maxHeight_body);
|
||||
|
||||
var maxHeight_productbox = -1;
|
||||
$('.docker_solutions_section .media').each(function() {
|
||||
maxHeight_productbox = maxHeight_productbox > $(this).height() ? maxHeight_productbox : $(this).height();
|
||||
});
|
||||
$('.docker_solutions_section .media').each(function() {
|
||||
$(this).height(maxHeight_productbox);
|
||||
});
|
||||
|
||||
var maxHeight_productboxul = -1;
|
||||
$('.docker_solutions_section .body_box ul').each(function() {
|
||||
maxHeight_productboxul = maxHeight_productboxul > $(this).height() ? maxHeight_productboxul : $(this).height();
|
||||
});
|
||||
$('.docker_solutions_section .body_box ul').each(function() {
|
||||
$(this).height(maxHeight_productboxul);
|
||||
});
|
||||
|
||||
var maxHeight_productpricing = -1;
|
||||
$('section.pricing_product_section .plan_box .header').each(function() {
|
||||
maxHeight_productpricing = maxHeight_productpricing > $(this).height() ? maxHeight_productpricing : $(this).height();
|
||||
});
|
||||
$('section.pricing_product_section .plan_box .header').each(function() {
|
||||
$(this).height(maxHeight_productpricing);
|
||||
});
|
||||
|
||||
var maxHeight_productdemo = -1;
|
||||
$('section.demo_product_section .items li .mheight').each(function() {
|
||||
maxHeight_productdemo = maxHeight_productdemo > $(this).height() ? maxHeight_productdemo : $(this).height();
|
||||
});
|
||||
$('section.demo_product_section .items li .mheight').each(function() {
|
||||
$(this).height(maxHeight_productdemo);
|
||||
});
|
||||
|
||||
var maxHeight_productuse = -1;
|
||||
$('section.use_product_section .items li .mheight').each(function() {
|
||||
maxHeight_productuse = maxHeight_productuse > $(this).height() ? maxHeight_productuse : $(this).height();
|
||||
});
|
||||
$('section.use_product_section .items li .mheight').each(function() {
|
||||
$(this).height(maxHeight_productuse);
|
||||
});
|
||||
}).trigger("resize");
|
||||
|
||||
$(window).load(function() {
|
||||
var maxHeight_use_cases_overview_h3 = -1;
|
||||
$('section.use_cases_section .items li .item-link').each(function() {
|
||||
maxHeight_use_cases_overview_h3 = maxHeight_use_cases_overview_h3 > $(this).height() ? maxHeight_use_cases_overview_h3 : $(this).height();
|
||||
});
|
||||
$('section.use_cases_section .items li .item-link').each(function() {
|
||||
$(this).height(maxHeight_use_cases_overview_h3 + 15);
|
||||
});
|
||||
|
||||
var maxHeight_use_cases_overview_p = -1;
|
||||
$('section.use_cases_section .items li p').each(function() {
|
||||
maxHeight_use_cases_overview_p = maxHeight_use_cases_overview_p > $(this).height() ? maxHeight_use_cases_overview_p : $(this).height();
|
||||
});
|
||||
$('section.use_cases_section .items li p').each(function() {
|
||||
$(this).height(maxHeight_use_cases_overview_p);
|
||||
});
|
||||
});
|
||||
$(".plans_tabs ul a").click(function(event) {
|
||||
event.preventDefault();
|
||||
var tab = $(this).attr("href");
|
||||
$(this).parent().addClass("current").siblings().removeClass("current");
|
||||
$(tab).addClass("current").fadeIn().siblings('.plans').removeClass("current").hide();
|
||||
});
|
||||
$('.faq-body').each(function() {
|
||||
$(this).parent('.faq').addClass('collapsible');
|
||||
});
|
||||
$(".faqs-group").on( "click", ".faq-title", function(e) {
|
||||
e.preventDefault();
|
||||
var $FAQ = $(this).parent(".faq"), $FAQz = $(".faq").not($FAQ);
|
||||
$FAQ.toggleClass("active");
|
||||
$(".faq-body",$FAQ).slideToggle(300)
|
||||
$FAQz.removeClass("active");
|
||||
$(".faq-body",$FAQz).slideUp(300);
|
||||
});
|
||||
if ($(window).width() > 1199) {
|
||||
$(".faqs_section .faqs-group").height($(".faqs-group .col-xs-12").outerHeight(true) + 120);
|
||||
} else if ($(window).width() < 1200 && $(window).width() > 991) {
|
||||
$(".faqs_section .faqs-group").height($(".faqs-group .col-xs-12").outerHeight(true) + 180);
|
||||
} else if ($(window).width() < 992 && $(window).width() > 767) {
|
||||
$(".faqs_section .faqs-group").height($(".faqs-group .col-xs-12").outerHeight(true) + 190);
|
||||
} else {
|
||||
$(".faqs_section .faqs-group").height($(".faqs-group .col-xs-12").outerHeight(true) + $(".faqs-group .col-xs-12").outerHeight(true) + 70);
|
||||
}
|
||||
|
||||
|
||||
var sliderRepoMap = [1, 5, 10, 20, 50, 100, 250]
|
||||
, RepoSlider = $( "#RepoSlider" )
|
||||
, CmSupport = $("#RepoCommercialSupport")
|
||||
, CrSupport = $("#RepoCriticalSupport")
|
||||
, BuyButtontxt
|
||||
, BuyButtonURL
|
||||
, Repos
|
||||
, RepoPrice
|
||||
, RepoPricing
|
||||
, PricingInfo
|
||||
, RepoSliderVal;
|
||||
|
||||
RepoSlider.slider({
|
||||
value: 3,
|
||||
min: 0,
|
||||
max: sliderRepoMap.length-1,
|
||||
slide: function( event, ui ) {
|
||||
RepoPlans(ui.value)
|
||||
CmSupport.prop('checked', false).prop('disabled', false);
|
||||
CrSupport.prop('checked', false);
|
||||
$.bbq.pushState( '#/repo-' + sliderRepoMap[ui.value] );
|
||||
},
|
||||
change :function( event, ui ) {
|
||||
RepoPlans(RepoSlider.slider('value'))
|
||||
$.bbq.pushState( '#/repo-' + sliderRepoMap[RepoSlider.slider('value')] );
|
||||
}
|
||||
}).slider("pips", {
|
||||
rest: "label",
|
||||
labels: sliderRepoMap
|
||||
});
|
||||
$("#RepoSlider.ui-slider-pips .ui-slider-label").on( "click", function(e) {
|
||||
CmSupport.prop('checked', false).prop('disabled', false);
|
||||
CrSupport.prop('checked', false);
|
||||
});
|
||||
/* SVEN SAYS NO
|
||||
$(window).on('load', RepoPlans(RepoSlider.slider('value')));
|
||||
function RepoPlans(RepoSliderValue) {
|
||||
RepoSliderVal = RepoSliderValue;
|
||||
if(RepoSliderVal == 0){
|
||||
RepoPrice = 0;
|
||||
RepoPricing = RepoPricing_free;
|
||||
BuyButtontxt = buybuttontxt_signup;
|
||||
} else if(RepoSliderVal < 4) {
|
||||
RepoPrice = parseFloat(sliderRepoMap[RepoSliderVal]) + 2;
|
||||
RepoPricing = '<span class="">$</span> <span>' + RepoPrice + '</span> / month';
|
||||
BuyButtontxt = BuyButtontxt_buy;
|
||||
} else {
|
||||
RepoPrice = parseFloat(sliderRepoMap[RepoSliderVal]);
|
||||
RepoPricing = '<span class="">$</span> <span>' + RepoPrice + '</span> / month';
|
||||
BuyButtontxt = BuyButtontxt_buy;
|
||||
}
|
||||
if(RepoSliderVal == 0) {
|
||||
BuyButtonURL = BuyButtonURL_0;
|
||||
} else if(RepoSliderVal == 1) {
|
||||
BuyButtonURL = BuyButtonURL_1;
|
||||
} else if(RepoSliderVal == 2) {
|
||||
BuyButtonURL = BuyButtonURL_2;
|
||||
} else if(RepoSliderVal == 3) {
|
||||
BuyButtonURL = BuyButtonURL_3;
|
||||
} else if(RepoSliderVal == 4) {
|
||||
BuyButtonURL = BuyButtonURL_4;
|
||||
} else if(RepoSliderVal == 5) {
|
||||
BuyButtonURL = BuyButtonURL_5;
|
||||
} else if(RepoSliderVal == 6) {
|
||||
BuyButtonURL = BuyButtonURL_6;
|
||||
} else {
|
||||
BuyButtonURL = BuyButtonURL_0;
|
||||
}
|
||||
Repos = sliderRepoMap[RepoSliderVal];
|
||||
if(RepoSliderVal == 0) {
|
||||
PricingInfo = '<li>'+Repos+PricingInfo_freeText+'</li>';
|
||||
} else {
|
||||
PricingInfo = '<li>'+Repos+PricingInfo_Text+'</li>';
|
||||
}
|
||||
$('#PricingInfo').html(PricingInfo);
|
||||
$('#RepoBuyButton').text(BuyButtontxt);
|
||||
$('#RepoBuyButton').attr('href', BuyButtonURL);
|
||||
$('#RepoPricing').html(RepoPricing);
|
||||
}
|
||||
|
||||
$(CmSupport).on('change', RepoCommercialSupport);
|
||||
function RepoCommercialSupport() {
|
||||
RepoSliderVal = RepoSlider.slider('value');
|
||||
RepoSlider.slider('value', 3);
|
||||
if((CmSupport).is(':checked')) {
|
||||
Repos = sliderRepoMap[RepoSliderVal];
|
||||
RepoPrice = 150;
|
||||
RepoPricing = '<span class="">$</span> <span>' + RepoPrice + '</span> / month';
|
||||
BuyButtontxt = BuyButtontxt_buy;
|
||||
BuyButtonURL = BuyButtonURL_cloud_starter;
|
||||
PricingInfo = '<li>'+Repos+PricingInfo_CommercialSupportText+'</li>';
|
||||
$('#PricingInfo').html(PricingInfo);
|
||||
$('#RepoBuyButton').text(BuyButtontxt);
|
||||
$('#RepoBuyButton').attr('href', BuyButtonURL);
|
||||
$('#RepoPricing').html(RepoPricing);
|
||||
$.bbq.pushState( '#/repo-commercial-support' );
|
||||
} else {
|
||||
RepoPlans(RepoSlider.slider('value'));
|
||||
RepoSlider.slider('enable');
|
||||
$.bbq.pushState( '#/repo-' + sliderRepoMap[RepoSlider.slider('value')] );
|
||||
}
|
||||
}
|
||||
|
||||
$(CrSupport).on('change', RepoCriticalSupport);
|
||||
function RepoCriticalSupport() {
|
||||
RepoSliderVal = RepoSlider.slider('value');
|
||||
RepoSlider.slider('value', 3);
|
||||
if((CrSupport).is(':checked')) {
|
||||
CmSupport.prop('checked', true).prop('disabled', true);
|
||||
Repos = sliderRepoMap[RepoSliderVal];
|
||||
RepoPricing = RepoPricing_CriticalSupport;
|
||||
BuyButtontxt = buybuttontxt_quote;
|
||||
BuyButtonURL = BuyButtonURL_inquiry;
|
||||
PricingInfo = '<li>'+Repos+PricingInfo_CriticalSupportText+'</li>';
|
||||
$('#PricingInfo').html(PricingInfo);
|
||||
$('#RepoBuyButton').text(BuyButtontxt);
|
||||
$('#RepoBuyButton').attr('href', BuyButtonURL);
|
||||
$('#RepoPricing').html(RepoPricing);
|
||||
$.bbq.pushState( '#/repo-critical-support' );
|
||||
} else {
|
||||
CmSupport.prop('disabled', false);
|
||||
RepoCommercialSupport();
|
||||
}
|
||||
}
|
||||
if(window.location.hash.match('repo-') != null) {
|
||||
var repopkg = location.hash.replace(/^#\/repo-?/,'');
|
||||
// alert(repopkg);
|
||||
if(repopkg == 'commercial-support') {
|
||||
$('a[href*="#tab-cloud"]').parent().addClass("current").siblings().removeClass("current");
|
||||
$('#tab-cloud').addClass("current").fadeIn().siblings('.plans').removeClass("current").hide();
|
||||
CmSupport.prop('checked', true);
|
||||
RepoCommercialSupport();
|
||||
} else if (repopkg == 'critical-support') {
|
||||
$('a[href*="#tab-cloud"]').parent().addClass("current").siblings().removeClass("current");
|
||||
$('#tab-cloud').addClass("current").fadeIn().siblings('.plans').removeClass("current").hide();
|
||||
CrSupport.prop('checked', true);
|
||||
RepoCriticalSupport();
|
||||
} else {
|
||||
repopkg = jQuery.inArray( parseFloat(repopkg), sliderRepoMap );
|
||||
$('a[href*="#tab-cloud"]').parent().addClass("current").siblings().removeClass("current");
|
||||
$('#tab-cloud').addClass("current").fadeIn().siblings('.plans').removeClass("current").hide();
|
||||
RepoSlider.slider('value', repopkg);
|
||||
}
|
||||
}
|
||||
|
||||
if(window.location.hash === "#/forcloud" || window.location.hash === "#forcloud" || window.location.hash === "#/forserver" || window.location.hash === "#forserver") {
|
||||
var tab = location.hash.replace(/^#\/for?/,'#tab-');
|
||||
$('a[href*="'+tab+'"]').parent().addClass("current").siblings().removeClass("current");
|
||||
$(tab).addClass("current").fadeIn().siblings('.plans').removeClass("current").hide();
|
||||
}
|
||||
|
||||
$('.products-items').each(function() {
|
||||
$(this).children('li').matchHeight();
|
||||
});
|
||||
$(".nolinkhere").on('click', function(e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
$('.ibm_solutions').each(function() {
|
||||
$(this).children('.ibm_solution').matchHeight();
|
||||
});
|
||||
|
||||
$(window).load(function() {
|
||||
var isoOptions = {
|
||||
itemSelector : '.events_region',
|
||||
masonry: {
|
||||
columnWidth: '.col-md-6'
|
||||
}
|
||||
};
|
||||
var $grid = $('.events_section .events_regions').isotope( isoOptions );
|
||||
$('.event-search input.ng-valid').on('keyup', function() {
|
||||
if ($(".events_regions .events_region").siblings().size() > 1) {
|
||||
$('.events_regions .events_region').removeClass('row');
|
||||
$('.events_regions .events_region').addClass('col-xs-12 col-sm-6 col-md-6');
|
||||
$('.events_regions .events_region .media.events_item').removeClass('col-xs-12 col-sm-6 col-md-6');
|
||||
$('.events_regions .events_region .events_region_name').removeClass('col-xs-12 col-md-12');
|
||||
$('.events_regions').removeClass('margintop55');
|
||||
$grid.isotope('destroy');
|
||||
// $grid.isotope('reloadItems')
|
||||
$grid.isotope({
|
||||
itemSelector : '.events_region',
|
||||
masonry: {
|
||||
columnWidth: '.col-md-6'
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$('.events_regions .events_region').addClass('row');
|
||||
$('.events_regions .events_region').removeClass('col-xs-12 col-sm-6 col-md-6');
|
||||
$('.events_regions .events_region .media.events_item').addClass('col-xs-12 col-sm-6 col-md-6');
|
||||
$('.events_regions .events_region .events_region_name').addClass('col-xs-12 col-md-12');
|
||||
$('.events_regions').addClass('margintop55');
|
||||
$grid.isotope('destroy');
|
||||
$grid.isotope({
|
||||
itemSelector : '.events_region .events_item',
|
||||
masonry: {
|
||||
columnWidth: '.col-md-6'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
setTimeout(function(){ $grid.isotope('layout'); }, 2000);
|
||||
});
|
||||
$('.event-search select.ng-valid').on('change', function() {
|
||||
if ($(".events_regions .events_region").siblings().size() > 1) {
|
||||
$('.events_regions .events_region').removeClass('row');
|
||||
$('.events_regions .events_region').addClass('col-xs-12 col-sm-6 col-md-6');
|
||||
$('.events_regions .events_region .media.events_item').removeClass('col-xs-12 col-sm-6 col-md-6');
|
||||
$('.events_regions .events_region .events_region_name').removeClass('col-xs-12 col-md-12');
|
||||
$('.events_regions').removeClass('margintop55');
|
||||
$grid.isotope('destroy');
|
||||
$grid.isotope({
|
||||
itemSelector : '.events_region',
|
||||
masonry: {
|
||||
columnWidth: '.col-md-6'
|
||||
}
|
||||
});
|
||||
|
||||
} else {
|
||||
$('.events_regions .events_region').addClass('row');
|
||||
$('.events_regions .events_region').removeClass('col-xs-12 col-sm-6 col-md-6');
|
||||
$('.events_regions .events_region .media.events_item').addClass('col-xs-12 col-sm-6 col-md-6');
|
||||
$('.events_regions .events_region .events_region_name').addClass('col-xs-12 col-md-12');
|
||||
$('.events_regions').addClass('margintop55');
|
||||
$grid.isotope('destroy');
|
||||
$grid.isotope({
|
||||
itemSelector : '.events_region .events_item',
|
||||
masonry: {
|
||||
columnWidth: '.col-md-6'
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
setTimeout(function(){ $grid.isotope('layout'); }, 2000);
|
||||
});
|
||||
});
|
||||
$('a[href="#toptop"]').click(function () {
|
||||
$('body,html').animate({
|
||||
scrollTop: 0
|
||||
}, 800);
|
||||
return false;
|
||||
});
|
||||
|
||||
$(window).load(function() {
|
||||
$('.resources_video_slider , .demo_product_section, .rest_apis_product_section, .customer_spotlight_section ').flexslider({
|
||||
selector: ".slides > .slide",
|
||||
animation: "fade",
|
||||
controlNav: true,
|
||||
directionNav: false
|
||||
});
|
||||
$('.technology_partners_section, .program_benefits_section').each(function() {
|
||||
$(this).children('li').matchHeight();
|
||||
});
|
||||
});
|
||||
$('.products_items').each(function() {
|
||||
$(this).children('li').matchHeight();
|
||||
});
|
||||
$('.product_features_product_section ul.items ').each(function() {
|
||||
$(this).children('li').matchHeight();
|
||||
});
|
||||
$('.pricing_product_section .plan_boxes').each(function() {
|
||||
$(this).children('.plan_box').matchHeight();
|
||||
});
|
||||
$('.GenericDev .items').each(function() {
|
||||
$(this).children('li').matchHeight();
|
||||
});
|
||||
$('.quotes_use_cases_slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: false
|
||||
});
|
||||
$('.quotes_2_slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: false
|
||||
});
|
||||
$('.off-canvas-list li.has-submenu').prepend('<span class="asd"></span>');
|
||||
|
||||
$(".strategic_alliances_tabs ul a").click(function(event) {
|
||||
event.preventDefault();
|
||||
var tab = $(this).attr("href");
|
||||
$(this).parent().addClass("current").siblings().removeClass("current");
|
||||
$(tab).addClass("current").fadeIn().siblings('.strategic_alliances').removeClass("current").hide();
|
||||
});
|
||||
$(".government_partners_tabs ul a").click(function(event) {
|
||||
event.preventDefault();
|
||||
var tab = $(this).attr("href");
|
||||
$(this).parent().addClass("current").siblings().removeClass("current");
|
||||
$(tab).addClass("current").fadeIn().siblings('.government_partners').removeClass("current").hide();
|
||||
});
|
||||
*/
|
||||
/* ===================== 1 Mar =====================*/
|
||||
$(".find_a_partner_section ul.partners_list li.no_info a.cbp-singlePageInline.cbp-nocontent").click(function() {
|
||||
var asdasd= $(this);
|
||||
$(asdasd).parents('#grid-container').addClass('nomore').removeClass('nomore2');
|
||||
});
|
||||
$(".find_a_partner_section ul.partners_list li a.cbp-singlePageInline.cbp-hascontent").click(function() {
|
||||
var qweqwe= $(this);
|
||||
$(qweqwe).parents('#grid-container').addClass('nomore2').removeClass('nomore');
|
||||
});
|
||||
|
||||
$(window).load(function() {
|
||||
|
||||
$('.scoopit-fulltheme-col1').masonry({
|
||||
columnWidth: '.scoopit-fulltheme-scoop-wrapper',
|
||||
itemSelector: '.scoopit-fulltheme-scoop-wrapper'
|
||||
});
|
||||
|
||||
});
|
||||
function getUrlVars()
|
||||
{
|
||||
var vars = [], hash;
|
||||
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
|
||||
for(var i = 0; i < hashes.length; i++)
|
||||
{
|
||||
hash = hashes[i].split('=');
|
||||
vars.push(hash[0]);
|
||||
vars[hash[0]] = hash[1];
|
||||
}
|
||||
return vars;
|
||||
}
|
||||
var captains_page = getUrlVars()["page"];
|
||||
var captains_id = getUrlVars()["id"];
|
||||
if(captains_id){
|
||||
var captains_item = captains_id.replace("info", "item");
|
||||
}
|
||||
$(window).load(function() {
|
||||
if (captains_page == 'captains'){
|
||||
$('#' + captains_id).click();
|
||||
$('html,body').animate({ scrollTop: $('#' + captains_item).offset().top - 20}, 'slow');
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
(function ($, window, document, undefined) {
|
||||
|
||||
var gridContainer = $('#grid-container,#grid-container2');
|
||||
var captiansContainer = $('#captians-container');
|
||||
|
||||
// init cubeportfolio
|
||||
gridContainer.cubeportfolio({
|
||||
|
||||
animationType: 'rotateSides',
|
||||
|
||||
gapHorizontal: 30,
|
||||
|
||||
gapVertical: 30,
|
||||
|
||||
gridAdjustment: 'responsive',
|
||||
|
||||
caption: '',
|
||||
|
||||
displayType: 'sequentially',
|
||||
|
||||
displayTypeSpeed: 100,
|
||||
|
||||
// lightbox
|
||||
lightboxDelegate: '.cbp-lightbox',
|
||||
lightboxGallery: true,
|
||||
lightboxTitleSrc: 'data-title',
|
||||
lightboxShowCounter: true,
|
||||
|
||||
// singlePage popup
|
||||
singlePageDelegate: '.cbp-singlePage',
|
||||
singlePageDeeplinking: true,
|
||||
singlePageStickyNavigation: true,
|
||||
singlePageShowCounter: true,
|
||||
singlePageCallback: function (url, element) {
|
||||
// to update singlePage content use the following method: this.updateSinglePage(yourContent)
|
||||
},
|
||||
|
||||
// singlePageInline
|
||||
singlePageInlineDelegate: '.cbp-singlePageInline',
|
||||
singlePageInlinePosition: 'below',
|
||||
singlePageInlineShowCounter: true,
|
||||
singlePageInlineCallback: function(url, element) {
|
||||
|
||||
// to update singlePageInline content use the following method: this.updateSinglePageInline(yourContent)
|
||||
var t = this;
|
||||
if($(url).length == 0) {
|
||||
return false;
|
||||
} else {
|
||||
var cont = $(url).html();
|
||||
t.updateSinglePageInline(cont);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
captiansContainer.cubeportfolio({
|
||||
|
||||
animationType: 'rotateSides',
|
||||
|
||||
gapHorizontal: 30,
|
||||
|
||||
gapVertical: 12,
|
||||
|
||||
gridAdjustment: 'responsive',
|
||||
|
||||
caption: '',
|
||||
|
||||
displayType: 'sequentially',
|
||||
|
||||
displayTypeSpeed: 100,
|
||||
|
||||
// lightbox
|
||||
lightboxDelegate: '.cbp-lightbox',
|
||||
lightboxGallery: true,
|
||||
lightboxTitleSrc: 'data-title',
|
||||
lightboxShowCounter: true,
|
||||
|
||||
// singlePage popup
|
||||
singlePageDelegate: '.cbp-singlePage',
|
||||
singlePageDeeplinking: true,
|
||||
singlePageStickyNavigation: true,
|
||||
singlePageShowCounter: true,
|
||||
singlePageCallback: function (url, element) {
|
||||
// to update singlePage content use the following method: this.updateSinglePage(yourContent)
|
||||
},
|
||||
|
||||
// singlePageInline
|
||||
singlePageInlineDelegate: '.cbp-singlePageInline',
|
||||
singlePageInlinePosition: 'below',
|
||||
singlePageInlineShowCounter: true,
|
||||
singlePageInlineCallback: function(url, element) {
|
||||
|
||||
// to update singlePageInline content use the following method: this.updateSinglePageInline(yourContent)
|
||||
var t = this;
|
||||
if($(url).length == 0) {
|
||||
return false;
|
||||
} else {
|
||||
var cont = $(url).html();
|
||||
t.updateSinglePageInline(cont);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('#media_viewmore').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
var offset = $('#data_offset').text()
|
||||
, list_length = $('#data_list_length').text()
|
||||
, nxtoffset = parseFloat(offset) + 10
|
||||
, url = '/api/docker_captains/'+offset;
|
||||
$.get(url).done(function( result ) {
|
||||
var items, itemsNext;
|
||||
// find current container
|
||||
items = $(result).filter( function () {
|
||||
return $(this).is('ul.cbp-loadMore-loop');
|
||||
});
|
||||
bios = $(result).filter( function () {
|
||||
return $(this).is('div.cbp-loadMore-bio');
|
||||
});
|
||||
captiansContainer.cubeportfolio('appendItems', items.html(),
|
||||
function () {
|
||||
// check if we have more works
|
||||
/*
|
||||
itemsNext = $(result).filter( function () {
|
||||
return $(this).is('ul' + '.cbp-loadMore');
|
||||
});
|
||||
*/
|
||||
});
|
||||
$('#cbp-loadMore-bio').append(bios.html());
|
||||
// $('#media-library-loop').append(result);
|
||||
$('#data_offset').text(nxtoffset);
|
||||
if(nxtoffset >= list_length) {
|
||||
$('#media_viewmore').hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
})(jQuery, window, document);
|
|
@ -1 +0,0 @@
|
|||
!function(t){function r(o){if(c[o])return c[o].exports;var e=c[o]={exports:{},id:o,loaded:!1};return t[o].call(e.exports,e,e.exports,r),e.loaded=!0,e.exports}var c={};return r.m=t,r.c=c,r.p="https://js.intercomcdn.com/",r(0)}([function(t,r){"use strict";function c(t){o&&o[t]&&o[t]()}var o=window.parent;try{c("intercomEchoSuccess")}catch(e){c("intercomEchoFailure")}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
598
js/hopscotch.js
598
js/hopscotch.js
|
@ -1,598 +0,0 @@
|
|||
/**! hopscotch - v0.2.6
|
||||
*
|
||||
* Copyright 2016 LinkedIn Corp. All rights reserved.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
! function(a, b) {
|
||||
"use strict";
|
||||
if ("function" == typeof define && define.amd) define([], b);
|
||||
else if ("object" == typeof exports) module.exports = b();
|
||||
else {
|
||||
var c = "hopscotch";
|
||||
if (a[c]) return;
|
||||
a[c] = b()
|
||||
}
|
||||
}(this, function() {
|
||||
var Hopscotch, HopscotchBubble, HopscotchCalloutManager, HopscotchI18N, customI18N, customRenderer, customEscape, utils, callbacks, helpers, winLoadHandler, defaultOpts, winHopscotch, templateToUse = "bubble_default",
|
||||
Sizzle = window.Sizzle || null,
|
||||
undefinedStr = "undefined",
|
||||
waitingToStart = !1,
|
||||
hasJquery = typeof jQuery !== undefinedStr,
|
||||
hasSessionStorage = !1,
|
||||
isStorageWritable = !1,
|
||||
document = window.document,
|
||||
validIdRegEx = /^[a-zA-Z]+[a-zA-Z0-9_-]*$/,
|
||||
rtlMatches = {
|
||||
left: "right",
|
||||
right: "left"
|
||||
};
|
||||
try {
|
||||
typeof window.sessionStorage !== undefinedStr && (hasSessionStorage = !0, sessionStorage.setItem("hopscotch.test.storage", "ok"), sessionStorage.removeItem("hopscotch.test.storage"), isStorageWritable = !0)
|
||||
} catch (err) {}
|
||||
return defaultOpts = {
|
||||
smoothScroll: !0,
|
||||
scrollDuration: 1e3,
|
||||
scrollTopMargin: 200,
|
||||
showCloseButton: !0,
|
||||
showPrevButton: !1,
|
||||
showNextButton: !0,
|
||||
bubbleWidth: 280,
|
||||
bubblePadding: 15,
|
||||
arrowWidth: 20,
|
||||
skipIfNoElement: !0,
|
||||
isRtl: !1,
|
||||
cookieName: "hopscotch.tour.state"
|
||||
}, Array.isArray || (Array.isArray = function(a) {
|
||||
return "[object Array]" === Object.prototype.toString.call(a)
|
||||
}), winLoadHandler = function() {
|
||||
waitingToStart && winHopscotch.startTour()
|
||||
}, utils = {
|
||||
addClass: function(a, b) {
|
||||
var c, d, e, f;
|
||||
if (a.className) {
|
||||
for (d = b.split(/\s+/), c = " " + a.className + " ", e = 0, f = d.length; f > e; ++e) c.indexOf(" " + d[e] + " ") < 0 && (c += d[e] + " ");
|
||||
a.className = c.replace(/^\s+|\s+$/g, "")
|
||||
} else a.className = b
|
||||
},
|
||||
removeClass: function(a, b) {
|
||||
var c, d, e, f;
|
||||
for (d = b.split(/\s+/), c = " " + a.className + " ", e = 0, f = d.length; f > e; ++e) c = c.replace(" " + d[e] + " ", " ");
|
||||
a.className = c.replace(/^\s+|\s+$/g, "")
|
||||
},
|
||||
hasClass: function(a, b) {
|
||||
var c;
|
||||
return a.className ? (c = " " + a.className + " ", -1 !== c.indexOf(" " + b + " ")) : !1
|
||||
},
|
||||
getPixelValue: function(a) {
|
||||
var b = typeof a;
|
||||
return "number" === b ? a : "string" === b ? parseInt(a, 10) : 0
|
||||
},
|
||||
valOrDefault: function(a, b) {
|
||||
return typeof a !== undefinedStr ? a : b
|
||||
},
|
||||
invokeCallbackArrayHelper: function(a) {
|
||||
var b;
|
||||
return Array.isArray(a) && (b = helpers[a[0]], "function" == typeof b) ? b.apply(this, a.slice(1)) : void 0
|
||||
},
|
||||
invokeCallbackArray: function(a) {
|
||||
var b, c;
|
||||
if (Array.isArray(a)) {
|
||||
if ("string" == typeof a[0]) return utils.invokeCallbackArrayHelper(a);
|
||||
for (b = 0, c = a.length; c > b; ++b) utils.invokeCallback(a[b])
|
||||
}
|
||||
},
|
||||
invokeCallback: function(a) {
|
||||
return "function" == typeof a ? a() : "string" == typeof a && helpers[a] ? helpers[a]() : utils.invokeCallbackArray(a)
|
||||
},
|
||||
invokeEventCallbacks: function(a, b) {
|
||||
var c, d, e = callbacks[a];
|
||||
if (b) return this.invokeCallback(b);
|
||||
for (c = 0, d = e.length; d > c; ++c) this.invokeCallback(e[c].cb)
|
||||
},
|
||||
getScrollTop: function() {
|
||||
var a;
|
||||
return a = typeof window.pageYOffset !== undefinedStr ? window.pageYOffset : document.documentElement.scrollTop
|
||||
},
|
||||
getScrollLeft: function() {
|
||||
var a;
|
||||
return a = typeof window.pageXOffset !== undefinedStr ? window.pageXOffset : document.documentElement.scrollLeft
|
||||
},
|
||||
getWindowHeight: function() {
|
||||
return window.innerHeight || document.documentElement.clientHeight
|
||||
},
|
||||
addEvtListener: function(a, b, c) {
|
||||
return a ? a.addEventListener ? a.addEventListener(b, c, !1) : a.attachEvent("on" + b, c) : void 0
|
||||
},
|
||||
removeEvtListener: function(a, b, c) {
|
||||
return a ? a.removeEventListener ? a.removeEventListener(b, c, !1) : a.detachEvent("on" + b, c) : void 0
|
||||
},
|
||||
documentIsReady: function() {
|
||||
return "complete" === document.readyState
|
||||
},
|
||||
evtPreventDefault: function(a) {
|
||||
a.preventDefault ? a.preventDefault() : event && (event.returnValue = !1)
|
||||
},
|
||||
extend: function(a, b) {
|
||||
var c;
|
||||
for (c in b) b.hasOwnProperty(c) && (a[c] = b[c])
|
||||
},
|
||||
getStepTargetHelper: function(a) {
|
||||
var b = document.getElementById(a);
|
||||
if (b) return b;
|
||||
if (hasJquery) return b = jQuery(a), b.length ? b[0] : null;
|
||||
if (Sizzle) return b = new Sizzle(a), b.length ? b[0] : null;
|
||||
if (document.querySelector) try {
|
||||
return document.querySelector(a)
|
||||
} catch (c) {}
|
||||
return /^#[a-zA-Z][\w-_:.]*$/.test(a) ? document.getElementById(a.substring(1)) : null
|
||||
},
|
||||
getStepTarget: function(a) {
|
||||
var b;
|
||||
if (!a || !a.target) return null;
|
||||
if ("string" == typeof a.target) return utils.getStepTargetHelper(a.target);
|
||||
if (Array.isArray(a.target)) {
|
||||
var c, d;
|
||||
for (c = 0, d = a.target.length; d > c; c++)
|
||||
if ("string" == typeof a.target[c] && (b = utils.getStepTargetHelper(a.target[c]))) return b;
|
||||
return null
|
||||
}
|
||||
return a.target
|
||||
},
|
||||
getI18NString: function(a) {
|
||||
return customI18N[a] || HopscotchI18N[a]
|
||||
},
|
||||
setState: function(a, b, c) {
|
||||
var d, e = "";
|
||||
if (hasSessionStorage && isStorageWritable) try {
|
||||
sessionStorage.setItem(a, b)
|
||||
} catch (f) {
|
||||
isStorageWritable = !1, this.setState(a, b, c)
|
||||
} else hasSessionStorage && sessionStorage.removeItem(a), c && (d = new Date, d.setTime(d.getTime() + 24 * c * 60 * 60 * 1e3), e = "; expires=" + d.toGMTString()), document.cookie = a + "=" + b + e + "; path=/"
|
||||
},
|
||||
getState: function(a) {
|
||||
var b, c, d, e = a + "=",
|
||||
f = document.cookie.split(";");
|
||||
if (hasSessionStorage && (d = sessionStorage.getItem(a))) return d;
|
||||
for (b = 0; b < f.length; b++) {
|
||||
for (c = f[b];
|
||||
" " === c.charAt(0);) c = c.substring(1, c.length);
|
||||
if (0 === c.indexOf(e)) {
|
||||
d = c.substring(e.length, c.length);
|
||||
break
|
||||
}
|
||||
}
|
||||
return d
|
||||
},
|
||||
clearState: function(a) {
|
||||
hasSessionStorage ? sessionStorage.removeItem(a) : this.setState(a, "", -1)
|
||||
},
|
||||
normalizePlacement: function(a) {
|
||||
!a.placement && a.orientation && (a.placement = a.orientation)
|
||||
},
|
||||
flipPlacement: function(a) {
|
||||
if (a.isRtl && !a._isFlipped) {
|
||||
var b, c, d = ["orientation", "placement"];
|
||||
a.xOffset && (a.xOffset = -1 * this.getPixelValue(a.xOffset));
|
||||
for (c in d) b = d[c], a.hasOwnProperty(b) && rtlMatches.hasOwnProperty(a[b]) && (a[b] = rtlMatches[a[b]]);
|
||||
a._isFlipped = !0
|
||||
}
|
||||
}
|
||||
}, utils.addEvtListener(window, "load", winLoadHandler), callbacks = {
|
||||
next: [],
|
||||
prev: [],
|
||||
start: [],
|
||||
end: [],
|
||||
show: [],
|
||||
error: [],
|
||||
close: []
|
||||
}, helpers = {}, HopscotchI18N = {
|
||||
stepNums: null,
|
||||
nextBtn: "Next",
|
||||
prevBtn: "Back",
|
||||
doneBtn: "Done",
|
||||
skipBtn: "Skip",
|
||||
closeTooltip: "×"
|
||||
}, customI18N = {}, HopscotchBubble = function(a) {
|
||||
this.init(a)
|
||||
}, HopscotchBubble.prototype = {
|
||||
isShowing: !1,
|
||||
currStep: void 0,
|
||||
setPosition: function(a) {
|
||||
var b, c, d, e, f, g, h, i = utils.getStepTarget(a),
|
||||
j = this.element,
|
||||
k = this.arrowEl,
|
||||
l = a.isRtl ? "right" : "left";
|
||||
if (utils.flipPlacement(a), utils.normalizePlacement(a), c = j.offsetWidth, b = j.offsetHeight, utils.removeClass(j, "fade-in-down fade-in-up fade-in-left fade-in-right"), d = i.getBoundingClientRect(), h = a.isRtl ? d.right - c : d.left, "top" === a.placement) e = d.top - b - this.opt.arrowWidth, f = h;
|
||||
else if ("bottom" === a.placement) e = d.bottom + this.opt.arrowWidth, f = h;
|
||||
else if ("left" === a.placement) e = d.top, f = d.left - c - this.opt.arrowWidth;
|
||||
else {
|
||||
if ("right" !== a.placement) throw new Error("Bubble placement failed because step.placement is invalid or undefined!");
|
||||
e = d.top, f = d.right + this.opt.arrowWidth
|
||||
}
|
||||
g = "center" !== a.arrowOffset ? utils.getPixelValue(a.arrowOffset) : a.arrowOffset, g ? "top" === a.placement || "bottom" === a.placement ? (k.style.top = "", "center" === g ? k.style[l] = Math.floor(c / 2 - k.offsetWidth / 2) + "px" : k.style[l] = g + "px") : ("left" === a.placement || "right" === a.placement) && (k.style[l] = "", "center" === g ? k.style.top = Math.floor(b / 2 - k.offsetHeight / 2) + "px" : k.style.top = g + "px") : (k.style.top = "", k.style[l] = ""), "center" === a.xOffset ? f = d.left + i.offsetWidth / 2 - c / 2 : f += utils.getPixelValue(a.xOffset), "center" === a.yOffset ? e = d.top + i.offsetHeight / 2 - b / 2 : e += utils.getPixelValue(a.yOffset), a.fixedElement || (e += utils.getScrollTop(), f += utils.getScrollLeft()), j.style.position = a.fixedElement ? "fixed" : "absolute", j.style.top = e + "px", j.style.left = f + "px"
|
||||
},
|
||||
render: function(a, b, c) {
|
||||
var d, e, f, g, h, i, j, k, l, m, n = this.element;
|
||||
if (a ? this.currStep = a : this.currStep && (a = this.currStep), this.opt.isTourBubble ? (g = winHopscotch.getCurrTour(), g && (e = g.customData, d = g.customRenderer, a.isRtl = a.hasOwnProperty("isRtl") ? a.isRtl : g.hasOwnProperty("isRtl") ? g.isRtl : this.opt.isRtl, f = g.unsafe, Array.isArray(g.steps) && (h = g.steps.length, i = this._getStepI18nNum(this._getStepNum(h - 1)), k = this._getStepNum(b) === this._getStepNum(h - 1)))) : (e = a.customData, d = a.customRenderer, f = a.unsafe, a.isRtl = a.hasOwnProperty("isRtl") ? a.isRtl : this.opt.isRtl), j = k ? utils.getI18NString("doneBtn") : a.showSkip ? utils.getI18NString("skipBtn") : utils.getI18NString("nextBtn"), utils.flipPlacement(a), utils.normalizePlacement(a), this.placement = a.placement, m = {
|
||||
i18n: {
|
||||
prevBtn: utils.getI18NString("prevBtn"),
|
||||
nextBtn: j,
|
||||
closeTooltip: utils.getI18NString("closeTooltip"),
|
||||
stepNum: this._getStepI18nNum(this._getStepNum(b)),
|
||||
numSteps: i
|
||||
},
|
||||
buttons: {
|
||||
showPrev: utils.valOrDefault(a.showPrevButton, this.opt.showPrevButton) && this._getStepNum(b) > 0,
|
||||
showNext: utils.valOrDefault(a.showNextButton, this.opt.showNextButton),
|
||||
showCTA: utils.valOrDefault(a.showCTAButton && a.ctaLabel, !1),
|
||||
ctaLabel: a.ctaLabel,
|
||||
showClose: utils.valOrDefault(this.opt.showCloseButton, !0)
|
||||
},
|
||||
step: {
|
||||
num: b,
|
||||
isLast: utils.valOrDefault(k, !1),
|
||||
title: a.title || "",
|
||||
content: a.content || "",
|
||||
isRtl: a.isRtl,
|
||||
placement: a.placement,
|
||||
padding: utils.valOrDefault(a.padding, this.opt.bubblePadding),
|
||||
width: utils.getPixelValue(a.width) || this.opt.bubbleWidth,
|
||||
customData: a.customData || {}
|
||||
},
|
||||
tour: {
|
||||
isTour: this.opt.isTourBubble,
|
||||
numSteps: h,
|
||||
unsafe: utils.valOrDefault(f, !1),
|
||||
customData: e || {}
|
||||
}
|
||||
}, "function" == typeof d) n.innerHTML = d(m);
|
||||
else if ("string" == typeof d) {
|
||||
if (!winHopscotch.templates || "function" != typeof winHopscotch.templates[d]) throw new Error('Bubble rendering failed - template "' + d + '" is not a function.');
|
||||
n.innerHTML = winHopscotch.templates[d](m)
|
||||
} else if (customRenderer) n.innerHTML = customRenderer(m);
|
||||
else {
|
||||
if (!winHopscotch.templates || "function" != typeof winHopscotch.templates[templateToUse]) throw new Error('Bubble rendering failed - template "' + templateToUse + '" is not a function.');
|
||||
n.innerHTML = winHopscotch.templates[templateToUse](m)
|
||||
}
|
||||
for (children = n.children, numChildren = children.length, l = 0; l < numChildren; l++) node = children[l], utils.hasClass(node, "hopscotch-arrow") && (this.arrowEl = node);
|
||||
return n.style.zIndex = "number" == typeof a.zindex ? a.zindex : "", this._setArrow(a.placement), this.hide(!1), this.setPosition(a), c && c(!a.fixedElement), this
|
||||
},
|
||||
_getStepNum: function(a) {
|
||||
var b, c, d = 0,
|
||||
e = winHopscotch.getSkippedStepsIndexes(),
|
||||
f = e.length;
|
||||
for (c = 0; f > c; c++) b = e[c], a > b && d++;
|
||||
return a - d
|
||||
},
|
||||
_getStepI18nNum: function(a) {
|
||||
var b = utils.getI18NString("stepNums");
|
||||
return b && a < b.length ? a = b[a] : a += 1, a
|
||||
},
|
||||
_setArrow: function(a) {
|
||||
utils.removeClass(this.arrowEl, "down up right left"), "top" === a ? utils.addClass(this.arrowEl, "down") : "bottom" === a ? utils.addClass(this.arrowEl, "up") : "left" === a ? utils.addClass(this.arrowEl, "right") : "right" === a && utils.addClass(this.arrowEl, "left")
|
||||
},
|
||||
_getArrowDirection: function() {
|
||||
return "top" === this.placement ? "down" : "bottom" === this.placement ? "up" : "left" === this.placement ? "right" : "right" === this.placement ? "left" : void 0
|
||||
},
|
||||
show: function() {
|
||||
var a = this,
|
||||
b = "fade-in-" + this._getArrowDirection(),
|
||||
c = 1e3;
|
||||
return utils.removeClass(this.element, "hide"), utils.addClass(this.element, b), setTimeout(function() {
|
||||
utils.removeClass(a.element, "invisible")
|
||||
}, 50), setTimeout(function() {
|
||||
utils.removeClass(a.element, b)
|
||||
}, c), this.isShowing = !0, this
|
||||
},
|
||||
hide: function(a) {
|
||||
var b = this.element;
|
||||
return a = utils.valOrDefault(a, !0), b.style.top = "", b.style.left = "", a ? (utils.addClass(b, "hide"), utils.removeClass(b, "invisible")) : (utils.removeClass(b, "hide"), utils.addClass(b, "invisible")), utils.removeClass(b, "animate fade-in-up fade-in-down fade-in-right fade-in-left"), this.isShowing = !1, this
|
||||
},
|
||||
destroy: function() {
|
||||
var a = this.element;
|
||||
a && a.parentNode.removeChild(a), utils.removeEvtListener(a, "click", this.clickCb)
|
||||
},
|
||||
_handleBubbleClick: function(a) {
|
||||
function b(c) {
|
||||
return c === a.currentTarget ? null : utils.hasClass(c, "hopscotch-cta") ? "cta" : utils.hasClass(c, "hopscotch-next") ? "next" : utils.hasClass(c, "hopscotch-prev") ? "prev" : utils.hasClass(c, "hopscotch-close") ? "close" : b(c.parentElement)
|
||||
}
|
||||
var c;
|
||||
a = a || window.event;
|
||||
var d = a.target || a.srcElement;
|
||||
if (c = b(d), "cta" === c) this.opt.isTourBubble || winHopscotch.getCalloutManager().removeCallout(this.currStep.id), this.currStep.onCTA && utils.invokeCallback(this.currStep.onCTA);
|
||||
else if ("next" === c) winHopscotch.nextStep(!0);
|
||||
else if ("prev" === c) winHopscotch.prevStep(!0);
|
||||
else if ("close" === c) {
|
||||
if (this.opt.isTourBubble) {
|
||||
var e = winHopscotch.getCurrStepNum(),
|
||||
f = winHopscotch.getCurrTour(),
|
||||
g = e === f.steps.length - 1;
|
||||
utils.invokeEventCallbacks("close"), winHopscotch.endTour(!0, g)
|
||||
} else this.opt.onClose && utils.invokeCallback(this.opt.onClose), this.opt.id && !this.opt.isTourBubble ? winHopscotch.getCalloutManager().removeCallout(this.opt.id) : this.destroy();
|
||||
utils.evtPreventDefault(a)
|
||||
}
|
||||
},
|
||||
init: function(a) {
|
||||
var b, c, d, e, f = document.createElement("div"),
|
||||
g = this,
|
||||
h = !1;
|
||||
this.element = f, e = {
|
||||
showPrevButton: defaultOpts.showPrevButton,
|
||||
showNextButton: defaultOpts.showNextButton,
|
||||
bubbleWidth: defaultOpts.bubbleWidth,
|
||||
bubblePadding: defaultOpts.bubblePadding,
|
||||
arrowWidth: defaultOpts.arrowWidth,
|
||||
isRtl: defaultOpts.isRtl,
|
||||
showNumber: !0,
|
||||
isTourBubble: !0
|
||||
}, a = typeof a === undefinedStr ? {} : a, utils.extend(e, a), this.opt = e, f.className = "hopscotch-bubble", e.isTourBubble ? (d = winHopscotch.getCurrTour(), d && utils.addClass(f, "tour-" + d.id)) : utils.addClass(f, "hopscotch-callout no-number"), b = function() {
|
||||
!h && g.isShowing && (h = !0, setTimeout(function() {
|
||||
g.setPosition(g.currStep), h = !1
|
||||
}, 100))
|
||||
}, utils.addEvtListener(window, "resize", b), this.clickCb = function(a) {
|
||||
g._handleBubbleClick(a)
|
||||
}, utils.addEvtListener(f, "click", this.clickCb), this.hide(), utils.documentIsReady() ? document.body.appendChild(f) : (document.addEventListener ? (c = function() {
|
||||
document.removeEventListener("DOMContentLoaded", c), window.removeEventListener("load", c), document.body.appendChild(f)
|
||||
}, document.addEventListener("DOMContentLoaded", c, !1)) : (c = function() {
|
||||
"complete" === document.readyState && (document.detachEvent("onreadystatechange", c), window.detachEvent("onload", c), document.body.appendChild(f))
|
||||
}, document.attachEvent("onreadystatechange", c)), utils.addEvtListener(window, "load", c))
|
||||
}
|
||||
}, HopscotchCalloutManager = function() {
|
||||
var a = {},
|
||||
b = {};
|
||||
this.createCallout = function(c) {
|
||||
var d;
|
||||
if (!c.id) throw new Error("Must specify a callout id.");
|
||||
if (!validIdRegEx.test(c.id)) throw new Error("Callout ID is using an invalid format. Use alphanumeric, underscores, and/or hyphens only. First character must be a letter.");
|
||||
if (a[c.id]) throw new Error("Callout by that id already exists. Please choose a unique id.");
|
||||
if (!utils.getStepTarget(c)) throw new Error("Must specify existing target element via 'target' option.");
|
||||
return c.showNextButton = c.showPrevButton = !1, c.isTourBubble = !1, d = new HopscotchBubble(c), a[c.id] = d, b[c.id] = c, d.render(c, null, function() {
|
||||
d.show(), c.onShow && utils.invokeCallback(c.onShow)
|
||||
}), d
|
||||
}, this.getCallout = function(b) {
|
||||
return a[b]
|
||||
}, this.removeAllCallouts = function() {
|
||||
var b;
|
||||
for (b in a) a.hasOwnProperty(b) && this.removeCallout(b)
|
||||
}, this.removeCallout = function(c) {
|
||||
var d = a[c];
|
||||
a[c] = null, b[c] = null, d && d.destroy()
|
||||
}, this.refreshCalloutPositions = function() {
|
||||
var c, d, e;
|
||||
for (c in a) a.hasOwnProperty(c) && b.hasOwnProperty(c) && (d = a[c], e = b[c], d && e && d.setPosition(e))
|
||||
}
|
||||
}, Hopscotch = function(a) {
|
||||
var b, c, d, e, f, g, h, i, j = this,
|
||||
k = {},
|
||||
l = [],
|
||||
m = function(a) {
|
||||
return b && b.element && b.element.parentNode || (b = new HopscotchBubble(d)), a && utils.extend(b.opt, {
|
||||
bubblePadding: o("bubblePadding"),
|
||||
bubbleWidth: o("bubbleWidth"),
|
||||
showNextButton: o("showNextButton"),
|
||||
showPrevButton: o("showPrevButton"),
|
||||
showCloseButton: o("showCloseButton"),
|
||||
arrowWidth: o("arrowWidth"),
|
||||
isRtl: o("isRtl")
|
||||
}), b
|
||||
},
|
||||
n = function() {
|
||||
b && (b.destroy(), b = null)
|
||||
},
|
||||
o = function(a) {
|
||||
return "undefined" == typeof d ? defaultOpts[a] : utils.valOrDefault(d[a], defaultOpts[a])
|
||||
},
|
||||
p = function() {
|
||||
var a;
|
||||
return a = !e || 0 > f || f >= e.steps.length ? null : e.steps[f]
|
||||
},
|
||||
q = function() {
|
||||
j.nextStep()
|
||||
},
|
||||
r = function(a) {
|
||||
var b, c, d, e, f, g, h = m(),
|
||||
i = h.element,
|
||||
j = utils.getPixelValue(i.style.top),
|
||||
k = j + utils.getPixelValue(i.offsetHeight),
|
||||
l = utils.getStepTarget(p()),
|
||||
n = l.getBoundingClientRect(),
|
||||
q = n.top + utils.getScrollTop(),
|
||||
r = n.bottom + utils.getScrollTop(),
|
||||
s = q > j ? j : q,
|
||||
t = k > r ? k : r,
|
||||
u = utils.getScrollTop(),
|
||||
v = u + utils.getWindowHeight(),
|
||||
w = s - o("scrollTopMargin");
|
||||
s >= u && (s <= u + o("scrollTopMargin") || v >= t) ? a && a() : o("smoothScroll") ? typeof YAHOO !== undefinedStr && typeof YAHOO.env !== undefinedStr && typeof YAHOO.env.ua !== undefinedStr && typeof YAHOO.util !== undefinedStr && typeof YAHOO.util.Scroll !== undefinedStr ? (b = YAHOO.env.ua.webkit ? document.body : document.documentElement, d = YAHOO.util.Easing ? YAHOO.util.Easing.easeOut : void 0, c = new YAHOO.util.Scroll(b, {
|
||||
scroll: {
|
||||
to: [0, w]
|
||||
}
|
||||
}, o("scrollDuration") / 1e3, d), c.onComplete.subscribe(a), c.animate()) : hasJquery ? jQuery("body, html").animate({
|
||||
scrollTop: w
|
||||
}, o("scrollDuration"), a) : (0 > w && (w = 0), e = u > s ? -1 : 1, f = Math.abs(u - w) / (o("scrollDuration") / 10), (g = function() {
|
||||
var b = utils.getScrollTop(),
|
||||
c = b + e * f;
|
||||
return e > 0 && c >= w || 0 > e && w >= c ? (c = w, a && a(), void window.scrollTo(0, c)) : (window.scrollTo(0, c), utils.getScrollTop() === b ? void(a && a()) : void setTimeout(g, 10))
|
||||
})()) : (window.scrollTo(0, w), a && a())
|
||||
},
|
||||
s = function(a, b) {
|
||||
var c, d, g;
|
||||
f + a >= 0 && f + a < e.steps.length ? (f += a, d = p(), g = function() {
|
||||
c = utils.getStepTarget(d), c ? (k[f] && delete k[f], b(f)) : (k[f] = !0, utils.invokeEventCallbacks("error"), s(a, b))
|
||||
}, d.delay ? setTimeout(g, d.delay) : g()) : b(-1)
|
||||
},
|
||||
t = function(a, b) {
|
||||
var c, d, g, h, i = m(),
|
||||
j = this;
|
||||
if (i.hide(), a = utils.valOrDefault(a, !0), c = p(), c.nextOnTargetClick && utils.removeEvtListener(utils.getStepTarget(c), "click", q), d = c, g = b > 0 ? d.multipage : f > 0 && e.steps[f - 1].multipage, h = function(c) {
|
||||
var e;
|
||||
if (-1 === c) return this.endTour(!0);
|
||||
if (a && (e = b > 0 ? utils.invokeEventCallbacks("next", d.onNext) : utils.invokeEventCallbacks("prev", d.onPrev)), c === f) {
|
||||
if (g) return void x();
|
||||
e = utils.valOrDefault(e, !0), e ? this.showStep(c) : this.endTour(!1)
|
||||
}
|
||||
}, !g && o("skipIfNoElement")) s(b, function(a) {
|
||||
h.call(j, a)
|
||||
});
|
||||
else if (f + b >= 0 && f + b < e.steps.length) {
|
||||
if (f += b, c = p(), !utils.getStepTarget(c) && !g) return utils.invokeEventCallbacks("error"), this.endTour(!0, !1);
|
||||
h.call(this, f)
|
||||
} else if (f + b === e.steps.length) return this.endTour();
|
||||
return this
|
||||
},
|
||||
u = function(a) {
|
||||
var b, c, d, e = {};
|
||||
for (b in a) a.hasOwnProperty(b) && "id" !== b && "steps" !== b && (e[b] = a[b]);
|
||||
return i.call(this, e, !0), c = utils.getState(o("cookieName")), c && (d = c.split(":"), g = d[0], h = d[1], d.length > 2 && (l = d[2].split(",")), h = parseInt(h, 10)), this
|
||||
},
|
||||
v = function(a, b, c) {
|
||||
var d, e;
|
||||
if (f = a || 0, k = b || {}, d = p(), e = utils.getStepTarget(d)) return void c(f);
|
||||
if (!e) {
|
||||
if (utils.invokeEventCallbacks("error"), k[f] = !0, o("skipIfNoElement")) return void s(1, c);
|
||||
f = -1, c(f)
|
||||
}
|
||||
},
|
||||
w = function(a) {
|
||||
function b() {
|
||||
d.show(), utils.invokeEventCallbacks("show", c.onShow)
|
||||
}
|
||||
var c = e.steps[a],
|
||||
d = m(),
|
||||
g = utils.getStepTarget(c);
|
||||
f !== a && p().nextOnTargetClick && utils.removeEvtListener(utils.getStepTarget(p()), "click", q), f = a, d.hide(!1), d.render(c, a, function(a) {
|
||||
a ? r(b) : b(), c.nextOnTargetClick && utils.addEvtListener(g, "click", q)
|
||||
}), x()
|
||||
},
|
||||
x = function() {
|
||||
var a = e.id + ":" + f,
|
||||
b = winHopscotch.getSkippedStepsIndexes();
|
||||
b && b.length > 0 && (a += ":" + b.join(",")), utils.setState(o("cookieName"), a, 1)
|
||||
},
|
||||
y = function(a) {
|
||||
a && this.configure(a)
|
||||
};
|
||||
this.getCalloutManager = function() {
|
||||
return typeof c === undefinedStr && (c = new HopscotchCalloutManager), c
|
||||
}, this.startTour = function(a, b) {
|
||||
var c, d, f = {},
|
||||
i = this;
|
||||
if (!e) {
|
||||
if (!a) throw new Error("Tour data is required for startTour.");
|
||||
if (!a.id || !validIdRegEx.test(a.id)) throw new Error("Tour ID is using an invalid format. Use alphanumeric, underscores, and/or hyphens only. First character must be a letter.");
|
||||
e = a, u.call(this, a)
|
||||
}
|
||||
if (typeof b !== undefinedStr) {
|
||||
if (b >= e.steps.length) throw new Error("Specified step number out of bounds.");
|
||||
d = b
|
||||
}
|
||||
if (!utils.documentIsReady()) return waitingToStart = !0, this;
|
||||
if ("undefined" == typeof d && e.id === g && typeof h !== undefinedStr) {
|
||||
if (d = h, l.length > 0)
|
||||
for (var j = 0, k = l.length; k > j; j++) f[l[j]] = !0
|
||||
} else d || (d = 0);
|
||||
return v(d, f, function(a) {
|
||||
var b = -1 !== a && utils.getStepTarget(e.steps[a]);
|
||||
return b ? (utils.invokeEventCallbacks("start"), c = m(), c.hide(!1), i.isActive = !0, void(utils.getStepTarget(p()) ? i.showStep(a) : (utils.invokeEventCallbacks("error"), o("skipIfNoElement") && i.nextStep(!1)))) : void i.endTour(!1, !1)
|
||||
}), this
|
||||
}, this.showStep = function(a) {
|
||||
var b = e.steps[a],
|
||||
c = f;
|
||||
return utils.getStepTarget(b) ? (b.delay ? setTimeout(function() {
|
||||
w(a)
|
||||
}, b.delay) : w(a), this) : (f = a, utils.invokeEventCallbacks("error"), void(f = c))
|
||||
}, this.prevStep = function(a) {
|
||||
return t.call(this, a, -1), this
|
||||
}, this.nextStep = function(a) {
|
||||
return t.call(this, a, 1), this
|
||||
}, this.endTour = function(a, b) {
|
||||
var c, d = m();
|
||||
return a = utils.valOrDefault(a, !0), b = utils.valOrDefault(b, !0), e && (c = p(), c && c.nextOnTargetClick && utils.removeEvtListener(utils.getStepTarget(c), "click", q)), f = 0, h = void 0, d.hide(), a && utils.clearState(o("cookieName")), this.isActive && (this.isActive = !1, e && b && utils.invokeEventCallbacks("end")), this.removeCallbacks(null, !0), this.resetDefaultOptions(), n(), e = null, this
|
||||
}, this.getCurrTour = function() {
|
||||
return e
|
||||
}, this.getCurrTarget = function() {
|
||||
return utils.getStepTarget(p())
|
||||
}, this.getCurrStepNum = function() {
|
||||
return f
|
||||
}, this.getSkippedStepsIndexes = function() {
|
||||
var a, b = [];
|
||||
for (a in k) b.push(a);
|
||||
return b
|
||||
}, this.refreshBubblePosition = function() {
|
||||
var a = p();
|
||||
return a && m().setPosition(a), this.getCalloutManager().refreshCalloutPositions(), this
|
||||
}, this.listen = function(a, b, c) {
|
||||
return a && callbacks[a].push({
|
||||
cb: b,
|
||||
fromTour: c
|
||||
}), this
|
||||
}, this.unlisten = function(a, b) {
|
||||
var c, d, e = callbacks[a];
|
||||
for (c = 0, d = e.length; d > c; ++c) e[c].cb === b && e.splice(c, 1);
|
||||
return this
|
||||
}, this.removeCallbacks = function(a, b) {
|
||||
var c, d, e, f;
|
||||
for (f in callbacks)
|
||||
if (!a || a === f)
|
||||
if (b)
|
||||
for (c = callbacks[f], d = 0, e = c.length; e > d; ++d) c[d].fromTour && (c.splice(d--, 1), --e);
|
||||
else callbacks[f] = [];
|
||||
return this
|
||||
}, this.registerHelper = function(a, b) {
|
||||
"string" == typeof a && "function" == typeof b && (helpers[a] = b)
|
||||
}, this.unregisterHelper = function(a) {
|
||||
helpers[a] = null
|
||||
}, this.invokeHelper = function(a) {
|
||||
var b, c, d = [];
|
||||
for (b = 1, c = arguments.length; c > b; ++b) d.push(arguments[b]);
|
||||
helpers[a] && helpers[a].call(null, d)
|
||||
}, this.setCookieName = function(a) {
|
||||
return d.cookieName = a, this
|
||||
}, this.resetDefaultOptions = function() {
|
||||
return d = {}, this
|
||||
}, this.resetDefaultI18N = function() {
|
||||
return customI18N = {}, this
|
||||
}, this.getState = function() {
|
||||
return utils.getState(o("cookieName"))
|
||||
}, i = function(a, b) {
|
||||
var c, e, f, g, h = ["next", "prev", "start", "end", "show", "error", "close"];
|
||||
for (d || this.resetDefaultOptions(), utils.extend(d, a), a && utils.extend(customI18N, a.i18n), f = 0, g = h.length; g > f; ++f) e = "on" + h[f].charAt(0).toUpperCase() + h[f].substring(1), a[e] && this.listen(h[f], a[e], b);
|
||||
return c = m(!0), this
|
||||
}, this.configure = function(a) {
|
||||
return i.call(this, a, !1)
|
||||
}, this.setRenderer = function(a) {
|
||||
var b = typeof a;
|
||||
return "string" === b ? (templateToUse = a, customRenderer = void 0) : "function" === b && (customRenderer = a), this
|
||||
}, this.setEscaper = function(a) {
|
||||
return "function" == typeof a && (customEscape = a), this
|
||||
}, y.call(this, a)
|
||||
}, winHopscotch = new Hopscotch,
|
||||
function() {
|
||||
var _ = {};
|
||||
_.escape = function(a) {
|
||||
return customEscape ? customEscape(a) : null == a ? "" : ("" + a).replace(new RegExp("[&<>\"']", "g"), function(a) {
|
||||
return "&" == a ? "&" : "<" == a ? "<" : ">" == a ? ">" : '"' == a ? """ : "'" == a ? "'" : void 0
|
||||
})
|
||||
}, this.templates = this.templates || {}, this.templates.bubble_default = function(obj) {
|
||||
function optEscape(a, b) {
|
||||
return b ? _.escape(a) : a
|
||||
}
|
||||
obj || (obj = {});
|
||||
var __t, __p = "";
|
||||
_.escape, Array.prototype.join;
|
||||
with(obj) __p += '\n<div class="hopscotch-bubble-container" style="width: ' + (null == (__t = step.width) ? "" : __t) + "px; padding: " + (null == (__t = step.padding) ? "" : __t) + 'px;">\n ', tour.isTour && (__p += '<span class="hopscotch-bubble-number">' + (null == (__t = i18n.stepNum) ? "" : __t) + "</span>"), __p += '\n <div class="hopscotch-bubble-content">\n ', "" !== step.title && (__p += '<h3 class="hopscotch-title">' + (null == (__t = optEscape(step.title, tour.unsafe)) ? "" : __t) + "</h3>"), __p += "\n ", "" !== step.content && (__p += '<div class="hopscotch-content">' + (null == (__t = optEscape(step.content, tour.unsafe)) ? "" : __t) + "</div>"), __p += '\n </div>\n <div class="hopscotch-actions">\n ', buttons.showPrev && (__p += '<button class="hopscotch-nav-button prev hopscotch-prev">' + (null == (__t = i18n.prevBtn) ? "" : __t) + "</button>"), __p += "\n ", buttons.showCTA && (__p += '<button class="hopscotch-nav-button next hopscotch-cta">' + (null == (__t = buttons.ctaLabel) ? "" : __t) + "</button>"), __p += "\n ", buttons.showNext && (__p += '<button class="hopscotch-nav-button next hopscotch-next">' + (null == (__t = i18n.nextBtn) ? "" : __t) + "</button>"), __p += "\n </div>\n ", buttons.showClose && (__p += '<button title="Close" class="hopscotch-bubble-close hopscotch-close">' + (null == (__t = i18n.closeTooltip) ? "" : __t) + "</button>"), __p += '\n</div>\n<div class="hopscotch-bubble-arrow-container hopscotch-arrow">\n <div class="hopscotch-bubble-arrow-border"></div>\n <div class="hopscotch-bubble-arrow"></div>\n</div>';
|
||||
return __p
|
||||
}
|
||||
}.call(winHopscotch), winHopscotch
|
||||
});
|
|
@ -1,20 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2007-2015, Marketo, Inc. All rights reserved.
|
||||
* Marketo marketing automation web activity tracking script
|
||||
* Version: 151 r601
|
||||
*/
|
||||
(function(l){if(!l.MunchkinTracker){var k=l.document,p=k.location,w=encodeURIComponent,x=[],r=function(b,a,c,d){try{var f=function(){try{c.apply(this,arguments)}catch(a){}};b.addEventListener?b.addEventListener(a,f,d||!1):b.attachEvent&&b.attachEvent("on"+a,f);x.push([b,a,f,d])}catch(g){}},L=function(b,a,c,d){try{b.removeEventListener?b.removeEventListener(a,c,d||!1):b.detachEvent&&b.detachEvent("on"+a,c)}catch(f){}},e=function(b){return"undefined"!==typeof b&&null!==b},y=function(b,a){return b.className.match(RegExp("(\\s|^)"+
|
||||
a+"(\\s|$)"))},M=e(l.XMLHttpRequest)&&e((new l.XMLHttpRequest).withCredentials),q=function(b){var a=null,c;if(e(b))if(0===b.length)a="";else try{a=decodeURIComponent(b)}catch(d){c=b.indexOf("?");if(-1!==c)try{a=decodeURIComponent(b.substr(0,c))+b.substr(c)}catch(f){}e(a)||(a=String(b))}return a},z=function(b,a){var c={},d=e(a)?a:"=",f=b.split("&"),g=f.length,h,m,k;for(h=0;h<g;h+=1)m=f[h].split(d),e(m)&&1<m.length&&(k=m.shift(),m=m.join(d),c[q(k)]=q(m));return c},A=function(b){try{var a=k.createElement("a");
|
||||
a.href=b;return z(a.search.substr(1))}catch(c){return null}},B=function(b,a){var c=null,d=[];if(e(b))for(c in b)b.hasOwnProperty(c)&&"function"!==typeof b[c]&&d.push(w(c)+(e(a)?a:"=")+w(b[c]));return d.join("&")},C=function(b,a){var c=null;if(e(a)&&e(b))for(c in b)b.hasOwnProperty(c)&&e(a[c])&&(b[c]=a[c])},G=function(b){var a=k.cookie,c,d,f={id:null,token:null};b=w(b);f.store=function(a,c,d,f){var e=b+"="+B(this,":"),h=new Date;0<a&&(h.setTime(h.getTime()+864E5*a),e+="; expires="+h.toGMTString());
|
||||
c&&(e+="; path="+c);d&&-1!==d.indexOf(".")&&(e+="; domain="+d);f&&(e+="; secure");k.cookie=e};if(""!==a)for(a=a.split(";"),c=0;c<a.length;c+=1)if(d=a[c].replace(/^\s+|\s+$/g,""),0===d.indexOf(b+"=")){a=d.substring(b.length+1);c=z(a);e(c.id)&&e(c.token)?C(f,c):C(f,z(a,":"));break}return f},h={customName:null,notifyPrefix:null,wsInfo:null,altIds:[],visitorToken:null,cookieLifeDays:730,clickTime:350,cookieAnon:!0,mkt_tok:null,domainLevel:null,replayDetectLimit:5E3,httpsOnly:!1,asyncOnly:!1},D=null,n=
|
||||
null,N=l.navigator.cookieEnabled||k.hasOwnProperty("cookie")&&(0<k.cookie.length||-1<(k.cookie="testcookie=test; max-age=10000").indexOf.call(k.cookie,"testcookie=test;")),u=!1,v=[],E=null,O=function(b,a,c){var d=new l.XMLHttpRequest;d.open("GET",b,!0!==a);d.onreadystatechange=function(){2<=d.readyState&&d.abort()};if(a)try{d.timeout=c}catch(f){}try{d.send()}catch(e){}},H=function(b,a,c,d,e){b=b+a+"&"+B(c)+"&"+B(d);c=(new Date).getTime();e=!e&&!h.asyncOnly;0===a.indexOf("webevents/visitWebPage?")&&
|
||||
(e=!1);M?O(b,e,h.clickTime):(new l.Image(1,1)).src=b;E=c+h.clickTime},P=function(){var b;return function(a,c){var d={x:a.clientX,y:a.clientY,el:c,time:(new Date).getTime()};if(e(b)&&d.x===b.x&&d.y===b.y&&d.el===b.el&&d.time<b.time+h.replayDetectLimit)return!0;b=d;return!1}}(),I=function(){var b=k.getElementsByName("_mkt_trk"),a=0,c="";e(n)&&(c="id:"+n.id+"&token:"+n.token);for(a=0;a<b.length;a+=1)"hidden"===b[a].type&&(b[a].value=c)},s=function(b,a,c,d){var f=null,g;g=p.hostname;var k=p.protocol,
|
||||
m="webevents/"+b;if(!u)v.push(["post",arguments]);else if(e(n)&&(a._mchId=n.id,a._mchTk=n.token,e(h.mkt_tok)&&(a.mkt_tok=h.mkt_tok),e(h.wsInfo)&&(a._mchWs=h.wsInfo),"clickLink"===b&&(a._mchCn=e(h.customName)?h.customName:""),a._mchHo=g,a._mchPo=p.port,e(a._mchRu)||(a._mchRu=q(p.pathname)),a._mchPc=k,a._mchVr="151",e(g)&&0!==g.length&&"file:"!==k))for(f in m+="?_mchNc="+(new Date).getTime(),H(h.notifyPrefix,m,a,c,d),h.altIds)h.altIds.hasOwnProperty(f)&&(g=h.altIds[f],a._mchId=g,H(h.notifyPrefix.replace(/\w{3}\-\w{3}\-\w{3}\.mktoresp\.com/i,
|
||||
g+".mktoresp.com"),m,a,c,d))},J=function(b){var a=b||l.event,c=a.target||a.srcElement,d={},f;f=a.which;var g=a.button;f=e(f)&&(1===f||2===f)||e(g)&&(0===g||1===g||4===g)?!0:!1;if(f&&!a._mchDone){a._mchDone=!0;a=c;f=p.href||p;for(-1<f.indexOf("#")&&(f=f.substring(0,f.indexOf("#")));"A"!==a.tagName&&"AREA"!==a.tagName&&e(a.parentNode);)a=a.parentNode;a===k||a===l||"A"!==a.tagName&&"AREA"!==a.tagName?a=null:(c=a.href.replace(/^\s+|\s+$/g,""),a=e(c)&&0<c.length&&0!==c.indexOf("#")&&0!==c.indexOf(f+"#")&&
|
||||
0!==c.indexOf("javascript")&&0!==c.indexOf("mailto")&&!y(a,"mchNoDecorate")?a:null);e(a)&&!P(b,a)&&(d._mchHr=q(a.href),s("clickLink",d))}},t=function(b){if(u){if(null!==n)return n;var a;a:{a=p.hostname;var c=h.domainLevel,d=a.split("."),f=d.length,g=2;if(e(c))g=c;else if(2<d[f-1].length)g=2;else if(2===d[f-1].length)g=3;else break a;for(;d.length>g&&2<d.length;)d.shift();a=d.join(".")}c=G("_mkto_trk");d=!1!==h.httpsOnly;if(e(c.id)||h.cookieAnon||b){if(c.id=D,e(c.token)||(e(h.visitorToken)&&"VISITOR_MKTTOK_REPLACE"!==
|
||||
h.visitorToken?c.token=h.visitorToken:c.token="_mch-"+a+"-"+(new Date).getTime()+"-"+(Math.floor(9E4*Math.random())+1E4)),c.store(h.cookieLifeDays,"/",a,d),d&&(c=G("_mkto_trk")),!d||e(c.id))return n=c,I(),c}else return null}else v.push(["createTrackingCookie",arguments])},K=function(){t(!0)},Q=function(b){var a=b.onclick;b.onclick="function"===typeof a?function(){K.apply(b,arguments);return a.apply(b,arguments)}:K},F={ASSOCIATE_LEAD:"associateLead",CLICK_LINK:"clickLink",VISIT_WEB_PAGE:"visitWebPage",
|
||||
init:function(b,a){if(N&&e(b)&&0!==b.length){D=b;var c="",d,f,g;d=A(l.location.toString());h.notifyPrefix=p.protocol+"//"+D+".mktoresp.com/";e(a)&&C(h,a);e(d)&&(e(d.mkt_tok)&&(h.mkt_tok=d.mkt_tok),e(d.lpview)&&(c=d.lpview));if(!e(h.mkt_tok))if(d=A(k.referrer),e(d.mkt_tok))h.mkt_tok=d.mkt_tok;else if(e(d.enid)&&e(d.type))for(g in d)d.hasOwnProperty(g)&&"enid"!==g&&"type"!==g&&(-1<g.indexOf("mkt_tok")||-1<d[g].indexOf("mkt_tok"))&&(f=A(g+"="+d[g]),e(f.mkt_tok)&&(h.mkt_tok=f.mkt_tok));if(!("preview"===
|
||||
c&&/\/lpeditor\/preview$/.test(p.pathname)||u)){u=!0;c=t(e(h.mkt_tok));d={};for(f={};0<v.length;)switch(g=v.shift(),g[0]){case "createTrackingCookie":c=t.apply(k,g[1]);break;case "post":s.apply(k,g[1])}if(e(c))d._mchCn=e(h.customName)?h.customName:"",f._mchHa=q(p.hash),f._mchRe=q(k.referrer),f._mchQp=q(p.search.substr(1).replace(/&/g,"__-__")),s("visitWebPage",d,f,!0);else if(!(h.cookieAnon||e(l.Mkto)&&e(l.Mkto.formSubmit))){c=[];g=k.forms;d=g.length;var n,m,r;for(f=0;f<d;f+=1)if(y(g[f],"lpeRegForm"))for(m=
|
||||
g[f].elements,r=m.length,n=0;n<r;n+=1)"submit"!==m[n].type||y(m[n],"mchNoDecorate")||c.push(m[n]);for(g=0;g<c.length;g+=1)Q(c[g])}}}},munchkinFunction:function(b,a,c){var d={},f={},g=null;e(c)&&(d._mchKy=c);switch(b){case "associateLead":for(g in a)a.hasOwnProperty(g)&&(d["_mchAt"+g]=a[g]);t(!0);s("associateLead",d);break;case "clickLink":e(a.href)&&(d._mchHr=d._mchLr=q(a.href));s("clickLink",d);break;case "visitWebPage":e(a.url)&&(d._mchRu=q(a.url)),e(a.params)&&(d._mchQp=q(a.params.replace(/&/g,
|
||||
"__-__"))),e(a.name)&&(d._mchCn=a.name),f._mchRe=q(p.href),s("visitWebPage",d,f)}},createTrackingCookie:function(b){t(b)}};Date.prototype.getTimeAlias=Date.prototype.getTime;r(l,"beforeunload",function(){for(var b;0<x.length;)b=x.shift(),L.apply(this,b);if(e(E)){do b=new Date;while(b.getTimeAlias()<E)}});r(k,"click",J,!0);(function(b){var a=!1,c=!0,d=k.documentElement,e=function(c){"readystatechange"===c.type&&"complete"!==k.readyState||a||(a=!0,b.call(l,c.type||c))},g=null,g=function(){try{d.doScroll("left")}catch(a){l.setTimeout(g,
|
||||
50);return}e("poll")};if("complete"===k.readyState)b.call(l,"lazy");else{if(k.createEventObject&&d.doScroll){try{c=!l.frameElement}catch(h){}c&&g()}r(k,"DOMContentLoaded",e);r(k,"readystatechange",e);r(l,"load",e)}})(function(){I();var b=0;if(e(k.links))for(b=0;b<k.links.length;b+=1)r(k.links[b],"click",J,!0)});l.MunchkinTracker=l.Munchkin=F;l.mktoMunchkin=F.init;l.mktoMunchkinFunction=F.munchkinFunction}})(window);
|
|
@ -1,189 +0,0 @@
|
|||
// Find which tab is currently active
|
||||
function findActiveTab() {
|
||||
var tab;
|
||||
$( "#top-nav li" ).each(function() {
|
||||
if ( $( this ).hasClass( "active" ) ) {
|
||||
tab = $( this ).attr('id');
|
||||
}
|
||||
});
|
||||
return tab;
|
||||
}
|
||||
|
||||
var wasActive = findActiveTab();
|
||||
|
||||
function removeActiveFromTabs() {
|
||||
$( "#top-nav li" ).each(function() {
|
||||
$( this ).removeClass( "active" );
|
||||
});
|
||||
}
|
||||
|
||||
// Define the tour!
|
||||
var tour = {
|
||||
id: "hello-hopscotch",
|
||||
steps: [
|
||||
{
|
||||
title: "Navigation improvements!",
|
||||
content: "We've improved the navigation for the Docker documentation!<br /><br /><b>This tour takes less than a minute.</b><br /><br />It highlights and explains each improvement, then returns you to the current page.<br /><br />You'll learn about:<br /><ul><li>New top navigation</li><li>Left-hand navigation</li><li>Feedback links</li><li>In-page navigation</li></ul>",
|
||||
target: "main-content",
|
||||
placement: "top",
|
||||
xOffset: "center",
|
||||
yOffset: "400px",
|
||||
width: "400px",
|
||||
onShow: function () {
|
||||
// Hide the arrow on the first navigation bubble
|
||||
$('.hopscotch-bubble-arrow-container').css('visibility', 'hidden');
|
||||
},
|
||||
multipage: "true",
|
||||
onNext: function() {
|
||||
window.location = "/engine/swarm/admin_guide/";
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "Top Navigation",
|
||||
content: "Use the top-level tabs to discover the types of content available.",
|
||||
target: "top-nav-container",
|
||||
placement: "bottom",
|
||||
arrowOffset: "560px",
|
||||
width: "570px",
|
||||
onShow: function () {
|
||||
// Show the arrow again
|
||||
$('.hopscotch-bubble-arrow-container').css('visibility', 'visible');
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "Guides",
|
||||
content: "Learn how to install, configure, and manage Docker as a whole, or view the docs archives for previous Docker versions.",
|
||||
target: "top-nav",
|
||||
placement: "bottom",
|
||||
width: "570px",
|
||||
onShow: function() {
|
||||
removeActiveFromTabs();
|
||||
$('#guides').addClass('active');
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "Product Manuals",
|
||||
content: "Learn about Docker products and tools, such as Docker Hub, UCP, Docker Desktop for Mac, or Docker Desktop for Windows.",
|
||||
target: "top-nav",
|
||||
placement: "bottom",
|
||||
width: "570px",
|
||||
arrowOffset: "140px",
|
||||
onShow: function() {
|
||||
removeActiveFromTabs();
|
||||
$('#manuals').addClass('active');
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "Glossary",
|
||||
content: "Learn about terminology specific to Docker.",
|
||||
target: "top-nav",
|
||||
placement: "bottom",
|
||||
width: "570px",
|
||||
arrowOffset: "280px",
|
||||
onShow: function() {
|
||||
removeActiveFromTabs();
|
||||
$('#glossary').addClass('active');
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "Reference",
|
||||
content: "Go straight to reference information about Docker, such as API and CLI reference topics.",
|
||||
target: "top-nav",
|
||||
placement: "bottom",
|
||||
width: "570px",
|
||||
arrowOffset: "390px",
|
||||
onShow: function() {
|
||||
removeActiveFromTabs();
|
||||
$('#reference').addClass('active');
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "Samples",
|
||||
content: "Learn about Docker by using self-paced tutorials, labs, and sample Docker applications.",
|
||||
target: "top-nav",
|
||||
placement: "bottom",
|
||||
width: "570px",
|
||||
arrowOffset: "490px",
|
||||
onShow: function() {
|
||||
// Set class `active` on the samples section
|
||||
removeActiveFromTabs();
|
||||
$('#samples').addClass('active');
|
||||
},
|
||||
onNext: function() {
|
||||
removeActiveFromTabs();
|
||||
$( "#" + wasActive ).addClass('active');
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "Left Navigation",
|
||||
content: "Use the left navigation to browse a structured view of all topics provided within a tab.",
|
||||
target: "left-nav",
|
||||
placement: "right",
|
||||
yOffset: "100px",
|
||||
arrowOffset: "center"
|
||||
},
|
||||
{
|
||||
title: "Feedback Links",
|
||||
content: "Use these options to edit the page, provide feedback, or find out how to get support.",
|
||||
target: "feedback-links",
|
||||
placement: "left",
|
||||
arrowOffset: "center"
|
||||
},
|
||||
{
|
||||
title: "On-page navigation",
|
||||
content: "Use on-page links to jump to topics on the page you are currently viewing.<br /><br />This is especially helpful for long pages with lots of content.",
|
||||
target: "side-toc",
|
||||
placement: "left",
|
||||
yOffset: "100px",
|
||||
arrowOffset: "center"
|
||||
},
|
||||
{
|
||||
title: "The tour is complete!",
|
||||
content: "Thanks for checking out the new navigation features. You will now be returned to where you started.",
|
||||
target: "main-content",
|
||||
placement: "top",
|
||||
xOffset: "center",
|
||||
yOffset: "300px",
|
||||
onShow: function () {
|
||||
// Hide the arrow on the first navigation bubble
|
||||
$('.hopscotch-bubble-arrow-container').css('visibility', 'hidden');
|
||||
}
|
||||
}
|
||||
],
|
||||
showPrevButton: true,
|
||||
scrollTopMargin: 200,
|
||||
skipIfNoElement: false,
|
||||
onEnd: function() {
|
||||
// reset the active tab if they bail before it is done
|
||||
removeActiveFromTabs();
|
||||
$( "#" + wasActive ).addClass('active');
|
||||
// Return them back where they came from when the tour ends
|
||||
hopscotch.endTour(true);
|
||||
window.location = document.referrer;
|
||||
},
|
||||
onClose: function() {
|
||||
// reset the active tab if they bail before it is done
|
||||
removeActiveFromTabs();
|
||||
$( "#" + wasActive ).addClass('active');
|
||||
// Return them back where they came from if they end the tour early
|
||||
hopscotch.endTour(true);
|
||||
window.location = document.referrer;
|
||||
}
|
||||
};
|
||||
|
||||
// Start tour if button is pressed
|
||||
$("#start-tour").click(function(){
|
||||
hopscotch.endTour(true);
|
||||
hopscotch.startTour(tour);
|
||||
ga('send', {
|
||||
hitType: 'event',
|
||||
eventCategory: 'Tour',
|
||||
eventAction: 'play',
|
||||
eventLabel: 'Navigation Tour'
|
||||
});
|
||||
});
|
||||
|
||||
// Resume tour if already in progress
|
||||
if (hopscotch.getState() != null) {
|
||||
hopscotch.startTour(tour, hopscotch.getState());
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
40
js/track.js
40
js/track.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue