octopress 3.0.0.alpha1 → 3.0.0.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/octopress.rb +3 -2
- data/lib/octopress/commands/build_jekyll.rb +17 -0
- data/lib/octopress/commands/build_stylesheets.rb +1 -1
- data/lib/octopress/commands/install.rb +2 -3
- data/lib/octopress/commands/new.rb +1 -1
- data/lib/octopress/commands/scaffold.rb +3 -2
- data/lib/octopress/commands/serve.rb +1 -1
- data/lib/octopress/configuration.rb +7 -1
- data/lib/octopress/installer.rb +15 -11
- data/lib/octopress/{js_asset_manager.rb → js_assets_manager.rb} +0 -1
- data/lib/octopress/scaffold/site/config.ru +25 -0
- data/lib/octopress/version.rb +1 -1
- data/octopress.gemspec +1 -1
- metadata +5 -161
- data/.themes/classic/.editorconfig +0 -44
- data/.themes/classic/_config/adn-timeline.yml +0 -10
- data/.themes/classic/_config/delicious-feed.yml +0 -4
- data/.themes/classic/_config/deploy/gh_pages.yml +0 -9
- data/.themes/classic/_config/deploy/rsync.yml +0 -14
- data/.themes/classic/_config/disqus.yml +0 -11
- data/.themes/classic/_config/facebook-like.yml +0 -2
- data/.themes/classic/_config/gauges-analytics.yml +0 -6
- data/.themes/classic/_config/github-repos.yml +0 -24
- data/.themes/classic/_config/google-analytics.yml +0 -6
- data/.themes/classic/_config/google-plus.yml +0 -13
- data/.themes/classic/_config/jekyll.yml +0 -37
- data/.themes/classic/_config/pinboard-feed.yml +0 -4
- data/.themes/classic/_config/require-js.yml +0 -19
- data/.themes/classic/_config/theme.yml +0 -54
- data/.themes/classic/_config/twitter-timeline.yml +0 -9
- data/.themes/classic/assets/javascripts/lib/ios-rotate-scaling-fix.js +0 -18
- data/.themes/classic/assets/javascripts/lib/jquery.cookie.js +0 -92
- data/.themes/classic/assets/javascripts/lib/modernizr.js +0 -447
- data/.themes/classic/assets/javascripts/lib/octopress.js +0 -83
- data/.themes/classic/assets/javascripts/modules/adn-timeline.coffee +0 -68
- data/.themes/classic/assets/javascripts/modules/delicious-feed.coffee +0 -38
- data/.themes/classic/assets/javascripts/modules/github-repos.coffee +0 -60
- data/.themes/classic/assets/javascripts/modules/github.coffee +0 -60
- data/.themes/classic/assets/javascripts/modules/helpers.coffee +0 -96
- data/.themes/classic/assets/javascripts/modules/pinboard-feed.coffee +0 -42
- data/.themes/classic/assets/javascripts/modules/site.coffee +0 -11
- data/.themes/classic/assets/stylesheets/_base.scss +0 -5
- data/.themes/classic/assets/stylesheets/_partials.scss +0 -8
- data/.themes/classic/assets/stylesheets/base/_layout.scss +0 -191
- data/.themes/classic/assets/stylesheets/base/_solarized.scss +0 -75
- data/.themes/classic/assets/stylesheets/base/_theme.scss +0 -92
- data/.themes/classic/assets/stylesheets/base/_typography.scss +0 -168
- data/.themes/classic/assets/stylesheets/base/_utilities.scss +0 -27
- data/.themes/classic/assets/stylesheets/custom/_colors.scss +0 -49
- data/.themes/classic/assets/stylesheets/custom/_fonts.scss +0 -10
- data/.themes/classic/assets/stylesheets/custom/_layout.scss +0 -17
- data/.themes/classic/assets/stylesheets/custom/_styles.scss +0 -2
- data/.themes/classic/assets/stylesheets/partials/_archive.scss +0 -77
- data/.themes/classic/assets/stylesheets/partials/_blog.scss +0 -165
- data/.themes/classic/assets/stylesheets/partials/_footer.scss +0 -19
- data/.themes/classic/assets/stylesheets/partials/_header.scss +0 -18
- data/.themes/classic/assets/stylesheets/partials/_navigation.scss +0 -136
- data/.themes/classic/assets/stylesheets/partials/_sharing.scss +0 -73
- data/.themes/classic/assets/stylesheets/partials/_sidebar.scss +0 -4
- data/.themes/classic/assets/stylesheets/partials/_syntax.scss +0 -234
- data/.themes/classic/assets/stylesheets/partials/sidebar/_base.scss +0 -106
- data/.themes/classic/assets/stylesheets/partials/sidebar/_delicious.scss +0 -4
- data/.themes/classic/assets/stylesheets/partials/sidebar/_googleplus.scss +0 -26
- data/.themes/classic/assets/stylesheets/partials/sidebar/_pinboard.scss +0 -12
- data/.themes/classic/assets/stylesheets/plugins/_plugins.scss +0 -5
- data/.themes/classic/assets/stylesheets/screen.scss +0 -11
- data/.themes/classic/source/404.markdown +0 -9
- data/.themes/classic/source/_includes/after_footer.html +0 -7
- data/.themes/classic/source/_includes/archive_post.html +0 -12
- data/.themes/classic/source/_includes/article.html +0 -23
- data/.themes/classic/source/_includes/comments.html +0 -9
- data/.themes/classic/source/_includes/custom/after_footer.html +0 -3
- data/.themes/classic/source/_includes/custom/after_page.html +0 -1
- data/.themes/classic/source/_includes/custom/after_post.html +0 -0
- data/.themes/classic/source/_includes/custom/comments.html +0 -5
- data/.themes/classic/source/_includes/custom/footer.html +0 -4
- data/.themes/classic/source/_includes/custom/head.html +0 -7
- data/.themes/classic/source/_includes/custom/header.html +0 -6
- data/.themes/classic/source/_includes/custom/navigation.html +0 -4
- data/.themes/classic/source/_includes/custom/page_meta.html +0 -1
- data/.themes/classic/source/_includes/custom/post_meta.html +0 -1
- data/.themes/classic/source/_includes/custom/sharing.html +0 -3
- data/.themes/classic/source/_includes/disqus.html +0 -22
- data/.themes/classic/source/_includes/facebook_like.html +0 -10
- data/.themes/classic/source/_includes/feed_entry.xml +0 -10
- data/.themes/classic/source/_includes/footer.html +0 -1
- data/.themes/classic/source/_includes/gauges_analytics.html +0 -15
- data/.themes/classic/source/_includes/google_analytics.html +0 -13
- data/.themes/classic/source/_includes/google_plus_one.html +0 -9
- data/.themes/classic/source/_includes/head.html +0 -33
- data/.themes/classic/source/_includes/header.html +0 -1
- data/.themes/classic/source/_includes/navigation.html +0 -15
- data/.themes/classic/source/_includes/post/author.html +0 -8
- data/.themes/classic/source/_includes/post/categories.html +0 -10
- data/.themes/classic/source/_includes/post/date.html +0 -15
- data/.themes/classic/source/_includes/post/disqus_thread.html +0 -1
- data/.themes/classic/source/_includes/post/meta.html +0 -3
- data/.themes/classic/source/_includes/post/sharing.html +0 -36
- data/.themes/classic/source/_includes/post/title.html +0 -5
- data/.themes/classic/source/_includes/post/variables.html +0 -14
- data/.themes/classic/source/_includes/sidebars/blog_index_default.html +0 -3
- data/.themes/classic/source/_includes/sidebars/page_default.html +0 -4
- data/.themes/classic/source/_includes/sidebars/post_default.html +0 -4
- data/.themes/classic/source/_includes/sidebars/sections/delicious.html +0 -8
- data/.themes/classic/source/_includes/sidebars/sections/github.html +0 -9
- data/.themes/classic/source/_includes/sidebars/sections/google_plus.html +0 -5
- data/.themes/classic/source/_includes/sidebars/sections/pinboard.html +0 -17
- data/.themes/classic/source/_includes/sidebars/sections/recent_posts.html +0 -10
- data/.themes/classic/source/_includes/twitter_sharing.html +0 -11
- data/.themes/classic/source/_layouts/category_feed.xml +0 -24
- data/.themes/classic/source/_layouts/category_index.html +0 -19
- data/.themes/classic/source/_layouts/default.html +0 -14
- data/.themes/classic/source/_layouts/page.html +0 -34
- data/.themes/classic/source/_layouts/post.html +0 -39
- data/.themes/classic/source/archives/index.html +0 -20
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/background.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/blankButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/divider.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/fullscreenButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/fullscreenButtonOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/muteButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/muteButtonOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/normalscreenButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/normalscreenButtonOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/pauseButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/pauseButtonOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/playButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/playButtonOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderBuffer.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderCapLeft.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderCapRight.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderProgress.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderRail.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/unmuteButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/unmuteButtonOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/display/background.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/display/bufferIcon.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/display/muteIcon.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/display/playIcon.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/dock/button.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/glow.xml +0 -115
- data/.themes/classic/source/assets/jwplayer/glow/playlist/item.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/playlist/itemOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/playlist/sliderCapBottom.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/playlist/sliderCapTop.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/playlist/sliderRail.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/playlist/sliderThumb.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/sharing/embedIcon.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/sharing/embedScreen.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/sharing/shareIcon.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/sharing/shareScreen.png +0 -0
- data/.themes/classic/source/assets/jwplayer/player.swf +0 -0
- data/.themes/classic/source/atom.xml +0 -23
- data/.themes/classic/source/images/bird_32_gray.png +0 -0
- data/.themes/classic/source/images/bird_32_gray_fail.png +0 -0
- data/.themes/classic/source/images/code_bg.png +0 -0
- data/.themes/classic/source/images/dotted-border.png +0 -0
- data/.themes/classic/source/images/email.png +0 -0
- data/.themes/classic/source/images/icon/facebook.png +0 -0
- data/.themes/classic/source/images/icon/github.png +0 -0
- data/.themes/classic/source/images/icon/googleplus.png +0 -0
- data/.themes/classic/source/images/icon/twitter-bird.png +0 -0
- data/.themes/classic/source/images/icon/twitter.png +0 -0
- data/.themes/classic/source/images/line-tile.png +0 -0
- data/.themes/classic/source/images/noise.png +0 -0
- data/.themes/classic/source/images/rss.png +0 -0
- data/.themes/classic/source/images/search.png +0 -0
- data/.themes/classic/source/index.html +0 -30
- data/.themes/classic/source/javascripts/jquery.min.js +0 -5
- data/.themes/classic/source/octopress-favicon.png +0 -0
- data/.themes/classic/source/robots.txt +0 -7
@@ -1,44 +0,0 @@
|
|
1
|
-
; This file is for unifying the coding style for different editors and IDEs.
|
2
|
-
; More information at http://EditorConfig.org
|
3
|
-
|
4
|
-
|
5
|
-
; Use 2 spaces for indentation in SCSS, JavaScript, HTML, and XML
|
6
|
-
|
7
|
-
[*.scss]
|
8
|
-
indent_style = space
|
9
|
-
indent_size = 2
|
10
|
-
|
11
|
-
[*.js]
|
12
|
-
indent_style = space
|
13
|
-
indent_size = 2
|
14
|
-
|
15
|
-
[*.html]
|
16
|
-
indent_style = space
|
17
|
-
indent_size = 2
|
18
|
-
|
19
|
-
[*.xml]
|
20
|
-
indent_style = space
|
21
|
-
indent_size = 2
|
22
|
-
|
23
|
-
|
24
|
-
; Use 4 spaces for indentation in Markdown files
|
25
|
-
|
26
|
-
[*.md]
|
27
|
-
indent_style = space
|
28
|
-
indent_size = 4
|
29
|
-
|
30
|
-
[*.markdown]
|
31
|
-
indent_style = space
|
32
|
-
indent_size = 4
|
33
|
-
|
34
|
-
|
35
|
-
; Override default indentation for some library files
|
36
|
-
|
37
|
-
[jwplayer/glow/glow.xml]
|
38
|
-
indent_style = tab
|
39
|
-
|
40
|
-
[libs/jXHR.js]
|
41
|
-
indent_style = tab
|
42
|
-
|
43
|
-
[libs/swfobject-dynamic.js]
|
44
|
-
indent_style = tab
|
@@ -1,14 +0,0 @@
|
|
1
|
-
---
|
2
|
-
# ------------------------ #
|
3
|
-
# RSync Config #
|
4
|
-
# deploy_default: rsync #
|
5
|
-
# ------------------------ #
|
6
|
-
|
7
|
-
# Be sure your public key is listed in your server's ~/.ssh/authorized_keys file
|
8
|
-
ssh_user: "user@domain.com"
|
9
|
-
ssh_port: "22"
|
10
|
-
document_root: "~/website.com/"
|
11
|
-
rsync_delete: false
|
12
|
-
rsync_args: "" # Any extra arguments to pass to rsync
|
13
|
-
rsync_checksum: true # Attempts to only upload changed files
|
14
|
-
deploy_dir: "_deploy"
|
@@ -1,11 +0,0 @@
|
|
1
|
-
---
|
2
|
-
# --------------------------------- #
|
3
|
-
# Disqus Comments Configuration #
|
4
|
-
# --------------------------------- #
|
5
|
-
|
6
|
-
# In order to use Disqus you must both set the short name here, AND set
|
7
|
-
# "use_comments: true" in site.yml.
|
8
|
-
disqus:
|
9
|
-
short_name:
|
10
|
-
show_comment_count: false
|
11
|
-
developer: 0
|
@@ -1,24 +0,0 @@
|
|
1
|
-
---
|
2
|
-
# --------------------------------------- #
|
3
|
-
# Github Sidebar Repos Listing Plugin #
|
4
|
-
# --------------------------------------- #
|
5
|
-
|
6
|
-
# Github repositories
|
7
|
-
github_repos:
|
8
|
-
user:
|
9
|
-
|
10
|
-
# Automatically select repositories based on:
|
11
|
-
count: 4
|
12
|
-
skip_forks: true # Don't show repos you've forked from others
|
13
|
-
sort_by_watchers: true # Show your top watched projects, set to false to sort by last update
|
14
|
-
|
15
|
-
|
16
|
-
# Instead of fetching automatically, specify a list of repositories to include
|
17
|
-
# Setting repos will ignore the automatic settings above
|
18
|
-
repos:
|
19
|
-
|
20
|
-
# Example:
|
21
|
-
# user: imathis
|
22
|
-
# repos:
|
23
|
-
# - octopress
|
24
|
-
# - hsl-color-picker
|
@@ -1,13 +0,0 @@
|
|
1
|
-
---
|
2
|
-
# --------------------------------- #
|
3
|
-
# Google+ Profile Configuration #
|
4
|
-
# --------------------------------- #
|
5
|
-
|
6
|
-
# Hidden: No visible button, just add author information to search results
|
7
|
-
googleplus:
|
8
|
-
user:
|
9
|
-
hidden: false
|
10
|
-
image_size: 32
|
11
|
-
|
12
|
-
# Google+ Sharing
|
13
|
-
plus_one: false
|
@@ -1,37 +0,0 @@
|
|
1
|
-
---
|
2
|
-
# ------------------------ #
|
3
|
-
# Jekyll Configuration #
|
4
|
-
# ------------------------ #
|
5
|
-
|
6
|
-
# If publishing to a subdirectory as in http://site.com/project set 'root: /project'
|
7
|
-
root: /
|
8
|
-
permalink: /:year/:month/:day/:title/
|
9
|
-
source: source # source file directory
|
10
|
-
destination: public # compiled site directory
|
11
|
-
plugins: plugins
|
12
|
-
code_dir: downloads/code
|
13
|
-
category_dir: categories
|
14
|
-
include:
|
15
|
-
- .htaccess
|
16
|
-
markdown: redcarpet
|
17
|
-
redcarpet:
|
18
|
-
extensions:
|
19
|
-
- no_intra_emphasis
|
20
|
-
- strikethrough
|
21
|
-
- autolink
|
22
|
-
- superscript
|
23
|
-
- smart
|
24
|
-
pygments: false # Jekyll's default Python Pygments have been replaced by pygments.rb.
|
25
|
-
# Set to true to use Albino + Python Pygments
|
26
|
-
|
27
|
-
env: production # affects asset compilation
|
28
|
-
post_index_dir: source # directory for your posts index page (if you put your index in source/blog/index.html, set this to 'source/blog')
|
29
|
-
stash_dir: _stash # directory to stash posts for speedy generation
|
30
|
-
posts_dir: _posts # directory for blog files
|
31
|
-
new_post_ext: markdown # default new post file extension when using the new_post task
|
32
|
-
new_page_ext: markdown # default new page file extension when using the new_page task
|
33
|
-
server_host: 0.0.0.0 # host ip address for preview server
|
34
|
-
server_port: 4000 # port for preview server eg. localhost:4000
|
35
|
-
timezone: local # default time and date used to local timezone. Vew supported timezones (under TZ column): http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
36
|
-
paginate_path: page/:num # default path for pagination, eg. page/2/
|
37
|
-
paginate: 10 # Posts per page on the blog index
|
@@ -1,19 +0,0 @@
|
|
1
|
-
---
|
2
|
-
# Asset configuration
|
3
|
-
|
4
|
-
# Javascript assets stored in assets/javascripts and assets/javascripts/lib
|
5
|
-
# Are wrapped with CommonJS functions, combined, uglified and fingerprinted
|
6
|
-
# Supported files: .js, .coffee, .mustache, .eco, .tmpl
|
7
|
-
|
8
|
-
require_js:
|
9
|
-
# Dependiences are added first as globals
|
10
|
-
lib:
|
11
|
-
- lib/modernizr.js
|
12
|
-
- lib/**/*
|
13
|
-
|
14
|
-
# Modules are wrapped with CommonJS functions and must be
|
15
|
-
# Example:
|
16
|
-
# for file: assets/javascripts/modules/some-plugin/awesome.js
|
17
|
-
# require like: var awesome = require('some-plugin/awesome')
|
18
|
-
modules:
|
19
|
-
- modules
|
@@ -1,54 +0,0 @@
|
|
1
|
-
---
|
2
|
-
# ------------------------------- #
|
3
|
-
# Classic Theme Configuration #
|
4
|
-
# ------------------------------- #
|
5
|
-
|
6
|
-
theme:
|
7
|
-
name: classic
|
8
|
-
# path to theme stylesheets directory
|
9
|
-
stylesheets_dir: assets/stylesheets
|
10
|
-
# path to theme javascripts directory
|
11
|
-
javascripts_dir: assets/javascripts
|
12
|
-
|
13
|
-
|
14
|
-
url: http://yoursite.com
|
15
|
-
title: My Octopress Blog
|
16
|
-
subtitle: A blogging framework for hackers.
|
17
|
-
author: Your Name
|
18
|
-
simple_search: http://google.com/search
|
19
|
-
description:
|
20
|
-
|
21
|
-
# Default date format is "ordinal" (resulting in "July 22nd 2007")
|
22
|
-
# You can customize the format as defined in
|
23
|
-
# http://www.ruby-doc.org/core-1.9.2/Time.html#method-i-strftime
|
24
|
-
# Additionally, %o will give you the ordinal representation of the day
|
25
|
-
date_format: "ordinal"
|
26
|
-
|
27
|
-
# RSS / Email (optional) subscription links (change if using something like Feedburner)
|
28
|
-
subscribe_rss: /atom.xml
|
29
|
-
subscribe_email:
|
30
|
-
category_feeds: false
|
31
|
-
# RSS feeds can list your email address if you like
|
32
|
-
email:
|
33
|
-
|
34
|
-
titlecase: true # Converts page and post titles to titlecase
|
35
|
-
|
36
|
-
# To change the layout's default sidebar Add a new sidebar source/_includes/sidebars/your_sidebar.html
|
37
|
-
# then make changes below, eg. post_sidebar: your_sidebar.html
|
38
|
-
blog_index_sidebar: blog_index_default.html
|
39
|
-
page_sidebar: page_default.html
|
40
|
-
post_sidebar: post_default.html
|
41
|
-
|
42
|
-
recent_posts: 5 # Posts in the sidebar Recent Posts section
|
43
|
-
excerpt_link: "Read on →" # "Continue reading" link text at the bottom of excerpted articles
|
44
|
-
excerpt_in_feed: false # Truncate excerpted articles in the atom feed
|
45
|
-
permalink_label: "Permalink"
|
46
|
-
permalink_label_feed: "★ Permalink"
|
47
|
-
linklog_marker: "→"
|
48
|
-
linklog_marker_position: after
|
49
|
-
linklog_marker_position_feed: after
|
50
|
-
standard_post_marker:
|
51
|
-
|
52
|
-
# Disable all comments by default. If you're using Disqus, or a custom comment system, add
|
53
|
-
# "use_comments: true" to your site.yml.
|
54
|
-
use_comments: false
|
@@ -1,18 +0,0 @@
|
|
1
|
-
// iOS scaling bug fix
|
2
|
-
// By @mathias, @cheeaun and @jdalton
|
3
|
-
// Source url: https://gist.github.com/901295
|
4
|
-
|
5
|
-
var addEvent = 'addEventListener',
|
6
|
-
type = 'gesturestart',
|
7
|
-
qsa = 'querySelectorAll',
|
8
|
-
scales = [1, 1],
|
9
|
-
meta = qsa in document ? document[qsa]('meta[name=viewport]') : [];
|
10
|
-
function fix() {
|
11
|
-
meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
|
12
|
-
document.removeEventListener(type, fix, true);
|
13
|
-
}
|
14
|
-
if ((meta = meta[meta.length - 1]) && addEvent in document) {
|
15
|
-
fix();
|
16
|
-
scales = [0.25, 1.6];
|
17
|
-
document[addEvent](type, fix, true);
|
18
|
-
}
|
@@ -1,92 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* jQuery Cookie Plugin v1.3.1
|
3
|
-
* https://github.com/carhartl/jquery-cookie
|
4
|
-
*
|
5
|
-
* Copyright 2013 Klaus Hartl
|
6
|
-
* Released under the MIT license
|
7
|
-
*/
|
8
|
-
(function (factory) {
|
9
|
-
if (typeof define === 'function' && define.amd && define.amd.jQuery) {
|
10
|
-
// AMD. Register as anonymous module.
|
11
|
-
define(['jquery'], factory);
|
12
|
-
} else {
|
13
|
-
// Browser globals.
|
14
|
-
factory(jQuery);
|
15
|
-
}
|
16
|
-
}(function ($) {
|
17
|
-
|
18
|
-
var pluses = /\+/g;
|
19
|
-
|
20
|
-
function raw(s) {
|
21
|
-
return s;
|
22
|
-
}
|
23
|
-
|
24
|
-
function decoded(s) {
|
25
|
-
return decodeURIComponent(s.replace(pluses, ' '));
|
26
|
-
}
|
27
|
-
|
28
|
-
function converted(s) {
|
29
|
-
if (s.indexOf('"') === 0) {
|
30
|
-
// This is a quoted cookie as according to RFC2068, unescape
|
31
|
-
s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
|
32
|
-
}
|
33
|
-
try {
|
34
|
-
return config.json ? JSON.parse(s) : s;
|
35
|
-
} catch(er) {}
|
36
|
-
}
|
37
|
-
|
38
|
-
var config = $.cookie = function (key, value, options) {
|
39
|
-
|
40
|
-
// write
|
41
|
-
if (value !== undefined) {
|
42
|
-
options = $.extend({}, config.defaults, options);
|
43
|
-
|
44
|
-
if (typeof options.expires === 'number') {
|
45
|
-
var days = options.expires, t = options.expires = new Date();
|
46
|
-
t.setDate(t.getDate() + days);
|
47
|
-
}
|
48
|
-
|
49
|
-
value = config.json ? JSON.stringify(value) : String(value);
|
50
|
-
|
51
|
-
return (document.cookie = [
|
52
|
-
encodeURIComponent(key), '=', config.raw ? value : encodeURIComponent(value),
|
53
|
-
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
|
54
|
-
options.path ? '; path=' + options.path : '',
|
55
|
-
options.domain ? '; domain=' + options.domain : '',
|
56
|
-
options.secure ? '; secure' : ''
|
57
|
-
].join(''));
|
58
|
-
}
|
59
|
-
|
60
|
-
// read
|
61
|
-
var decode = config.raw ? raw : decoded;
|
62
|
-
var cookies = document.cookie.split('; ');
|
63
|
-
var result = key ? undefined : {};
|
64
|
-
for (var i = 0, l = cookies.length; i < l; i++) {
|
65
|
-
var parts = cookies[i].split('=');
|
66
|
-
var name = decode(parts.shift());
|
67
|
-
var cookie = decode(parts.join('='));
|
68
|
-
|
69
|
-
if (key && key === name) {
|
70
|
-
result = converted(cookie);
|
71
|
-
break;
|
72
|
-
}
|
73
|
-
|
74
|
-
if (!key) {
|
75
|
-
result[name] = converted(cookie);
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
|
-
return result;
|
80
|
-
};
|
81
|
-
|
82
|
-
config.defaults = {};
|
83
|
-
|
84
|
-
$.removeCookie = function (key, options) {
|
85
|
-
if ($.cookie(key) !== undefined) {
|
86
|
-
$.cookie(key, '', $.extend(options, { expires: -1 }));
|
87
|
-
return true;
|
88
|
-
}
|
89
|
-
return false;
|
90
|
-
};
|
91
|
-
|
92
|
-
}));
|
@@ -1,447 +0,0 @@
|
|
1
|
-
/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
|
2
|
-
* Build: http://modernizr.com/download/#-shiv-cssclasses-addtest-testprop-testallprops-domprefixes-forms_placeholder-load
|
3
|
-
*/
|
4
|
-
;
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
window.Modernizr = (function( window, document, undefined ) {
|
9
|
-
|
10
|
-
var version = '2.6.2',
|
11
|
-
|
12
|
-
Modernizr = {},
|
13
|
-
|
14
|
-
enableClasses = true,
|
15
|
-
|
16
|
-
docElement = document.documentElement,
|
17
|
-
|
18
|
-
mod = 'modernizr',
|
19
|
-
modElem = document.createElement(mod),
|
20
|
-
mStyle = modElem.style,
|
21
|
-
|
22
|
-
inputElem = document.createElement('input') ,
|
23
|
-
|
24
|
-
smile = ':)',
|
25
|
-
|
26
|
-
toString = {}.toString, omPrefixes = 'Webkit Moz O ms',
|
27
|
-
|
28
|
-
cssomPrefixes = omPrefixes.split(' '),
|
29
|
-
|
30
|
-
domPrefixes = omPrefixes.toLowerCase().split(' '),
|
31
|
-
|
32
|
-
|
33
|
-
tests = {},
|
34
|
-
inputs = {},
|
35
|
-
attrs = {},
|
36
|
-
|
37
|
-
classes = [],
|
38
|
-
|
39
|
-
slice = classes.slice,
|
40
|
-
|
41
|
-
featureName,
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
_hasOwnProperty = ({}).hasOwnProperty, hasOwnProp;
|
46
|
-
|
47
|
-
if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) {
|
48
|
-
hasOwnProp = function (object, property) {
|
49
|
-
return _hasOwnProperty.call(object, property);
|
50
|
-
};
|
51
|
-
}
|
52
|
-
else {
|
53
|
-
hasOwnProp = function (object, property) {
|
54
|
-
return ((property in object) && is(object.constructor.prototype[property], 'undefined'));
|
55
|
-
};
|
56
|
-
}
|
57
|
-
|
58
|
-
|
59
|
-
if (!Function.prototype.bind) {
|
60
|
-
Function.prototype.bind = function bind(that) {
|
61
|
-
|
62
|
-
var target = this;
|
63
|
-
|
64
|
-
if (typeof target != "function") {
|
65
|
-
throw new TypeError();
|
66
|
-
}
|
67
|
-
|
68
|
-
var args = slice.call(arguments, 1),
|
69
|
-
bound = function () {
|
70
|
-
|
71
|
-
if (this instanceof bound) {
|
72
|
-
|
73
|
-
var F = function(){};
|
74
|
-
F.prototype = target.prototype;
|
75
|
-
var self = new F();
|
76
|
-
|
77
|
-
var result = target.apply(
|
78
|
-
self,
|
79
|
-
args.concat(slice.call(arguments))
|
80
|
-
);
|
81
|
-
if (Object(result) === result) {
|
82
|
-
return result;
|
83
|
-
}
|
84
|
-
return self;
|
85
|
-
|
86
|
-
} else {
|
87
|
-
|
88
|
-
return target.apply(
|
89
|
-
that,
|
90
|
-
args.concat(slice.call(arguments))
|
91
|
-
);
|
92
|
-
|
93
|
-
}
|
94
|
-
|
95
|
-
};
|
96
|
-
|
97
|
-
return bound;
|
98
|
-
};
|
99
|
-
}
|
100
|
-
|
101
|
-
function setCss( str ) {
|
102
|
-
mStyle.cssText = str;
|
103
|
-
}
|
104
|
-
|
105
|
-
function setCssAll( str1, str2 ) {
|
106
|
-
return setCss(prefixes.join(str1 + ';') + ( str2 || '' ));
|
107
|
-
}
|
108
|
-
|
109
|
-
function is( obj, type ) {
|
110
|
-
return typeof obj === type;
|
111
|
-
}
|
112
|
-
|
113
|
-
function contains( str, substr ) {
|
114
|
-
return !!~('' + str).indexOf(substr);
|
115
|
-
}
|
116
|
-
|
117
|
-
function testProps( props, prefixed ) {
|
118
|
-
for ( var i in props ) {
|
119
|
-
var prop = props[i];
|
120
|
-
if ( !contains(prop, "-") && mStyle[prop] !== undefined ) {
|
121
|
-
return prefixed == 'pfx' ? prop : true;
|
122
|
-
}
|
123
|
-
}
|
124
|
-
return false;
|
125
|
-
}
|
126
|
-
|
127
|
-
function testDOMProps( props, obj, elem ) {
|
128
|
-
for ( var i in props ) {
|
129
|
-
var item = obj[props[i]];
|
130
|
-
if ( item !== undefined) {
|
131
|
-
|
132
|
-
if (elem === false) return props[i];
|
133
|
-
|
134
|
-
if (is(item, 'function')){
|
135
|
-
return item.bind(elem || obj);
|
136
|
-
}
|
137
|
-
|
138
|
-
return item;
|
139
|
-
}
|
140
|
-
}
|
141
|
-
return false;
|
142
|
-
}
|
143
|
-
|
144
|
-
function testPropsAll( prop, prefixed, elem ) {
|
145
|
-
|
146
|
-
var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1),
|
147
|
-
props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' ');
|
148
|
-
|
149
|
-
if(is(prefixed, "string") || is(prefixed, "undefined")) {
|
150
|
-
return testProps(props, prefixed);
|
151
|
-
|
152
|
-
} else {
|
153
|
-
props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' ');
|
154
|
-
return testDOMProps(props, prefixed, elem);
|
155
|
-
}
|
156
|
-
} function webforms() {
|
157
|
-
Modernizr['input'] = (function( props ) {
|
158
|
-
for ( var i = 0, len = props.length; i < len; i++ ) {
|
159
|
-
attrs[ props[i] ] = !!(props[i] in inputElem);
|
160
|
-
}
|
161
|
-
if (attrs.list){
|
162
|
-
attrs.list = !!(document.createElement('datalist') && window.HTMLDataListElement);
|
163
|
-
}
|
164
|
-
return attrs;
|
165
|
-
})('autocomplete autofocus list placeholder max min multiple pattern required step'.split(' '));
|
166
|
-
Modernizr['inputtypes'] = (function(props) {
|
167
|
-
|
168
|
-
for ( var i = 0, bool, inputElemType, defaultView, len = props.length; i < len; i++ ) {
|
169
|
-
|
170
|
-
inputElem.setAttribute('type', inputElemType = props[i]);
|
171
|
-
bool = inputElem.type !== 'text';
|
172
|
-
|
173
|
-
if ( bool ) {
|
174
|
-
|
175
|
-
inputElem.value = smile;
|
176
|
-
inputElem.style.cssText = 'position:absolute;visibility:hidden;';
|
177
|
-
|
178
|
-
if ( /^range$/.test(inputElemType) && inputElem.style.WebkitAppearance !== undefined ) {
|
179
|
-
|
180
|
-
docElement.appendChild(inputElem);
|
181
|
-
defaultView = document.defaultView;
|
182
|
-
|
183
|
-
bool = defaultView.getComputedStyle &&
|
184
|
-
defaultView.getComputedStyle(inputElem, null).WebkitAppearance !== 'textfield' &&
|
185
|
-
(inputElem.offsetHeight !== 0);
|
186
|
-
|
187
|
-
docElement.removeChild(inputElem);
|
188
|
-
|
189
|
-
} else if ( /^(search|tel)$/.test(inputElemType) ){
|
190
|
-
} else if ( /^(url|email)$/.test(inputElemType) ) {
|
191
|
-
bool = inputElem.checkValidity && inputElem.checkValidity() === false;
|
192
|
-
|
193
|
-
} else {
|
194
|
-
bool = inputElem.value != smile;
|
195
|
-
}
|
196
|
-
}
|
197
|
-
|
198
|
-
inputs[ props[i] ] = !!bool;
|
199
|
-
}
|
200
|
-
return inputs;
|
201
|
-
})('search tel url email datetime date month week time datetime-local number range color'.split(' '));
|
202
|
-
}
|
203
|
-
for ( var feature in tests ) {
|
204
|
-
if ( hasOwnProp(tests, feature) ) {
|
205
|
-
featureName = feature.toLowerCase();
|
206
|
-
Modernizr[featureName] = tests[feature]();
|
207
|
-
|
208
|
-
classes.push((Modernizr[featureName] ? '' : 'no-') + featureName);
|
209
|
-
}
|
210
|
-
}
|
211
|
-
|
212
|
-
Modernizr.input || webforms();
|
213
|
-
|
214
|
-
|
215
|
-
Modernizr.addTest = function ( feature, test ) {
|
216
|
-
if ( typeof feature == 'object' ) {
|
217
|
-
for ( var key in feature ) {
|
218
|
-
if ( hasOwnProp( feature, key ) ) {
|
219
|
-
Modernizr.addTest( key, feature[ key ] );
|
220
|
-
}
|
221
|
-
}
|
222
|
-
} else {
|
223
|
-
|
224
|
-
feature = feature.toLowerCase();
|
225
|
-
|
226
|
-
if ( Modernizr[feature] !== undefined ) {
|
227
|
-
return Modernizr;
|
228
|
-
}
|
229
|
-
|
230
|
-
test = typeof test == 'function' ? test() : test;
|
231
|
-
|
232
|
-
if (typeof enableClasses !== "undefined" && enableClasses) {
|
233
|
-
docElement.className += ' ' + (test ? '' : 'no-') + feature;
|
234
|
-
}
|
235
|
-
Modernizr[feature] = test;
|
236
|
-
|
237
|
-
}
|
238
|
-
|
239
|
-
return Modernizr;
|
240
|
-
};
|
241
|
-
|
242
|
-
|
243
|
-
setCss('');
|
244
|
-
modElem = inputElem = null;
|
245
|
-
|
246
|
-
;(function(window, document) {
|
247
|
-
var options = window.html5 || {};
|
248
|
-
|
249
|
-
var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;
|
250
|
-
|
251
|
-
var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;
|
252
|
-
|
253
|
-
var supportsHtml5Styles;
|
254
|
-
|
255
|
-
var expando = '_html5shiv';
|
256
|
-
|
257
|
-
var expanID = 0;
|
258
|
-
|
259
|
-
var expandoData = {};
|
260
|
-
|
261
|
-
var supportsUnknownElements;
|
262
|
-
|
263
|
-
(function() {
|
264
|
-
try {
|
265
|
-
var a = document.createElement('a');
|
266
|
-
a.innerHTML = '<xyz></xyz>';
|
267
|
-
supportsHtml5Styles = ('hidden' in a);
|
268
|
-
|
269
|
-
supportsUnknownElements = a.childNodes.length == 1 || (function() {
|
270
|
-
(document.createElement)('a');
|
271
|
-
var frag = document.createDocumentFragment();
|
272
|
-
return (
|
273
|
-
typeof frag.cloneNode == 'undefined' ||
|
274
|
-
typeof frag.createDocumentFragment == 'undefined' ||
|
275
|
-
typeof frag.createElement == 'undefined'
|
276
|
-
);
|
277
|
-
}());
|
278
|
-
} catch(e) {
|
279
|
-
supportsHtml5Styles = true;
|
280
|
-
supportsUnknownElements = true;
|
281
|
-
}
|
282
|
-
|
283
|
-
}()); function addStyleSheet(ownerDocument, cssText) {
|
284
|
-
var p = ownerDocument.createElement('p'),
|
285
|
-
parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement;
|
286
|
-
|
287
|
-
p.innerHTML = 'x<style>' + cssText + '</style>';
|
288
|
-
return parent.insertBefore(p.lastChild, parent.firstChild);
|
289
|
-
}
|
290
|
-
|
291
|
-
function getElements() {
|
292
|
-
var elements = html5.elements;
|
293
|
-
return typeof elements == 'string' ? elements.split(' ') : elements;
|
294
|
-
}
|
295
|
-
|
296
|
-
function getExpandoData(ownerDocument) {
|
297
|
-
var data = expandoData[ownerDocument[expando]];
|
298
|
-
if (!data) {
|
299
|
-
data = {};
|
300
|
-
expanID++;
|
301
|
-
ownerDocument[expando] = expanID;
|
302
|
-
expandoData[expanID] = data;
|
303
|
-
}
|
304
|
-
return data;
|
305
|
-
}
|
306
|
-
|
307
|
-
function createElement(nodeName, ownerDocument, data){
|
308
|
-
if (!ownerDocument) {
|
309
|
-
ownerDocument = document;
|
310
|
-
}
|
311
|
-
if(supportsUnknownElements){
|
312
|
-
return ownerDocument.createElement(nodeName);
|
313
|
-
}
|
314
|
-
if (!data) {
|
315
|
-
data = getExpandoData(ownerDocument);
|
316
|
-
}
|
317
|
-
var node;
|
318
|
-
|
319
|
-
if (data.cache[nodeName]) {
|
320
|
-
node = data.cache[nodeName].cloneNode();
|
321
|
-
} else if (saveClones.test(nodeName)) {
|
322
|
-
node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode();
|
323
|
-
} else {
|
324
|
-
node = data.createElem(nodeName);
|
325
|
-
}
|
326
|
-
|
327
|
-
return node.canHaveChildren && !reSkip.test(nodeName) ? data.frag.appendChild(node) : node;
|
328
|
-
}
|
329
|
-
|
330
|
-
function createDocumentFragment(ownerDocument, data){
|
331
|
-
if (!ownerDocument) {
|
332
|
-
ownerDocument = document;
|
333
|
-
}
|
334
|
-
if(supportsUnknownElements){
|
335
|
-
return ownerDocument.createDocumentFragment();
|
336
|
-
}
|
337
|
-
data = data || getExpandoData(ownerDocument);
|
338
|
-
var clone = data.frag.cloneNode(),
|
339
|
-
i = 0,
|
340
|
-
elems = getElements(),
|
341
|
-
l = elems.length;
|
342
|
-
for(;i<l;i++){
|
343
|
-
clone.createElement(elems[i]);
|
344
|
-
}
|
345
|
-
return clone;
|
346
|
-
}
|
347
|
-
|
348
|
-
function shivMethods(ownerDocument, data) {
|
349
|
-
if (!data.cache) {
|
350
|
-
data.cache = {};
|
351
|
-
data.createElem = ownerDocument.createElement;
|
352
|
-
data.createFrag = ownerDocument.createDocumentFragment;
|
353
|
-
data.frag = data.createFrag();
|
354
|
-
}
|
355
|
-
|
356
|
-
|
357
|
-
ownerDocument.createElement = function(nodeName) {
|
358
|
-
if (!html5.shivMethods) {
|
359
|
-
return data.createElem(nodeName);
|
360
|
-
}
|
361
|
-
return createElement(nodeName, ownerDocument, data);
|
362
|
-
};
|
363
|
-
|
364
|
-
ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' +
|
365
|
-
'var n=f.cloneNode(),c=n.createElement;' +
|
366
|
-
'h.shivMethods&&(' +
|
367
|
-
getElements().join().replace(/\w+/g, function(nodeName) {
|
368
|
-
data.createElem(nodeName);
|
369
|
-
data.frag.createElement(nodeName);
|
370
|
-
return 'c("' + nodeName + '")';
|
371
|
-
}) +
|
372
|
-
');return n}'
|
373
|
-
)(html5, data.frag);
|
374
|
-
} function shivDocument(ownerDocument) {
|
375
|
-
if (!ownerDocument) {
|
376
|
-
ownerDocument = document;
|
377
|
-
}
|
378
|
-
var data = getExpandoData(ownerDocument);
|
379
|
-
|
380
|
-
if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) {
|
381
|
-
data.hasCSS = !!addStyleSheet(ownerDocument,
|
382
|
-
'article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}' +
|
383
|
-
'mark{background:#FF0;color:#000}'
|
384
|
-
);
|
385
|
-
}
|
386
|
-
if (!supportsUnknownElements) {
|
387
|
-
shivMethods(ownerDocument, data);
|
388
|
-
}
|
389
|
-
return ownerDocument;
|
390
|
-
} var html5 = {
|
391
|
-
|
392
|
-
'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video',
|
393
|
-
|
394
|
-
'shivCSS': (options.shivCSS !== false),
|
395
|
-
|
396
|
-
'supportsUnknownElements': supportsUnknownElements,
|
397
|
-
|
398
|
-
'shivMethods': (options.shivMethods !== false),
|
399
|
-
|
400
|
-
'type': 'default',
|
401
|
-
|
402
|
-
'shivDocument': shivDocument,
|
403
|
-
|
404
|
-
createElement: createElement,
|
405
|
-
|
406
|
-
createDocumentFragment: createDocumentFragment
|
407
|
-
}; window.html5 = html5;
|
408
|
-
|
409
|
-
shivDocument(document);
|
410
|
-
|
411
|
-
}(this, document));
|
412
|
-
|
413
|
-
Modernizr._version = version;
|
414
|
-
|
415
|
-
Modernizr._domPrefixes = domPrefixes;
|
416
|
-
Modernizr._cssomPrefixes = cssomPrefixes;
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
Modernizr.testProp = function(prop){
|
421
|
-
return testProps([prop]);
|
422
|
-
};
|
423
|
-
|
424
|
-
Modernizr.testAllProps = testPropsAll;
|
425
|
-
|
426
|
-
docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') +
|
427
|
-
|
428
|
-
(enableClasses ? ' js ' + classes.join(' ') : '');
|
429
|
-
|
430
|
-
return Modernizr;
|
431
|
-
|
432
|
-
})(this, this.document);
|
433
|
-
/*yepnope1.5.4|WTFPL*/
|
434
|
-
(function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}})(this,document);
|
435
|
-
Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0));};
|
436
|
-
// testing for placeholder attribute in inputs and textareas
|
437
|
-
// re-using Modernizr.input if available
|
438
|
-
|
439
|
-
Modernizr.addTest('placeholder', function(){
|
440
|
-
|
441
|
-
return !!( 'placeholder' in ( Modernizr.input || document.createElement('input') ) &&
|
442
|
-
'placeholder' in ( Modernizr.textarea || document.createElement('textarea') )
|
443
|
-
);
|
444
|
-
|
445
|
-
});
|
446
|
-
;
|
447
|
-
|