├── _config.yml
├── runserver.py
├── config.py
├── .gitignore
├── flaskblog
├── config.py
├── static
│ ├── style.css
│ ├── javascript.js
│ ├── js
│ │ ├── bootstrap.min.js
│ │ └── bootstrap.js
│ └── css
│ │ └── bootstrap.min.css
├── helper.py
├── templates
│ ├── search.html
│ ├── welcome.html
│ ├── login.html
│ ├── addtag.html
│ ├── edittag.html
│ ├── tags.html
│ ├── editpost.html
│ ├── post.html
│ ├── addpost.html
│ ├── signup.html
│ ├── posts.html
│ └── index.html
├── __init__.py
├── README.md
├── form.py
├── models.py
└── views.py
└── requirements.txt
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-minimal
--------------------------------------------------------------------------------
/runserver.py:
--------------------------------------------------------------------------------
1 | from flaskblog import app
2 | app.run(debug=True)
--------------------------------------------------------------------------------
/config.py:
--------------------------------------------------------------------------------
1 | #configuration
2 | SECRET_KEY = 'dlamichhane'
3 | CSRF_ENABLED = True
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs and databases #
2 | ######################
3 | *.log
4 | *.sql
5 | *.pyc
--------------------------------------------------------------------------------
/flaskblog/config.py:
--------------------------------------------------------------------------------
1 | #configuration
2 | SECRET_KEY = 'dlamichhane'
3 | CSRF_ENABLED = True
4 | PER_PAGE = 2
5 | MAX_SEARCH_RESULTS = 10
6 | WHOOSH_ENABLED = False
--------------------------------------------------------------------------------
/flaskblog/static/style.css:
--------------------------------------------------------------------------------
1 | .entries li {
2 | list-style:none;
3 | }
4 |
5 | span {
6 | margin:0 60px;
7 | background:#faf;
8 | }
9 |
10 | span:first-of-type{
11 | margin-left:0;
12 | }
--------------------------------------------------------------------------------
/flaskblog/helper.py:
--------------------------------------------------------------------------------
1 | from flask import request, url_for
2 |
3 | def url_for_other_page(page):
4 | args = request.view_args.copy()
5 | args['page'] = page
6 | return url_for(request.endpoint, **args)
7 |
--------------------------------------------------------------------------------
/flaskblog/static/javascript.js:
--------------------------------------------------------------------------------
1 | $(document).ready(function () {
2 | $('ul.nav > li').click(function (e) {
3 | // e.preventDefault();
4 | $('ul.nav > li').removeClass('active');
5 | $(this).addClass('active');
6 | });
7 | });
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | Flask==0.10.1
2 | Flask-Login==0.2.6
3 | Flask-WTF==0.8.4
4 | git+git://github.com/miguelgrinberg/Flask-WhooshAlchemy
5 | Jinja2==2.6
6 | SQLAlchemy==0.7.9
7 | Werkzeug==0.8.3
8 | decorator==3.4.0
9 | gunicorn==0.17.2
10 | psycopg2==2.5
11 | sqlalchemy-migrate==0.7.2
12 |
--------------------------------------------------------------------------------
/flaskblog/templates/search.html:
--------------------------------------------------------------------------------
1 | {% extends "index.html" %}
2 |
3 | {% block content %}
4 |
Search results for "{{query}}":
5 |
6 | {% for post in results %}
7 | {{ post.title }} {{ post.text[:60]|safe }}
8 | Read more
9 | {% endfor %}
10 |
11 | {% endblock %}
--------------------------------------------------------------------------------
/flaskblog/templates/welcome.html:
--------------------------------------------------------------------------------
1 | {{% extends "flaskblog/index.html" %}
2 |
3 | {% block title %}
4 |
5 | Welcome people!!!
6 | Browser the posts/post, add/edit/delete the post by assinging tag/tags. You can add/edit/remove the tag with full text searching mechanism for the post. Easy view of posts by pagination if there are lots of posts
7 |
8 | {% endblock %}
9 |
10 |
--------------------------------------------------------------------------------
/flaskblog/templates/login.html:
--------------------------------------------------------------------------------
1 | {% extends "index.html" %}
2 |
3 | {% block title %}Login{% endblock %}
4 | {% block nav_home %}active{% endblock %}
5 |
6 | {% block content %}
7 | Login
8 |
16 | {% endblock %}
--------------------------------------------------------------------------------
/flaskblog/templates/addtag.html:
--------------------------------------------------------------------------------
1 | {% extends "index.html" %}
2 |
3 | {% block content %}
4 | Add Post
5 |
6 | {% for message in form.tag.errors %}
7 | {{ message }}
8 | {% endfor %}
9 |
10 |
18 |
19 | {% endblock %}
--------------------------------------------------------------------------------
/flaskblog/templates/edittag.html:
--------------------------------------------------------------------------------
1 | {% extends "index.html" %}
2 |
3 | {% block content %}
4 | Edit Tag
5 |
6 | {% for message in form.tag.errors %}
7 | {{ message }}
8 | {% endfor %}
9 |
10 |
18 |
19 | {% endblock %}
--------------------------------------------------------------------------------
/flaskblog/templates/tags.html:
--------------------------------------------------------------------------------
1 | {% extends "index.html" %}
2 |
3 | {% block content %}
4 |
5 |
6 | Tags Remarks
7 | {% for tag in tags %}
8 |
9 | {{ tag.tag }}
10 |
11 | {% if current_user.userd == 'admin' %}
12 | Edit | Delete
13 | {% endif %}
14 |
15 |
16 | {% else %}
17 | Unbelievable. No entries here so far
18 | {% endfor %}
19 |
20 | {% endblock %}
21 |
22 |
--------------------------------------------------------------------------------
/flaskblog/__init__.py:
--------------------------------------------------------------------------------
1 | #imports
2 | from flask import Flask
3 | from flask.ext.login import LoginManager, UserMixin
4 | from helper import url_for_other_page
5 | import os
6 |
7 | basedir = os.path.abspath(os.path.dirname(__file__))
8 |
9 | #Application creation
10 | app = Flask(__name__)
11 | app.config.from_object('config')
12 | app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://scott:tiger@localhost/flaskblog'
13 | app.config['WHOOSH_BASE'] = os.path.join(basedir, 'search.db')
14 | app.jinja_env.globals['url_for_other_page'] = url_for_other_page
15 |
16 | login_manager = LoginManager()
17 | login_manager.login_view = "login"
18 | login_manager.init_app(app)
19 |
20 | from models import db
21 | db.app = app
22 | db.init_app(app)
23 | from flaskblog import views, models
--------------------------------------------------------------------------------
/flaskblog/templates/editpost.html:
--------------------------------------------------------------------------------
1 | {% extends "index.html" %}
2 |
3 | {% block content %}
4 | Edit Post
5 |
6 | {% for message in form.title.errors %}
7 | {{ message }}
8 | {% endfor %}
9 |
10 | {% for message in form.text.errors %}
11 | {{ message }}
12 | {% endfor %}
13 |
14 |
26 |
27 | {% endblock %}
--------------------------------------------------------------------------------
/flaskblog/templates/post.html:
--------------------------------------------------------------------------------
1 | {% extends "index.html" %}
2 |
3 | {% block content %}
4 |
5 | {{ post.title }} {{ post.text|safe }}
6 |
7 | Tags:
8 | {% if not post.tags %}
9 | No tag assigned
10 | {% else %}
11 | {% for tag in post.tags %}
12 | {{ tag.tag }}
13 | {% endfor %}
14 | {% endif %}
15 |
16 | {% if current_user.userd == 'admin' %}
17 | Change:
18 | Edit | Delete
19 | {% endif %}
20 |
21 | Back
22 |
23 | {% endblock %}
--------------------------------------------------------------------------------
/flaskblog/templates/addpost.html:
--------------------------------------------------------------------------------
1 | {% extends "index.html" %}
2 |
3 | {% block content %}
4 | Add Post
5 |
6 | {% for message in form.title.errors %}
7 | {{ message }}
8 | {% endfor %}
9 |
10 | {% for message in form.text.errors %}
11 | {{ message }}
12 | {% endfor %}
13 |
14 |
26 |
27 | {% endblock %}
--------------------------------------------------------------------------------
/flaskblog/templates/signup.html:
--------------------------------------------------------------------------------
1 | {% extends "index.html" %}
2 |
3 | {% block content %}
4 | Sign up
5 |
6 | {% for message in form.username.errors %}
7 | {{ message }}
8 | {% endfor %}
9 |
10 | {% for message in form.email.errors %}
11 | {{ message }}
12 | {% endfor %}
13 |
14 | {% for message in form.password.errors %}
15 | {{ message }}
16 | {% endfor %}
17 |
18 |
19 | {{ form.hidden_tag() }}
20 |
21 | {{ form.username.label }}
22 | {{ form.username }}
23 | {{ form.email.label }}
24 | {{ form.email }}
25 | {{ form.password.label }}
26 | {{ form.password }}
27 | {{ form.role_type.label }}
28 | {{ form.role_type }}
29 | {{ form.submit }}
30 |
31 |
32 |
33 | {% endblock %}
--------------------------------------------------------------------------------
/flaskblog/README.md:
--------------------------------------------------------------------------------
1 | == Welcome to flaskblog
2 |
3 | - pip install flask-sqlalchemy
4 |
5 | - pip instal postgresql
6 | - pip install sqlalchemy
7 | - pip install flask
8 | - pip install psycopg2
9 | - pip install flask-login
10 |
11 | If problem on installing psycopg2, install first
12 | sudo apt-get build-dep python-psycopg2
13 | sudo apt-get install libpq-dev
14 | and
15 | run the below command on the virutal environment
16 |
17 | - pip install psycopg2
18 |
19 | - pip install flask-wtf
20 | - pip install Flask-WhooshAlchemy
21 |
22 | == Not used
23 | - pip sqlalchemy-migrate
24 |
25 |
26 |
27 | == DATABASE FILE
28 | Use Postgres database
29 |
30 | == Use below text hint to create the database
31 |
32 | postgresql://scott:tiger@localhost/flaskblog
33 |
34 | ```ruby
35 | DROP TABLE if exists admin, posts, tags, posts_tags;
36 |
37 | CREATE TABLE admin (
38 | id SERIAL PRIMARY KEY,
39 | userd VARCHAR(100)
40 | );
41 |
42 | INSERT INTO admin (userd) VALUES ('admin');
43 |
44 | CREATE TABLE posts (
45 | id SERIAL PRIMARY KEY,
46 | title VARCHAR(120) NOT NULL,
47 | text TEXT NOT NULL
48 | );
49 |
50 | CREATE TABLE tags (
51 | id SERIAL PRIMARY KEY,
52 | tag VARCHAR(100)
53 | );
54 |
55 | CREATE TABLE posts_tags (
56 | post_id INTEGER references posts (id) ON UPDATE CASCADE ON DELETE CASCADE,
57 | tag_id INTEGER references tags(id) ON UPDATE CASCADE ON DELETE CASCADE,
58 | CONSTRAINT posts_tags_pkey PRIMARY KEY (post_id,tag_id)
59 | );
60 | ```
--------------------------------------------------------------------------------
/flaskblog/form.py:
--------------------------------------------------------------------------------
1 | from flask.ext.wtf import Form, TextField, TextAreaField, SelectField, SelectMultipleField, SubmitField, validators, ValidationError, PasswordField
2 | from models import db, Admin
3 |
4 |
5 | class LoginForm(Form):
6 | admin = TextField('Admin', [validators.Required()])
7 |
8 | def __init__(self, *args, **kwargs):
9 | kwargs['csrf_enabled'] = False
10 | Form.__init__(self, *args, **kwargs)
11 |
12 | def validate(self):
13 | lf = Form.validate(self)
14 | if not lf:
15 | return False
16 |
17 | admin = Admin.query.filter_by(userd=self.admin.data).first()
18 | if admin is None:
19 | self.admin.errors.append('Unknown admin')
20 | return False
21 |
22 | self.admin = admin
23 | return True
24 |
25 |
26 | class PostForm(Form):
27 | title = TextField("Title", [validators.Required("Please enter the title")])
28 | text = TextAreaField("Text", [validators.Required("Please provide the content for the title")])
29 | tag = SelectMultipleField("Tag")
30 | submit = SubmitField("Create Post")
31 |
32 | def __init__(self, *args, **kwargs):
33 | kwargs['csrf_enabled'] = False
34 | Form.__init__(self, *args, **kwargs)
35 |
36 |
37 | class TagForm(Form):
38 | tag = TextField('Tag Name', [validators.Required('Enter tag name')])
39 | submit = SubmitField("Create Tag")
40 |
41 | def __init__(self, *args, **kwargs):
42 | kwargs['csrf_enabled'] = False
43 | Form.__init__(self, *args, **kwargs)
44 |
45 |
46 | class SearchForm(Form):
47 | search = TextField('Search', [validators.Required('Enter the text to search')])
--------------------------------------------------------------------------------
/flaskblog/templates/posts.html:
--------------------------------------------------------------------------------
1 | {% extends "index.html" %}
2 |
3 | {% block content %}
4 |
5 |
6 | {% for post in posts %}
7 | {{ post.title }} {{ post.text[:60]|safe }}
8 | Read more
9 |
10 | Tags:
11 | {% if not post.tags %}
12 | No tag assigned
13 | {% else %}
14 | {% for tag in post.tags %}
15 | {{ tag.tag }}
16 | {% endfor %}
17 | {% endif %}
18 |
19 |
20 | {% if current_user.userd == 'admin' %}
21 | Change:
22 | Edit | Delete
23 | {% endif %}
24 |
25 | {% else %}
26 | Unbelievable. No entries here so far
27 | {% endfor %}
28 |
29 |
30 |
49 |
50 |
51 |
52 |
53 | {% endblock %}
--------------------------------------------------------------------------------
/flaskblog/templates/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Blog
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
17 |
38 |
39 | {% with messages = get_flashed_messages() %}
40 | {% if messages %}
41 |
42 | {% for message in messages %}
43 | {{ message }}
44 | {% endfor %}
45 |
46 | {% endif %}
47 | {% endwith %}
48 |
49 | {% block title %}{% endblock %}
50 |
51 |
52 | {% block content %}
53 | {% endblock %}
54 |
55 |
56 |
--------------------------------------------------------------------------------
/flaskblog/models.py:
--------------------------------------------------------------------------------
1 | from flask.ext.sqlalchemy import SQLAlchemy
2 | from werkzeug import generate_password_hash, check_password_hash
3 | from flaskblog import app
4 | from config import WHOOSH_ENABLED
5 | from math import ceil
6 |
7 | db = SQLAlchemy(app)
8 |
9 |
10 | class Admin(db.Model):
11 | __tablename__ = 'admin'
12 | id = db.Column(db.Integer, primary_key=True)
13 | userd = db.Column(db.String(100))
14 |
15 | def __init__(self, user):
16 | self.user = user
17 |
18 | def __repr__(self):
19 | return "" % (self.userd)
20 |
21 | def is_authenticated(self):
22 | return True
23 |
24 | def is_active(self):
25 | return True
26 |
27 | def is_anonymous(self):
28 | return False
29 |
30 | def get_id(self):
31 | return unicode(self.id)
32 |
33 | tags = db.Table('posts_tags',
34 | db.Column('tag_id', db.Integer, db.ForeignKey('tags.id')),
35 | db.Column('post_id', db.Integer, db.ForeignKey('posts.id'))
36 | )
37 |
38 |
39 | class Post(db.Model):
40 | __tablename__ = 'posts'
41 | __searchable__ = ['text']
42 |
43 | id = db.Column(db.Integer, primary_key=True)
44 | title = db.Column(db.String(120))
45 | text = db.Column(db.Text,)
46 | tags = db.relationship('Tag', secondary=tags, backref=db.backref('posts', lazy='dynamic'))
47 |
48 | def __init__(self, title, text, tags):
49 | self.title = title
50 | self.text = text
51 | self.tags = tags
52 |
53 | def __repr__(self):
54 | return '' %(self.title, self.text, self.tags)
55 |
56 |
57 | class Tag(db.Model):
58 | __tablename__ = 'tags'
59 | id = db.Column(db.Integer, primary_key=True)
60 | tag = db.Column(db.String(120))
61 |
62 | def __init__(self, tag):
63 | self.tag = tag
64 |
65 | def __repr__(self):
66 | return '' % self.tag
67 |
68 |
69 | class Pagination(object):
70 |
71 | def __init__(self, page, per_page, total_count):
72 | self.page = page
73 | self.per_page = per_page
74 | self.total_count = total_count
75 |
76 | @property
77 | def pages(self):
78 | return int(ceil(self.total_count / float(self.per_page)))
79 |
80 | @property
81 | def has_prev(self):
82 | return self.page > 1
83 |
84 | @property
85 | def has_next(self):
86 | return self.page < self.pages
87 |
88 | def iter_pages(self, left_edge=2, left_current=2,
89 | right_current=5, right_edge=2):
90 | last = 0
91 | for num in xrange(1, self.pages + 1):
92 | if num <= left_edge or \
93 | (num > self.page - left_current - 1 and \
94 | num < self.page + right_current) or \
95 | num > self.pages - right_edge:
96 |
97 | if last + 1 != num:
98 | yield None
99 | yield num
100 | last = num
101 |
102 | if WHOOSH_ENABLED:
103 | import flask.ext.whooshalchemy as whooshalchemy
104 | whooshalchemy.whoosh_index(app, Post)
--------------------------------------------------------------------------------
/flaskblog/views.py:
--------------------------------------------------------------------------------
1 | #imports
2 | from flaskblog import app, db, login_manager
3 | from flask import render_template, request, flash, url_for, g, session, redirect
4 | from form import LoginForm, PostForm, TagForm, SearchForm
5 | from models import db, Admin, Tag, Post, Pagination
6 | from flask.ext.login import login_user, logout_user, current_user, login_required
7 | from config import PER_PAGE, MAX_SEARCH_RESULTS
8 |
9 |
10 | @app.route('/')
11 | @app.route('/index')
12 | def index():
13 | return render_template('index.html')
14 |
15 |
16 | @app.route('/posts', defaults={'page': 1})
17 | @app.route('/posts/page/')
18 | def posts(page):
19 | count = db.session.query(Post).count()
20 | offset = (page - 1) * PER_PAGE
21 | posts = Post.query.limit(PER_PAGE).offset(offset)
22 |
23 | if not posts and page != 1:
24 | abort(404)
25 | pagination = Pagination(page, PER_PAGE, count)
26 | return render_template('posts.html', pagination=pagination, posts=posts)
27 |
28 |
29 | @login_manager.user_loader
30 | def load_user(user):
31 | return Admin.query.get(user)
32 |
33 |
34 | @app.before_request
35 | def before_request():
36 | g.user = current_user
37 | g.search_form = SearchForm()
38 |
39 |
40 | @app.route("/login", methods=["GET", "POST"])
41 | def login():
42 | form = LoginForm()
43 | if form.validate_on_submit():
44 | login_user(form.admin)
45 | flash("Logged in successfully.")
46 | return redirect(request.args.get("next") or url_for("index"))
47 | return render_template("login.html", form=form)
48 |
49 |
50 | @app.route("/logout")
51 | @login_required
52 | def logout():
53 | flash("Logout successfully")
54 | logout_user()
55 | return redirect(url_for("index"))
56 |
57 |
58 | @app.route('/post/')
59 | def post(id):
60 | post = Post.query.filter_by(id=id).first()
61 | return render_template('post.html', post=post)
62 |
63 |
64 | @app.route('/addpost', methods=["GET", "POST"])
65 | @login_required
66 | def addpost():
67 | form = PostForm(csrf_enabled=False)
68 | form.tag.choices = [(str(tag.id), str(tag.tag)) for tag in Tag.query.all()]
69 | if request.method == "POST":
70 | if form.validate() == False:
71 | return render_template('addpost.html', form = form)
72 | else:
73 | tags = [ Tag.query.filter_by(id=tag_id).first() for tag_id in form.tag.data ]
74 | post = Post(form.title.data, form.text.data, tags)
75 | db.session.add(post)
76 | db.session.commit()
77 | flash('Posted successfully')
78 | return render_template('index.html')
79 | return render_template("addpost.html", form = form)
80 |
81 |
82 | @app.route('/editpost/', methods=['GET', 'POST'])
83 | @login_required
84 | def edit_post(id):
85 | if request.method == 'POST':
86 | form = PostForm()
87 | form.tag.choices = [(str(tag.id), str(tag.tag)) for tag in Tag.query.all()]
88 | if form.validate() == False:
89 | return render_template('editpost.html', form=form)
90 | else:
91 | tags = [ Tag.query.filter_by(id=tag_id).first() for tag_id in form.tag.data ]
92 | post = Post.query.filter_by(id=id).first()
93 | post.title = form.title.data
94 | post.text = form.text.data
95 | post.tags = tags
96 | db.session.merge(post)
97 | db.session.commit()
98 | flash('Post updated successfully')
99 | return render_template('index.html')
100 | elif request.method == 'GET':
101 | post = Post.query.filter_by(id=id).first()
102 | form = PostForm(id=post.id, title=post.title, text=post.text)
103 | form.tag.choices = [(str(tag.id), str(tag.tag)) for tag in Tag.query.all()]
104 | return render_template('editpost.html', post_id= post.id, form=form)
105 |
106 |
107 | @app.route('/deletepost/')
108 | @login_required
109 | def delete_post(id):
110 | post = Post.query.filter_by(id=id).first()
111 | db.session.delete(post)
112 | db.session.commit()
113 | return render_template('index.html')
114 |
115 |
116 | @app.route('/addtag', methods=['GET', 'POST'])
117 | @login_required
118 | def addtag():
119 | form = TagForm()
120 | if request.method == "POST":
121 | if form.validate() == False:
122 | return render_template('addtag.html', form=form)
123 | else:
124 | tag = Tag(form.tag.data)
125 | db.session.add(tag)
126 | db.session.commit()
127 | flash('Tag created successfully')
128 | return render_template('tags.html', tags = Tag.query.all())
129 | return render_template("addtag.html", form=form)
130 |
131 |
132 | @app.route('/tags', methods=['GET', 'POST'])
133 | def tags():
134 | tags = Tag.query.all()
135 | if tags is None:
136 | flash("No tag created yet")
137 | return render_template('addtag.html')
138 | return render_template('tags.html', tags=tags)
139 |
140 |
141 | @app.route('/tags/', methods=['GET', 'POST'])
142 | @login_required
143 | def edit_tag(id):
144 | if request.method == 'POST':
145 | form = TagForm()
146 | if form.validate() == True:
147 | tag = Tag.query.filter_by(id=id).first()
148 | tag.tag = form.tag.data
149 | db.session.merge(tag)
150 | db.session.commit()
151 | flash('Tag updated successfully')
152 | return render_template('tags.html', tags = Tag.query.all())
153 | elif request.method == 'GET':
154 | tag = Tag.query.get(id)
155 | form = TagForm(id=tag.id, tag=tag.tag)
156 | return render_template('edittag.html', tag_id= tag.id, form=form)
157 |
158 |
159 | @app.route('/delete_tag/')
160 | @login_required
161 | def delete_tag(id):
162 | tag = Tag.query.filter_by(id=id).first()
163 | db.session.delete(tag)
164 | db.session.commit()
165 | return render_template('tags.html', tags = Tag.query.all())
166 |
167 |
168 | @app.route('/search', methods=['POST'])
169 | @login_required
170 | def search():
171 | if request.method == 'POST':
172 | if g.search_form.validate() == False:
173 | return render_template('index.html', form = g.search_form)
174 | else:
175 | results = Post.query.whoosh_search(g.search_form.search.data, MAX_SEARCH_RESULTS).all()
176 | return render_template('search.html', query = g.search_form.search.data, results = results)
177 | return render_template('index.html', form = form)
--------------------------------------------------------------------------------
/flaskblog/static/js/bootstrap.min.js:
--------------------------------------------------------------------------------
1 | /**
2 | * bootstrap.js v3.0.0 by @fat and @mdo
3 | * Copyright 2013 Twitter Inc.
4 | * http://www.apache.org/licenses/LICENSE-2.0
5 | */
6 | if(!jQuery)throw new Error("Bootstrap requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]}}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(window.jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(window.jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d)};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.is("input")?"val":"html",e=c.data();a+="Text",e.resetText||c.data("resetText",c[d]()),c[d](e[a]||this.options[a]),setTimeout(function(){"loadingText"==a?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons"]');if(a.length){var b=this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change");"radio"===b.prop("type")&&a.find(".active").removeClass("active")}this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(window.jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover"},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;this.sliding=!0,f&&this.pause(),e=e.length?e:this.$element.find(".item")[h]();var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});if(!e.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(j),j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(j),j.isDefaultPrevented())return;d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return f&&this.cycle(),this}};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(window.jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .accordion-group > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?(this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350),void 0):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find("[data-toggle=collapse][data-parent="+i+"]").not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(window.jQuery),+function(a){"use strict";function b(){a(d).remove(),a(e).each(function(b){var d=c(a(this));d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown")),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown"))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){if("ontouchstart"in document.documentElement&&a('
').insertAfter(a(this)).on("click",b),f.trigger(d=a.Event("show.bs.dropdown")),d.isDefaultPrevented())return;f.toggleClass("open").trigger("shown.bs.dropdown")}return e.focus(),!1}},f.prototype.keydown=function(b){if(/(38|40|27)/.test(b.keyCode)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var f=c(d),g=f.hasClass("open");if(!g||g&&27==b.keyCode)return 27==b.which&&f.find(e).focus(),d.click();var h=a("[role=menu] li:not(.divider):visible a",f);if(h.length){var i=h.index(h.filter(":focus"));38==b.keyCode&&i>0&&i--,40==b.keyCode&&i ').appendTo(document.body),this.$element.on("click",a.proxy(function(a){a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),d&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;d?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()):b&&b()};var c=a.fn.modal;a.fn.modal=function(c){return this.each(function(){var d=a(this),e=d.data("bs.modal"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);e||d.data("bs.modal",e=new b(this,f)),"string"==typeof c?e[c]():f.show&&e.show()})},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d=c.attr("href"),e=a(c.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());b.preventDefault(),e.modal(f).one("hide",function(){c.is(":visible")&&c.focus()})}),a(function(){var b=a(document.body).on("shown.bs.modal",".modal",function(){b.addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){b.removeClass("modal-open")})})}(window.jQuery),+function(a){"use strict";var b=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",a,b)};b.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},b.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d);for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focus",i="hover"==g?"mouseleave":"blur";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.enter=function(b){var c=this.getDefaults(),d={};this._options&&a.each(this._options,function(a,b){c[a]!=b&&(d[a]=b)});var e=b instanceof this.constructor?b:a(b.currentTarget)[this.type](d).data("bs."+this.type);return clearTimeout(e.timeout),e.options.delay&&e.options.delay.show?(e.hoverState="in",e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show),void 0):e.show()},b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this._options).data("bs."+this.type);return clearTimeout(c.timeout),c.options.delay&&c.options.delay.hide?(c.hoverState="out",c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide),void 0):c.hide()},b.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(b),b.isDefaultPrevented())return;var c=this.tip();this.setContent(),this.options.animation&&c.addClass("fade");var d="function"==typeof this.options.placement?this.options.placement.call(this,c[0],this.$element[0]):this.options.placement,e=/\s?auto?\s?/i,f=e.test(d);f&&(d=d.replace(e,"")||"top"),c.detach().css({top:0,left:0,display:"block"}).addClass(d),this.options.container?c.appendTo(this.options.container):c.insertAfter(this.$element);var g=this.getPosition(),h=c[0].offsetWidth,i=c[0].offsetHeight;if(f){var j=this.$element.parent(),k=d,l=document.documentElement.scrollTop||document.body.scrollTop,m="body"==this.options.container?window.innerWidth:j.outerWidth(),n="body"==this.options.container?window.innerHeight:j.outerHeight(),o="body"==this.options.container?0:j.offset().left;d="bottom"==d&&g.top+g.height+i-l>n?"top":"top"==d&&g.top-l-i<0?"bottom":"right"==d&&g.right+h>m?"left":"left"==d&&g.left-h
'}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"html":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title:empty").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(window.jQuery),+function(a){"use strict";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(c).is("body")?a(window):a(c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#\w/.test(e)&&a(e);return f&&f.length&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parents(".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.attr("data-target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(window.jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top()),"function"==typeof h&&(h=f.bottom());var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?"bottom":null!=g&&g>=d?"top":!1;this.affixed!==i&&(this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin="bottom"==i?e.top-d:null,this.$element.removeClass(b.RESET).addClass("affix"+(i?"-"+i:"")),"bottom"==i&&this.$element.offset({top:document.body.offsetHeight-h-this.$element.height()}))}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof c&&c;e||d.data("bs.affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(window.jQuery);
--------------------------------------------------------------------------------
/flaskblog/static/css/bootstrap.min.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * Bootstrap v3.0.0
3 | *
4 | * Copyright 2013 Twitter, Inc
5 | * Licensed under the Apache License v2.0
6 | * http://www.apache.org/licenses/LICENSE-2.0
7 | *
8 | * Designed and built with all the love in the world by @mdo and @fat.
9 | *//*! normalize.css v2.1.0 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{margin:.67em 0;font-size:2em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{height:0;-moz-box-sizing:content-box;box-sizing:content-box}mark{color:#000;background:#ff0}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid #c0c0c0}legend{padding:0;border:0}button,input,select,textarea{margin:0;font-family:inherit;font-size:100%}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{padding:0;box-sizing:border-box}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:2cm .5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered th,.table-bordered td{border:1px solid #ddd!important}}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.428571429;color:#333;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#428bca;text-decoration:none}a:hover,a:focus{color:#2a6496;text-decoration:underline}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}img{vertical-align:middle}.img-responsive{display:inline-block;height:auto;max-width:100%}.img-rounded{border-radius:6px}.img-circle{border-radius:500px}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16.099999999999998px;font-weight:200;line-height:1.4}@media(min-width:768px){.lead{font-size:21px}}small{font-size:85%}cite{font-style:normal}.text-muted{color:#999}.text-primary{color:#428bca}.text-warning{color:#c09853}.text-danger{color:#b94a48}.text-success{color:#468847}.text-info{color:#3a87ad}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:500;line-height:1.1}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small{font-weight:normal;line-height:1;color:#999}h1,h2,h3{margin-top:20px;margin-bottom:10px}h4,h5,h6{margin-top:10px;margin-bottom:10px}h1,.h1{font-size:38px}h2,.h2{font-size:32px}h3,.h3{font-size:24px}h4,.h4{font-size:18px}h5,.h5{font-size:14px}h6,.h6{font-size:12px}h1 small,.h1 small{font-size:24px}h2 small,.h2 small{font-size:18px}h3 small,.h3 small,h4 small,.h4 small{font-size:14px}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ul,ol{margin-top:0;margin-bottom:10px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-bottom:20px}dt,dd{line-height:1.428571429}dt{font-weight:bold}dd{margin-left:0}.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #999}abbr.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;border-left:5px solid #eee}blockquote p{font-size:17.5px;font-weight:300;line-height:1.25}blockquote p:last-child{margin-bottom:0}blockquote small{display:block;line-height:1.428571429;color:#999}blockquote small:before{content:'\2014 \00A0'}blockquote.pull-right{float:right;padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0}blockquote.pull-right p,blockquote.pull-right small{text-align:right}blockquote.pull-right small:before{content:''}blockquote.pull-right small:after{content:'\00A0 \2014'}q:before,q:after,blockquote:before,blockquote:after{content:""}address{display:block;margin-bottom:20px;font-style:normal;line-height:1.428571429}code,pre{font-family:Monaco,Menlo,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;white-space:nowrap;background-color:#f9f2f4;border-radius:4px}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.428571429;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre.prettyprint{margin-bottom:20px}pre code{padding:0;color:inherit;white-space:pre-wrap;background-color:transparent;border:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{margin-right:auto;margin-left:auto}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}@media(min-width:768px){.row{margin-right:-15px;margin-left:-15px}}.row .row{margin-right:-15px;margin-left:-15px}.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12{float:left}.col-1{width:8.333333333333332%}.col-2{width:16.666666666666664%}.col-3{width:25%}.col-4{width:33.33333333333333%}.col-5{width:41.66666666666667%}.col-6{width:50%}.col-7{width:58.333333333333336%}.col-8{width:66.66666666666666%}.col-9{width:75%}.col-10{width:83.33333333333334%}.col-11{width:91.66666666666666%}.col-12{width:100%}@media(min-width:768px){.container{max-width:728px}.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-1{width:8.333333333333332%}.col-sm-2{width:16.666666666666664%}.col-sm-3{width:25%}.col-sm-4{width:33.33333333333333%}.col-sm-5{width:41.66666666666667%}.col-sm-6{width:50%}.col-sm-7{width:58.333333333333336%}.col-sm-8{width:66.66666666666666%}.col-sm-9{width:75%}.col-sm-10{width:83.33333333333334%}.col-sm-11{width:91.66666666666666%}.col-sm-12{width:100%}.col-sm-push-1{left:8.333333333333332%}.col-sm-push-2{left:16.666666666666664%}.col-sm-push-3{left:25%}.col-sm-push-4{left:33.33333333333333%}.col-sm-push-5{left:41.66666666666667%}.col-sm-push-6{left:50%}.col-sm-push-7{left:58.333333333333336%}.col-sm-push-8{left:66.66666666666666%}.col-sm-push-9{left:75%}.col-sm-push-10{left:83.33333333333334%}.col-sm-push-11{left:91.66666666666666%}.col-sm-pull-1{right:8.333333333333332%}.col-sm-pull-2{right:16.666666666666664%}.col-sm-pull-3{right:25%}.col-sm-pull-4{right:33.33333333333333%}.col-sm-pull-5{right:41.66666666666667%}.col-sm-pull-6{right:50%}.col-sm-pull-7{right:58.333333333333336%}.col-sm-pull-8{right:66.66666666666666%}.col-sm-pull-9{right:75%}.col-sm-pull-10{right:83.33333333333334%}.col-sm-pull-11{right:91.66666666666666%}.col-sm-offset-1{margin-left:8.333333333333332%}.col-sm-offset-2{margin-left:16.666666666666664%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-4{margin-left:33.33333333333333%}.col-sm-offset-5{margin-left:41.66666666666667%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-7{margin-left:58.333333333333336%}.col-sm-offset-8{margin-left:66.66666666666666%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-10{margin-left:83.33333333333334%}.col-sm-offset-11{margin-left:91.66666666666666%}}@media(min-width:992px){.container{max-width:940px}.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-1{width:8.333333333333332%}.col-lg-2{width:16.666666666666664%}.col-lg-3{width:25%}.col-lg-4{width:33.33333333333333%}.col-lg-5{width:41.66666666666667%}.col-lg-6{width:50%}.col-lg-7{width:58.333333333333336%}.col-lg-8{width:66.66666666666666%}.col-lg-9{width:75%}.col-lg-10{width:83.33333333333334%}.col-lg-11{width:91.66666666666666%}.col-lg-12{width:100%}.col-lg-push-1{left:8.333333333333332%}.col-lg-push-2{left:16.666666666666664%}.col-lg-push-3{left:25%}.col-lg-push-4{left:33.33333333333333%}.col-lg-push-5{left:41.66666666666667%}.col-lg-push-6{left:50%}.col-lg-push-7{left:58.333333333333336%}.col-lg-push-8{left:66.66666666666666%}.col-lg-push-9{left:75%}.col-lg-push-10{left:83.33333333333334%}.col-lg-push-11{left:91.66666666666666%}.col-lg-pull-1{right:8.333333333333332%}.col-lg-pull-2{right:16.666666666666664%}.col-lg-pull-3{right:25%}.col-lg-pull-4{right:33.33333333333333%}.col-lg-pull-5{right:41.66666666666667%}.col-lg-pull-6{right:50%}.col-lg-pull-7{right:58.333333333333336%}.col-lg-pull-8{right:66.66666666666666%}.col-lg-pull-9{right:75%}.col-lg-pull-10{right:83.33333333333334%}.col-lg-pull-11{right:91.66666666666666%}.col-lg-offset-1{margin-left:8.333333333333332%}.col-lg-offset-2{margin-left:16.666666666666664%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-4{margin-left:33.33333333333333%}.col-lg-offset-5{margin-left:41.66666666666667%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-7{margin-left:58.333333333333336%}.col-lg-offset-8{margin-left:66.66666666666666%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-10{margin-left:83.33333333333334%}.col-lg-offset-11{margin-left:91.66666666666666%}}@media(min-width:1200px){.container{max-width:1170px}}table{max-width:100%;background-color:transparent}th{text-align:left}.table{width:100%;margin-bottom:20px}.table thead>tr>th,.table tbody>tr>th,.table tfoot>tr>th,.table thead>tr>td,.table tbody>tr>td,.table tfoot>tr>td{padding:8px;line-height:1.428571429;vertical-align:top;border-top:1px solid #ddd}.table thead>tr>th{vertical-align:bottom}.table caption+thead tr:first-child th,.table colgroup+thead tr:first-child th,.table thead:first-child tr:first-child th,.table caption+thead tr:first-child td,.table colgroup+thead tr:first-child td,.table thead:first-child tr:first-child td{border-top:0}.table tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed thead>tr>th,.table-condensed tbody>tr>th,.table-condensed tfoot>tr>th,.table-condensed thead>tr>td,.table-condensed tbody>tr>td,.table-condensed tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #ddd}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class^="col-"]{display:table-column;float:none}table td[class^="col-"],table th[class^="col-"]{display:table-cell;float:none}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8;border-color:#d6e9c6}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede;border-color:#eed3d7}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3;border-color:#fbeed5}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td{background-color:#d0e9c6;border-color:#c9e2b3}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td{background-color:#ebcccc;border-color:#e6c1c7}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td{background-color:#faf2cc;border-color:#f8e5be}fieldset{padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:bold}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type="file"]{display:block}select[multiple],select[size]{height:auto}select optgroup{font-family:inherit;font-size:inherit;font-style:inherit}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{height:auto}.form-control:-moz-placeholder{color:#999}.form-control::-moz-placeholder{color:#999}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:rgba(82,168,236,0.8);outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6)}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee}textarea.form-control{height:auto}.form-group{margin-bottom:15px}.radio,.checkbox{display:block;min-height:20px;padding-left:20px;margin-top:10px;margin-bottom:10px;vertical-align:middle}.radio label,.checkbox label{display:inline;margin-bottom:0;font-weight:normal;cursor:pointer}.radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"]{float:left;margin-left:-20px}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;font-weight:normal;vertical-align:middle;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}.input-large{height:45px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.input-small{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-large{height:45px;line-height:45px}select.input-small{height:30px;line-height:30px}textarea.input-large,textarea.input-small{height:auto}.has-warning .help-block,.has-warning .control-label{color:#c09853}.has-warning .form-control{padding-right:32px;border-color:#c09853;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-warning .form-control:focus{border-color:#a47e3c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e}.has-warning .input-group-addon{color:#c09853;background-color:#fcf8e3;border-color:#c09853}.has-error .help-block,.has-error .control-label{color:#b94a48}.has-error .form-control{padding-right:32px;border-color:#b94a48;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-error .form-control:focus{border-color:#953b39;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392}.has-error .input-group-addon{color:#b94a48;background-color:#f2dede;border-color:#b94a48}.has-success .help-block,.has-success .control-label{color:#468847}.has-success .form-control{padding-right:32px;border-color:#468847;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-success .form-control:focus{border-color:#356635;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b}.has-success .input-group-addon{color:#468847;background-color:#dff0d8;border-color:#468847}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}.form-inline .form-control,.form-inline .radio,.form-inline .checkbox{display:inline-block}.form-inline .radio,.form-inline .checkbox{margin-top:0;margin-bottom:0}.form-horizontal .control-label,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{padding-top:9px}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}@media(min-width:768px){.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}}.form-horizontal .form-group .row{margin-right:-15px;margin-left:-15px}@media(min-width:768px){.form-horizontal .control-label{text-align:right}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:500;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus{color:#fff;text-decoration:none}.btn:active,.btn.active{outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:default;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#fff;background-color:#474949;border-color:#474949}.btn-default:hover,.btn-default:focus,.btn-default:active,.btn-default.active{background-color:#3a3c3c;border-color:#2e2f2f}.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#474949;border-color:#474949}.btn-primary{color:#fff;background-color:#428bca;border-color:#428bca}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active{background-color:#357ebd;border-color:#3071a9}.btn-primary.disabled,.btn-primary[disabled],fieldset[disabled] .btn-primary,.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#428bca;border-color:#428bca}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active{background-color:#eea236;border-color:#ec971f}.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-warning,.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#f0ad4e;border-color:#f0ad4e}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d9534f}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active{background-color:#d43f3a;border-color:#c9302c}.btn-danger.disabled,.btn-danger[disabled],fieldset[disabled] .btn-danger,.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#d9534f;border-color:#d9534f}.btn-success{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active{background-color:#4cae4c;border-color:#449d44}.btn-success.disabled,.btn-success[disabled],fieldset[disabled] .btn-success,.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#5cb85c;border-color:#5cb85c}.btn-info{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active{background-color:#46b8da;border-color:#31b0d5}.btn-info.disabled,.btn-info[disabled],fieldset[disabled] .btn-info,.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#5bc0de;border-color:#5bc0de}.btn-link{font-weight:normal;color:#428bca;cursor:pointer;border-radius:0}.btn-link,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#333;text-decoration:none}.btn-large{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-small,.btn-mini{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-mini{padding:3px 5px}.btn-block{display:block;width:100%;padding-right:0;padding-left:0}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;transition:height .35s ease}.input-group{position:relative;display:table;border-collapse:separate}.input-group.col{float:none;padding-right:0;padding-left:0}.input-group .form-control{width:100%;margin-bottom:0}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.input-group-addon.input-small{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-large{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type="radio"],.input-group-addon input[type="checkbox"]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-4px}.input-group-btn>.btn:hover,.input-group-btn>.btn:active{z-index:2}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid #000;border-right:4px solid transparent;border-left:4px solid transparent;content:""}.dropdown{position:relative}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);box-shadow:0 6px 12px rgba(0,0,0,0.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.428571429;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{color:#fff;text-decoration:none;background-color:#357ebd;background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#357ebd));background-image:-webkit-linear-gradient(top,#428bca,0%,#357ebd,100%);background-image:-moz-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca',endColorstr='#ff357ebd',GradientType=0)}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;background-color:#357ebd;background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#357ebd));background-image:-webkit-linear-gradient(top,#428bca,0%,#357ebd,100%);background-image:-moz-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x;outline:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca',endColorstr='#ff357ebd',GradientType=0)}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#999}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.428571429;color:#999}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid #000;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 30px 10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge{float:right;margin-right:-15px}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item .list-group-item-text{color:#555}a.list-group-item:hover,a.list-group-item:focus{text-decoration:none;background-color:#f5f5f5}a.list-group-item.active{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca}a.list-group-item.active .list-group-item-heading{color:inherit}a.list-group-item.active .list-group-item-text{color:#e1edf7}.panel{padding:15px;margin-bottom:20px;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)}.panel .list-group{margin:15px -15px -15px}.panel .list-group .list-group-item{border-width:1px 0}.panel .list-group .list-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0}.panel .list-group .list-group-item:last-child{border-bottom:0}.panel-heading{padding:10px 15px;margin:-15px -15px 15px;background-color:#f5f5f5;border-bottom:1px solid #ddd;border-top-right-radius:3px;border-top-left-radius:3px}.panel-title{margin-top:0;margin-bottom:0;font-size:17.5px;font-weight:500}.panel-footer{padding:10px 15px;margin:15px -15px -15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-primary{border-color:#428bca}.panel-primary .panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.panel-success{border-color:#d6e9c6}.panel-success .panel-heading{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.panel-warning{border-color:#fbeed5}.panel-warning .panel-heading{color:#c09853;background-color:#fcf8e3;border-color:#fbeed5}.panel-danger{border-color:#eed3d7}.panel-danger .panel-heading{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.panel-info{border-color:#bce8f1}.panel-info .panel-heading{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}.well-large{padding:24px;border-radius:6px}.well-small{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#999}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#999;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav.open>a,.nav.open>a:hover,.nav.open>a:focus{color:#fff;background-color:#428bca;border-color:#428bca}.nav.open>a .caret,.nav.open>a:hover .caret,.nav.open>a:focus .caret{border-top-color:#fff;border-bottom-color:#fff}.nav>.pull-right{float:right}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.428571429;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{display:table-cell;float:none;width:1%}.nav-tabs.nav-justified>li>a{text-align:center}.nav-tabs.nav-justified>li>a{margin-right:0;border-bottom:1px solid #ddd}.nav-tabs.nav-justified>.active>a{border-bottom-color:#fff}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:5px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#428bca}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{display:table-cell;float:none;width:1%}.nav-justified>li>a{text-align:center}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-bottom:1px solid #ddd}.nav-tabs-justified>.active>a{border-bottom-color:#fff}.tabbable:before,.tabbable:after{display:table;content:" "}.tabbable:after{clear:both}.tabbable:before,.tabbable:after{display:table;content:" "}.tabbable:after{clear:both}.tab-content>.tab-pane,.pill-content>.pill-pane{display:none}.tab-content>.active,.pill-content>.active{display:block}.nav .caret{border-top-color:#428bca;border-bottom-color:#428bca}.nav a:hover .caret{border-top-color:#2a6496;border-bottom-color:#2a6496}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:50px;padding-right:15px;padding-left:15px;margin-bottom:20px;background-color:#eee;border-radius:4px}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}.navbar-nav{margin-top:10px;margin-bottom:15px}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px;line-height:20px;color:#777;border-radius:4px}.navbar-nav>li>a:hover,.navbar-nav>li>a:focus{color:#333;background-color:transparent}.navbar-nav>.active>a,.navbar-nav>.active>a:hover,.navbar-nav>.active>a:focus{color:#555;background-color:#d5d5d5}.navbar-nav>.disabled>a,.navbar-nav>.disabled>a:hover,.navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}.navbar-nav.pull-right{width:100%}.navbar-static-top{border-radius:0}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;border-radius:0}.navbar-fixed-top{top:0}.navbar-fixed-bottom{bottom:0;margin-bottom:0}.navbar-brand{display:block;max-width:200px;padding:15px 15px;margin-right:auto;margin-left:auto;font-size:18px;font-weight:500;line-height:20px;color:#777;text-align:center}.navbar-brand:hover,.navbar-brand:focus{color:#5e5e5e;text-decoration:none;background-color:transparent}.navbar-toggle{position:absolute;top:9px;right:10px;width:48px;height:32px;padding:8px 12px;background-color:transparent;border:1px solid #ddd;border-radius:4px}.navbar-toggle:hover,.navbar-toggle:focus{background-color:#ddd}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;background-color:#ccc;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}.navbar-form{margin-top:8px;margin-bottom:8px}.navbar-form .form-control,.navbar-form .radio,.navbar-form .checkbox{display:inline-block}.navbar-form .radio,.navbar-form .checkbox{margin-top:0;margin-bottom:0}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-nav>.dropdown>a:hover .caret,.navbar-nav>.dropdown>a:focus .caret{border-top-color:#333;border-bottom-color:#333}.navbar-nav>.open>a,.navbar-nav>.open>a:hover,.navbar-nav>.open>a:focus{color:#555;background-color:#d5d5d5}.navbar-nav>.open>a .caret,.navbar-nav>.open>a:hover .caret,.navbar-nav>.open>a:focus .caret{border-top-color:#555;border-bottom-color:#555}.navbar-nav>.dropdown>a .caret{border-top-color:#777;border-bottom-color:#777}.navbar-nav.pull-right>li>.dropdown-menu,.navbar-nav>li>.dropdown-menu.pull-right{right:0;left:auto}.navbar-inverse{background-color:#222}.navbar-inverse .navbar-brand{color:#999}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#999}.navbar-inverse .navbar-nav>li>a{color:#999}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.dropdown>a:hover .caret{border-top-color:#fff;border-bottom-color:#fff}.navbar-inverse .navbar-nav>.dropdown>a .caret{border-top-color:#999;border-bottom-color:#999}.navbar-inverse .navbar-nav>.open>a .caret,.navbar-inverse .navbar-nav>.open>a:hover .caret,.navbar-inverse .navbar-nav>.open>a:focus .caret{border-top-color:#fff;border-bottom-color:#fff}@media screen and (min-width:768px){.navbar-brand{float:left;margin-right:5px;margin-left:-15px}.navbar-nav{float:left;margin-top:0;margin-bottom:0}.navbar-nav>li{float:left}.navbar-nav>li>a{border-radius:0}.navbar-nav.pull-right{float:right;width:auto}.navbar-toggle{position:relative;top:auto;left:auto;display:none}.nav-collapse.collapse{display:block!important;height:auto!important;overflow:visible!important}}.navbar-btn{margin-top:8px}.navbar-text{float:left;padding:0 15px;margin-top:15px;margin-bottom:15px}.navbar-link{color:#777}.navbar-link:hover{color:#333}.navbar-inverse .navbar-link{color:#999}.navbar-inverse .navbar-link:hover{color:#fff}.btn .caret{border-top-color:#fff}.dropup .btn .caret{border-bottom-color:#fff}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active{z-index:2}.btn-group .btn+.btn{margin-left:-1px}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar .btn-group{float:left}.btn-toolbar>.btn+.btn,.btn-toolbar>.btn-group+.btn,.btn-toolbar>.btn+.btn-group,.btn-toolbar>.btn-group+.btn-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-large+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn .caret{margin-left:0}.btn-large .caret{border-width:5px}.dropup .btn-large .caret{border-bottom-width:5px}.btn-group-vertical>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn+.btn{margin-top:-1px}.btn-group-vertical .btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical .btn:first-child{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical .btn:last-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%}.btn-group-justified .btn{display:table-cell;float:none;width:1%}.btn-group[data-toggle="buttons"]>.btn>input[type="radio"],.btn-group[data-toggle="buttons"]>.btn>input[type="checkbox"]{display:none}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#999}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{float:left;padding:4px 12px;line-height:1.428571429;text-decoration:none;background-color:#fff;border:1px solid #ddd;border-left-width:0}.pagination>li:first-child>a,.pagination>li:first-child>span{border-left-width:1px;border-bottom-left-radius:4px;border-top-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:hover,.pagination>li>a:focus,.pagination>.active>a,.pagination>.active>span{background-color:#f5f5f5}.pagination>.active>a,.pagination>.active>span{color:#999;cursor:default}.pagination>.disabled>span,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#999;cursor:not-allowed;background-color:#fff}.pagination-large>li>a,.pagination-large>li>span{padding:10px 16px;font-size:18px}.pagination-large>li:first-child>a,.pagination-large>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-large>li:last-child>a,.pagination-large>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-small>li>a,.pagination-small>li>span{padding:5px 10px;font-size:12px}.pagination-small>li:first-child>a,.pagination-small>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-small>li:last-child>a,.pagination-small>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#f5f5f5}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#999;cursor:not-allowed;background-color:#fff}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;display:none;overflow:auto;overflow-y:scroll}.modal.fade .modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.fade.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.modal-dialog{z-index:1050;width:auto;padding:10px;margin-right:auto;margin-left:auto}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,0.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,0.5);box-shadow:0 3px 9px rgba(0,0,0,0.5);background-clip:padding-box}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1030;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.fade.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{min-height:16.428571429px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.428571429}.modal-body{position:relative;padding:20px}.modal-footer{padding:19px 20px 20px;margin-top:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}@media screen and (min-width:768px){.modal-dialog{right:auto;left:50%;width:600px;padding-top:30px;padding-bottom:30px}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,0.5);box-shadow:0 5px 15px rgba(0,0,0,0.5)}}.tooltip{position:absolute;z-index:1030;display:block;font-size:12px;line-height:1.4;opacity:0;filter:alpha(opacity=0);visibility:visible}.tooltip.in{opacity:1;filter:alpha(opacity=100)}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:rgba(0,0,0,0.9);border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top-color:rgba(0,0,0,0.9);border-width:5px 5px 0}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-top-color:rgba(0,0,0,0.9);border-width:5px 5px 0}.tooltip.top-right .tooltip-arrow{right:5px;bottom:0;border-top-color:rgba(0,0,0,0.9);border-width:5px 5px 0}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-right-color:rgba(0,0,0,0.9);border-width:5px 5px 5px 0}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-left-color:rgba(0,0,0,0.9);border-width:5px 0 5px 5px}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-bottom-color:rgba(0,0,0,0.9);border-width:0 5px 5px}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-bottom-color:rgba(0,0,0,0.9);border-width:0 5px 5px}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-bottom-color:rgba(0,0,0,0.9);border-width:0 5px 5px}.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;white-space:normal;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);background-clip:padding-box;-webkit-bg-clip:padding-box;-moz-bg-clip:padding}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:normal;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover .arrow,.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover .arrow{border-width:11px}.popover .arrow:after{border-width:10px;content:""}.popover.top .arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,0.25);border-bottom-width:0}.popover.top .arrow:after{bottom:1px;margin-left:-10px;border-top-color:#fff;border-bottom-width:0;content:" "}.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,0.25);border-left-width:0}.popover.right .arrow:after{bottom:-10px;left:1px;border-right-color:#fff;border-left-width:0;content:" "}.popover.bottom .arrow{top:-11px;left:50%;margin-left:-11px;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,0.25);border-top-width:0}.popover.bottom .arrow:after{top:1px;margin-left:-10px;border-bottom-color:#fff;border-top-width:0;content:" "}.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-left-color:#999;border-left-color:rgba(0,0,0,0.25);border-right-width:0}.popover.left .arrow:after{right:1px;bottom:-10px;border-left-color:#fff;border-right-width:0;content:" "}.alert{padding:15px 35px 15px 15px;margin-bottom:20px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert hr{border-top-color:#f8e5be}.alert .alert-link{font-weight:bold;color:#a47e3c}.alert .close{position:relative;top:-2px;right:-21px;color:inherit}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#356635}.alert-danger{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.alert-danger hr{border-top-color:#e6c1c7}.alert-danger .alert-link{color:#953b39}.alert-info{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#2d6987}.thumbnail,.img-thumbnail{padding:4px;line-height:1.428571429;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail{display:block}.thumbnail>img,.img-thumbnail{display:inline-block;height:auto;max-width:100%}a.thumbnail:hover,a.thumbnail:focus{border-color:#428bca}.thumbnail>img{margin-right:auto;margin-left:auto}.thumbnail .caption{padding:9px;color:#333}.media,.media-body{overflow:hidden;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0;list-style:none}.label{display:inline;padding:.25em .6em;font-size:75%;font-weight:500;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#999;border-radius:.25em}.label[href]:hover,.label[href]:focus{color:#fff;text-decoration:none;cursor:pointer;background-color:#808080}.label-danger{background-color:#d9534f}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#c9302c}.label-success{background-color:#5cb85c}.label-success[href]:hover,.label-success[href]:focus{background-color:#449d44}.label-warning{background-color:#f0ad4e}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#ec971f}.label-info{background-color:#5bc0de}.label-info[href]:hover,.label-info[href]:focus{background-color:#31b0d5}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#999;border-radius:10px}.badge:empty{display:none}a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}.btn .badge{position:relative;top:-1px}a.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#428bca;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-ms-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:0 0}to{background-position:40px 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;color:#fff;text-align:center;background-color:#428bca;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progress-striped .progress-bar{background-color:#428bca;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;-ms-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-color:#d9534f;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-color:#5cb85c;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-color:#f0ad4e;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-color:#5bc0de;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.accordion{margin-bottom:20px}.accordion-group{margin-bottom:2px;border:1px solid #e5e5e5;border-radius:4px}.accordion-heading{border-bottom:0}.accordion-heading .accordion-toggle{display:block;padding:8px 15px;cursor:pointer}.accordion-inner{padding:9px 15px;border-top:1px solid #e5e5e5}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:inline-block;height:auto;max-width:100%;line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6);opacity:.5;filter:alpha(opacity=50)}.carousel-control.left{background-color:rgba(0,0,0,0.0001);background-color:transparent;background-image:-webkit-gradient(linear,0 top,100% top,from(rgba(0,0,0,0.5)),to(rgba(0,0,0,0.0001)));background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,0.5) 0),color-stop(rgba(0,0,0,0.0001) 100%));background-image:-moz-linear-gradient(left,rgba(0,0,0,0.5) 0,rgba(0,0,0,0.0001) 100%);background-image:linear-gradient(to right,rgba(0,0,0,0.5) 0,rgba(0,0,0,0.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000',endColorstr='#00000000',GradientType=1)}.carousel-control.right{right:0;left:auto;background-color:rgba(0,0,0,0.5);background-color:transparent;background-image:-webkit-gradient(linear,0 top,100% top,from(rgba(0,0,0,0.0001)),to(rgba(0,0,0,0.5)));background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,0.0001) 0),color-stop(rgba(0,0,0,0.5) 100%));background-image:-moz-linear-gradient(left,rgba(0,0,0,0.0001) 0,rgba(0,0,0,0.5) 100%);background-image:linear-gradient(to right,rgba(0,0,0,0.0001) 0,rgba(0,0,0,0.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#80000000',GradientType=1)}.carousel-control:hover,.carousel-control:focus{color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-control .glyphicon,.carousel-control .icon-prev,.carousel-control .icon-next{position:absolute;top:50%;left:50%;z-index:5;display:inline-block;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:120px;padding-left:0;margin-left:-60px;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon,.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;margin-left:-15px;font-size:30px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.jumbotron{padding:30px;margin-bottom:30px;font-size:21px;font-weight:200;line-height:2.1428571435;color:inherit;background-color:#eee}.jumbotron h1{line-height:1;color:inherit}.jumbotron p{line-height:1.4}@media screen and (min-width:768px){.jumbotron{padding:50px 60px;border-radius:6px}.jumbotron h1{font-size:63px}}.clearfix:before,.clearfix:after{display:table;content:" "}.clearfix:after{clear:both}.pull-right{float:right}.pull-left{float:left}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.affix{position:fixed}@-ms-viewport{width:device-width}@media screen and (max-width:400px){@-ms-viewport{width:320px}}.hidden{display:none!important;visibility:hidden!important}.visible-sm{display:block!important}tr.visible-sm{display:table-row!important}th.visible-sm,td.visible-sm{display:table-cell!important}.visible-md{display:none!important}tr.visible-md{display:none!important}th.visible-md,td.visible-md{display:none!important}.visible-lg{display:none!important}tr.visible-lg{display:none!important}th.visible-lg,td.visible-lg{display:none!important}.hidden-sm{display:none!important}tr.hidden-sm{display:none!important}th.hidden-sm,td.hidden-sm{display:none!important}.hidden-md{display:block!important}tr.hidden-md{display:table-row!important}th.hidden-md,td.hidden-md{display:table-cell!important}.hidden-lg{display:block!important}tr.hidden-lg{display:table-row!important}th.hidden-lg,td.hidden-lg{display:table-cell!important}@media(min-width:768px) and (max-width:991px){.visible-sm{display:none!important}tr.visible-sm{display:none!important}th.visible-sm,td.visible-sm{display:none!important}.visible-md{display:block!important}tr.visible-md{display:table-row!important}th.visible-md,td.visible-md{display:table-cell!important}.visible-lg{display:none!important}tr.visible-lg{display:none!important}th.visible-lg,td.visible-lg{display:none!important}.hidden-sm{display:block!important}tr.hidden-sm{display:table-row!important}th.hidden-sm,td.hidden-sm{display:table-cell!important}.hidden-md{display:none!important}tr.hidden-md{display:none!important}th.hidden-md,td.hidden-md{display:none!important}.hidden-lg{display:block!important}tr.hidden-lg{display:table-row!important}th.hidden-lg,td.hidden-lg{display:table-cell!important}}@media(min-width:992px){.visible-sm{display:none!important}tr.visible-sm{display:none!important}th.visible-sm,td.visible-sm{display:none!important}.visible-md{display:none!important}tr.visible-md{display:none!important}th.visible-md,td.visible-md{display:none!important}.visible-lg{display:block!important}tr.visible-lg{display:table-row!important}th.visible-lg,td.visible-lg{display:table-cell!important}.hidden-sm{display:block!important}tr.hidden-sm{display:table-row!important}th.hidden-sm,td.hidden-sm{display:table-cell!important}.hidden-md{display:block!important}tr.hidden-md{display:table-row!important}th.hidden-md,td.hidden-md{display:table-cell!important}.hidden-lg{display:none!important}tr.hidden-lg{display:none!important}th.hidden-lg,td.hidden-lg{display:none!important}}.visible-print{display:none!important}tr.visible-print{display:none!important}th.visible-print,td.visible-print{display:none!important}@media print{.visible-print{display:block!important}tr.visible-print{display:table-row!important}th.visible-print,td.visible-print{display:table-cell!important}.hidden-print{display:none!important}tr.hidden-print{display:none!important}th.hidden-print,td.hidden-print{display:none!important}}
--------------------------------------------------------------------------------
/flaskblog/static/js/bootstrap.js:
--------------------------------------------------------------------------------
1 | /**
2 | * bootstrap.js v3.0.0 by @fat and @mdo
3 | * Copyright 2013 Twitter Inc.
4 | * http://www.apache.org/licenses/LICENSE-2.0
5 | */
6 | if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
7 |
8 | /* ========================================================================
9 | * Bootstrap: transition.js v3.0.0
10 | * http://twbs.github.com/bootstrap/javascript.html#transitions
11 | * ========================================================================
12 | * Copyright 2013 Twitter, Inc.
13 | *
14 | * Licensed under the Apache License, Version 2.0 (the "License");
15 | * you may not use this file except in compliance with the License.
16 | * You may obtain a copy of the License at
17 | *
18 | * http://www.apache.org/licenses/LICENSE-2.0
19 | *
20 | * Unless required by applicable law or agreed to in writing, software
21 | * distributed under the License is distributed on an "AS IS" BASIS,
22 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 | * See the License for the specific language governing permissions and
24 | * limitations under the License.
25 | * ======================================================================== */
26 |
27 |
28 | +function ($) { "use strict";
29 |
30 | // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
31 | // ============================================================
32 |
33 | function transitionEnd() {
34 | var el = document.createElement('bootstrap')
35 |
36 | var transEndEventNames = {
37 | 'WebkitTransition' : 'webkitTransitionEnd'
38 | , 'MozTransition' : 'transitionend'
39 | , 'OTransition' : 'oTransitionEnd otransitionend'
40 | , 'transition' : 'transitionend'
41 | }
42 |
43 | for (var name in transEndEventNames) {
44 | if (el.style[name] !== undefined) {
45 | return { end: transEndEventNames[name] }
46 | }
47 | }
48 | }
49 |
50 | // http://blog.alexmaccaw.com/css-transitions
51 | $.fn.emulateTransitionEnd = function (duration) {
52 | var called = false, $el = this
53 | $(this).one($.support.transition.end, function () { called = true })
54 | var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
55 | setTimeout(callback, duration)
56 | return this
57 | }
58 |
59 | $(function () {
60 | $.support.transition = transitionEnd()
61 | })
62 |
63 | }(window.jQuery);
64 |
65 | /* ========================================================================
66 | * Bootstrap: alert.js v3.0.0
67 | * http://twbs.github.com/bootstrap/javascript.html#alerts
68 | * ========================================================================
69 | * Copyright 2013 Twitter, Inc.
70 | *
71 | * Licensed under the Apache License, Version 2.0 (the "License");
72 | * you may not use this file except in compliance with the License.
73 | * You may obtain a copy of the License at
74 | *
75 | * http://www.apache.org/licenses/LICENSE-2.0
76 | *
77 | * Unless required by applicable law or agreed to in writing, software
78 | * distributed under the License is distributed on an "AS IS" BASIS,
79 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
80 | * See the License for the specific language governing permissions and
81 | * limitations under the License.
82 | * ======================================================================== */
83 |
84 |
85 | +function ($) { "use strict";
86 |
87 | // ALERT CLASS DEFINITION
88 | // ======================
89 |
90 | var dismiss = '[data-dismiss="alert"]'
91 | var Alert = function (el) {
92 | $(el).on('click', dismiss, this.close)
93 | }
94 |
95 | Alert.prototype.close = function (e) {
96 | var $this = $(this)
97 | var selector = $this.attr('data-target')
98 |
99 | if (!selector) {
100 | selector = $this.attr('href')
101 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
102 | }
103 |
104 | var $parent = $(selector)
105 |
106 | if (e) e.preventDefault()
107 |
108 | if (!$parent.length) {
109 | $parent = $this.hasClass('alert') ? $this : $this.parent()
110 | }
111 |
112 | $parent.trigger(e = $.Event('close.bs.alert'))
113 |
114 | if (e.isDefaultPrevented()) return
115 |
116 | $parent.removeClass('in')
117 |
118 | function removeElement() {
119 | $parent.trigger('closed.bs.alert').remove()
120 | }
121 |
122 | $.support.transition && $parent.hasClass('fade') ?
123 | $parent
124 | .one($.support.transition.end, removeElement)
125 | .emulateTransitionEnd(150) :
126 | removeElement()
127 | }
128 |
129 |
130 | // ALERT PLUGIN DEFINITION
131 | // =======================
132 |
133 | var old = $.fn.alert
134 |
135 | $.fn.alert = function (option) {
136 | return this.each(function () {
137 | var $this = $(this)
138 | var data = $this.data('bs.alert')
139 |
140 | if (!data) $this.data('bs.alert', (data = new Alert(this)))
141 | if (typeof option == 'string') data[option].call($this)
142 | })
143 | }
144 |
145 | $.fn.alert.Constructor = Alert
146 |
147 |
148 | // ALERT NO CONFLICT
149 | // =================
150 |
151 | $.fn.alert.noConflict = function () {
152 | $.fn.alert = old
153 | return this
154 | }
155 |
156 |
157 | // ALERT DATA-API
158 | // ==============
159 |
160 | $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
161 |
162 | }(window.jQuery);
163 |
164 | /* ========================================================================
165 | * Bootstrap: button.js v3.0.0
166 | * http://twbs.github.com/bootstrap/javascript.html#buttons
167 | * ========================================================================
168 | * Copyright 2013 Twitter, Inc.
169 | *
170 | * Licensed under the Apache License, Version 2.0 (the "License");
171 | * you may not use this file except in compliance with the License.
172 | * You may obtain a copy of the License at
173 | *
174 | * http://www.apache.org/licenses/LICENSE-2.0
175 | *
176 | * Unless required by applicable law or agreed to in writing, software
177 | * distributed under the License is distributed on an "AS IS" BASIS,
178 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179 | * See the License for the specific language governing permissions and
180 | * limitations under the License.
181 | * ======================================================================== */
182 |
183 |
184 | +function ($) { "use strict";
185 |
186 | // BUTTON PUBLIC CLASS DEFINITION
187 | // ==============================
188 |
189 | var Button = function (element, options) {
190 | this.$element = $(element)
191 | this.options = $.extend({}, Button.DEFAULTS, options)
192 | }
193 |
194 | Button.DEFAULTS = {
195 | loadingText: 'loading...'
196 | }
197 |
198 | Button.prototype.setState = function (state) {
199 | var d = 'disabled'
200 | var $el = this.$element
201 | var val = $el.is('input') ? 'val' : 'html'
202 | var data = $el.data()
203 |
204 | state = state + 'Text'
205 |
206 | if (!data.resetText) $el.data('resetText', $el[val]())
207 |
208 | $el[val](data[state] || this.options[state])
209 |
210 | // push to event loop to allow forms to submit
211 | setTimeout(function () {
212 | state == 'loadingText' ?
213 | $el.addClass(d).attr(d, d) :
214 | $el.removeClass(d).removeAttr(d);
215 | }, 0)
216 | }
217 |
218 | Button.prototype.toggle = function () {
219 | var $parent = this.$element.closest('[data-toggle="buttons"]')
220 |
221 | if ($parent.length) {
222 | var $input = this.$element.find('input')
223 | .prop('checked', !this.$element.hasClass('active'))
224 | .trigger('change')
225 | if ($input.prop('type') === 'radio') $parent.find('.active').removeClass('active')
226 | }
227 |
228 | this.$element.toggleClass('active')
229 | }
230 |
231 |
232 | // BUTTON PLUGIN DEFINITION
233 | // ========================
234 |
235 | var old = $.fn.button
236 |
237 | $.fn.button = function (option) {
238 | return this.each(function () {
239 | var $this = $(this)
240 | var data = $this.data('bs.button')
241 | var options = typeof option == 'object' && option
242 |
243 | if (!data) $this.data('bs.button', (data = new Button(this, options)))
244 |
245 | if (option == 'toggle') data.toggle()
246 | else if (option) data.setState(option)
247 | })
248 | }
249 |
250 | $.fn.button.Constructor = Button
251 |
252 |
253 | // BUTTON NO CONFLICT
254 | // ==================
255 |
256 | $.fn.button.noConflict = function () {
257 | $.fn.button = old
258 | return this
259 | }
260 |
261 |
262 | // BUTTON DATA-API
263 | // ===============
264 |
265 | $(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) {
266 | var $btn = $(e.target)
267 | if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
268 | $btn.button('toggle')
269 | e.preventDefault()
270 | })
271 |
272 | }(window.jQuery);
273 |
274 | /* ========================================================================
275 | * Bootstrap: carousel.js v3.0.0
276 | * http://twbs.github.com/bootstrap/javascript.html#carousel
277 | * ========================================================================
278 | * Copyright 2012 Twitter, Inc.
279 | *
280 | * Licensed under the Apache License, Version 2.0 (the "License");
281 | * you may not use this file except in compliance with the License.
282 | * You may obtain a copy of the License at
283 | *
284 | * http://www.apache.org/licenses/LICENSE-2.0
285 | *
286 | * Unless required by applicable law or agreed to in writing, software
287 | * distributed under the License is distributed on an "AS IS" BASIS,
288 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
289 | * See the License for the specific language governing permissions and
290 | * limitations under the License.
291 | * ======================================================================== */
292 |
293 |
294 | +function ($) { "use strict";
295 |
296 | // CAROUSEL CLASS DEFINITION
297 | // =========================
298 |
299 | var Carousel = function (element, options) {
300 | this.$element = $(element)
301 | this.$indicators = this.$element.find('.carousel-indicators')
302 | this.options = options
303 | this.paused =
304 | this.sliding =
305 | this.interval =
306 | this.$active =
307 | this.$items = null
308 |
309 | this.options.pause == 'hover' && this.$element
310 | .on('mouseenter', $.proxy(this.pause, this))
311 | .on('mouseleave', $.proxy(this.cycle, this))
312 | }
313 |
314 | Carousel.DEFAULTS = {
315 | interval: 5000
316 | , pause: 'hover'
317 | }
318 |
319 | Carousel.prototype.cycle = function (e) {
320 | e || (this.paused = false)
321 |
322 | this.interval && clearInterval(this.interval)
323 |
324 | this.options.interval
325 | && !this.paused
326 | && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
327 |
328 | return this
329 | }
330 |
331 | Carousel.prototype.getActiveIndex = function () {
332 | this.$active = this.$element.find('.item.active')
333 | this.$items = this.$active.parent().children()
334 |
335 | return this.$items.index(this.$active)
336 | }
337 |
338 | Carousel.prototype.to = function (pos) {
339 | var that = this
340 | var activeIndex = this.getActiveIndex()
341 |
342 | if (pos > (this.$items.length - 1) || pos < 0) return
343 |
344 | if (this.sliding) return this.$element.one('slid', function () { that.to(pos) })
345 | if (activeIndex == pos) return this.pause().cycle()
346 |
347 | return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
348 | }
349 |
350 | Carousel.prototype.pause = function (e) {
351 | e || (this.paused = true)
352 |
353 | if (this.$element.find('.next, .prev').length && $.support.transition.end) {
354 | this.$element.trigger($.support.transition.end)
355 | this.cycle(true)
356 | }
357 |
358 | this.interval = clearInterval(this.interval)
359 |
360 | return this
361 | }
362 |
363 | Carousel.prototype.next = function () {
364 | if (this.sliding) return
365 | return this.slide('next')
366 | }
367 |
368 | Carousel.prototype.prev = function () {
369 | if (this.sliding) return
370 | return this.slide('prev')
371 | }
372 |
373 | Carousel.prototype.slide = function (type, next) {
374 | var $active = this.$element.find('.item.active')
375 | var $next = next || $active[type]()
376 | var isCycling = this.interval
377 | var direction = type == 'next' ? 'left' : 'right'
378 | var fallback = type == 'next' ? 'first' : 'last'
379 | var that = this
380 |
381 | this.sliding = true
382 |
383 | isCycling && this.pause()
384 |
385 | $next = $next.length ? $next : this.$element.find('.item')[fallback]()
386 |
387 | var e = $.Event('slide.bs.carousel', { relatedTarget: $next[0], direction: direction })
388 |
389 | if ($next.hasClass('active')) return
390 |
391 | if (this.$indicators.length) {
392 | this.$indicators.find('.active').removeClass('active')
393 | this.$element.one('slid', function () {
394 | var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
395 | $nextIndicator && $nextIndicator.addClass('active')
396 | })
397 | }
398 |
399 | if ($.support.transition && this.$element.hasClass('slide')) {
400 | this.$element.trigger(e)
401 | if (e.isDefaultPrevented()) return
402 | $next.addClass(type)
403 | $next[0].offsetWidth // force reflow
404 | $active.addClass(direction)
405 | $next.addClass(direction)
406 | $active
407 | .one($.support.transition.end, function () {
408 | $next.removeClass([type, direction].join(' ')).addClass('active')
409 | $active.removeClass(['active', direction].join(' '))
410 | that.sliding = false
411 | setTimeout(function () { that.$element.trigger('slid') }, 0)
412 | })
413 | .emulateTransitionEnd(600)
414 | } else {
415 | this.$element.trigger(e)
416 | if (e.isDefaultPrevented()) return
417 | $active.removeClass('active')
418 | $next.addClass('active')
419 | this.sliding = false
420 | this.$element.trigger('slid')
421 | }
422 |
423 | isCycling && this.cycle()
424 |
425 | return this
426 | }
427 |
428 |
429 | // CAROUSEL PLUGIN DEFINITION
430 | // ==========================
431 |
432 | var old = $.fn.carousel
433 |
434 | $.fn.carousel = function (option) {
435 | return this.each(function () {
436 | var $this = $(this)
437 | var data = $this.data('bs.carousel')
438 | var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
439 | var action = typeof option == 'string' ? option : options.slide
440 |
441 | if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
442 | if (typeof option == 'number') data.to(option)
443 | else if (action) data[action]()
444 | else if (options.interval) data.pause().cycle()
445 | })
446 | }
447 |
448 | $.fn.carousel.Constructor = Carousel
449 |
450 |
451 | // CAROUSEL NO CONFLICT
452 | // ====================
453 |
454 | $.fn.carousel.noConflict = function () {
455 | $.fn.carousel = old
456 | return this
457 | }
458 |
459 |
460 | // CAROUSEL DATA-API
461 | // =================
462 |
463 | $(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
464 | var $this = $(this), href
465 | var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
466 | var options = $.extend({}, $target.data(), $this.data())
467 | var slideIndex = $this.attr('data-slide-to')
468 | if (slideIndex) options.interval = false
469 |
470 | $target.carousel(options)
471 |
472 | if (slideIndex = $this.attr('data-slide-to')) {
473 | $target.data('bs.carousel').to(slideIndex)
474 | }
475 |
476 | e.preventDefault()
477 | })
478 |
479 | $(window).on('load', function () {
480 | $('[data-ride="carousel"]').each(function () {
481 | var $carousel = $(this)
482 | $carousel.carousel($carousel.data())
483 | })
484 | })
485 |
486 | }(window.jQuery);
487 |
488 | /* ========================================================================
489 | * Bootstrap: collapse.js v3.0.0
490 | * http://twbs.github.com/bootstrap/javascript.html#collapse
491 | * ========================================================================
492 | * Copyright 2012 Twitter, Inc.
493 | *
494 | * Licensed under the Apache License, Version 2.0 (the "License");
495 | * you may not use this file except in compliance with the License.
496 | * You may obtain a copy of the License at
497 | *
498 | * http://www.apache.org/licenses/LICENSE-2.0
499 | *
500 | * Unless required by applicable law or agreed to in writing, software
501 | * distributed under the License is distributed on an "AS IS" BASIS,
502 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
503 | * See the License for the specific language governing permissions and
504 | * limitations under the License.
505 | * ======================================================================== */
506 |
507 |
508 | +function ($) { "use strict";
509 |
510 | // COLLAPSE PUBLIC CLASS DEFINITION
511 | // ================================
512 |
513 | var Collapse = function (element, options) {
514 | this.$element = $(element)
515 | this.options = $.extend({}, Collapse.DEFAULTS, options)
516 | this.transitioning = null
517 |
518 | if (this.options.parent) this.$parent = $(this.options.parent)
519 | if (this.options.toggle) this.toggle()
520 | }
521 |
522 | Collapse.DEFAULTS = {
523 | toggle: true
524 | }
525 |
526 | Collapse.prototype.dimension = function () {
527 | var hasWidth = this.$element.hasClass('width')
528 | return hasWidth ? 'width' : 'height'
529 | }
530 |
531 | Collapse.prototype.show = function () {
532 | if (this.transitioning || this.$element.hasClass('in')) return
533 |
534 | var startEvent = $.Event('show.bs.collapse')
535 | this.$element.trigger(startEvent)
536 | if (startEvent.isDefaultPrevented()) return
537 |
538 | var actives = this.$parent && this.$parent.find('> .accordion-group > .in')
539 |
540 | if (actives && actives.length) {
541 | var hasData = actives.data('bs.collapse')
542 | if (hasData && hasData.transitioning) return
543 | actives.collapse('hide')
544 | hasData || actives.data('bs.collapse', null)
545 | }
546 |
547 | var dimension = this.dimension()
548 |
549 | this.$element
550 | .removeClass('collapse')
551 | .addClass('collapsing')
552 | [dimension](0)
553 |
554 | this.transitioning = 1
555 |
556 | var complete = function () {
557 | this.$element
558 | .removeClass('collapsing')
559 | .addClass('in')
560 | [dimension]('auto')
561 | this.transitioning = 0
562 | this.$element.trigger('shown.bs.collapse')
563 | }
564 |
565 | if (!$.support.transition) return complete.call(this)
566 |
567 | var scrollSize = $.camelCase(['scroll', dimension].join('-'))
568 |
569 | this.$element
570 | .one($.support.transition.end, $.proxy(complete, this))
571 | .emulateTransitionEnd(350)
572 | [dimension](this.$element[0][scrollSize])
573 | }
574 |
575 | Collapse.prototype.hide = function () {
576 | if (this.transitioning || !this.$element.hasClass('in')) return
577 |
578 | var startEvent = $.Event('hide.bs.collapse')
579 | this.$element.trigger(startEvent)
580 | if (startEvent.isDefaultPrevented()) return
581 |
582 | var dimension = this.dimension()
583 |
584 | this.$element
585 | [dimension](this.$element[dimension]())
586 | [0].offsetHeight
587 |
588 | this.$element
589 | .addClass('collapsing')
590 | .removeClass('collapse')
591 | .removeClass('in')
592 |
593 | this.transitioning = 1
594 |
595 | var complete = function () {
596 | this.transitioning = 0
597 | this.$element
598 | .trigger('hidden.bs.collapse')
599 | .removeClass('collapsing')
600 | .addClass('collapse')
601 | }
602 |
603 | if (!$.support.transition) return complete.call(this)
604 |
605 | this.$element
606 | [dimension](0)
607 | .one($.support.transition.end, $.proxy(complete, this))
608 | .emulateTransitionEnd(350)
609 | }
610 |
611 | Collapse.prototype.toggle = function () {
612 | this[this.$element.hasClass('in') ? 'hide' : 'show']()
613 | }
614 |
615 |
616 | // COLLAPSE PLUGIN DEFINITION
617 | // ==========================
618 |
619 | var old = $.fn.collapse
620 |
621 | $.fn.collapse = function (option) {
622 | return this.each(function () {
623 | var $this = $(this)
624 | var data = $this.data('bs.collapse')
625 | var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
626 |
627 | if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
628 | if (typeof option == 'string') data[option]()
629 | })
630 | }
631 |
632 | $.fn.collapse.Constructor = Collapse
633 |
634 |
635 | // COLLAPSE NO CONFLICT
636 | // ====================
637 |
638 | $.fn.collapse.noConflict = function () {
639 | $.fn.collapse = old
640 | return this
641 | }
642 |
643 |
644 | // COLLAPSE DATA-API
645 | // =================
646 |
647 | $(document).on('click.bs.collapse.data-api', '[data-toggle=collapse]', function (e) {
648 | var $this = $(this), href
649 | var target = $this.attr('data-target')
650 | || e.preventDefault()
651 | || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
652 | var $target = $(target)
653 | var data = $target.data('bs.collapse')
654 | var option = data ? 'toggle' : $this.data()
655 | var parent = $this.attr('data-parent')
656 | var $parent = parent && $(parent)
657 |
658 | if (!data || !data.transitioning) {
659 | if ($parent) $parent.find('[data-toggle=collapse][data-parent=' + parent + ']').not($this).addClass('collapsed')
660 | $this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
661 | }
662 |
663 | $target.collapse(option)
664 | })
665 |
666 | }(window.jQuery);
667 |
668 | /* ========================================================================
669 | * Bootstrap: dropdown.js v3.0.0
670 | * http://twbs.github.com/bootstrap/javascript.html#dropdowns
671 | * ========================================================================
672 | * Copyright 2012 Twitter, Inc.
673 | *
674 | * Licensed under the Apache License, Version 2.0 (the "License");
675 | * you may not use this file except in compliance with the License.
676 | * You may obtain a copy of the License at
677 | *
678 | * http://www.apache.org/licenses/LICENSE-2.0
679 | *
680 | * Unless required by applicable law or agreed to in writing, software
681 | * distributed under the License is distributed on an "AS IS" BASIS,
682 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
683 | * See the License for the specific language governing permissions and
684 | * limitations under the License.
685 | * ======================================================================== */
686 |
687 |
688 | +function ($) { "use strict";
689 |
690 | // DROPDOWN CLASS DEFINITION
691 | // =========================
692 |
693 | var backdrop = '.dropdown-backdrop'
694 | var toggle = '[data-toggle=dropdown]'
695 | var Dropdown = function (element) {
696 | var $el = $(element).on('click.bs.dropdown', this.toggle)
697 | }
698 |
699 | Dropdown.prototype.toggle = function (e) {
700 | var $this = $(this)
701 |
702 | if ($this.is('.disabled, :disabled')) return
703 |
704 | var $parent = getParent($this)
705 | var isActive = $parent.hasClass('open')
706 |
707 | clearMenus()
708 |
709 | if (!isActive) {
710 | if ('ontouchstart' in document.documentElement) {
711 | // if mobile we we use a backdrop because click events don't delegate
712 | $('
').insertAfter($(this)).on('click', clearMenus)
713 | }
714 |
715 | $parent.trigger(e = $.Event('show.bs.dropdown'))
716 |
717 | if (e.isDefaultPrevented()) return
718 |
719 | $parent
720 | .toggleClass('open')
721 | .trigger('shown.bs.dropdown')
722 | }
723 |
724 | $this.focus()
725 |
726 | return false
727 | }
728 |
729 | Dropdown.prototype.keydown = function (e) {
730 | if (!/(38|40|27)/.test(e.keyCode)) return
731 |
732 | var $this = $(this)
733 |
734 | e.preventDefault()
735 | e.stopPropagation()
736 |
737 | if ($this.is('.disabled, :disabled')) return
738 |
739 | var $parent = getParent($this)
740 | var isActive = $parent.hasClass('open')
741 |
742 | if (!isActive || (isActive && e.keyCode == 27)) {
743 | if (e.which == 27) $parent.find(toggle).focus()
744 | return $this.click()
745 | }
746 |
747 | var $items = $('[role=menu] li:not(.divider):visible a', $parent)
748 |
749 | if (!$items.length) return
750 |
751 | var index = $items.index($items.filter(':focus'))
752 |
753 | if (e.keyCode == 38 && index > 0) index-- // up
754 | if (e.keyCode == 40 && index < $items.length - 1) index++ // down
755 | if (!~index) index=0
756 |
757 | $items.eq(index).focus()
758 | }
759 |
760 | function clearMenus() {
761 | $(backdrop).remove()
762 | $(toggle).each(function (e) {
763 | var $parent = getParent($(this))
764 | if (!$parent.hasClass('open')) return
765 | $parent.trigger(e = $.Event('hide.bs.dropdown'))
766 | if (e.isDefaultPrevented()) return
767 | $parent.removeClass('open').trigger('hidden.bs.dropdown')
768 | })
769 | }
770 |
771 | function getParent($this) {
772 | var selector = $this.attr('data-target')
773 |
774 | if (!selector) {
775 | selector = $this.attr('href')
776 | selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
777 | }
778 |
779 | var $parent = selector && $(selector)
780 |
781 | return $parent && $parent.length ? $parent : $this.parent()
782 | }
783 |
784 |
785 | // DROPDOWN PLUGIN DEFINITION
786 | // ==========================
787 |
788 | var old = $.fn.dropdown
789 |
790 | $.fn.dropdown = function (option) {
791 | return this.each(function () {
792 | var $this = $(this)
793 | var data = $this.data('dropdown')
794 |
795 | if (!data) $this.data('dropdown', (data = new Dropdown(this)))
796 | if (typeof option == 'string') data[option].call($this)
797 | })
798 | }
799 |
800 | $.fn.dropdown.Constructor = Dropdown
801 |
802 |
803 | // DROPDOWN NO CONFLICT
804 | // ====================
805 |
806 | $.fn.dropdown.noConflict = function () {
807 | $.fn.dropdown = old
808 | return this
809 | }
810 |
811 |
812 | // APPLY TO STANDARD DROPDOWN ELEMENTS
813 | // ===================================
814 |
815 | $(document)
816 | .on('click.bs.dropdown.data-api', clearMenus)
817 | .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
818 | .on('click.bs.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
819 | .on('keydown.bs.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
820 |
821 | }(window.jQuery);
822 |
823 | /* ========================================================================
824 | * Bootstrap: modal.js v3.0.0
825 | * http://twbs.github.com/bootstrap/javascript.html#modals
826 | * ========================================================================
827 | * Copyright 2012 Twitter, Inc.
828 | *
829 | * Licensed under the Apache License, Version 2.0 (the "License");
830 | * you may not use this file except in compliance with the License.
831 | * You may obtain a copy of the License at
832 | *
833 | * http://www.apache.org/licenses/LICENSE-2.0
834 | *
835 | * Unless required by applicable law or agreed to in writing, software
836 | * distributed under the License is distributed on an "AS IS" BASIS,
837 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
838 | * See the License for the specific language governing permissions and
839 | * limitations under the License.
840 | * ======================================================================== */
841 |
842 |
843 | +function ($) { "use strict";
844 |
845 | // MODAL CLASS DEFINITION
846 | // ======================
847 |
848 | var Modal = function (element, options) {
849 | this.options = options
850 | this.$element = $(element).on('click.dismiss.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
851 | this.$backdrop =
852 | this.isShown = null
853 |
854 | if (this.options.remote) this.$element.find('.modal-body').load(this.options.remote)
855 | }
856 |
857 | Modal.DEFAULTS = {
858 | backdrop: true
859 | , keyboard: true
860 | , show: true
861 | }
862 |
863 | Modal.prototype.toggle = function () {
864 | return this[!this.isShown ? 'show' : 'hide']()
865 | }
866 |
867 | Modal.prototype.show = function () {
868 | var that = this
869 | var e = $.Event('show.bs.modal')
870 |
871 | this.$element.trigger(e)
872 |
873 | if (this.isShown || e.isDefaultPrevented()) return
874 |
875 | this.isShown = true
876 |
877 | this.escape()
878 |
879 | this.backdrop(function () {
880 | var transition = $.support.transition && that.$element.hasClass('fade')
881 |
882 | if (!that.$element.parent().length) {
883 | that.$element.appendTo(document.body) // don't move modals dom position
884 | }
885 |
886 | that.$element.show()
887 |
888 | if (transition) {
889 | that.$element[0].offsetWidth // force reflow
890 | }
891 |
892 | that.$element
893 | .addClass('in')
894 | .attr('aria-hidden', false)
895 |
896 | that.enforceFocus()
897 |
898 | transition ?
899 | that.$element
900 | .one($.support.transition.end, function () {
901 | that.$element.focus().trigger('shown.bs.modal')
902 | })
903 | .emulateTransitionEnd(300) :
904 | that.$element.focus().trigger('shown.bs.modal')
905 | })
906 | }
907 |
908 | Modal.prototype.hide = function (e) {
909 | if (e) e.preventDefault()
910 |
911 | e = $.Event('hide.bs.modal')
912 |
913 | this.$element.trigger(e)
914 |
915 | if (!this.isShown || e.isDefaultPrevented()) return
916 |
917 | this.isShown = false
918 |
919 | this.escape()
920 |
921 | $(document).off('focusin.bs.modal')
922 |
923 | this.$element
924 | .removeClass('in')
925 | .attr('aria-hidden', true)
926 |
927 | $.support.transition && this.$element.hasClass('fade') ?
928 | this.$element
929 | .one($.support.transition.end, $.proxy(this.hideModal, this))
930 | .emulateTransitionEnd(300) :
931 | this.hideModal()
932 | }
933 |
934 | Modal.prototype.enforceFocus = function () {
935 | $(document)
936 | .off('focusin.bs.modal') // guard against infinite focus loop
937 | .on('focusin.bs.modal', $.proxy(function (e) {
938 | if (this.$element[0] !== e.target && !this.$element.has(e.target).length) {
939 | this.$element.focus()
940 | }
941 | }, this))
942 | }
943 |
944 | Modal.prototype.escape = function () {
945 | if (this.isShown && this.options.keyboard) {
946 | this.$element.on('keyup.dismiss.bs.modal', $.proxy(function (e) {
947 | e.which == 27 && this.hide()
948 | }, this))
949 | } else if (!this.isShown) {
950 | this.$element.off('keyup.dismiss.bs.modal')
951 | }
952 | }
953 |
954 | Modal.prototype.hideModal = function () {
955 | var that = this
956 | this.$element.hide()
957 | this.backdrop(function () {
958 | that.removeBackdrop()
959 | that.$element.trigger('hidden.bs.modal')
960 | })
961 | }
962 |
963 | Modal.prototype.removeBackdrop = function () {
964 | this.$backdrop && this.$backdrop.remove()
965 | this.$backdrop = null
966 | }
967 |
968 | Modal.prototype.backdrop = function (callback) {
969 | var that = this
970 | var animate = this.$element.hasClass('fade') ? 'fade' : ''
971 |
972 | if (this.isShown && this.options.backdrop) {
973 | var doAnimate = $.support.transition && animate
974 |
975 | this.$backdrop = $('
')
976 | .appendTo(document.body)
977 |
978 | this.$element.on('click', $.proxy(function (e) {
979 | if (e.target !== e.currentTarget) return
980 | this.options.backdrop == 'static'
981 | ? this.$element[0].focus.call(this.$element[0])
982 | : this.hide.call(this)
983 | }, this))
984 |
985 | if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
986 |
987 | this.$backdrop.addClass('in')
988 |
989 | if (!callback) return
990 |
991 | doAnimate ?
992 | this.$backdrop
993 | .one($.support.transition.end, callback)
994 | .emulateTransitionEnd(150) :
995 | callback()
996 |
997 | } else if (!this.isShown && this.$backdrop) {
998 | this.$backdrop.removeClass('in')
999 |
1000 | $.support.transition && this.$element.hasClass('fade')?
1001 | this.$backdrop
1002 | .one($.support.transition.end, callback)
1003 | .emulateTransitionEnd(150) :
1004 | callback()
1005 |
1006 | } else if (callback) {
1007 | callback()
1008 | }
1009 | }
1010 |
1011 |
1012 | // MODAL PLUGIN DEFINITION
1013 | // =======================
1014 |
1015 | var old = $.fn.modal
1016 |
1017 | $.fn.modal = function (option) {
1018 | return this.each(function () {
1019 | var $this = $(this)
1020 | var data = $this.data('bs.modal')
1021 | var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
1022 |
1023 | if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
1024 | if (typeof option == 'string') data[option]()
1025 | else if (options.show) data.show()
1026 | })
1027 | }
1028 |
1029 | $.fn.modal.Constructor = Modal
1030 |
1031 |
1032 | // MODAL NO CONFLICT
1033 | // =================
1034 |
1035 | $.fn.modal.noConflict = function () {
1036 | $.fn.modal = old
1037 | return this
1038 | }
1039 |
1040 |
1041 | // MODAL DATA-API
1042 | // ==============
1043 |
1044 | $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
1045 | var $this = $(this)
1046 | var href = $this.attr('href')
1047 | var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7
1048 | var option = $target.data('modal') ? 'toggle' : $.extend({ remote:!/#/.test(href) && href }, $target.data(), $this.data())
1049 |
1050 | e.preventDefault()
1051 |
1052 | $target
1053 | .modal(option)
1054 | .one('hide', function () {
1055 | $this.is(':visible') && $this.focus()
1056 | })
1057 | })
1058 |
1059 | $(function () {
1060 | var $body = $(document.body)
1061 | .on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
1062 | .on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
1063 | })
1064 |
1065 | }(window.jQuery);
1066 |
1067 | /* ========================================================================
1068 | * Bootstrap: tooltip.js v3.0.0
1069 | * http://twbs.github.com/bootstrap/javascript.html#affix
1070 | * Inspired by the original jQuery.tipsy by Jason Frame
1071 | * ========================================================================
1072 | * Copyright 2012 Twitter, Inc.
1073 | *
1074 | * Licensed under the Apache License, Version 2.0 (the "License");
1075 | * you may not use this file except in compliance with the License.
1076 | * You may obtain a copy of the License at
1077 | *
1078 | * http://www.apache.org/licenses/LICENSE-2.0
1079 | *
1080 | * Unless required by applicable law or agreed to in writing, software
1081 | * distributed under the License is distributed on an "AS IS" BASIS,
1082 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1083 | * See the License for the specific language governing permissions and
1084 | * limitations under the License.
1085 | * ======================================================================== */
1086 |
1087 |
1088 | +function ($) { "use strict";
1089 |
1090 | // TOOLTIP PUBLIC CLASS DEFINITION
1091 | // ===============================
1092 |
1093 | var Tooltip = function (element, options) {
1094 | this.type =
1095 | this.options =
1096 | this.enabled =
1097 | this.timeout =
1098 | this.hoverState =
1099 | this.$element = null
1100 |
1101 | this.init('tooltip', element, options)
1102 | }
1103 |
1104 | Tooltip.DEFAULTS = {
1105 | animation: true
1106 | , placement: 'top'
1107 | , selector: false
1108 | , template: ''
1109 | , trigger: 'hover focus'
1110 | , title: ''
1111 | , delay: 0
1112 | , html: false
1113 | , container: false
1114 | }
1115 |
1116 | Tooltip.prototype.init = function (type, element, options) {
1117 | this.enabled = true
1118 | this.type = type
1119 | this.$element = $(element)
1120 | this.options = this.getOptions(options)
1121 |
1122 | var triggers = this.options.trigger.split(' ')
1123 |
1124 | for (var i = triggers.length; i--;) {
1125 | var trigger = triggers[i]
1126 |
1127 | if (trigger == 'click') {
1128 | this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
1129 | } else if (trigger != 'manual') {
1130 | var eventIn = trigger == 'hover' ? 'mouseenter' : 'focus'
1131 | var eventOut = trigger == 'hover' ? 'mouseleave' : 'blur'
1132 |
1133 | this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
1134 | this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
1135 | }
1136 | }
1137 |
1138 | this.options.selector ?
1139 | (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
1140 | this.fixTitle()
1141 | }
1142 |
1143 | Tooltip.prototype.getDefaults = function () {
1144 | return Tooltip.DEFAULTS
1145 | }
1146 |
1147 | Tooltip.prototype.getOptions = function (options) {
1148 | options = $.extend({}, this.getDefaults(), this.$element.data(), options)
1149 |
1150 | if (options.delay && typeof options.delay == 'number') {
1151 | options.delay = {
1152 | show: options.delay
1153 | , hide: options.delay
1154 | }
1155 | }
1156 |
1157 | return options
1158 | }
1159 |
1160 | Tooltip.prototype.enter = function (obj) {
1161 | var defaults = this.getDefaults()
1162 | var options = {}
1163 |
1164 | this._options && $.each(this._options, function (key, value) {
1165 | if (defaults[key] != value) options[key] = value
1166 | })
1167 |
1168 | var self = obj instanceof this.constructor ?
1169 | obj : $(obj.currentTarget)[this.type](options).data('bs.' + this.type)
1170 |
1171 | clearTimeout(self.timeout)
1172 |
1173 | if (!self.options.delay || !self.options.delay.show) return self.show()
1174 |
1175 | self.hoverState = 'in'
1176 | self.timeout = setTimeout(function () {
1177 | if (self.hoverState == 'in') self.show()
1178 | }, self.options.delay.show)
1179 | }
1180 |
1181 | Tooltip.prototype.leave = function (obj) {
1182 | var self = obj instanceof this.constructor ?
1183 | obj : $(obj.currentTarget)[this.type](this._options).data('bs.' + this.type)
1184 |
1185 | clearTimeout(self.timeout)
1186 |
1187 | if (!self.options.delay || !self.options.delay.hide) return self.hide()
1188 |
1189 | self.hoverState = 'out'
1190 | self.timeout = setTimeout(function () {
1191 | if (self.hoverState == 'out') self.hide()
1192 | }, self.options.delay.hide)
1193 | }
1194 |
1195 | Tooltip.prototype.show = function () {
1196 | var e = $.Event('show.bs.'+ this.type)
1197 |
1198 | if (this.hasContent() && this.enabled) {
1199 | this.$element.trigger(e)
1200 |
1201 | if (e.isDefaultPrevented()) return
1202 |
1203 | var $tip = this.tip()
1204 |
1205 | this.setContent()
1206 |
1207 | if (this.options.animation) $tip.addClass('fade')
1208 |
1209 | var placement = typeof this.options.placement == 'function' ?
1210 | this.options.placement.call(this, $tip[0], this.$element[0]) :
1211 | this.options.placement
1212 |
1213 | var autoToken = /\s?auto?\s?/i
1214 | var autoPlace = autoToken.test(placement)
1215 | if (autoPlace) placement = placement.replace(autoToken, '') || 'top'
1216 |
1217 | $tip
1218 | .detach()
1219 | .css({ top: 0, left: 0, display: 'block' })
1220 | .addClass(placement)
1221 |
1222 | this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
1223 |
1224 | var pos = this.getPosition()
1225 | var actualWidth = $tip[0].offsetWidth
1226 | var actualHeight = $tip[0].offsetHeight
1227 |
1228 | if (autoPlace) {
1229 | var $parent = this.$element.parent()
1230 |
1231 | var orgPlacement = placement
1232 | var docScroll = document.documentElement.scrollTop || document.body.scrollTop
1233 | var parentWidth = this.options.container == 'body' ? window.innerWidth : $parent.outerWidth()
1234 | var parentHeight = this.options.container == 'body' ? window.innerHeight : $parent.outerHeight()
1235 | var parentLeft = this.options.container == 'body' ? 0 : $parent.offset().left
1236 |
1237 | placement = placement == 'bottom' && pos.top + pos.height + actualHeight - docScroll > parentHeight ? 'top' :
1238 | placement == 'top' && pos.top - docScroll - actualHeight < 0 ? 'bottom' :
1239 | placement == 'right' && pos.right + actualWidth > parentWidth ? 'left' :
1240 | placement == 'left' && pos.left - actualWidth < parentLeft ? 'right' :
1241 | placement
1242 |
1243 | $tip
1244 | .removeClass(orgPlacement)
1245 | .addClass(placement)
1246 | }
1247 |
1248 | var tp = placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } :
1249 | placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
1250 | placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
1251 | /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
1252 |
1253 | this.applyPlacement(tp, placement)
1254 | this.$element.trigger('shown.bs.' + this.type)
1255 | }
1256 | }
1257 |
1258 | Tooltip.prototype.applyPlacement = function(offset, placement) {
1259 | var replace
1260 | var $tip = this.tip()
1261 | var width = $tip[0].offsetWidth
1262 | var height = $tip[0].offsetHeight
1263 |
1264 | // manually read margins because getBoundingClientRect includes difference
1265 | offset.top = offset.top + parseInt($tip.css('margin-top'), 10)
1266 | offset.left = offset.left + parseInt($tip.css('margin-left'), 10)
1267 |
1268 | $tip
1269 | .offset(offset)
1270 | .addClass('in')
1271 |
1272 | var actualWidth = $tip[0].offsetWidth
1273 | var actualHeight = $tip[0].offsetHeight
1274 |
1275 | if (placement == 'top' && actualHeight != height) {
1276 | replace = true
1277 | offset.top = offset.top + height - actualHeight
1278 | }
1279 |
1280 | if (placement == 'bottom' || placement == 'top') {
1281 | var delta = 0
1282 |
1283 | if (offset.left < 0){
1284 | delta = offset.left * -2
1285 | offset.left = 0
1286 |
1287 | $tip.offset(offset)
1288 |
1289 | actualWidth = $tip[0].offsetWidth
1290 | actualHeight = $tip[0].offsetHeight
1291 | }
1292 |
1293 | this.replaceArrow(delta - width + actualWidth, actualWidth, 'left')
1294 | } else {
1295 | this.replaceArrow(actualHeight - height, actualHeight, 'top')
1296 | }
1297 |
1298 | if (replace) $tip.offset(offset)
1299 | }
1300 |
1301 | Tooltip.prototype.replaceArrow = function(delta, dimension, position) {
1302 | this.arrow().css(position, delta ? (50 * (1 - delta / dimension) + "%") : '')
1303 | }
1304 |
1305 | Tooltip.prototype.setContent = function () {
1306 | var $tip = this.tip()
1307 | var title = this.getTitle()
1308 |
1309 | $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
1310 | $tip.removeClass('fade in top bottom left right')
1311 | }
1312 |
1313 | Tooltip.prototype.hide = function () {
1314 | var that = this
1315 | var $tip = this.tip()
1316 | var e = $.Event('hide.bs.' + this.type)
1317 |
1318 | function complete() { $tip.detach() }
1319 |
1320 | this.$element.trigger(e)
1321 |
1322 | if (e.isDefaultPrevented()) return
1323 |
1324 | $tip.removeClass('in')
1325 |
1326 | $.support.transition && this.$tip.hasClass('fade') ?
1327 | $tip
1328 | .one($.support.transition.end, complete)
1329 | .emulateTransitionEnd(150) :
1330 | complete()
1331 |
1332 | this.$element.trigger('hidden.bs.' + this.type)
1333 |
1334 | return this
1335 | }
1336 |
1337 | Tooltip.prototype.fixTitle = function () {
1338 | var $e = this.$element
1339 | if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
1340 | $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
1341 | }
1342 | }
1343 |
1344 | Tooltip.prototype.hasContent = function () {
1345 | return this.getTitle()
1346 | }
1347 |
1348 | Tooltip.prototype.getPosition = function () {
1349 | var el = this.$element[0]
1350 | return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : {
1351 | width: el.offsetWidth
1352 | , height: el.offsetHeight
1353 | }, this.$element.offset())
1354 | }
1355 |
1356 | Tooltip.prototype.getTitle = function () {
1357 | var title
1358 | var $e = this.$element
1359 | var o = this.options
1360 |
1361 | title = $e.attr('data-original-title')
1362 | || (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
1363 |
1364 | return title
1365 | }
1366 |
1367 | Tooltip.prototype.tip = function () {
1368 | return this.$tip = this.$tip || $(this.options.template)
1369 | }
1370 |
1371 | Tooltip.prototype.arrow =function(){
1372 | return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
1373 | }
1374 |
1375 | Tooltip.prototype.validate = function () {
1376 | if (!this.$element[0].parentNode) {
1377 | this.hide()
1378 | this.$element = null
1379 | this.options = null
1380 | }
1381 | }
1382 |
1383 | Tooltip.prototype.enable = function () {
1384 | this.enabled = true
1385 | }
1386 |
1387 | Tooltip.prototype.disable = function () {
1388 | this.enabled = false
1389 | }
1390 |
1391 | Tooltip.prototype.toggleEnabled = function () {
1392 | this.enabled = !this.enabled
1393 | }
1394 |
1395 | Tooltip.prototype.toggle = function (e) {
1396 | var self = e ? $(e.currentTarget)[this.type](this._options).data('bs.' + this.type) : this
1397 | self.tip().hasClass('in') ? self.leave(self) : self.enter(self)
1398 | }
1399 |
1400 | Tooltip.prototype.destroy = function () {
1401 | this.hide().$element.off('.' + this.type).removeData('bs.' + this.type)
1402 | }
1403 |
1404 |
1405 | // TOOLTIP PLUGIN DEFINITION
1406 | // =========================
1407 |
1408 | var old = $.fn.tooltip
1409 |
1410 | $.fn.tooltip = function (option) {
1411 | return this.each(function () {
1412 | var $this = $(this)
1413 | var data = $this.data('bs.tooltip')
1414 | var options = typeof option == 'object' && option
1415 |
1416 | if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
1417 | if (typeof option == 'string') data[option]()
1418 | })
1419 | }
1420 |
1421 | $.fn.tooltip.Constructor = Tooltip
1422 |
1423 |
1424 | // TOOLTIP NO CONFLICT
1425 | // ===================
1426 |
1427 | $.fn.tooltip.noConflict = function () {
1428 | $.fn.tooltip = old
1429 | return this
1430 | }
1431 |
1432 | }(window.jQuery);
1433 |
1434 | /* ========================================================================
1435 | * Bootstrap: popover.js v3.0.0
1436 | * http://twbs.github.com/bootstrap/javascript.html#popovers
1437 | * ========================================================================
1438 | * Copyright 2012 Twitter, Inc.
1439 | *
1440 | * Licensed under the Apache License, Version 2.0 (the "License");
1441 | * you may not use this file except in compliance with the License.
1442 | * You may obtain a copy of the License at
1443 | *
1444 | * http://www.apache.org/licenses/LICENSE-2.0
1445 | *
1446 | * Unless required by applicable law or agreed to in writing, software
1447 | * distributed under the License is distributed on an "AS IS" BASIS,
1448 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1449 | * See the License for the specific language governing permissions and
1450 | * limitations under the License.
1451 | * ======================================================================== */
1452 |
1453 |
1454 | +function ($) { "use strict";
1455 |
1456 | // POPOVER PUBLIC CLASS DEFINITION
1457 | // ===============================
1458 |
1459 | var Popover = function (element, options) {
1460 | this.init('popover', element, options)
1461 | }
1462 |
1463 | if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
1464 |
1465 | Popover.DEFAULTS = $.extend({} , $.fn.tooltip.Constructor.DEFAULTS, {
1466 | placement: 'right'
1467 | , trigger: 'click'
1468 | , content: ''
1469 | , template: ''
1470 | })
1471 |
1472 |
1473 | // NOTE: POPOVER EXTENDS tooltip.js
1474 | // ================================
1475 |
1476 | Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)
1477 |
1478 | Popover.prototype.constructor = Popover
1479 |
1480 | Popover.prototype.getDefaults = function () {
1481 | return Popover.DEFAULTS
1482 | }
1483 |
1484 | Popover.prototype.setContent = function () {
1485 | var $tip = this.tip()
1486 | var title = this.getTitle()
1487 | var content = this.getContent()
1488 |
1489 | $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
1490 | $tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content)
1491 |
1492 | $tip.removeClass('fade top bottom left right in')
1493 |
1494 | $tip.find('.popover-title:empty').hide()
1495 | }
1496 |
1497 | Popover.prototype.hasContent = function () {
1498 | return this.getTitle() || this.getContent()
1499 | }
1500 |
1501 | Popover.prototype.getContent = function () {
1502 | var $e = this.$element
1503 | var o = this.options
1504 |
1505 | return $e.attr('data-content')
1506 | || (typeof o.content == 'function' ?
1507 | o.content.call($e[0]) :
1508 | o.content)
1509 | }
1510 |
1511 | Popover.prototype.tip = function () {
1512 | if (!this.$tip) this.$tip = $(this.options.template)
1513 | return this.$tip
1514 | }
1515 |
1516 |
1517 | // POPOVER PLUGIN DEFINITION
1518 | // =========================
1519 |
1520 | var old = $.fn.popover
1521 |
1522 | $.fn.popover = function (option) {
1523 | return this.each(function () {
1524 | var $this = $(this)
1525 | var data = $this.data('bs.popover')
1526 | var options = typeof option == 'object' && option
1527 |
1528 | if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
1529 | if (typeof option == 'string') data[option]()
1530 | })
1531 | }
1532 |
1533 | $.fn.popover.Constructor = Popover
1534 |
1535 |
1536 | // POPOVER NO CONFLICT
1537 | // ===================
1538 |
1539 | $.fn.popover.noConflict = function () {
1540 | $.fn.popover = old
1541 | return this
1542 | }
1543 |
1544 | }(window.jQuery);
1545 |
1546 | /* ========================================================================
1547 | * Bootstrap: scrollspy.js v3.0.0
1548 | * http://twbs.github.com/bootstrap/javascript.html#scrollspy
1549 | * ========================================================================
1550 | * Copyright 2012 Twitter, Inc.
1551 | *
1552 | * Licensed under the Apache License, Version 2.0 (the "License");
1553 | * you may not use this file except in compliance with the License.
1554 | * You may obtain a copy of the License at
1555 | *
1556 | * http://www.apache.org/licenses/LICENSE-2.0
1557 | *
1558 | * Unless required by applicable law or agreed to in writing, software
1559 | * distributed under the License is distributed on an "AS IS" BASIS,
1560 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1561 | * See the License for the specific language governing permissions and
1562 | * limitations under the License.
1563 | * ======================================================================== */
1564 |
1565 |
1566 | +function ($) { "use strict";
1567 |
1568 | // SCROLLSPY CLASS DEFINITION
1569 | // ==========================
1570 |
1571 | function ScrollSpy(element, options) {
1572 | var href
1573 | var process = $.proxy(this.process, this)
1574 |
1575 | this.$element = $(element).is('body') ? $(window) : $(element)
1576 | this.$body = $('body')
1577 | this.$scrollElement = this.$element.on('scroll.bs.scroll-spy.data-api', process)
1578 | this.options = $.extend({}, ScrollSpy.DEFAULTS, options)
1579 | this.selector = (this.options.target
1580 | || ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
1581 | || '') + ' .nav li > a'
1582 | this.offsets = $([])
1583 | this.targets = $([])
1584 | this.activeTarget = null
1585 |
1586 | this.refresh()
1587 | this.process()
1588 | }
1589 |
1590 | ScrollSpy.DEFAULTS = {
1591 | offset: 10
1592 | }
1593 |
1594 | ScrollSpy.prototype.refresh = function () {
1595 | var offsetMethod = this.$element[0] == window ? 'offset' : 'position'
1596 |
1597 | this.offsets = $([])
1598 | this.targets = $([])
1599 |
1600 | var self = this
1601 | var $targets = this.$body
1602 | .find(this.selector)
1603 | .map(function () {
1604 | var $el = $(this)
1605 | var href = $el.data('target') || $el.attr('href')
1606 | var $href = /^#\w/.test(href) && $(href)
1607 |
1608 | return ($href
1609 | && $href.length
1610 | && [[ $href[offsetMethod]().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]]) || null
1611 | })
1612 | .sort(function (a, b) { return a[0] - b[0] })
1613 | .each(function () {
1614 | self.offsets.push(this[0])
1615 | self.targets.push(this[1])
1616 | })
1617 | }
1618 |
1619 | ScrollSpy.prototype.process = function () {
1620 | var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
1621 | var scrollHeight = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight
1622 | var maxScroll = scrollHeight - this.$scrollElement.height()
1623 | var offsets = this.offsets
1624 | var targets = this.targets
1625 | var activeTarget = this.activeTarget
1626 | var i
1627 |
1628 | if (scrollTop >= maxScroll) {
1629 | return activeTarget != (i = targets.last()[0]) && this.activate(i)
1630 | }
1631 |
1632 | for (i = offsets.length; i--;) {
1633 | activeTarget != targets[i]
1634 | && scrollTop >= offsets[i]
1635 | && (!offsets[i + 1] || scrollTop <= offsets[i + 1])
1636 | && this.activate( targets[i] )
1637 | }
1638 | }
1639 |
1640 | ScrollSpy.prototype.activate = function (target) {
1641 | this.activeTarget = target
1642 |
1643 | $(this.selector)
1644 | .parents('.active')
1645 | .removeClass('active')
1646 |
1647 | var selector = this.selector
1648 | + '[data-target="' + target + '"],'
1649 | + this.selector + '[href="' + target + '"]'
1650 |
1651 | var active = $(selector)
1652 | .parents('li')
1653 | .addClass('active')
1654 |
1655 | if (active.parent('.dropdown-menu').length) {
1656 | active = active
1657 | .closest('li.dropdown')
1658 | .addClass('active')
1659 | }
1660 |
1661 | active.trigger('activate')
1662 | }
1663 |
1664 |
1665 | // SCROLLSPY PLUGIN DEFINITION
1666 | // ===========================
1667 |
1668 | var old = $.fn.scrollspy
1669 |
1670 | $.fn.scrollspy = function (option) {
1671 | return this.each(function () {
1672 | var $this = $(this)
1673 | var data = $this.data('bs.scrollspy')
1674 | var options = typeof option == 'object' && option
1675 |
1676 | if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
1677 | if (typeof option == 'string') data[option]()
1678 | })
1679 | }
1680 |
1681 | $.fn.scrollspy.Constructor = ScrollSpy
1682 |
1683 |
1684 | // SCROLLSPY NO CONFLICT
1685 | // =====================
1686 |
1687 | $.fn.scrollspy.noConflict = function () {
1688 | $.fn.scrollspy = old
1689 | return this
1690 | }
1691 |
1692 |
1693 | // SCROLLSPY DATA-API
1694 | // ==================
1695 |
1696 | $(window).on('load', function () {
1697 | $('[data-spy="scroll"]').each(function () {
1698 | var $spy = $(this)
1699 | $spy.scrollspy($spy.data())
1700 | })
1701 | })
1702 |
1703 | }(window.jQuery);
1704 |
1705 | /* ========================================================================
1706 | * Bootstrap: tab.js v3.0.0
1707 | * http://twbs.github.com/bootstrap/javascript.html#tabs
1708 | * ========================================================================
1709 | * Copyright 2012 Twitter, Inc.
1710 | *
1711 | * Licensed under the Apache License, Version 2.0 (the "License");
1712 | * you may not use this file except in compliance with the License.
1713 | * You may obtain a copy of the License at
1714 | *
1715 | * http://www.apache.org/licenses/LICENSE-2.0
1716 | *
1717 | * Unless required by applicable law or agreed to in writing, software
1718 | * distributed under the License is distributed on an "AS IS" BASIS,
1719 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1720 | * See the License for the specific language governing permissions and
1721 | * limitations under the License.
1722 | * ======================================================================== */
1723 |
1724 |
1725 | +function ($) { "use strict";
1726 |
1727 | // TAB CLASS DEFINITION
1728 | // ====================
1729 |
1730 | var Tab = function (element) {
1731 | this.element = $(element)
1732 | }
1733 |
1734 | Tab.prototype.show = function () {
1735 | var $this = this.element
1736 | var $ul = $this.closest('ul:not(.dropdown-menu)')
1737 | var selector = $this.attr('data-target')
1738 |
1739 | if (!selector) {
1740 | selector = $this.attr('href')
1741 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
1742 | }
1743 |
1744 | if ($this.parent('li').hasClass('active')) return
1745 |
1746 | var previous = $ul.find('.active:last a')[0]
1747 | var e = $.Event('show.bs.tab', {
1748 | relatedTarget: previous
1749 | })
1750 |
1751 | $this.trigger(e)
1752 |
1753 | if (e.isDefaultPrevented()) return
1754 |
1755 | var $target = $(selector)
1756 |
1757 | this.activate($this.parent('li'), $ul)
1758 | this.activate($target, $target.parent(), function () {
1759 | $this.trigger({
1760 | type: 'shown.bs.tab'
1761 | , relatedTarget: previous
1762 | })
1763 | })
1764 | }
1765 |
1766 | Tab.prototype.activate = function (element, container, callback) {
1767 | var $active = container.find('> .active')
1768 | var transition = callback
1769 | && $.support.transition
1770 | && $active.hasClass('fade')
1771 |
1772 | function next() {
1773 | $active
1774 | .removeClass('active')
1775 | .find('> .dropdown-menu > .active')
1776 | .removeClass('active')
1777 |
1778 | element.addClass('active')
1779 |
1780 | if (transition) {
1781 | element[0].offsetWidth // reflow for transition
1782 | element.addClass('in')
1783 | } else {
1784 | element.removeClass('fade')
1785 | }
1786 |
1787 | if (element.parent('.dropdown-menu')) {
1788 | element.closest('li.dropdown').addClass('active')
1789 | }
1790 |
1791 | callback && callback()
1792 | }
1793 |
1794 | transition ?
1795 | $active
1796 | .one($.support.transition.end, next)
1797 | .emulateTransitionEnd(150) :
1798 | next()
1799 |
1800 | $active.removeClass('in')
1801 | }
1802 |
1803 |
1804 | // TAB PLUGIN DEFINITION
1805 | // =====================
1806 |
1807 | var old = $.fn.tab
1808 |
1809 | $.fn.tab = function ( option ) {
1810 | return this.each(function () {
1811 | var $this = $(this)
1812 | var data = $this.data('bs.tab')
1813 |
1814 | if (!data) $this.data('bs.tab', (data = new Tab(this)))
1815 | if (typeof option == 'string') data[option]()
1816 | })
1817 | }
1818 |
1819 | $.fn.tab.Constructor = Tab
1820 |
1821 |
1822 | // TAB NO CONFLICT
1823 | // ===============
1824 |
1825 | $.fn.tab.noConflict = function () {
1826 | $.fn.tab = old
1827 | return this
1828 | }
1829 |
1830 |
1831 | // TAB DATA-API
1832 | // ============
1833 |
1834 | $(document).on('click.bs.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
1835 | e.preventDefault()
1836 | $(this).tab('show')
1837 | })
1838 |
1839 | }(window.jQuery);
1840 |
1841 | /* ========================================================================
1842 | * Bootstrap: affix.js v3.0.0
1843 | * http://twbs.github.com/bootstrap/javascript.html#affix
1844 | * ========================================================================
1845 | * Copyright 2012 Twitter, Inc.
1846 | *
1847 | * Licensed under the Apache License, Version 2.0 (the "License");
1848 | * you may not use this file except in compliance with the License.
1849 | * You may obtain a copy of the License at
1850 | *
1851 | * http://www.apache.org/licenses/LICENSE-2.0
1852 | *
1853 | * Unless required by applicable law or agreed to in writing, software
1854 | * distributed under the License is distributed on an "AS IS" BASIS,
1855 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1856 | * See the License for the specific language governing permissions and
1857 | * limitations under the License.
1858 | * ======================================================================== */
1859 |
1860 |
1861 | +function ($) { "use strict";
1862 |
1863 | // AFFIX CLASS DEFINITION
1864 | // ======================
1865 |
1866 | var Affix = function (element, options) {
1867 | this.options = $.extend({}, Affix.DEFAULTS, options)
1868 | this.$window = $(window)
1869 | .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
1870 | .on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this))
1871 |
1872 | this.$element = $(element)
1873 | this.affixed =
1874 | this.unpin = null
1875 |
1876 | this.checkPosition()
1877 | }
1878 |
1879 | Affix.RESET = 'affix affix-top affix-bottom'
1880 |
1881 | Affix.DEFAULTS = {
1882 | offset: 0
1883 | }
1884 |
1885 | Affix.prototype.checkPositionWithEventLoop = function () {
1886 | setTimeout($.proxy(this.checkPosition, this), 1)
1887 | }
1888 |
1889 | Affix.prototype.checkPosition = function () {
1890 | if (!this.$element.is(':visible')) return
1891 |
1892 | var scrollHeight = $(document).height()
1893 | var scrollTop = this.$window.scrollTop()
1894 | var position = this.$element.offset()
1895 | var offset = this.options.offset
1896 | var offsetTop = offset.top
1897 | var offsetBottom = offset.bottom
1898 |
1899 | if (typeof offset != 'object') offsetBottom = offsetTop = offset
1900 | if (typeof offsetTop == 'function') offsetTop = offset.top()
1901 | if (typeof offsetBottom == 'function') offsetBottom = offset.bottom()
1902 |
1903 | var affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ? false :
1904 | offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ? 'bottom' :
1905 | offsetTop != null && (scrollTop <= offsetTop) ? 'top' : false
1906 |
1907 | if (this.affixed === affix) return
1908 | if (this.unpin) this.$element.css('top', '')
1909 |
1910 | this.affixed = affix
1911 | this.unpin = affix == 'bottom' ? position.top - scrollTop : null
1912 |
1913 | this.$element.removeClass(Affix.RESET).addClass('affix' + (affix ? '-' + affix : ''))
1914 |
1915 | if (affix == 'bottom') {
1916 | this.$element.offset({ top: document.body.offsetHeight - offsetBottom - this.$element.height() })
1917 | }
1918 | }
1919 |
1920 |
1921 | // AFFIX PLUGIN DEFINITION
1922 | // =======================
1923 |
1924 | var old = $.fn.affix
1925 |
1926 | $.fn.affix = function (option) {
1927 | return this.each(function () {
1928 | var $this = $(this)
1929 | var data = $this.data('bs.affix')
1930 | var options = typeof option == 'object' && option
1931 |
1932 | if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
1933 | if (typeof option == 'string') data[option]()
1934 | })
1935 | }
1936 |
1937 | $.fn.affix.Constructor = Affix
1938 |
1939 |
1940 | // AFFIX NO CONFLICT
1941 | // =================
1942 |
1943 | $.fn.affix.noConflict = function () {
1944 | $.fn.affix = old
1945 | return this
1946 | }
1947 |
1948 |
1949 | // AFFIX DATA-API
1950 | // ==============
1951 |
1952 | $(window).on('load', function () {
1953 | $('[data-spy="affix"]').each(function () {
1954 | var $spy = $(this)
1955 | var data = $spy.data()
1956 |
1957 | data.offset = data.offset || {}
1958 |
1959 | if (data.offsetBottom) data.offset.bottom = data.offsetBottom
1960 | if (data.offsetTop) data.offset.top = data.offsetTop
1961 |
1962 | $spy.affix(data)
1963 | })
1964 | })
1965 |
1966 | }(window.jQuery);
1967 |
--------------------------------------------------------------------------------