├── .gitignore ├── LICENSE.md ├── Procfile ├── README.md ├── art_web ├── __init__.py ├── forms.py ├── models.py ├── static │ ├── assets │ │ ├── AMS.jpg │ │ ├── Ajitesh.jpg │ │ ├── cover.png │ │ ├── cover2.jpg │ │ ├── cover3.jpg │ │ ├── icon.png │ │ ├── painting1.jpg │ │ ├── painting2.jpg │ │ ├── painting3.jpg │ │ ├── painting4.jpg │ │ ├── painting5.jpg │ │ ├── painting6.jpg │ │ ├── painting7.jpg │ │ ├── painting8.jpg │ │ ├── painting9.jpg │ │ ├── profile.png │ │ ├── profile2.png │ │ ├── sculpture1.png │ │ ├── sculpture2.jpg │ │ ├── sculpture3.jpg │ │ ├── sculpture4.jpg │ │ └── sculpture5.jpg │ ├── js │ │ ├── bootstrap.min.js │ │ └── jquery.min.js │ └── style │ │ ├── bootstrap.css │ │ ├── class.css │ │ ├── font-awesome.min.css │ │ ├── login.css │ │ ├── style.css │ │ ├── w3-theme-black.css │ │ ├── w3-theme-teal.css │ │ └── w3.css ├── templates │ ├── base.html │ ├── index.html │ ├── macros.html │ ├── profile.html │ ├── signin.html │ ├── signup.html │ └── submit_art.html └── views.py ├── before_install.txt ├── cur_tree.txt ├── requirements.txt └── runserver.py /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.sql 3 | *.vscode 4 | /migrations 5 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Ajitesh Rai 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: gunicorn art_web:app 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Art-Gallery-Website 2 | Open source website for viewing arts and paintings. This website is being built as our DBMS project in fifth semester, Computer Engineering, Jamia Millia Islamia. 3 | 4 | 5 | ### What's inside 6 | 7 | This website uses a number of open source projects to work properly: 8 | 9 | * [Flask] - Python Web framework 10 | * [Bootstrap] - Our frontend framework 11 | 12 | 13 | 14 | And of course this website itself is open source with a [public repository][dill] 15 | on GitHub. 16 | 17 | ### Development 18 | 19 | Want to contribute? **Yeaah**! 20 | 21 | To fix a bug or enhance an existing module, follow these steps: 22 | 23 | 1. Fork the repo 24 | 2. Create a new branch (`git checkout -b exciting-stuff`) 25 | 3. Make the appropriate changes in the files 26 | 4. Add changes to reflect the changes made 27 | 5. Commit your changes (`git commit -am 'exciting-stuff!!'`) 28 | 6. Push to the branch (`git push origin exciting-stuff`) 29 | 7. Create a Pull Request 30 | 31 | ### Interested? 32 | 33 | If you find a bug (the website couldn't handle the query and / or gave irrelevant results), kindly open an issue [here](https://github.com/ajiteshr7/art-gallery-website/issues/new) by including your search query and the expected result. 34 | 35 | If you'd like to request a new functionality, feel free to do so by opening an issue [here](https://github.com/ajiteshr7/art-gallery-website/issues/new). Don't forget to include some sample queries and their corresponding results. 36 | 37 | 38 | ### What next? 39 | 40 | - Write Tests 41 | - Add Code Comments 42 | - Seems perfect naa!! 43 | - Some more code 44 | - Check for bugs 45 | - Go-Online!! 46 | 47 | ## The team 48 | 49 | [![Ajitesh Rai](https://avatars2.githubusercontent.com/u/16607284?v=4&s=200)](https://github.com/ajiteshr7) | [Lakshita Bhatia](https://github.com/lakshita-bhatia) | [Abdul Mohsin Siddqi](https://github.com/mohsincl) 50 | ---|---| --- 51 | [Ajitesh Rai](https://github.com/ajiteshr7) |[Lakshita Bhatia](https://github.com/lakshita-bhatia) |[Abdul Mohsin Siddqi](https://github.com/mohsincl) 52 | 53 | 54 | License 55 | ---- 56 | 57 | MIT 58 | 59 | 60 | 61 | [dill]: 62 | [Flask]: 63 | [Bootstrap]: 64 | -------------------------------------------------------------------------------- /art_web/__init__.py: -------------------------------------------------------------------------------- 1 | from os import environ 2 | from flask import Flask 3 | 4 | app = Flask(__name__) 5 | 6 | app.secret_key = 'mnbvcxz92+iobugvy554576*()%~`5rsaxfi8716jhajh$^*' 7 | app.config['SQLALCHEMY_DATABASE_URI'] = environ.get('DATABASE_URL', 'mysql://root:1234@127.0.0.1:3306/art_gallery') 8 | app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True 9 | # app.config['BASIC_AUTH_USERNAME'] = 'admin' 10 | # app.config['BASIC_AUTH_PASSWORD'] = 'admin' 11 | # app.config['BASIC_AUTH_FORCE'] = True 12 | 13 | from models import db 14 | db.init_app(app) 15 | 16 | from flask_migrate import Migrate 17 | 18 | migrate = Migrate(app,db) 19 | 20 | import art_web.views 21 | -------------------------------------------------------------------------------- /art_web/forms.py: -------------------------------------------------------------------------------- 1 | from flask_wtf import Form 2 | from wtforms import TextField, TextAreaField, SubmitField, ValidationError, PasswordField 3 | from wtforms import validators, ValidationError 4 | from models import User 5 | 6 | class SignupForm(Form): 7 | firstname = TextField("First name", [validators.Required("Please enter your first name.")]) 8 | lastname = TextField("Last name", [validators.Required("Please enter your last name.")]) 9 | email = TextField("Email", [validators.Required("Please enter your email address.")\ 10 | , validators.Email("Please enter your email address.")]) 11 | password = PasswordField('Password', [validators.Required("Please enter a password.")]) 12 | phone_number = TextField("Phone number") 13 | gender = TextField("gender") 14 | address = TextField("address") 15 | city = TextField("city") 16 | country = TextField("country") 17 | submit = SubmitField("Create account") 18 | 19 | def __init__(self, *args, **kwargs): 20 | Form.__init__(self, *args, **kwargs) 21 | 22 | def validate(self): 23 | if not Form.validate(self): 24 | return False 25 | user = User.query.filter_by(email=self.email.data.lower()).first() 26 | if user: 27 | self.email.errors.append("That email is already taken") 28 | return False 29 | else: 30 | return True 31 | 32 | class SigninForm(Form): 33 | email = TextField("Email", [validators.Required("Please enter your email address.")\ 34 | , validators.Email("Please enter your email address.")]) 35 | password = PasswordField('Password', [validators.Required("Please enter a password.")]) 36 | submit = SubmitField("Sign In") 37 | 38 | def __init__(self, *args, **kwargs): 39 | Form.__init__(self, *args, **kwargs) 40 | 41 | def validate(self): 42 | if not Form.validate(self): 43 | return False 44 | 45 | user = User.query.filter_by(email=self.email.data.lower()).first() 46 | if user and user.check_password(self.password.data): 47 | return True 48 | else: 49 | self.email.errors.append("Invalid e-mail or password") 50 | return False 51 | 52 | class FeedbackForm(Form): 53 | name = TextField("Name", [validators.Required("Please enter your first name.")]\ 54 | , description="Name") 55 | email = TextField("Email", [validators.Required("Please enter your email address.")\ 56 | , validators.Email("Please enter your email address.")], description="Email") 57 | subject = TextField("Name", [validators.Required("Please enter your first name.")]\ 58 | , description="Subject") 59 | comment = TextField("Name", [validators.Required("Please enter your first name.")]\ 60 | , description="Comment") 61 | submit = SubmitField("Send Message") 62 | 63 | def __init__(self, *args, **kwargs): 64 | Form.__init__(self, *args, **kwargs) 65 | 66 | class SubmitArt(Form): 67 | name = TextField("Name", [validators.Required("Please enter paintings title.")]\ 68 | , description="Painting's title") 69 | location = TextField("Location", [validators.Required("Please enter file location.")]\ 70 | , description="Paintings's location") 71 | artist_id = TextField("Artist_id", [validators.Required("Please enter artist_id.")]\ 72 | , description="Artist_id") 73 | submit = SubmitField("Submit") 74 | 75 | def __init__(self, *args, **kwargs): 76 | Form.__init__(self, *args, **kwargs) 77 | -------------------------------------------------------------------------------- /art_web/models.py: -------------------------------------------------------------------------------- 1 | from flask_sqlalchemy import SQLAlchemy 2 | from werkzeug import generate_password_hash,check_password_hash 3 | 4 | db = SQLAlchemy() 5 | class User(db.Model): 6 | __tablename__ = 'users' 7 | uid = db.Column(db.Integer, primary_key = True) 8 | firstname = db.Column(db.String(100), nullable = False) 9 | lastname = db.Column(db.String(100)) 10 | email = db.Column(db.String(120), nullable = False ,unique = True) 11 | pwdhash = db.Column(db.String(54), nullable = False) 12 | phone_number = db.Column(db.String(15), nullable = False) 13 | gender = db.Column(db.String(30), nullable = False) 14 | address = db.Column(db.String(50), nullable = False) 15 | city = db.Column(db.String(30), nullable = False) 16 | country = db.Column(db.String(30), nullable = False) 17 | time_created = db.Column(db.DateTime(timezone=True), server_default=db.func.now()) 18 | time_updated = db.Column(db.DateTime(timezone=True), onupdate=db.func.now()) 19 | 20 | def __init__ (self, firstname="", lastname="", email="", password="", phone_number="", gender="", address="", city="", country=""): 21 | self.firstname = firstname.title() 22 | self.lastname = lastname.title() 23 | self.email = email.lower() 24 | self.set_password(password) 25 | self.phone_number = phone_number 26 | self.gender = gender.upper() 27 | self.address = address 28 | self.city = city.title() 29 | self.country = country.title() 30 | 31 | def set_password(self, password): 32 | self.pwdhash = generate_password_hash(password) 33 | 34 | def check_password(self, password): 35 | return check_password_hash(self.pwdhash,password) 36 | 37 | class Artist(db.Model): 38 | __tablename__='artist' 39 | artist_id = db.Column(db.Integer, primary_key = True) 40 | artist_bio = db.Column(db.String(100), nullable = False) 41 | artist_name = db.Column(db.String(100),nullable = False) 42 | artist_city = db.Column(db.String(30), nullable = False ) 43 | artist_country = db.Column(db.String(30), nullable = False ) 44 | time_created = db.Column(db.DateTime(timezone=True), server_default=db.func.now()) 45 | time_updated = db.Column(db.DateTime(timezone=True), onupdate=db.func.now()) 46 | def __init__ (self, artist_name="", artist_bio="", artist_city="",artist_country=""): 47 | self.artist_name = artist_name.title() 48 | self.artist_bio = artist_bio 49 | self.artist_city = artist_city.title() 50 | self.artist_country = artist_country.title() 51 | 52 | def __repr__(self): 53 | return '' % self.artist_name 54 | 55 | class Paintings(db.Model): 56 | __tablename__='paintings' 57 | painting_id = db.Column(db.Integer, primary_key = True) 58 | name = db.Column(db.String(100),nullable=False) 59 | painting_photo = db.Column(db.String(100), nullable = False) 60 | artist_id = db.Column(db.Integer,db.ForeignKey(Artist.artist_id), nullable = False ) 61 | painting_bio = db.Column(db.String(100), default = "Beautiful art piece") 62 | painter = db.relationship('Artist', foreign_keys='Paintings.artist_id') 63 | time_created = db.Column(db.DateTime(timezone=True), server_default=db.func.now()) 64 | time_updated = db.Column(db.DateTime(timezone=True), onupdate=db.func.now()) 65 | 66 | def __init__(self, name="", painting_photo="", artist_id=1): 67 | self.name = name.title() 68 | self.painting_photo = painting_photo 69 | self.artist_id = artist_id 70 | 71 | def __repr__(self): 72 | return '' % self.name 73 | 74 | 75 | class Feedback(db.Model): 76 | __tablename__='feedback' 77 | feed_id = db.Column(db.Integer, primary_key = True) 78 | name = db.Column(db.String(100), nullable = False) 79 | email = db.Column(db.String(120), nullable = False) 80 | subject = db.Column(db.String(50) ) 81 | comment = db.Column(db.String(200)) 82 | time_created = db.Column(db.DateTime(timezone=True), server_default=db.func.now()) 83 | time_updated = db.Column(db.DateTime(timezone=True), onupdate=db.func.now()) 84 | 85 | def __init__ (self, name="", email="", subject="", comment=""): 86 | self.name = name.title() 87 | self.email = email.lower() 88 | self.subject = subject.title() 89 | self.comment = comment 90 | 91 | 92 | class AdminUser(db.Model): 93 | __tablename__ = 'admin_user' 94 | admin_id = db.Column(db.Integer, primary_key = True) 95 | name = db.Column(db.String(100), nullable = False) 96 | email = db.Column(db.String(120), nullable = False) 97 | pwd = db.Column(db.String(54), nullable = False) 98 | 99 | def __init__ (self, name="", email="", password=""): 100 | self.name = name.title() 101 | self.email = email.lower() 102 | self.pwd = password 103 | 104 | def check_password(self, password): 105 | return (self.pwd == password) 106 | -------------------------------------------------------------------------------- /art_web/static/assets/AMS.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/AMS.jpg -------------------------------------------------------------------------------- /art_web/static/assets/Ajitesh.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/Ajitesh.jpg -------------------------------------------------------------------------------- /art_web/static/assets/cover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/cover.png -------------------------------------------------------------------------------- /art_web/static/assets/cover2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/cover2.jpg -------------------------------------------------------------------------------- /art_web/static/assets/cover3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/cover3.jpg -------------------------------------------------------------------------------- /art_web/static/assets/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/icon.png -------------------------------------------------------------------------------- /art_web/static/assets/painting1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/painting1.jpg -------------------------------------------------------------------------------- /art_web/static/assets/painting2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/painting2.jpg -------------------------------------------------------------------------------- /art_web/static/assets/painting3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/painting3.jpg -------------------------------------------------------------------------------- /art_web/static/assets/painting4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/painting4.jpg -------------------------------------------------------------------------------- /art_web/static/assets/painting5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/painting5.jpg -------------------------------------------------------------------------------- /art_web/static/assets/painting6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/painting6.jpg -------------------------------------------------------------------------------- /art_web/static/assets/painting7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/painting7.jpg -------------------------------------------------------------------------------- /art_web/static/assets/painting8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/painting8.jpg -------------------------------------------------------------------------------- /art_web/static/assets/painting9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/painting9.jpg -------------------------------------------------------------------------------- /art_web/static/assets/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/profile.png -------------------------------------------------------------------------------- /art_web/static/assets/profile2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/profile2.png -------------------------------------------------------------------------------- /art_web/static/assets/sculpture1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/sculpture1.png -------------------------------------------------------------------------------- /art_web/static/assets/sculpture2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/sculpture2.jpg -------------------------------------------------------------------------------- /art_web/static/assets/sculpture3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/sculpture3.jpg -------------------------------------------------------------------------------- /art_web/static/assets/sculpture4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/sculpture4.jpg -------------------------------------------------------------------------------- /art_web/static/assets/sculpture5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajiteshr7/art-gallery-website/5a7a83115eb0527a634f3647696a598eae4dc962/art_web/static/assets/sculpture5.jpg -------------------------------------------------------------------------------- /art_web/static/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.6 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(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]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",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(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.6",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.6",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.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},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.6",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.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 in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.6",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&jdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");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":"focusin",i="hover"==g?"mouseleave":"focusout";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()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.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},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-mo.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.6",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.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").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.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)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(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]()})}b.VERSION="3.3.6",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).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(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.6",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); -------------------------------------------------------------------------------- /art_web/static/style/class.css: -------------------------------------------------------------------------------- 1 | 2 | img.resize{ 3 | width:200px; 4 | height:210px; 5 | } -------------------------------------------------------------------------------- /art_web/static/style/font-awesome.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.3.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.3.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.3.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.3.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transform:translate(0, 0)}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-genderless:before,.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"} -------------------------------------------------------------------------------- /art_web/static/style/login.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 40px; 3 | padding-bottom: 40px; 4 | background-color: #eee; 5 | } 6 | 7 | .form-signin { 8 | max-width: 330px; 9 | padding: 15px; 10 | margin: 0 auto; 11 | } 12 | .form-signin .form-signin-heading, 13 | .form-signin .checkbox { 14 | margin-bottom: 10px; 15 | } 16 | .form-signin .checkbox { 17 | font-weight: normal; 18 | } 19 | .form-signin .form-control { 20 | position: relative; 21 | height: auto; 22 | -webkit-box-sizing: border-box; 23 | -moz-box-sizing: border-box; 24 | box-sizing: border-box; 25 | padding: 10px; 26 | font-size: 16px; 27 | } 28 | .form-signin .form-control:focus { 29 | z-index: 2; 30 | } 31 | .form-signin input[type="email"] { 32 | margin-bottom: -1px; 33 | border-bottom-right-radius: 0; 34 | border-bottom-left-radius: 0; 35 | } 36 | .form-signin input[type="password"] { 37 | margin-bottom: 10px; 38 | border-top-left-radius: 0; 39 | border-top-right-radius: 0; 40 | } 41 | -------------------------------------------------------------------------------- /art_web/static/style/style.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | /* W3.CSS 2.82 by Jan Egil and Borge Refsnes */ 4 | html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit} 5 | /* Extract from normalize.css by Nicolas Gallagher and Jonathan Neal git.io/normalize */ 6 | html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0} 7 | article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block} 8 | audio,canvas,progress,video{display:inline-block}progress{vertical-align:baseline} 9 | audio:not([controls]){display:none;height:0}[hidden],template{display:none} 10 | a{background-color:transparent;-webkit-text-decoration-skip:objects} 11 | a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted} 12 | dfn{font-style:italic}mark{background:#ff0;color:#000} 13 | small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline} 14 | sub{bottom:-0.25em}sup{top:-0.5em}figure{margin:1em 40px} 15 | img{border-style:none}svg:not(:root){overflow:hidden} 16 | code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em} 17 | hr{box-sizing:content-box;height:0;overflow:visible} 18 | button,input,select,textarea{font:inherit;margin:0}optgroup{font-weight:bold} 19 | button,input{overflow:visible}button,select{text-transform:none} 20 | button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button} 21 | button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner{border-style:none;padding:0} 22 | button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring{outline:1px dotted ButtonText} 23 | fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em} 24 | legend{color:inherit;display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto} 25 | [type=checkbox],[type=radio]{padding:0} 26 | [type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto} 27 | [type=search]{-webkit-appearance:textfield;outline-offset:-2px} 28 | [type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none} 29 | ::-webkit-input-placeholder{color:inherit;opacity:0.54} 30 | ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit} 31 | /* End extract */ 32 | html,body{font-family:Verdana,sans-serif;font-size:15px;line-height:1.5}html{overflow-x:hidden} 33 | h1,h2,h3,h4,h5,h6,.w3-slim,.w3-wide{font-family:"Segoe UI",Arial,sans-serif} 34 | h1{font-size:36px}h2{font-size:30px}h3{font-size:24px}h4{font-size:20px}h5{font-size:18px}h6{font-size:16px} 35 | .w3-serif{font-family:"Times New Roman",Times,serif} 36 | h1,h2,h3,h4,h5,h6{font-weight:400;margin:10px 0}.w3-wide{letter-spacing:4px} 37 | h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{font-weight:inherit} 38 | hr{border:0;border-top:1px solid #eee;margin:20px 0} 39 | img{margin-bottom:-5px}a{color:inherit} 40 | .w3-image{max-width:100%;height:auto} 41 | .w3-table,.w3-table-all{border-collapse:collapse;border-spacing:0;width:100%;display:table} 42 | .w3-table-all{border:1px solid #ccc} 43 | .w3-bordered tr,.w3-table-all tr{border-bottom:1px solid #ddd} 44 | .w3-striped tbody tr:nth-child(even){background-color:#f1f1f1} 45 | .w3-table-all tr:nth-child(odd){background-color:#fff} 46 | .w3-table-all tr:nth-child(even){background-color:#f1f1f1} 47 | .w3-hoverable tbody tr:hover,.w3-ul.w3-hoverable li:hover{background-color:#ccc} 48 | .w3-centered tr th,.w3-centered tr td{text-align:center} 49 | .w3-table td,.w3-table th,.w3-table-all td,.w3-table-all th{padding:8px 8px;display:table-cell;text-align:left;vertical-align:top} 50 | .w3-table th:first-child,.w3-table td:first-child,.w3-table-all th:first-child,.w3-table-all td:first-child{padding-left:16px} 51 | .w3-btn,.w3-btn-block{border:none;display:inline-block;outline:0;padding:6px 16px;vertical-align:middle;overflow:hidden;text-decoration:none!important;color:#fff;background-color:#000;text-align:center;cursor:pointer;white-space:nowrap} 52 | .w3-btn:hover,.w3-btn-block:hover,.w3-btn-floating:hover,.w3-btn-floating-large:hover{box-shadow:0 8px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)} 53 | .w3-btn,.w3-btn-floating,.w3-btn-floating-large,.w3-closenav,.w3-opennav{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none} 54 | .w3-btn-floating,.w3-btn-floating-large{display:inline-block;text-align:center;color:#fff;background-color:#000;position:relative;overflow:hidden;z-index:1;padding:0;border-radius:50%;cursor:pointer;font-size:24px} 55 | .w3-btn-floating{width:40px;height:40px;line-height:40px}.w3-btn-floating-large{width:56px;height:56px;line-height:56px} 56 | .w3-disabled,.w3-btn:disabled,.w3-btn-floating:disabled,.w3-btn-floating-large:disabled{cursor:not-allowed;opacity:0.3} 57 | .w3-btn.w3-disabled *,.w3-btn-block.w3-disabled,.w3-btn-floating.w3-disabled *,.w3-btn:disabled *,.w3-btn-floating:disabled *{pointer-events:none} 58 | .w3-btn.w3-disabled:hover,.w3-btn-block.w3-disabled:hover,.w3-btn:disabled:hover,.w3-btn-floating.w3-disabled:hover,.w3-btn-floating:disabled:hover, 59 | .w3-btn-floating-large.w3-disabled:hover,.w3-btn-floating-large:disabled:hover{box-shadow:none} 60 | .w3-btn-group .w3-btn{float:left}.w3-btn-block{width:100%} 61 | .w3-btn-bar .w3-btn{box-shadow:none;background-color:inherit;color:inherit;float:left}.w3-btn-bar .w3-btn:hover{background-color:#ccc} 62 | .w3-badge,.w3-tag,.w3-sign{background-color:#000;color:#fff;display:inline-block;padding-left:8px;padding-right:8px;text-align:center} 63 | .w3-badge{border-radius:50%} 64 | ul.w3-ul{list-style-type:none;padding:0;margin:0}ul.w3-ul li{padding:6px 2px 6px 16px;border-bottom:1px solid #ddd}ul.w3-ul li:last-child{border-bottom:none} 65 | .w3-tooltip,.w3-display-container{position:relative}.w3-tooltip .w3-text{display:none}.w3-tooltip:hover .w3-text{display:inline-block} 66 | .w3-navbar{list-style-type:none;margin:0;padding:0;overflow:hidden} 67 | .w3-navbar li{float:left}.w3-navbar li a,.w3-navitem{display:block;padding:8px 16px}.w3-navbar li a:hover{color:#000;background-color:#ccc} 68 | .w3-navbar .w3-dropdown-hover,.w3-navbar .w3-dropdown-click{position:static} 69 | .w3-navbar .w3-dropdown-hover:hover,.w3-navbar .w3-dropdown-hover:first-child,.w3-navbar .w3-dropdown-click:hover{background-color:#ccc;color:#000} 70 | .w3-navbar a,.w3-topnav a,.w3-sidenav a,.w3-dropdown-content a,.w3-accordion-content a,.w3-dropnav a{text-decoration:none!important} 71 | .w3-navbar .w3-opennav.w3-right{float:right!important}.w3-topnav{padding:8px 8px} 72 | .w3-topnav a{padding:0 8px;border-bottom:3px solid transparent;-webkit-transition:border-bottom .3s;transition:border-bottom .3s} 73 | .w3-topnav a:hover{border-bottom:3px solid #fff}.w3-topnav .w3-dropdown-hover a{border-bottom:0} 74 | .w3-opennav,.w3-closenav{color:inherit}.w3-opennav:hover,.w3-closenav:hover{cursor:pointer;opacity:0.8} 75 | .w3-btn,.w3-btn-floating,.w3-dropnav a,.w3-btn-floating-large,.w3-btn-block,.w3-hover-shadow,.w3-hover-opacity,.w3-hover-opacity-off,.w3-hover-sepia,.w3-hover-grayscale,.w3-hover-greyscale, 76 | .w3-navbar a,.w3-sidenav a,.w3-pagination li a,.w3-hoverable tbody tr,.w3-hoverable li,.w3-accordion-content a,.w3-dropdown-content a,.w3-dropdown-click:hover,.w3-dropdown-hover:hover,.w3-opennav,.w3-closenav,.w3-closebtn, 77 | .w3-hover-amber,.w3-hover-aqua,.w3-hover-blue,.w3-hover-light-blue,.w3-hover-brown,.w3-hover-cyan,.w3-hover-blue-grey,.w3-hover-green,.w3-hover-light-green,.w3-hover-indigo,.w3-hover-khaki,.w3-hover-lime,.w3-hover-orange,.w3-hover-deep-orange,.w3-hover-pink, 78 | .w3-hover-purple,.w3-hover-deep-purple,.w3-hover-red,.w3-hover-sand,.w3-hover-teal,.w3-hover-yellow,.w3-hover-white,.w3-hover-black,.w3-hover-grey,.w3-hover-light-grey,.w3-hover-dark-grey,.w3-hover-text-amber,.w3-hover-text-aqua,.w3-hover-text-blue,.w3-hover-text-light-blue, 79 | .w3-hover-text-brown,.w3-hover-text-cyan,.w3-hover-text-blue-grey,.w3-hover-text-green,.w3-hover-text-light-green,.w3-hover-text-indigo,.w3-hover-text-khaki,.w3-hover-text-lime,.w3-hover-text-orange,.w3-hover-text-deep-orange,.w3-hover-text-pink,.w3-hover-text-purple, 80 | .w3-hover-text-deep-purple,.w3-hover-text-red,.w3-hover-text-sand,.w3-hover-text-teal,.w3-hover-text-yellow,.w3-hover-text-white,.w3-hover-text-black,.w3-hover-text-grey,.w3-hover-text-light-grey,.w3-hover-text-dark-grey 81 | {-webkit-transition:background-color .3s,color .15s,box-shadow .3s,opacity 0.3s,filter 0.3s;transition:background-color .3s,color .15s,box-shadow .3s,opacity 0.3s,filter 0.3s} 82 | .w3-ripple:active{opacity:0.5}.w3-ripple{-webkit-transition:opacity 0s;transition:opacity 0s} 83 | .w3-sidenav{height:100%;width:200px;background-color:#fff;position:fixed!important;z-index:1;overflow:auto} 84 | .w3-sidenav a{padding:4px 2px 4px 16px}.w3-sidenav a:hover{background-color:#ccc}.w3-sidenav a,.w3-dropnav a{display:block} 85 | .w3-sidenav .w3-dropdown-hover:hover,.w3-sidenav .w3-dropdown-hover:first-child,.w3-sidenav .w3-dropdown-click:hover,.w3-dropnav a:hover{background-color:#ccc;color:#000} 86 | .w3-sidenav .w3-dropdown-hover,.w3-sidenav .w3-dropdown-click {width:100%}.w3-sidenav .w3-dropdown-hover .w3-dropdown-content,.w3-sidenav .w3-dropdown-click .w3-dropdown-content{min-width:100%} 87 | .w3-main,#main{transition:margin-left .4s} 88 | .w3-modal{z-index:3;display:none;padding-top:100px;position:fixed;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgb(0,0,0);background-color:rgba(0,0,0,0.4)} 89 | .w3-modal-content{margin:auto;background-color:#fff;position:relative;padding:0;outline:0;width:600px}.w3-closebtn{text-decoration:none;float:right;font-size:24px;font-weight:bold;color:inherit} 90 | .w3-closebtn:hover,.w3-closebtn:focus{color:#000;text-decoration:none;cursor:pointer} 91 | .w3-pagination{display:inline-block;padding:0;margin:0}.w3-pagination li{display:inline} 92 | .w3-pagination li a{text-decoration:none;color:#000;float:left;padding:8px 16px} 93 | .w3-pagination li a:hover{background-color:#ccc} 94 | .w3-input-group,.w3-group{margin-top:24px;margin-bottom:24px} 95 | .w3-input{padding:8px;display:block;border:none;border-bottom:1px solid #808080;width:100%} 96 | .w3-label{color:#009688}.w3-input:not(:valid)~.w3-validate{color:#f44336} 97 | .w3-select{padding:9px 0;width:100%;color:#000;border:1px solid transparent;border-bottom:1px solid #009688} 98 | .w3-select select:focus{color:#000;border:1px solid #009688}.w3-select option[disabled]{color:#009688} 99 | .w3-dropdown-click,.w3-dropdown-hover{position:relative;display:inline-block;cursor:pointer} 100 | .w3-dropdown-hover:hover .w3-dropdown-content{display:block;z-index:1} 101 | .w3-dropdown-content{cursor:auto;color:#000;background-color:#fff;display:none;position:absolute;min-width:160px;margin:0;padding:0} 102 | .w3-dropdown-content a{padding:6px 16px;display:block} 103 | .w3-dropdown-content a:hover{background-color:#ccc} 104 | .w3-accordion {width:100%;cursor:pointer} 105 | .w3-accordion-content{cursor:auto;display:none;position:relative;width:100%;margin:0;padding:0} 106 | .w3-accordion-content a{padding:6px 16px;display:block}.w3-accordion-content a:hover{background-color:#ccc} 107 | .w3-progress-container{width:100%;height:1.5em;position:relative;background-color:#f1f1f1} 108 | .w3-progressbar{background-color:#757575;height:100%;position:absolute;line-height:inherit} 109 | input[type=checkbox].w3-check,input[type=radio].w3-radio{width:24px;height:24px;position:relative;top:6px} 110 | input[type=checkbox].w3-check:checked+.w3-validate,input[type=radio].w3-radio:checked+.w3-validate{color:#009688} 111 | input[type=checkbox].w3-check:disabled+.w3-validate,input[type=radio].w3-radio:disabled+.w3-validate{color:#aaa} 112 | .w3-responsive{overflow-x:auto} 113 | .w3-container:after,.w3-panel:after,.w3-row:after,.w3-row-padding:after,.w3-topnav:after,.w3-clear:after,.w3-btn-group:before,.w3-btn-group:after,.w3-btn-bar:before,.w3-btn-bar:after 114 | {content:"";display:table;clear:both} 115 | .w3-col,.w3-half,.w3-third,.w3-twothird,.w3-threequarter,.w3-quarter{float:left;width:100%} 116 | .w3-col.s1{width:8.33333%} 117 | .w3-col.s2{width:16.66666%} 118 | .w3-col.s3{width:24.99999%} 119 | .w3-col.s4{width:33.33333%} 120 | .w3-col.s5{width:41.66666%} 121 | .w3-col.s6{width:49.99999%} 122 | .w3-col.s7{width:58.33333%} 123 | .w3-col.s8{width:66.66666%} 124 | .w3-col.s9{width:74.99999%} 125 | .w3-col.s10{width:83.33333%} 126 | .w3-col.s11{width:91.66666%} 127 | .w3-col.s12,.w3-half,.w3-third,.w3-twothird,.w3-threequarter,.w3-quarter{width:99.99999%} 128 | @media only screen and (min-width:601px){ 129 | .w3-col.m1{width:8.33333%} 130 | .w3-col.m2{width:16.66666%} 131 | .w3-col.m3,.w3-quarter{width:24.99999%} 132 | .w3-col.m4,.w3-third{width:33.33333%} 133 | .w3-col.m5{width:41.66666%} 134 | .w3-col.m6,.w3-half{width:49.99999%} 135 | .w3-col.m7{width:58.33333%} 136 | .w3-col.m8,.w3-twothird{width:66.66666%} 137 | .w3-col.m9,.w3-threequarter{width:74.99999%} 138 | .w3-col.m10{width:83.33333%} 139 | .w3-col.m11{width:91.66666%} 140 | .w3-col.m12{width:99.99999%}} 141 | @media only screen and (min-width:993px){ 142 | .w3-col.l1{width:8.33333%} 143 | .w3-col.l2{width:16.66666%} 144 | .w3-col.l3,.w3-quarter{width:24.99999%} 145 | .w3-col.l4,.w3-third{width:33.33333%} 146 | .w3-col.l5{width:41.66666%} 147 | .w3-col.l6,.w3-half{width:49.99999%} 148 | .w3-col.l7{width:58.33333%} 149 | .w3-col.l8,.w3-twothird{width:66.66666%} 150 | .w3-col.l9,.w3-threequarter{width:74.99999%} 151 | .w3-col.l10{width:83.33333%} 152 | .w3-col.l11{width:91.66666%} 153 | .w3-col.l12{width:99.99999%}} 154 | .w3-content{max-width:980px;margin:auto} 155 | .w3-rest{overflow:hidden} 156 | .w3-hide{display:none!important}.w3-show-block,.w3-show{display:block!important}.w3-show-inline-block{display:inline-block!important} 157 | @media (max-width:600px){.w3-modal-content{margin:0 10px;width:auto!important}.w3-modal{padding-top:30px}} 158 | @media (max-width:768px){.w3-modal-content{width:500px}.w3-modal{padding-top:50px}} 159 | @media (min-width:993px){.w3-modal-content{width:900px}} 160 | @media screen and (max-width:600px){.w3-topnav a{display:block}.w3-navbar li:not(.w3-opennav){float:none;width:100%!important}.w3-navbar li.w3-right{float:none!important}} 161 | @media screen and (max-width:600px){.w3-topnav .w3-dropdown-hover .w3-dropdown-content,.w3-navbar .w3-dropdown-click .w3-dropdown-content,.w3-navbar .w3-dropdown-hover .w3-dropdown-content{position:relative}} 162 | @media screen and (max-width:600px){.w3-topnav,.w3-navbar{text-align:center}} 163 | @media (max-width:600px){.w3-hide-small{display:none!important}} 164 | @media (max-width:992px) and (min-width:601px){.w3-hide-medium{display:none!important}} 165 | @media (min-width:993px){.w3-hide-large{display:none!important}} 166 | @media screen and (max-width:992px){.w3-sidenav.w3-collapse{display:none}.w3-main{margin-left:0!important;margin-right:0!important}} 167 | @media screen and (min-width:993px){.w3-sidenav.w3-collapse{display:block!important}} 168 | .w3-top,.w3-bottom{position:fixed;width:100%;z-index:1}.w3-top{top:0}.w3-bottom{bottom:0} 169 | .w3-overlay{position:fixed;display:none;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.5);z-index:2} 170 | .w3-left{float:left!important}.w3-right{float:right!important} 171 | .w3-tiny{font-size:10px!important}.w3-small{font-size:12px!important} 172 | .w3-medium{font-size:15px!important}.w3-large{font-size:18px!important} 173 | .w3-xlarge{font-size:24px!important}.w3-xxlarge{font-size:36px!important} 174 | .w3-xxxlarge{font-size:48px!important}.w3-jumbo{font-size:64px!important} 175 | .w3-vertical{word-break:break-all;line-height:1;text-align:center;width:0.6em} 176 | .w3-left-align{text-align:left!important}.w3-right-align{text-align:right!important} 177 | .w3-justify{text-align:justify!important}.w3-center{text-align:center!important} 178 | .w3-display-topleft{position:absolute;left:0;top:0}.w3-display-topright{position:absolute;right:0;top:0} 179 | .w3-display-bottomleft{position:absolute;left:0;bottom:0}.w3-display-bottomright{position:absolute;right:0;bottom:0} 180 | .w3-display-middle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%)} 181 | .w3-display-left{position:absolute;top:50%;left:0%;transform:translate(0%,-50%);-ms-transform:translate(-0%,-50%)} 182 | .w3-display-right{position:absolute;top:50%;right:0%;transform:translate(0%,-50%);-ms-transform:translate(0%,-50%)} 183 | .w3-display-topmiddle{position:absolute;left:50%;top:0;transform:translate(-50%,0%);-ms-transform:translate(-50%,0%)} 184 | .w3-display-bottommiddle{position:absolute;left:50%;bottom:0;transform:translate(-50%,0%);-ms-transform:translate(-50%,0%)} 185 | .w3-circle{border-radius:50%!important} 186 | .w3-round-small{border-radius:2px!important}.w3-round,.w3-round-medium{border-radius:4px!important} 187 | .w3-round-large{border-radius:8px!important}.w3-round-xlarge{border-radius:16px!important} 188 | .w3-round-xxlarge{border-radius:32px!important}.w3-round-jumbo{border-radius:64px!important} 189 | .w3-border-0{border:0!important}.w3-border{border:1px solid #ccc!important} 190 | .w3-border-top{border-top:1px solid #ccc!important}.w3-border-bottom{border-bottom:1px solid #ccc!important} 191 | .w3-border-left{border-left:1px solid #ccc!important}.w3-border-right{border-right:1px solid #ccc!important} 192 | .w3-margin{margin:16px!important}.w3-margin-0{margin:0!important} 193 | .w3-margin-top{margin-top:16px!important}.w3-margin-bottom{margin-bottom:16px!important} 194 | .w3-margin-left{margin-left:16px!important}.w3-margin-right{margin-right:16px!important} 195 | .w3-section{margin-top:16px!important;margin-bottom:16px!important} 196 | .w3-padding-tiny{padding:2px 4px!important}.w3-padding-small{padding:4px 8px!important} 197 | .w3-padding-medium,.w3-padding,.w3-form{padding:8px 16px!important} 198 | .w3-padding-large{padding:12px 24px!important}.w3-padding-xlarge{padding:16px 32px!important} 199 | .w3-padding-xxlarge{padding:24px 48px!important}.w3-padding-jumbo{padding:32px 64px!important} 200 | .w3-padding-4{padding-top:4px!important;padding-bottom:4px!important} 201 | .w3-padding-8{padding-top:8px!important;padding-bottom:8px!important} 202 | .w3-padding-12{padding-top:12px!important;padding-bottom:12px!important} 203 | .w3-padding-16{padding-top:16px!important;padding-bottom:16px!important} 204 | .w3-padding-24{padding-top:24px!important;padding-bottom:24px!important} 205 | .w3-padding-32{padding-top:32px!important;padding-bottom:32px!important} 206 | .w3-padding-48{padding-top:48px!important;padding-bottom:48px!important} 207 | .w3-padding-64{padding-top:64px!important;padding-bottom:64px!important} 208 | .w3-padding-128{padding-top:128px!important;padding-bottom:128px!important} 209 | .w3-padding-0{padding:0!important} 210 | .w3-padding-top{padding-top:8px!important}.w3-padding-bottom{padding-bottom:8px!important} 211 | .w3-padding-left{padding-left:16px!important}.w3-padding-right{padding-right:16px!important} 212 | .w3-topbar{border-top:6px solid #ccc!important}.w3-bottombar{border-bottom:6px solid #ccc!important} 213 | .w3-leftbar{border-left:6px solid #ccc!important}.w3-rightbar{border-right:6px solid #ccc!important} 214 | .w3-row-padding,.w3-row-padding>.w3-half,.w3-row-padding>.w3-third,.w3-row-padding>.w3-twothird,.w3-row-padding>.w3-threequarter,.w3-row-padding>.w3-quarter,.w3-row-padding>.w3-col{padding:0 8px} 215 | .w3-spin{animation:w3-spin 2s infinite linear;-webkit-animation:w3-spin 2s infinite linear} 216 | @-webkit-keyframes w3-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}} 217 | @keyframes w3-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}} 218 | .w3-container{padding:0.01em 16px} 219 | .w3-panel{padding:0.01em 16px;margin-top:16px!important;margin-bottom:16px!important} 220 | .w3-example{background-color:#f1f1f1;padding:0.01em 16px} 221 | .w3-code,.w3-codespan{font-family:Consolas,"courier new";font-size:16px} 222 | .w3-code{line-height:1.4;width:auto;background-color:#fff;padding:8px 12px;border-left:4px solid #4CAF50;word-wrap:break-word} 223 | .w3-codespan{color:crimson;background-color:#f1f1f1;padding-left:4px;padding-right:4px;font-size:110%} 224 | .w3-example,.w3-code{margin:20px 0}.w3-card{border:1px solid #ccc} 225 | .w3-card-2,.w3-example{box-shadow:0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)!important} 226 | .w3-card-4,.w3-hover-shadow:hover{box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)!important} 227 | .w3-card-8{box-shadow:0 8px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)!important} 228 | .w3-card-12{box-shadow:0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19)!important} 229 | .w3-card-16{box-shadow:0 16px 24px 0 rgba(0,0,0,0.22),0 25px 55px 0 rgba(0,0,0,0.21)!important} 230 | .w3-card-24{box-shadow:0 24px 24px 0 rgba(0,0,0,0.2),0 40px 77px 0 rgba(0,0,0,0.22)!important} 231 | .w3-animate-fading{-webkit-animation:fading 10s infinite;animation:fading 10s infinite} 232 | @-webkit-keyframes fading{0%{opacity:0}50%{opacity:1}100%{opacity:0}} 233 | @keyframes fading{0%{opacity:0}50%{opacity:1}100%{opacity:0}} 234 | .w3-animate-opacity{-webkit-animation:opac 0.8s;animation:opac 0.8s} 235 | @-webkit-keyframes opac{from{opacity:0} to{opacity:1}} 236 | @keyframes opac{from{opacity:0} to{opacity:1}} 237 | .w3-animate-top{position:relative;-webkit-animation:animatetop 0.4s;animation:animatetop 0.4s} 238 | @-webkit-keyframes animatetop{from{top:-300px;opacity:0} to{top:0;opacity:1}} 239 | @keyframes animatetop{from{top:-300px;opacity:0} to{top:0;opacity:1}} 240 | .w3-animate-left{position:relative;-webkit-animation:animateleft 0.4s;animation:animateleft 0.4s} 241 | @-webkit-keyframes animateleft{from{left:-300px;opacity:0} to{left:0;opacity:1}} 242 | @keyframes animateleft{from{left:-300px;opacity:0} to{left:0;opacity:1}} 243 | .w3-animate-right{position:relative;-webkit-animation:animateright 0.4s;animation:animateright 0.4s} 244 | @-webkit-keyframes animateright{from{right:-300px;opacity:0} to{right:0;opacity:1}} 245 | @keyframes animateright{from{right:-300px;opacity:0} to{right:0;opacity:1}} 246 | .w3-animate-bottom{position:relative;-webkit-animation:animatebottom 0.4s;animation:animatebottom 0.4s} 247 | @-webkit-keyframes animatebottom{from{bottom:-300px;opacity:0} to{bottom:0px;opacity:1}} 248 | @keyframes animatebottom{from{bottom:-300px;opacity:0} to{bottom:0;opacity:1}} 249 | .w3-animate-zoom {-webkit-animation:animatezoom 0.6s;animation:animatezoom 0.6s} 250 | @-webkit-keyframes animatezoom{from{-webkit-transform:scale(0)} to{-webkit-transform:scale(1)}} 251 | @keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)}} 252 | .w3-animate-input{-webkit-transition:width 0.4s ease-in-out;transition:width 0.4s ease-in-out}.w3-animate-input:focus{width:100%!important} 253 | .w3-opacity,.w3-hover-opacity:hover{opacity:0.60;filter:alpha(opacity=60);-webkit-backface-visibility:hidden} 254 | .w3-opacity-off,.w3-hover-opacity-off:hover{opacity:1;filter:alpha(opacity=100);-webkit-backface-visibility:hidden} 255 | .w3-opacity-max{opacity:0.25;filter:alpha(opacity=25);-webkit-backface-visibility:hidden} 256 | .w3-opacity-min{opacity:0.75;filter:alpha(opacity=75);-webkit-backface-visibility:hidden} 257 | .w3-greyscale-max,.w3-grayscale-max,.w3-hover-greyscale:hover,.w3-hover-grayscale:hover{-webkit-filter:grayscale(100%);filter:grayscale(100%)} 258 | .w3-greyscale,.w3-grayscale{-webkit-filter:grayscale(75%);filter:grayscale(75%)} 259 | .w3-greyscale-min,.w3-grayscale-min{-webkit-filter:grayscale(50%);filter:grayscale(50%)} 260 | .w3-sepia{-webkit-filter:sepia(75%);filter:sepia(75%)} 261 | .w3-sepia-max,.w3-hover-sepia:hover{-webkit-filter:sepia(100%);filter:sepia(100%)} 262 | .w3-sepia-min{-webkit-filter:sepia(50%);filter:sepia(50%)} 263 | .w3-text-shadow{text-shadow:1px 1px 0 #444}.w3-text-shadow-white{text-shadow:1px 1px 0 #ddd} 264 | .w3-transparent{background-color:transparent!important} 265 | .w3-hover-none:hover{box-shadow:none!important;background-color:transparent!important} 266 | /* Colors */ 267 | .w3-amber,.w3-hover-amber:hover{color:#000!important;background-color:#ffc107!important} 268 | .w3-aqua,.w3-hover-aqua:hover{color:#000!important;background-color:#00ffff!important} 269 | .w3-blue,.w3-hover-blue:hover{color:#fff!important;background-color:#2196F3!important} 270 | .w3-light-blue,.w3-hover-light-blue:hover{color:#000!important;background-color:#87CEEB!important} 271 | .w3-brown,.w3-hover-brown:hover{color:#fff!important;background-color:#795548!important} 272 | .w3-cyan,.w3-hover-cyan:hover{color:#000!important;background-color:#00bcd4!important} 273 | .w3-blue-grey,.w3-hover-blue-grey:hover,.w3-blue-gray,.w3-hover-blue-gray:hover{color:#fff!important;background-color:#607d8b!important} 274 | .w3-green,.w3-hover-green:hover{color:#fff!important;background-color:#4CAF50!important} 275 | .w3-light-green,.w3-hover-light-green:hover{color:#000!important;background-color:#8bc34a!important} 276 | .w3-indigo,.w3-hover-indigo:hover{color:#fff!important;background-color:#3f51b5!important} 277 | .w3-khaki,.w3-hover-khaki:hover{color:#000!important;background-color:#f0e68c!important} 278 | .w3-lime,.w3-hover-lime:hover{color:#000!important;background-color:#cddc39!important} 279 | .w3-orange,.w3-hover-orange:hover{color:#000!important;background-color:#ff9800!important} 280 | .w3-deep-orange,.w3-hover-deep-orange:hover{color:#fff!important;background-color:#ff5722!important} 281 | .w3-pink,.w3-hover-pink:hover{color:#fff!important;background-color:#e91e63!important} 282 | .w3-purple,.w3-hover-purple:hover{color:#fff!important;background-color:#9c27b0!important} 283 | .w3-deep-purple,.w3-hover-deep-purple:hover{color:#fff!important;background-color:#673ab7!important} 284 | .w3-red,.w3-hover-red:hover{color:#fff!important;background-color:#f44336!important} 285 | .w3-sand,.w3-hover-sand:hover{color:#000!important;background-color:#fdf5e6!important} 286 | .w3-teal,.w3-hover-teal:hover{color:#fff!important;background-color:#009688!important} 287 | .w3-yellow,.w3-hover-yellow:hover{color:#000!important;background-color:#ffeb3b!important} 288 | .w3-white,.w3-hover-white:hover{color:#000!important;background-color:#fff!important} 289 | .w3-black,.w3-hover-black:hover{color:#fff!important;background-color:#000!important} 290 | .w3-grey,.w3-hover-grey:hover,.w3-gray,.w3-hover-gray:hover{color:#000!important;background-color:#9e9e9e!important} 291 | .w3-light-grey,.w3-hover-light-grey:hover,.w3-light-gray,.w3-hover-light-gray:hover{color:#000!important;background-color:#f1f1f1!important} 292 | .w3-dark-grey,.w3-hover-dark-grey:hover,.w3-dark-gray,.w3-hover-dark-gray:hover{color:#fff!important;background-color:#616161!important} 293 | .w3-pale-red,.w3-hover-pale-red:hover{color:#000!important;background-color:#ffdddd!important} 294 | .w3-pale-green,.w3-hover-pale-green:hover{color:#000!important;background-color:#ddffdd!important} 295 | .w3-pale-yellow,.w3-hover-pale-yellow:hover{color:#000!important;background-color:#ffffcc!important} 296 | .w3-pale-blue,.w3-hover-pale-blue:hover{color:#000!important;background-color:#ddffff!important} 297 | .w3-text-amber,.w3-hover-text-amber:hover{color:#ffc107!important} 298 | .w3-text-aqua,.w3-hover-text-aqua:hover{color:#00ffff!important} 299 | .w3-text-blue,.w3-hover-text-blue:hover{color:#2196F3!important} 300 | .w3-text-light-blue,.w3-hover-text-light-blue:hover{color:#87CEEB!important} 301 | .w3-text-brown,.w3-hover-text-brown:hover{color:#795548!important} 302 | .w3-text-cyan,.w3-hover-text-cyan:hover{color:#00bcd4!important} 303 | .w3-text-blue-grey,.w3-hover-text-blue-grey:hover,.w3-text-blue-gray,.w3-hover-text-blue-gray:hover{color:#607d8b!important} 304 | .w3-text-green,.w3-hover-text-green:hover{color:#4CAF50!important} 305 | .w3-text-light-green,.w3-hover-text-light-green:hover{color:#8bc34a!important} 306 | .w3-text-indigo,.w3-hover-text-indigo:hover{color:#3f51b5!important} 307 | .w3-text-khaki,.w3-hover-text-khaki:hover{color:#b4aa50!important} 308 | .w3-text-lime,.w3-hover-text-lime:hover{color:#cddc39!important} 309 | .w3-text-orange,.w3-hover-text-orange:hover{color:#ff9800!important} 310 | .w3-text-deep-orange,.w3-hover-text-deep-orange:hover{color:#ff5722!important} 311 | .w3-text-pink,.w3-hover-text-pink:hover{color:#e91e63!important} 312 | .w3-text-purple,.w3-hover-text-purple:hover{color:#9c27b0!important} 313 | .w3-text-deep-purple,.w3-hover-text-deep-purple:hover{color:#673ab7!important} 314 | .w3-text-red,.w3-hover-text-red:hover{color:#f44336!important} 315 | .w3-text-sand,.w3-hover-text-sand:hover{color:#fdf5e6!important} 316 | .w3-text-teal,.w3-hover-text-teal:hover{color:#009688!important} 317 | .w3-text-yellow,.w3-hover-text-yellow:hover{color:#d2be0e!important} 318 | .w3-text-white,.w3-hover-text-white:hover{color:#fff!important} 319 | .w3-text-black,.w3-hover-text-black:hover{color:#000!important} 320 | .w3-text-grey,.w3-hover-text-grey:hover,.w3-text-gray,.w3-hover-text-gray:hover{color:#757575!important} 321 | .w3-text-light-grey,.w3-hover-text-light-grey:hover,.w3-text-light-gray,.w3-hover-text-light-gray:hover{color:#f1f1f1!important} 322 | .w3-text-dark-grey,.w3-hover-text-dark-grey:hover,.w3-text-dark-gray,.w3-hover-text-dark-gray:hover{color:#3a3a3a!important} 323 | .w3-border-amber,.w3-hover-border-amber:hover{border-color:#ffc107!important} 324 | .w3-border-aqua,.w3-hover-border-aqua:hover{border-color:#00ffff!important} 325 | .w3-border-blue,.w3-hover-border-blue:hover{border-color:#2196F3!important} 326 | .w3-border-light-blue,.w3-hover-border-light-blue:hover{border-color:#87CEEB!important} 327 | .w3-border-brown,.w3-hover-border-brown:hover{border-color:#795548!important} 328 | .w3-border-cyan,.w3-hover-border-cyan:hover{border-color:#00bcd4!important} 329 | .w3-border-blue-grey,.w3-hover-blue-grey:hover,.w3-border-blue-gray,.w3-hover-blue-gray:hover{border-color:#607d8b!important} 330 | .w3-border-green,.w3-hover-border-green:hover{border-color:#4CAF50!important} 331 | .w3-border-light-green,.w3-hover-border-light-green:hover{border-color:#8bc34a!important} 332 | .w3-border-indigo,.w3-hover-border-indigo:hover{border-color:#3f51b5!important} 333 | .w3-border-khaki,.w3-hover-border-khaki:hover{border-color:#f0e68c!important} 334 | .w3-border-lime,.w3-hover-border-lime:hover{border-color:#cddc39!important} 335 | .w3-border-orange,.w3-hover-border-orange:hover{border-color:#ff9800!important} 336 | .w3-border-deep-orange,.w3-hover-border-deep-orange:hover{border-color:#ff5722!important} 337 | .w3-border-pink,.w3-hover-border-pink:hover{border-color:#e91e63!important} 338 | .w3-border-purple,.w3-hover-border-purple:hover{border-color:#9c27b0!important} 339 | .w3-border-deep-purple,.w3-hover-border-deep-purple:hover{border-color:#673ab7!important} 340 | .w3-border-red,.w3-hover-border-red:hover{border-color:#f44336!important} 341 | .w3-border-sand,.w3-hover-border-sand:hover{border-color:#fdf5e6!important} 342 | .w3-border-teal,.w3-hover-border-teal:hover{border-color:#009688!important} 343 | .w3-border-yellow,.w3-hover-border-yellow:hover{border-color:#ffeb3b!important} 344 | .w3-border-white,.w3-hover-border-white:hover{border-color:#fff!important} 345 | .w3-border-black,.w3-hover-border-black:hover{border-color:#000!important} 346 | .w3-border-grey,.w3-hover-border-grey:hover,.w3-border-gray,.w3-hover-border-gray:hover{border-color:#9e9e9e!important} 347 | .w3-border-light-grey,.w3-hover-border-light-grey:hover,.w3-border-light-gray,.w3-hover-border-light-gray:hover{border-color:#f1f1f1!important} 348 | .w3-border-dark-grey,.w3-hover-border-dark-grey:hover,.w3-border-dark-gray,.w3-hover-border-dark-gray:hover{border-color:#616161!important} 349 | .w3-border-pale-red,.w3-hover-border-pale-red:hover{border-color:#ffe7e7!important}.w3-border-pale-green,.w3-hover-border-pale-green:hover{border-color:#e7ffe7!important} 350 | .w3-border-pale-yellow,.w3-hover-border-pale-yellow:hover{border-color:#ffffcc!important}.w3-border-pale-blue,.w3-hover-border-pale-blue:hover{border-color:#e7ffff!important} 351 | -------------------------------------------------------------------------------- /art_web/static/style/w3-theme-black.css: -------------------------------------------------------------------------------- 1 | .w3-theme-l5 {color:#000 !important; background-color:#f0f0f0 !important} 2 | .w3-theme-l4 {color:#000 !important; background-color:#cccccc !important} 3 | .w3-theme-l3 {color:#fff !important; background-color:#999999 !important} 4 | .w3-theme-l2 {color:#fff !important; background-color:#666666 !important} 5 | .w3-theme-l1 {color:#fff !important; background-color:#333333 !important} 6 | .w3-theme-d1 {color:#fff !important; background-color:#000000 !important} 7 | .w3-theme-d2 {color:#fff !important; background-color:#000000 !important} 8 | .w3-theme-d3 {color:#fff !important; background-color:#000000 !important} 9 | .w3-theme-d4 {color:#fff !important; background-color:#000000 !important} 10 | .w3-theme-d5 {color:#fff !important; background-color:#000000 !important} 11 | 12 | .w3-theme-light {color:#000 !important; background-color:#f0f0f0 !important} 13 | .w3-theme-dark {color:#fff !important; background-color:#000000 !important} 14 | .w3-theme-action {color:#fff !important; background-color:#000000 !important} 15 | 16 | .w3-theme {color:#fff !important; background-color:#000000 !important} 17 | .w3-text-theme {color:#000000 !important} 18 | .w3-border-theme {border-color:#000000 !important} 19 | 20 | .w3-hover-theme:hover {color:#000 !important; background-color:#ffc107 !important} 21 | .w3-hover-text-theme:hover {color:#000000 !important} 22 | .w3-hover-border-theme:hover {border-color:#000000 !important} -------------------------------------------------------------------------------- /art_web/static/style/w3-theme-teal.css: -------------------------------------------------------------------------------- 1 | .w3-theme-l5 {color:#000 !important; background-color:#e9fffd !important} 2 | .w3-theme-l4 {color:#000 !important; background-color:#b7fff8 !important} 3 | .w3-theme-l3 {color:#000 !important; background-color:#6efff1 !important} 4 | .w3-theme-l2 {color:#000 !important; background-color:#26ffe9 !important} 5 | .w3-theme-l1 {color:#fff !important; background-color:#00dcc6 !important} 6 | .w3-theme-d1 {color:#fff !important; background-color:#008578 !important} 7 | .w3-theme-d2 {color:#fff !important; background-color:#00766a !important} 8 | .w3-theme-d3 {color:#fff !important; background-color:#00685d !important} 9 | .w3-theme-d4 {color:#fff !important; background-color:#005950 !important} 10 | .w3-theme-d5 {color:#fff !important; background-color:#004a43 !important} 11 | 12 | .w3-theme-light {color:#000 !important; background-color:#e9fffd !important} 13 | .w3-theme-dark {color:#fff !important; background-color:#004a43 !important} 14 | .w3-theme-action {color:#fff !important; background-color:#004a43 !important} 15 | 16 | .w3-theme {color:#fff !important; background-color:#009688 !important} 17 | .w3-text-theme {color:#009688 !important} 18 | .w3-border-theme {border-color:#009688 !important} 19 | 20 | .w3-hover-theme:hover {color:#fff !important; background-color:#009688 !important} 21 | .w3-hover-text-theme:hover {color:#009688 !important} 22 | .w3-hover-border-theme:hover {border-color:#009688 !important} -------------------------------------------------------------------------------- /art_web/static/style/w3.css: -------------------------------------------------------------------------------- 1 | /* W3.CSS 2.82 by Jan Egil and Borge Refsnes */ 2 | html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit} 3 | /* Extract from normalize.css by Nicolas Gallagher and Jonathan Neal git.io/normalize */ 4 | html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0} 5 | article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block} 6 | audio,canvas,progress,video{display:inline-block}progress{vertical-align:baseline} 7 | audio:not([controls]){display:none;height:0}[hidden],template{display:none} 8 | a{background-color:transparent;-webkit-text-decoration-skip:objects} 9 | a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted} 10 | dfn{font-style:italic}mark{background:#ff0;color:#000} 11 | small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline} 12 | sub{bottom:-0.25em}sup{top:-0.5em}figure{margin:1em 40px} 13 | img{border-style:none}svg:not(:root){overflow:hidden} 14 | code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em} 15 | hr{box-sizing:content-box;height:0;overflow:visible} 16 | button,input,select,textarea{font:inherit;margin:0}optgroup{font-weight:bold} 17 | button,input{overflow:visible}button,select{text-transform:none} 18 | button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button} 19 | button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner{border-style:none;padding:0} 20 | button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring{outline:1px dotted ButtonText} 21 | fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em} 22 | legend{color:inherit;display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto} 23 | [type=checkbox],[type=radio]{padding:0} 24 | [type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto} 25 | [type=search]{-webkit-appearance:textfield;outline-offset:-2px} 26 | [type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none} 27 | ::-webkit-input-placeholder{color:inherit;opacity:0.54} 28 | ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit} 29 | /* End extract */ 30 | html,body{font-family:Verdana,sans-serif;font-size:15px;line-height:1.5}html{overflow-x:hidden} 31 | h1,h2,h3,h4,h5,h6,.w3-slim,.w3-wide{font-family:"Segoe UI",Arial,sans-serif} 32 | h1{font-size:36px}h2{font-size:30px}h3{font-size:24px}h4{font-size:20px}h5{font-size:18px}h6{font-size:16px} 33 | .w3-serif{font-family:"Times New Roman",Times,serif} 34 | h1,h2,h3,h4,h5,h6{font-weight:400;margin:10px 0}.w3-wide{letter-spacing:4px} 35 | h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{font-weight:inherit} 36 | hr{border:0;border-top:1px solid #eee;margin:20px 0} 37 | img{margin-bottom:-5px}a{color:inherit} 38 | .w3-image{max-width:100%;height:auto} 39 | .w3-table,.w3-table-all{border-collapse:collapse;border-spacing:0;width:100%;display:table} 40 | .w3-table-all{border:1px solid #ccc} 41 | .w3-bordered tr,.w3-table-all tr{border-bottom:1px solid #ddd} 42 | .w3-striped tbody tr:nth-child(even){background-color:#f1f1f1} 43 | .w3-table-all tr:nth-child(odd){background-color:#fff} 44 | .w3-table-all tr:nth-child(even){background-color:#f1f1f1} 45 | .w3-hoverable tbody tr:hover,.w3-ul.w3-hoverable li:hover{background-color:#ccc} 46 | .w3-centered tr th,.w3-centered tr td{text-align:center} 47 | .w3-table td,.w3-table th,.w3-table-all td,.w3-table-all th{padding:8px 8px;display:table-cell;text-align:left;vertical-align:top} 48 | .w3-table th:first-child,.w3-table td:first-child,.w3-table-all th:first-child,.w3-table-all td:first-child{padding-left:16px} 49 | .w3-btn,.w3-btn-block{border:none;display:inline-block;outline:0;padding:6px 16px;vertical-align:middle;overflow:hidden;text-decoration:none!important;color:#fff;background-color:#000;text-align:center;cursor:pointer;white-space:nowrap} 50 | .w3-btn:hover,.w3-btn-block:hover,.w3-btn-floating:hover,.w3-btn-floating-large:hover{box-shadow:0 8px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)} 51 | .w3-btn,.w3-btn-floating,.w3-btn-floating-large,.w3-closenav,.w3-opennav{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none} 52 | .w3-btn-floating,.w3-btn-floating-large{display:inline-block;text-align:center;color:#fff;background-color:#000;position:relative;overflow:hidden;z-index:1;padding:0;border-radius:50%;cursor:pointer;font-size:24px} 53 | .w3-btn-floating{width:40px;height:40px;line-height:40px}.w3-btn-floating-large{width:56px;height:56px;line-height:56px} 54 | .w3-disabled,.w3-btn:disabled,.w3-btn-floating:disabled,.w3-btn-floating-large:disabled{cursor:not-allowed;opacity:0.3} 55 | .w3-btn.w3-disabled *,.w3-btn-block.w3-disabled,.w3-btn-floating.w3-disabled *,.w3-btn:disabled *,.w3-btn-floating:disabled *{pointer-events:none} 56 | .w3-btn.w3-disabled:hover,.w3-btn-block.w3-disabled:hover,.w3-btn:disabled:hover,.w3-btn-floating.w3-disabled:hover,.w3-btn-floating:disabled:hover, 57 | .w3-btn-floating-large.w3-disabled:hover,.w3-btn-floating-large:disabled:hover{box-shadow:none} 58 | .w3-btn-group .w3-btn{float:left}.w3-btn-block{width:100%} 59 | .w3-btn-bar .w3-btn{box-shadow:none;background-color:inherit;color:inherit;float:left}.w3-btn-bar .w3-btn:hover{background-color:#ccc} 60 | .w3-badge,.w3-tag,.w3-sign{background-color:#000;color:#fff;display:inline-block;padding-left:8px;padding-right:8px;text-align:center} 61 | .w3-badge{border-radius:50%} 62 | ul.w3-ul{list-style-type:none;padding:0;margin:0}ul.w3-ul li{padding:6px 2px 6px 16px;border-bottom:1px solid #ddd}ul.w3-ul li:last-child{border-bottom:none} 63 | .w3-tooltip,.w3-display-container{position:relative}.w3-tooltip .w3-text{display:none}.w3-tooltip:hover .w3-text{display:inline-block} 64 | .w3-navbar{list-style-type:none;margin:0;padding:0;overflow:hidden} 65 | .w3-navbar li{float:left}.w3-navbar li a,.w3-navitem{display:block;padding:8px 16px}.w3-navbar li a:hover{color:#000;background-color:#ccc} 66 | .w3-navbar .w3-dropdown-hover,.w3-navbar .w3-dropdown-click{position:static} 67 | .w3-navbar .w3-dropdown-hover:hover,.w3-navbar .w3-dropdown-hover:first-child,.w3-navbar .w3-dropdown-click:hover{background-color:#ccc;color:#000} 68 | .w3-navbar a,.w3-topnav a,.w3-sidenav a,.w3-dropdown-content a,.w3-accordion-content a,.w3-dropnav a{text-decoration:none!important} 69 | .w3-navbar .w3-opennav.w3-right{float:right!important}.w3-topnav{padding:8px 8px} 70 | .w3-topnav a{padding:0 8px;border-bottom:3px solid transparent;-webkit-transition:border-bottom .3s;transition:border-bottom .3s} 71 | .w3-topnav a:hover{border-bottom:3px solid #fff}.w3-topnav .w3-dropdown-hover a{border-bottom:0} 72 | .w3-opennav,.w3-closenav{color:inherit}.w3-opennav:hover,.w3-closenav:hover{cursor:pointer;opacity:0.8} 73 | .w3-btn,.w3-btn-floating,.w3-dropnav a,.w3-btn-floating-large,.w3-btn-block,.w3-hover-shadow,.w3-hover-opacity,.w3-hover-opacity-off,.w3-hover-sepia,.w3-hover-grayscale,.w3-hover-greyscale, 74 | .w3-navbar a,.w3-sidenav a,.w3-pagination li a,.w3-hoverable tbody tr,.w3-hoverable li,.w3-accordion-content a,.w3-dropdown-content a,.w3-dropdown-click:hover,.w3-dropdown-hover:hover,.w3-opennav,.w3-closenav,.w3-closebtn, 75 | .w3-hover-amber,.w3-hover-aqua,.w3-hover-blue,.w3-hover-light-blue,.w3-hover-brown,.w3-hover-cyan,.w3-hover-blue-grey,.w3-hover-green,.w3-hover-light-green,.w3-hover-indigo,.w3-hover-khaki,.w3-hover-lime,.w3-hover-orange,.w3-hover-deep-orange,.w3-hover-pink, 76 | .w3-hover-purple,.w3-hover-deep-purple,.w3-hover-red,.w3-hover-sand,.w3-hover-teal,.w3-hover-yellow,.w3-hover-white,.w3-hover-black,.w3-hover-grey,.w3-hover-light-grey,.w3-hover-dark-grey,.w3-hover-text-amber,.w3-hover-text-aqua,.w3-hover-text-blue,.w3-hover-text-light-blue, 77 | .w3-hover-text-brown,.w3-hover-text-cyan,.w3-hover-text-blue-grey,.w3-hover-text-green,.w3-hover-text-light-green,.w3-hover-text-indigo,.w3-hover-text-khaki,.w3-hover-text-lime,.w3-hover-text-orange,.w3-hover-text-deep-orange,.w3-hover-text-pink,.w3-hover-text-purple, 78 | .w3-hover-text-deep-purple,.w3-hover-text-red,.w3-hover-text-sand,.w3-hover-text-teal,.w3-hover-text-yellow,.w3-hover-text-white,.w3-hover-text-black,.w3-hover-text-grey,.w3-hover-text-light-grey,.w3-hover-text-dark-grey 79 | {-webkit-transition:background-color .3s,color .15s,box-shadow .3s,opacity 0.3s,filter 0.3s;transition:background-color .3s,color .15s,box-shadow .3s,opacity 0.3s,filter 0.3s} 80 | .w3-ripple:active{opacity:0.5}.w3-ripple{-webkit-transition:opacity 0s;transition:opacity 0s} 81 | .w3-sidenav{height:100%;width:200px;background-color:#fff;position:fixed!important;z-index:1;overflow:auto} 82 | .w3-sidenav a{padding:4px 2px 4px 16px}.w3-sidenav a:hover{background-color:#ccc}.w3-sidenav a,.w3-dropnav a{display:block} 83 | .w3-sidenav .w3-dropdown-hover:hover,.w3-sidenav .w3-dropdown-hover:first-child,.w3-sidenav .w3-dropdown-click:hover,.w3-dropnav a:hover{background-color:#ccc;color:#000} 84 | .w3-sidenav .w3-dropdown-hover,.w3-sidenav .w3-dropdown-click {width:100%}.w3-sidenav .w3-dropdown-hover .w3-dropdown-content,.w3-sidenav .w3-dropdown-click .w3-dropdown-content{min-width:100%} 85 | .w3-main,#main{transition:margin-left .4s} 86 | .w3-modal{z-index:3;display:none;padding-top:100px;position:fixed;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgb(0,0,0);background-color:rgba(0,0,0,0.4)} 87 | .w3-modal-content{margin:auto;background-color:#fff;position:relative;padding:0;outline:0;width:600px}.w3-closebtn{text-decoration:none;float:right;font-size:24px;font-weight:bold;color:inherit} 88 | .w3-closebtn:hover,.w3-closebtn:focus{color:#000;text-decoration:none;cursor:pointer} 89 | .w3-pagination{display:inline-block;padding:0;margin:0}.w3-pagination li{display:inline} 90 | .w3-pagination li a{text-decoration:none;color:#000;float:left;padding:8px 16px} 91 | .w3-pagination li a:hover{background-color:#ccc} 92 | .w3-input-group,.w3-group{margin-top:24px;margin-bottom:24px} 93 | .w3-input{padding:8px;display:block;border:none;border-bottom:1px solid #808080;width:100%} 94 | .w3-label{color:#009688}.w3-input:not(:valid)~.w3-validate{color:#f44336} 95 | .w3-select{padding:9px 0;width:100%;color:#000;border:1px solid transparent;border-bottom:1px solid #009688} 96 | .w3-select select:focus{color:#000;border:1px solid #009688}.w3-select option[disabled]{color:#009688} 97 | .w3-dropdown-click,.w3-dropdown-hover{position:relative;display:inline-block;cursor:pointer} 98 | .w3-dropdown-hover:hover .w3-dropdown-content{display:block;z-index:1} 99 | .w3-dropdown-content{cursor:auto;color:#000;background-color:#fff;display:none;position:absolute;min-width:160px;margin:0;padding:0} 100 | .w3-dropdown-content a{padding:6px 16px;display:block} 101 | .w3-dropdown-content a:hover{background-color:#ccc} 102 | .w3-accordion {width:100%;cursor:pointer} 103 | .w3-accordion-content{cursor:auto;display:none;position:relative;width:100%;margin:0;padding:0} 104 | .w3-accordion-content a{padding:6px 16px;display:block}.w3-accordion-content a:hover{background-color:#ccc} 105 | .w3-progress-container{width:100%;height:1.5em;position:relative;background-color:#f1f1f1} 106 | .w3-progressbar{background-color:#757575;height:100%;position:absolute;line-height:inherit} 107 | input[type=checkbox].w3-check,input[type=radio].w3-radio{width:24px;height:24px;position:relative;top:6px} 108 | input[type=checkbox].w3-check:checked+.w3-validate,input[type=radio].w3-radio:checked+.w3-validate{color:#009688} 109 | input[type=checkbox].w3-check:disabled+.w3-validate,input[type=radio].w3-radio:disabled+.w3-validate{color:#aaa} 110 | .w3-responsive{overflow-x:auto} 111 | .w3-container:after,.w3-panel:after,.w3-row:after,.w3-row-padding:after,.w3-topnav:after,.w3-clear:after,.w3-btn-group:before,.w3-btn-group:after,.w3-btn-bar:before,.w3-btn-bar:after 112 | {content:"";display:table;clear:both} 113 | .w3-col,.w3-half,.w3-third,.w3-twothird,.w3-threequarter,.w3-quarter{float:left;width:100%} 114 | .w3-col.s1{width:8.33333%} 115 | .w3-col.s2{width:16.66666%} 116 | .w3-col.s3{width:24.99999%} 117 | .w3-col.s4{width:33.33333%} 118 | .w3-col.s5{width:41.66666%} 119 | .w3-col.s6{width:49.99999%} 120 | .w3-col.s7{width:58.33333%} 121 | .w3-col.s8{width:66.66666%} 122 | .w3-col.s9{width:74.99999%} 123 | .w3-col.s10{width:83.33333%} 124 | .w3-col.s11{width:91.66666%} 125 | .w3-col.s12,.w3-half,.w3-third,.w3-twothird,.w3-threequarter,.w3-quarter{width:99.99999%} 126 | @media only screen and (min-width:601px){ 127 | .w3-col.m1{width:8.33333%} 128 | .w3-col.m2{width:16.66666%} 129 | .w3-col.m3,.w3-quarter{width:24.99999%} 130 | .w3-col.m4,.w3-third{width:33.33333%} 131 | .w3-col.m5{width:41.66666%} 132 | .w3-col.m6,.w3-half{width:49.99999%} 133 | .w3-col.m7{width:58.33333%} 134 | .w3-col.m8,.w3-twothird{width:66.66666%} 135 | .w3-col.m9,.w3-threequarter{width:74.99999%} 136 | .w3-col.m10{width:83.33333%} 137 | .w3-col.m11{width:91.66666%} 138 | .w3-col.m12{width:99.99999%}} 139 | @media only screen and (min-width:993px){ 140 | .w3-col.l1{width:8.33333%} 141 | .w3-col.l2{width:16.66666%} 142 | .w3-col.l3,.w3-quarter{width:24.99999%} 143 | .w3-col.l4,.w3-third{width:33.33333%} 144 | .w3-col.l5{width:41.66666%} 145 | .w3-col.l6,.w3-half{width:49.99999%} 146 | .w3-col.l7{width:58.33333%} 147 | .w3-col.l8,.w3-twothird{width:66.66666%} 148 | .w3-col.l9,.w3-threequarter{width:74.99999%} 149 | .w3-col.l10{width:83.33333%} 150 | .w3-col.l11{width:91.66666%} 151 | .w3-col.l12{width:99.99999%}} 152 | .w3-content{max-width:980px;margin:auto} 153 | .w3-rest{overflow:hidden} 154 | .w3-hide{display:none!important}.w3-show-block,.w3-show{display:block!important}.w3-show-inline-block{display:inline-block!important} 155 | @media (max-width:600px){.w3-modal-content{margin:0 10px;width:auto!important}.w3-modal{padding-top:30px}} 156 | @media (max-width:768px){.w3-modal-content{width:500px}.w3-modal{padding-top:50px}} 157 | @media (min-width:993px){.w3-modal-content{width:900px}} 158 | @media screen and (max-width:600px){.w3-topnav a{display:block}.w3-navbar li:not(.w3-opennav){float:none;width:100%!important}.w3-navbar li.w3-right{float:none!important}} 159 | @media screen and (max-width:600px){.w3-topnav .w3-dropdown-hover .w3-dropdown-content,.w3-navbar .w3-dropdown-click .w3-dropdown-content,.w3-navbar .w3-dropdown-hover .w3-dropdown-content{position:relative}} 160 | @media screen and (max-width:600px){.w3-topnav,.w3-navbar{text-align:center}} 161 | @media (max-width:600px){.w3-hide-small{display:none!important}} 162 | @media (max-width:992px) and (min-width:601px){.w3-hide-medium{display:none!important}} 163 | @media (min-width:993px){.w3-hide-large{display:none!important}} 164 | @media screen and (max-width:992px){.w3-sidenav.w3-collapse{display:none}.w3-main{margin-left:0!important;margin-right:0!important}} 165 | @media screen and (min-width:993px){.w3-sidenav.w3-collapse{display:block!important}} 166 | .w3-top,.w3-bottom{position:fixed;width:100%;z-index:1}.w3-top{top:0}.w3-bottom{bottom:0} 167 | .w3-overlay{position:fixed;display:none;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.5);z-index:2} 168 | .w3-left{float:left!important}.w3-right{float:right!important} 169 | .w3-tiny{font-size:10px!important}.w3-small{font-size:12px!important} 170 | .w3-medium{font-size:15px!important}.w3-large{font-size:18px!important} 171 | .w3-xlarge{font-size:24px!important}.w3-xxlarge{font-size:36px!important} 172 | .w3-xxxlarge{font-size:48px!important}.w3-jumbo{font-size:64px!important} 173 | .w3-vertical{word-break:break-all;line-height:1;text-align:center;width:0.6em} 174 | .w3-left-align{text-align:left!important}.w3-right-align{text-align:right!important} 175 | .w3-justify{text-align:justify!important}.w3-center{text-align:center!important} 176 | .w3-display-topleft{position:absolute;left:0;top:0}.w3-display-topright{position:absolute;right:0;top:0} 177 | .w3-display-bottomleft{position:absolute;left:0;bottom:0}.w3-display-bottomright{position:absolute;right:0;bottom:0} 178 | .w3-display-middle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%)} 179 | .w3-display-left{position:absolute;top:50%;left:0%;transform:translate(0%,-50%);-ms-transform:translate(-0%,-50%)} 180 | .w3-display-right{position:absolute;top:50%;right:0%;transform:translate(0%,-50%);-ms-transform:translate(0%,-50%)} 181 | .w3-display-topmiddle{position:absolute;left:50%;top:0;transform:translate(-50%,0%);-ms-transform:translate(-50%,0%)} 182 | .w3-display-bottommiddle{position:absolute;left:50%;bottom:0;transform:translate(-50%,0%);-ms-transform:translate(-50%,0%)} 183 | .w3-circle{border-radius:50%!important} 184 | .w3-round-small{border-radius:2px!important}.w3-round,.w3-round-medium{border-radius:4px!important} 185 | .w3-round-large{border-radius:8px!important}.w3-round-xlarge{border-radius:16px!important} 186 | .w3-round-xxlarge{border-radius:32px!important}.w3-round-jumbo{border-radius:64px!important} 187 | .w3-border-0{border:0!important}.w3-border{border:1px solid #ccc!important} 188 | .w3-border-top{border-top:1px solid #ccc!important}.w3-border-bottom{border-bottom:1px solid #ccc!important} 189 | .w3-border-left{border-left:1px solid #ccc!important}.w3-border-right{border-right:1px solid #ccc!important} 190 | .w3-margin{margin:16px!important}.w3-margin-0{margin:0!important} 191 | .w3-margin-top{margin-top:16px!important}.w3-margin-bottom{margin-bottom:16px!important} 192 | .w3-margin-left{margin-left:16px!important}.w3-margin-right{margin-right:16px!important} 193 | .w3-section{margin-top:16px!important;margin-bottom:16px!important} 194 | .w3-padding-tiny{padding:2px 4px!important}.w3-padding-small{padding:4px 8px!important} 195 | .w3-padding-medium,.w3-padding,.w3-form{padding:8px 16px!important} 196 | .w3-padding-large{padding:12px 24px!important}.w3-padding-xlarge{padding:16px 32px!important} 197 | .w3-padding-xxlarge{padding:24px 48px!important}.w3-padding-jumbo{padding:32px 64px!important} 198 | .w3-padding-4{padding-top:4px!important;padding-bottom:4px!important} 199 | .w3-padding-8{padding-top:8px!important;padding-bottom:8px!important} 200 | .w3-padding-12{padding-top:12px!important;padding-bottom:12px!important} 201 | .w3-padding-16{padding-top:16px!important;padding-bottom:16px!important} 202 | .w3-padding-24{padding-top:24px!important;padding-bottom:24px!important} 203 | .w3-padding-32{padding-top:32px!important;padding-bottom:32px!important} 204 | .w3-padding-48{padding-top:48px!important;padding-bottom:48px!important} 205 | .w3-padding-64{padding-top:64px!important;padding-bottom:64px!important} 206 | .w3-padding-128{padding-top:128px!important;padding-bottom:128px!important} 207 | .w3-padding-0{padding:0!important} 208 | .w3-padding-top{padding-top:8px!important}.w3-padding-bottom{padding-bottom:8px!important} 209 | .w3-padding-left{padding-left:16px!important}.w3-padding-right{padding-right:16px!important} 210 | .w3-topbar{border-top:6px solid #ccc!important}.w3-bottombar{border-bottom:6px solid #ccc!important} 211 | .w3-leftbar{border-left:6px solid #ccc!important}.w3-rightbar{border-right:6px solid #ccc!important} 212 | .w3-row-padding,.w3-row-padding>.w3-half,.w3-row-padding>.w3-third,.w3-row-padding>.w3-twothird,.w3-row-padding>.w3-threequarter,.w3-row-padding>.w3-quarter,.w3-row-padding>.w3-col{padding:0 8px} 213 | .w3-spin{animation:w3-spin 2s infinite linear;-webkit-animation:w3-spin 2s infinite linear} 214 | @-webkit-keyframes w3-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}} 215 | @keyframes w3-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}} 216 | .w3-container{padding:0.01em 16px} 217 | .w3-panel{padding:0.01em 16px;margin-top:16px!important;margin-bottom:16px!important} 218 | .w3-example{background-color:#f1f1f1;padding:0.01em 16px} 219 | .w3-code,.w3-codespan{font-family:Consolas,"courier new";font-size:16px} 220 | .w3-code{line-height:1.4;width:auto;background-color:#fff;padding:8px 12px;border-left:4px solid #4CAF50;word-wrap:break-word} 221 | .w3-codespan{color:crimson;background-color:#f1f1f1;padding-left:4px;padding-right:4px;font-size:110%} 222 | .w3-example,.w3-code{margin:20px 0}.w3-card{border:1px solid #ccc} 223 | .w3-card-2,.w3-example{box-shadow:0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)!important} 224 | .w3-card-4,.w3-hover-shadow:hover{box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)!important} 225 | .w3-card-8{box-shadow:0 8px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)!important} 226 | .w3-card-12{box-shadow:0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19)!important} 227 | .w3-card-16{box-shadow:0 16px 24px 0 rgba(0,0,0,0.22),0 25px 55px 0 rgba(0,0,0,0.21)!important} 228 | .w3-card-24{box-shadow:0 24px 24px 0 rgba(0,0,0,0.2),0 40px 77px 0 rgba(0,0,0,0.22)!important} 229 | .w3-animate-fading{-webkit-animation:fading 10s infinite;animation:fading 10s infinite} 230 | @-webkit-keyframes fading{0%{opacity:0}50%{opacity:1}100%{opacity:0}} 231 | @keyframes fading{0%{opacity:0}50%{opacity:1}100%{opacity:0}} 232 | .w3-animate-opacity{-webkit-animation:opac 0.8s;animation:opac 0.8s} 233 | @-webkit-keyframes opac{from{opacity:0} to{opacity:1}} 234 | @keyframes opac{from{opacity:0} to{opacity:1}} 235 | .w3-animate-top{position:relative;-webkit-animation:animatetop 0.4s;animation:animatetop 0.4s} 236 | @-webkit-keyframes animatetop{from{top:-300px;opacity:0} to{top:0;opacity:1}} 237 | @keyframes animatetop{from{top:-300px;opacity:0} to{top:0;opacity:1}} 238 | .w3-animate-left{position:relative;-webkit-animation:animateleft 0.4s;animation:animateleft 0.4s} 239 | @-webkit-keyframes animateleft{from{left:-300px;opacity:0} to{left:0;opacity:1}} 240 | @keyframes animateleft{from{left:-300px;opacity:0} to{left:0;opacity:1}} 241 | .w3-animate-right{position:relative;-webkit-animation:animateright 0.4s;animation:animateright 0.4s} 242 | @-webkit-keyframes animateright{from{right:-300px;opacity:0} to{right:0;opacity:1}} 243 | @keyframes animateright{from{right:-300px;opacity:0} to{right:0;opacity:1}} 244 | .w3-animate-bottom{position:relative;-webkit-animation:animatebottom 0.4s;animation:animatebottom 0.4s} 245 | @-webkit-keyframes animatebottom{from{bottom:-300px;opacity:0} to{bottom:0px;opacity:1}} 246 | @keyframes animatebottom{from{bottom:-300px;opacity:0} to{bottom:0;opacity:1}} 247 | .w3-animate-zoom {-webkit-animation:animatezoom 0.6s;animation:animatezoom 0.6s} 248 | @-webkit-keyframes animatezoom{from{-webkit-transform:scale(0)} to{-webkit-transform:scale(1)}} 249 | @keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)}} 250 | .w3-animate-input{-webkit-transition:width 0.4s ease-in-out;transition:width 0.4s ease-in-out}.w3-animate-input:focus{width:100%!important} 251 | .w3-opacity,.w3-hover-opacity:hover{opacity:0.60;filter:alpha(opacity=60);-webkit-backface-visibility:hidden} 252 | .w3-opacity-off,.w3-hover-opacity-off:hover{opacity:1;filter:alpha(opacity=100);-webkit-backface-visibility:hidden} 253 | .w3-opacity-max{opacity:0.25;filter:alpha(opacity=25);-webkit-backface-visibility:hidden} 254 | .w3-opacity-min{opacity:0.75;filter:alpha(opacity=75);-webkit-backface-visibility:hidden} 255 | .w3-greyscale-max,.w3-grayscale-max,.w3-hover-greyscale:hover,.w3-hover-grayscale:hover{-webkit-filter:grayscale(100%);filter:grayscale(100%)} 256 | .w3-greyscale,.w3-grayscale{-webkit-filter:grayscale(75%);filter:grayscale(75%)} 257 | .w3-greyscale-min,.w3-grayscale-min{-webkit-filter:grayscale(50%);filter:grayscale(50%)} 258 | .w3-sepia{-webkit-filter:sepia(75%);filter:sepia(75%)} 259 | .w3-sepia-max,.w3-hover-sepia:hover{-webkit-filter:sepia(100%);filter:sepia(100%)} 260 | .w3-sepia-min{-webkit-filter:sepia(50%);filter:sepia(50%)} 261 | .w3-text-shadow{text-shadow:1px 1px 0 #444}.w3-text-shadow-white{text-shadow:1px 1px 0 #ddd} 262 | .w3-transparent{background-color:transparent!important} 263 | .w3-hover-none:hover{box-shadow:none!important;background-color:transparent!important} 264 | /* Colors */ 265 | .w3-amber,.w3-hover-amber:hover{color:#000!important;background-color:#ffc107!important} 266 | .w3-aqua,.w3-hover-aqua:hover{color:#000!important;background-color:#00ffff!important} 267 | .w3-blue,.w3-hover-blue:hover{color:#fff!important;background-color:#2196F3!important} 268 | .w3-light-blue,.w3-hover-light-blue:hover{color:#000!important;background-color:#87CEEB!important} 269 | .w3-brown,.w3-hover-brown:hover{color:#fff!important;background-color:#795548!important} 270 | .w3-cyan,.w3-hover-cyan:hover{color:#000!important;background-color:#00bcd4!important} 271 | .w3-blue-grey,.w3-hover-blue-grey:hover,.w3-blue-gray,.w3-hover-blue-gray:hover{color:#fff!important;background-color:#607d8b!important} 272 | .w3-green,.w3-hover-green:hover{color:#fff!important;background-color:#4CAF50!important} 273 | .w3-light-green,.w3-hover-light-green:hover{color:#000!important;background-color:#8bc34a!important} 274 | .w3-indigo,.w3-hover-indigo:hover{color:#fff!important;background-color:#3f51b5!important} 275 | .w3-khaki,.w3-hover-khaki:hover{color:#000!important;background-color:#f0e68c!important} 276 | .w3-lime,.w3-hover-lime:hover{color:#000!important;background-color:#cddc39!important} 277 | .w3-orange,.w3-hover-orange:hover{color:#000!important;background-color:#ff9800!important} 278 | .w3-deep-orange,.w3-hover-deep-orange:hover{color:#fff!important;background-color:#ff5722!important} 279 | .w3-pink,.w3-hover-pink:hover{color:#fff!important;background-color:#e91e63!important} 280 | .w3-purple,.w3-hover-purple:hover{color:#fff!important;background-color:#9c27b0!important} 281 | .w3-deep-purple,.w3-hover-deep-purple:hover{color:#fff!important;background-color:#673ab7!important} 282 | .w3-red,.w3-hover-red:hover{color:#fff!important;background-color:#f44336!important} 283 | .w3-sand,.w3-hover-sand:hover{color:#000!important;background-color:#fdf5e6!important} 284 | .w3-teal,.w3-hover-teal:hover{color:#fff!important;background-color:#009688!important} 285 | .w3-yellow,.w3-hover-yellow:hover{color:#000!important;background-color:#ffeb3b!important} 286 | .w3-white,.w3-hover-white:hover{color:#000!important;background-color:#fff!important} 287 | .w3-black,.w3-hover-black:hover{color:#fff!important;background-color:#000!important} 288 | .w3-grey,.w3-hover-grey:hover,.w3-gray,.w3-hover-gray:hover{color:#000!important;background-color:#9e9e9e!important} 289 | .w3-light-grey,.w3-hover-light-grey:hover,.w3-light-gray,.w3-hover-light-gray:hover{color:#000!important;background-color:#f1f1f1!important} 290 | .w3-dark-grey,.w3-hover-dark-grey:hover,.w3-dark-gray,.w3-hover-dark-gray:hover{color:#fff!important;background-color:#616161!important} 291 | .w3-pale-red,.w3-hover-pale-red:hover{color:#000!important;background-color:#ffdddd!important} 292 | .w3-pale-green,.w3-hover-pale-green:hover{color:#000!important;background-color:#ddffdd!important} 293 | .w3-pale-yellow,.w3-hover-pale-yellow:hover{color:#000!important;background-color:#ffffcc!important} 294 | .w3-pale-blue,.w3-hover-pale-blue:hover{color:#000!important;background-color:#ddffff!important} 295 | .w3-text-amber,.w3-hover-text-amber:hover{color:#ffc107!important} 296 | .w3-text-aqua,.w3-hover-text-aqua:hover{color:#00ffff!important} 297 | .w3-text-blue,.w3-hover-text-blue:hover{color:#2196F3!important} 298 | .w3-text-light-blue,.w3-hover-text-light-blue:hover{color:#87CEEB!important} 299 | .w3-text-brown,.w3-hover-text-brown:hover{color:#795548!important} 300 | .w3-text-cyan,.w3-hover-text-cyan:hover{color:#00bcd4!important} 301 | .w3-text-blue-grey,.w3-hover-text-blue-grey:hover,.w3-text-blue-gray,.w3-hover-text-blue-gray:hover{color:#607d8b!important} 302 | .w3-text-green,.w3-hover-text-green:hover{color:#4CAF50!important} 303 | .w3-text-light-green,.w3-hover-text-light-green:hover{color:#8bc34a!important} 304 | .w3-text-indigo,.w3-hover-text-indigo:hover{color:#3f51b5!important} 305 | .w3-text-khaki,.w3-hover-text-khaki:hover{color:#b4aa50!important} 306 | .w3-text-lime,.w3-hover-text-lime:hover{color:#cddc39!important} 307 | .w3-text-orange,.w3-hover-text-orange:hover{color:#ff9800!important} 308 | .w3-text-deep-orange,.w3-hover-text-deep-orange:hover{color:#ff5722!important} 309 | .w3-text-pink,.w3-hover-text-pink:hover{color:#e91e63!important} 310 | .w3-text-purple,.w3-hover-text-purple:hover{color:#9c27b0!important} 311 | .w3-text-deep-purple,.w3-hover-text-deep-purple:hover{color:#673ab7!important} 312 | .w3-text-red,.w3-hover-text-red:hover{color:#f44336!important} 313 | .w3-text-sand,.w3-hover-text-sand:hover{color:#fdf5e6!important} 314 | .w3-text-teal,.w3-hover-text-teal:hover{color:#009688!important} 315 | .w3-text-yellow,.w3-hover-text-yellow:hover{color:#d2be0e!important} 316 | .w3-text-white,.w3-hover-text-white:hover{color:#fff!important} 317 | .w3-text-black,.w3-hover-text-black:hover{color:#000!important} 318 | .w3-text-grey,.w3-hover-text-grey:hover,.w3-text-gray,.w3-hover-text-gray:hover{color:#757575!important} 319 | .w3-text-light-grey,.w3-hover-text-light-grey:hover,.w3-text-light-gray,.w3-hover-text-light-gray:hover{color:#f1f1f1!important} 320 | .w3-text-dark-grey,.w3-hover-text-dark-grey:hover,.w3-text-dark-gray,.w3-hover-text-dark-gray:hover{color:#3a3a3a!important} 321 | .w3-border-amber,.w3-hover-border-amber:hover{border-color:#ffc107!important} 322 | .w3-border-aqua,.w3-hover-border-aqua:hover{border-color:#00ffff!important} 323 | .w3-border-blue,.w3-hover-border-blue:hover{border-color:#2196F3!important} 324 | .w3-border-light-blue,.w3-hover-border-light-blue:hover{border-color:#87CEEB!important} 325 | .w3-border-brown,.w3-hover-border-brown:hover{border-color:#795548!important} 326 | .w3-border-cyan,.w3-hover-border-cyan:hover{border-color:#00bcd4!important} 327 | .w3-border-blue-grey,.w3-hover-blue-grey:hover,.w3-border-blue-gray,.w3-hover-blue-gray:hover{border-color:#607d8b!important} 328 | .w3-border-green,.w3-hover-border-green:hover{border-color:#4CAF50!important} 329 | .w3-border-light-green,.w3-hover-border-light-green:hover{border-color:#8bc34a!important} 330 | .w3-border-indigo,.w3-hover-border-indigo:hover{border-color:#3f51b5!important} 331 | .w3-border-khaki,.w3-hover-border-khaki:hover{border-color:#f0e68c!important} 332 | .w3-border-lime,.w3-hover-border-lime:hover{border-color:#cddc39!important} 333 | .w3-border-orange,.w3-hover-border-orange:hover{border-color:#ff9800!important} 334 | .w3-border-deep-orange,.w3-hover-border-deep-orange:hover{border-color:#ff5722!important} 335 | .w3-border-pink,.w3-hover-border-pink:hover{border-color:#e91e63!important} 336 | .w3-border-purple,.w3-hover-border-purple:hover{border-color:#9c27b0!important} 337 | .w3-border-deep-purple,.w3-hover-border-deep-purple:hover{border-color:#673ab7!important} 338 | .w3-border-red,.w3-hover-border-red:hover{border-color:#f44336!important} 339 | .w3-border-sand,.w3-hover-border-sand:hover{border-color:#fdf5e6!important} 340 | .w3-border-teal,.w3-hover-border-teal:hover{border-color:#009688!important} 341 | .w3-border-yellow,.w3-hover-border-yellow:hover{border-color:#ffeb3b!important} 342 | .w3-border-white,.w3-hover-border-white:hover{border-color:#fff!important} 343 | .w3-border-black,.w3-hover-border-black:hover{border-color:#000!important} 344 | .w3-border-grey,.w3-hover-border-grey:hover,.w3-border-gray,.w3-hover-border-gray:hover{border-color:#9e9e9e!important} 345 | .w3-border-light-grey,.w3-hover-border-light-grey:hover,.w3-border-light-gray,.w3-hover-border-light-gray:hover{border-color:#f1f1f1!important} 346 | .w3-border-dark-grey,.w3-hover-border-dark-grey:hover,.w3-border-dark-gray,.w3-hover-border-dark-gray:hover{border-color:#616161!important} 347 | .w3-border-pale-red,.w3-hover-border-pale-red:hover{border-color:#ffe7e7!important}.w3-border-pale-green,.w3-hover-border-pale-green:hover{border-color:#e7ffe7!important} 348 | .w3-border-pale-yellow,.w3-hover-border-pale-yellow:hover{border-color:#ffffcc!important}.w3-border-pale-blue,.w3-hover-border-pale-blue:hover{border-color:#e7ffff!important} -------------------------------------------------------------------------------- /art_web/templates/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {% block title %} {% endblock %} | ALM Art Gallery 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 18 | 19 | 20 | 21 |
22 | 45 |
46 | 47 | 48 |
49 |
50 |
51 | × 52 |

Administrator Login

53 | 54 |
55 |
56 | 57 | 58 | 59 |
60 | 63 |
64 |
65 | 66 | {% with messages = get_flashed_messages() %} 67 | {% if messages %} 68 |
69 |
    70 | × 71 | {% for message in messages %} 72 | {{ message }} 73 | {% endfor %} 74 |
75 |
76 | {% endif %} 77 | {% endwith %} 78 | {% block content %}{% endblock %} 79 | 80 | 81 | 82 | 83 | 86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /art_web/templates/index.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block title %}{{ title }}{% endblock %} 4 | 5 | {% block content %} 6 | 7 |
8 | Architecture 9 |
10 |

ALM Art Gallery

11 |
12 |
13 | 14 | 15 |
16 | 17 | 18 |
19 |

Featured Paintings

20 |
21 |
22 | {% for painting,file in paintings.items() %} 23 |
24 |
25 |
{{painting}}
26 | House 27 |
28 |
29 | {% endfor %} 30 |
31 |
32 |

Featured Sculptures

33 |
34 | 35 |
36 | {% for painting,file in sculptures.items() %} 37 |
38 |
39 |
{{painting}}
40 | House 41 |
42 |
43 | {% endfor %} 44 |
45 | 46 | 47 |
48 |

About This Site

49 |

ALM Art Gallery is an open source website containing over 100 different varieties of paintings and sculptures, including collections of 50 | visuals, performing, and media arts of modern and medieval times. A reflection of our multidisciplinary mission and the increasingly 51 | cross-disciplinary practice of artists, ALM gallery reflect a diverse range of artistic pursuits, including: a permanent collection 52 | of visual arts, the Moving Image Collection, performing arts commissions, the library’s Collection of 53 | artists’ books, Company Collection like those from Pixar, and the Digital Arts Study Collection. 54 | Browse our holdings and learn more about the art and artists who animate our collections. 55 |

56 |
57 | 58 | 59 |
60 |

Contributors

61 |
62 | 63 |
64 |
65 | AMS 66 |

Abdul Mohsin Siddiqi

67 |

Frontend Developer

68 |

Undergraduate in Bachelors of Technology (Computer Engineering) at Jamia Millia Islamia, New Delhi

69 | 70 |
71 |
72 | Ajitesh 73 |

Ajitesh Rai

74 |

Backend Developer

75 |

Undergraduate in Bachelors of Technology (Computer Engineering) at Jamia Millia Islamia, New Delhi

76 | 77 |
78 |
79 | Lakshita 80 |

Lakshita Bhatia

81 |

Team Leader

82 |

Undergraduate in Bachelors of Technology (Computer Engineering) at Jamia Millia Islamia, New Delhi

83 | 84 | 92 |
93 | 94 |
95 | 96 |

Feedback

97 |
98 | 99 | 100 |
101 |

Write a review...

102 |
103 | {% from 'macros.html' import render_field %} 104 | {% for field in form %} 105 | {{ render_field(field) }} 106 | {% endfor %} 107 |
108 |
109 | 110 | 111 |
112 | {% endblock %} 113 | -------------------------------------------------------------------------------- /art_web/templates/macros.html: -------------------------------------------------------------------------------- 1 | {% macro render_field(field) -%} 2 | 3 | {% if field.type == 'CSRFTokenField' %} 4 | {{ field }} 5 | 6 | {% if field.errors %} 7 |
You have submitted an invalid CSRF token
8 | {% endif %} 9 | {% elif field.type == 'HiddenField' %} 10 | {{ field }} 11 | {# any other special case you may need #} 12 | {% else %} 13 | 14 | {{ field(placeholder=field.description,class_="w3-input w3-section") }} 15 | {% if field.errors %} 16 | 21 | {% endif %} 22 | {% endif %} 23 | 24 | {%- endmacro %} 25 | -------------------------------------------------------------------------------- /art_web/templates/profile.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block title %}{{ title }}{% endblock %} 4 | 5 | {% block content %} 6 | 7 |
8 |
9 |
10 |

User profile

11 | 12 |

{{ session['email'] }}

13 | 15 |

16 |
17 |
18 |
19 | {% endblock %} 20 | -------------------------------------------------------------------------------- /art_web/templates/signin.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block title %}{{ title }}{% endblock %} 3 | {% block content %} 4 |
5 | 6 | 27 |
28 | {% endblock %} 29 | -------------------------------------------------------------------------------- /art_web/templates/signup.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% block title %}{{ title }}{% endblock %} 3 | {% block content %} 4 | 5 |
6 | 71 |
72 | {% endblock %} 73 | -------------------------------------------------------------------------------- /art_web/templates/submit_art.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block title %}{{ title }}{% endblock %} 4 | 5 | {% block content %} 6 | 7 |
8 | 15 |
16 | 17 | {% endblock %} 18 | -------------------------------------------------------------------------------- /art_web/views.py: -------------------------------------------------------------------------------- 1 | from art_web import app 2 | from flask import render_template, request, flash, redirect, url_for, session 3 | from models import db, User, Feedback, Paintings, Artist, AdminUser 4 | from forms import SignupForm, SigninForm , FeedbackForm, SubmitArt 5 | from flask_admin import Admin 6 | from flask_admin.base import MenuLink 7 | from flask_admin.contrib.sqla import ModelView 8 | # from flask_basicauth import BasicAuth 9 | 10 | 11 | class MyModelView(ModelView): 12 | column_display_pk = True 13 | column_hide_backrefs = True 14 | 15 | 16 | # Admin views 17 | admin = Admin(app, name='Art Gallery', template_mode='bootstrap3') 18 | # admin = Admin(app, name='art_gallery', base_template='base.html') 19 | admin.add_view(MyModelView(AdminUser, db.session)) 20 | admin.add_view(MyModelView(User, db.session)) 21 | admin.add_view(MyModelView(Feedback, db.session)) 22 | admin.add_view(MyModelView(Paintings, db.session)) 23 | admin.add_view(MyModelView(Artist, db.session)) 24 | # Add home link by url 25 | admin.add_link(MenuLink(name='Back', url='/')) 26 | 27 | 28 | @app.route('/testdb') 29 | def testdb(): 30 | user = Paintings.query.with_entities(Paintings.name, Paintings.painting_photo).filter_by(artist_id=1) 31 | print dict(user.all()) 32 | for u in user.all(): 33 | print u 34 | # return render_template("login.html",title="login") 35 | return "done!" 36 | 37 | @app.route('/', methods=['GET', 'POST']) 38 | def index(): 39 | title = 'Home' 40 | form = FeedbackForm() 41 | pnt = Paintings.query.with_entities(Paintings.name, Paintings.painting_photo).filter_by(artist_id=1) 42 | scp = Paintings.query.with_entities(Paintings.name, Paintings.painting_photo).filter_by(artist_id=2) 43 | paintings = dict(pnt.all()) 44 | sculptures = dict(scp.all()) 45 | if request.method == 'POST': 46 | if form.validate() == False: 47 | return render_template('index.html',title = title, paintings = paintings, sculptures = sculptures, form = form) 48 | else: 49 | feedback = Feedback(form.name.data, form.email.data, form.subject.data, form.comment.data) 50 | db.session.add(feedback) 51 | db.session.commit() 52 | flash("Form submitted successfully!", "success") 53 | return redirect(url_for('index')) 54 | return render_template('index.html',title = title, paintings = paintings, sculptures = sculptures, form = form) 55 | 56 | @app.route('/profile') 57 | def profile(): 58 | title = 'Profile' 59 | if 'email' not in session: 60 | return redirect(url_for('signin')) 61 | 62 | # Admin user 63 | if session['email'] == 'admin': 64 | return render_template('profile.html',title=title) 65 | 66 | # Normal user 67 | user = User.query.filter_by(email = session['email']).first() 68 | if user is None: 69 | return redirect(url_for('signin')) 70 | else: 71 | return render_template('profile.html',title=title) 72 | 73 | @app.route('/signout') 74 | def signout(): 75 | if 'email' not in session: 76 | return redirect(url_for('signin')) 77 | 78 | session.pop('email', None) 79 | return redirect(url_for('index')) 80 | 81 | @app.route('/signup', methods=['GET', 'POST']) 82 | def signup(): 83 | title = 'Sign Up' 84 | form = SignupForm() 85 | # If user is signed in 86 | if 'email' in session: 87 | return redirect(url_for('profile')) 88 | if request.method == 'POST': 89 | if form.validate() == False: 90 | return render_template('signup.html',title = title, form=form) 91 | else: 92 | newuser = User(form.firstname.data, form.lastname.data, form.email.data\ 93 | , form.password.data, form.phone_number.data, form.gender.data, form.address.data\ 94 | , form.city.data, form.country.data) 95 | db.session.add(newuser) 96 | db.session.commit() 97 | session['email'] = newuser.email 98 | return redirect(url_for('profile')) 99 | 100 | elif request.method == 'GET': 101 | return render_template('signup.html',title = title, form=form) 102 | 103 | @app.route('/signin', methods=['GET', 'POST']) 104 | def signin(): 105 | title = 'Login' 106 | form = SigninForm() 107 | # If user is signed in 108 | if 'email' in session: 109 | return redirect(url_for('profile')) 110 | 111 | if request.method == 'POST': 112 | auser = AdminUser.query.filter_by(email = form.email.data.lower()).first() 113 | 114 | # Admin login 115 | if auser and auser.check_password(form.password.data): 116 | session['email'] = 'admin' 117 | return redirect('/admin') 118 | 119 | elif form.validate() == False: 120 | return render_template('signin.html',title = title, form=form) 121 | 122 | else: 123 | # return "hello!" 124 | session['email'] = form.email.data 125 | return redirect(url_for('profile')) 126 | 127 | elif request.method == 'GET': 128 | return render_template('signin.html',title = title, form=form) 129 | 130 | 131 | @app.route('/art', methods=['GET','POST']) 132 | def art(): 133 | title = "Submit art" 134 | form = SubmitArt() 135 | if 'email' not in session: 136 | flash("Signin first!","error") 137 | return redirect(url_for(signin)) 138 | elif request.method == 'POST': 139 | if form.validate() == False: 140 | flash("Enter correct values!","error") 141 | return render_template('submit_art.html',title = title, form=form) 142 | else: 143 | newart = Paintings(form.name.data, form.location.data, form.artist_id.data) 144 | db.session.add(newart) 145 | db.session.commit() 146 | flash("Form submitted successfully!", "success") 147 | return redirect(url_for('art')) 148 | 149 | return render_template("submit_art.html",title=title, form=form) 150 | -------------------------------------------------------------------------------- /before_install.txt: -------------------------------------------------------------------------------- 1 | sudo apt install python-dev libmysqlclient-dev python-mysqldb 2 | -------------------------------------------------------------------------------- /cur_tree.txt: -------------------------------------------------------------------------------- 1 | . 2 | ├── cur_tree.txt 3 | ├── forms.py 4 | ├── __init__.py 5 | ├── models.py 6 | ├── static 7 | │   ├── assets 8 | │   ├── js 9 | │   │   ├── bootstrap.min.js 10 | │   │   └── jquery.min.js 11 | │   └── style 12 | ├── templates 13 | └── views.py 14 | 15 | 5 directories, 7 files 16 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | alembic==0.8.8 2 | click==6.6 3 | Flask==0.11.1 4 | Flask-Admin==1.4.2 5 | Flask-Migrate==2.0.1 6 | Flask-Script==2.0.5 7 | Flask-SQLAlchemy==2.1 8 | Flask-Uploads==0.2.1 9 | Flask-WTF==0.13.1 10 | gunicorn==19.7.1 11 | itsdangerous==0.24 12 | Jinja2==2.8 13 | Mako==1.0.6 14 | MarkupSafe==0.23 15 | MySQL-python==1.2.5 16 | psycopg2==2.7.1 17 | python-editor==1.0.1 18 | SQLAlchemy==1.1.3 19 | Werkzeug==0.11.11 20 | WTForms==2.1 21 | -------------------------------------------------------------------------------- /runserver.py: -------------------------------------------------------------------------------- 1 | from art_web import app 2 | app.run(debug = True) 3 | --------------------------------------------------------------------------------