From 666bb5327d7d146ad149e505722541f8409a2f93 Mon Sep 17 00:00:00 2001 From: github Date: Mon, 15 Jul 2019 15:50:09 +0800 Subject: [PATCH] init --- db.sqlite3 | 0 manage.py | 15 ++ pwdselfservice/__init__.py | 0 pwdselfservice/local_settings.py | 30 +++ pwdselfservice/settings.py | 186 +++++++++++++++ pwdselfservice/urls.py | 15 ++ pwdselfservice/wsgi.py | 16 ++ readme.md | 117 ++++++++++ requestment | 7 + resetpwd/__init__.py | 0 resetpwd/ad.py | 99 ++++++++ resetpwd/admin.py | 3 + resetpwd/apps.py | 5 + resetpwd/crypto.py | 22 ++ resetpwd/dingding.py | 82 +++++++ resetpwd/form.py | 34 +++ resetpwd/migrations/__init__.py | 0 resetpwd/models.py | 4 + resetpwd/pwdcheck.py | 30 +++ resetpwd/tests.py | 3 + resetpwd/views.py | 382 +++++++++++++++++++++++++++++++ static/css/load.css | 135 +++++++++++ static/css/login.css | 119 ++++++++++ static/css/style.css | 66 ++++++ static/img/favicon.ico | Bin 0 -> 55502 bytes static/img/icon.jpg | Bin 0 -> 1507 bytes static/img/logo.jpg | Bin 0 -> 20264 bytes static/img/mima-icon.jpg | Bin 0 -> 1413 bytes static/img/unlock.jpg | Bin 0 -> 15000 bytes static/img/user-icon.jpg | Bin 0 -> 1405 bytes static/js/bubbly-bg.js | 1 + static/js/check.js | 85 +++++++ static/js/ddLogin.js | 18 ++ static/js/jquery-1.8.3.min.js | 2 + static/js/script.js | 41 ++++ templates/farvirate.ico | Bin 0 -> 55502 bytes templates/index.html | 114 +++++++++ templates/msg.html | 45 ++++ templates/resetcheck.html | 15 ++ templates/resetpwd.html | 72 ++++++ uwsgi.ini | 27 +++ 41 files changed, 1790 insertions(+) create mode 100644 db.sqlite3 create mode 100644 manage.py create mode 100644 pwdselfservice/__init__.py create mode 100644 pwdselfservice/local_settings.py create mode 100644 pwdselfservice/settings.py create mode 100644 pwdselfservice/urls.py create mode 100644 pwdselfservice/wsgi.py create mode 100644 readme.md create mode 100644 requestment create mode 100644 resetpwd/__init__.py create mode 100644 resetpwd/ad.py create mode 100644 resetpwd/admin.py create mode 100644 resetpwd/apps.py create mode 100644 resetpwd/crypto.py create mode 100644 resetpwd/dingding.py create mode 100644 resetpwd/form.py create mode 100644 resetpwd/migrations/__init__.py create mode 100644 resetpwd/models.py create mode 100644 resetpwd/pwdcheck.py create mode 100644 resetpwd/tests.py create mode 100644 resetpwd/views.py create mode 100644 static/css/load.css create mode 100644 static/css/login.css create mode 100644 static/css/style.css create mode 100644 static/img/favicon.ico create mode 100644 static/img/icon.jpg create mode 100644 static/img/logo.jpg create mode 100644 static/img/mima-icon.jpg create mode 100644 static/img/unlock.jpg create mode 100644 static/img/user-icon.jpg create mode 100644 static/js/bubbly-bg.js create mode 100644 static/js/check.js create mode 100644 static/js/ddLogin.js create mode 100644 static/js/jquery-1.8.3.min.js create mode 100644 static/js/script.js create mode 100644 templates/farvirate.ico create mode 100644 templates/index.html create mode 100644 templates/msg.html create mode 100644 templates/resetcheck.html create mode 100644 templates/resetpwd.html create mode 100644 uwsgi.ini diff --git a/db.sqlite3 b/db.sqlite3 new file mode 100644 index 0000000..e69de29 diff --git a/manage.py b/manage.py new file mode 100644 index 0000000..d5ef8d2 --- /dev/null +++ b/manage.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == '__main__': + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pwdselfservice.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) diff --git a/pwdselfservice/__init__.py b/pwdselfservice/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pwdselfservice/local_settings.py b/pwdselfservice/local_settings.py new file mode 100644 index 0000000..eee84db --- /dev/null +++ b/pwdselfservice/local_settings.py @@ -0,0 +1,30 @@ +# AD配置 +AD_HOST = 'abc.com' +AD_LOGIN_USER = 'abc\pwdadmin' +AD_LOGIN_USER_PWD = 'gVykWgNNF0oBQzwmwPp8' +BASE_DN = 'OU=RD,DC=abc,DC=com' + +# 钉钉配置 +# 钉钉统一接口地址,不可修改。 +DING_URL = "https://oapi.dingtalk.com/sns" + +# 钉钉企业ID +DING_CORP_ID = 'ding0176902811df32' + +# 钉钉E应用 +DING_AGENT_ID = '25311eeee' +DING_APP_KEY = 'dingqdzmax324v' +DING_APP_SECRET = 'rnGRJhhw5kVmzykG9mrTDxewmI4e0myPAluMlguYQOaadsf2fhgfdfsx' + +# 钉钉移动应用接入 +DING_SELF_APP_ID = 'dingoabrzugusdfdf33fgfds +DING_SELF_APP_SECRET = 'IrH2MedSgesguFjGvFCTjXYBRZDhA5AI4ADQU5710sgLffdsadf32uhgfdsfs' + +# Crypty key 通过generate_key生成,可不用修改,如果需要自行生成,请使用Crypto.generate_key自行生成,用于加密页面提交的明文密码 +CRYPTO_KEY = b'dp8U9y7NAhCD3MoNwPzPBhBtTZ1uI_WWSdpNs6wUDgs=' + +# COOKIE 超时,定义多长时间页面失效,单位秒。 +TMPID_COOKIE_AGE = 300 + +# 主页域名,index.html中的钉钉跳转等需要指定域名。 +HOME_URL = 'https://pwd.abc.com' \ No newline at end of file diff --git a/pwdselfservice/settings.py b/pwdselfservice/settings.py new file mode 100644 index 0000000..66adc43 --- /dev/null +++ b/pwdselfservice/settings.py @@ -0,0 +1,186 @@ +""" +Django settings for pwdselfservice project. + +Generated by 'django-admin startproject' using Django 2.1.8. + +For more information on this file, see +https://docs.djangoproject.com/en/2.1/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/2.1/ref/settings/ +""" + +import os + +# Build paths inside the project like this: os.path.join(BASE_DIR, ...) +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'nxnm3#&2tat_c2i6%$y74a)t$(3irh^gpwaleoja1kdv30fmcm' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = False + +ALLOWED_HOSTS = ['*'] + +# 创建日志的路径 +LOG_PATH = os.path.join(BASE_DIR, 'log') +# 如果地址不存在,则会自动创建log文件夹 +if not os.path.isdir(LOG_PATH): + os.mkdir(LOG_PATH) + +LOGGING = { + 'version': 1, + 'disable_existing_loggers': False,#此选项开启表示禁用部分日志,不建议设置为True + 'formatters': { + 'verbose': { + 'format': '%(asctime)s %(levelname)s %(pathname)s %(module)s.%(funcName)s %(lineno)d: %(message)s' + #日志格式 + }, + 'simple': { + 'format': '%(asctime)s %(levelname)s %(pathname)s %(module)s.%(funcName)s %(lineno)d: %(message)s' + }, + }, + 'filters': { + 'require_debug_true': { + '()': 'django.utils.log.RequireDebugTrue',#过滤器,只有当setting的DEBUG = True时生效 + }, + }, + 'handlers': { + 'console': { + 'level': 'DEBUG', + 'filters': ['require_debug_true'], + 'class': 'logging.StreamHandler', + 'formatter': 'verbose' + }, + 'file': {#重点配置部分 + 'level': 'DEBUG', + 'class': 'logging.FileHandler', + 'filename': '%s/log.log' % LOG_PATH,#日志保存文件 + 'formatter': 'verbose'#日志格式,与上边的设置对应选择 + } + }, + 'loggers': { + 'django': {#日志记录器 + 'handlers': ['file'], + 'level': 'DEBUG', + 'propagate': True, + } + }, +} + + +# SESSION +# 只有在settings.SESSION_SAVE_EVERY_REQUEST 为True时才有效 +SESSION_SAVE_EVERY_REQUEST = True +# 过期时间分钟 +SESSION_COOKIE_AGE = 300 +# False 会话cookie可以在用户浏览器中保持有效期。True:关闭浏览器,则Cookie失效。 +SESSION_EXPIRE_AT_BROWSER_CLOSE = True +# 建议配置,阻止 javascript 对会话数据的访问,提高安全性。 +# SESSION_COOKIE_HTTPONLY= True + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'resetpwd', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'pwdselfservice.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [os.path.join(BASE_DIR, 'templates')] + , + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'pwdselfservice.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/2.1/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + } +} + + +# Password validation +# https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/2.1/topics/i18n/ + +LANGUAGE_CODE = 'zh-hans' + +TIME_ZONE = 'Asia/Shanghai' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = False + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/2.1/howto/static-files/ +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + +STATIC_URL = '/static/' +STATIC_ROOT = 'static' + +STATICFILES_DIRS = [ + os.path.join(BASE_DIR, 'static'), +] + diff --git a/pwdselfservice/urls.py b/pwdselfservice/urls.py new file mode 100644 index 0000000..99622c9 --- /dev/null +++ b/pwdselfservice/urls.py @@ -0,0 +1,15 @@ +from django.urls import path, include, re_path +from django.views.generic.base import RedirectView +from django.conf import urls +import resetpwd.views +from django.conf.urls.static import static + +urlpatterns = { + # path('admin/', admin.site.urls) + path("favicon.ico", RedirectView.as_view(url='static/img/favicon.ico')), + path('', resetpwd.views.resetpwd_index, name='index'), + path('resetcheck', resetpwd.views.resetpwd_check_userinfo, name='resetcheck'), + path('resetpwd', resetpwd.views.resetpwd_reset, name='resetpwd'), + path('resetunlock', resetpwd.views.resetpwd_unlock, name='resetunlock'), + path('resetmsg', resetpwd.views.reset_msg, name='resetmsg'), +} diff --git a/pwdselfservice/wsgi.py b/pwdselfservice/wsgi.py new file mode 100644 index 0000000..6446a49 --- /dev/null +++ b/pwdselfservice/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for pwdselfservice project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pwdselfservice.settings') + +application = get_wsgi_application() diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..4148548 --- /dev/null +++ b/readme.md @@ -0,0 +1,117 @@ +## 需要的基础环境: +* Python 3.6.x +* Nginx(建议) +* Uwsgi(建议) + +## 钉钉必要条件: +#### E应用配置 +* 在钉钉工作台中通过“自建应用”创建应用,选择“企业内部自主开发”,在应用首页中获取应用的AgentId、AppKey、AppSecret。 +* 应用需要权限:身份验证、消息通知、通讯录只读权限、手机号码信息、邮箱等个人信息、智能人事,范围是全部员工或自行选择 +* 应用安全域名和IP一定要配置,否则无法返回接口数据。 + +#### 移动接入应用: +* 登录中开启扫码登录,配置回调域名:“https://pwd.abc.com/resetcheck”,其中pwd.abc.com请按自己实际域名来,并记录相关的appId、appSecret。 + + +## 按自己实际的配置修改项目配置参数: +修改pwdselfservice/local_settings.py中的参数,按自己的实际参数修改 + +``` python +# AD配置 +AD_HOST = 'abc.com' +AD_LOGIN_USER = 'abc\pwdadmin' +AD_LOGIN_USER_PWD = 'gVykWgNNF0oBQzwmwPp8' +BASE_DN = 'OU=rd,DC=abc,DC=com' + +# 钉钉配置 +# 钉钉统一接口地址,不可修改 +DING_URL = "https://oapi.dingtalk.com/sns" + +# 钉钉企业ID +DING_CORP_ID = 'ding01769028f06d321' + +# 钉钉E应用 +DING_AGENT_ID = '25304321' +DING_APP_KEY = 'dingqdzmn611l5321321' +DING_APP_SECRET = 'rnGRJhhw5kVmzykG9mrTDxewmI4e0myP1123333221jzeKv3amQYWcInLV3x' + +# 钉钉移动应用接入 +DING_SELF_APP_ID = 'dingoabr112233xts' +DING_SELF_APP_SECRET = 'IrH2MedSgesguFjGvFCTjXYBRZD3322112233332211222 + +# Crypty key 通过Crypty.generate_key生成 +CRYPTO_KEY = b'dp8U9y7NAhCD3MoNwPzPBhBtTZ1uI_WWSdpNs6wUDgs=' + +# COOKIE 超时 +TMPID_COOKIE_AGE = 300 + +# 主页域名 +HOME_URL = 'https://pwd.abc.com' + +``` + + +### 自行安装完python3之后,使用python3目录下的pip3进行安装依赖: +### 我自行安装的Python路径为/usr/local/python3 +项目目录下的requestment文件里记录了所依赖的相关python模块,安装方法: +* /usr/local/python3/bin/pip3 install -r requestment + +等待所有模块安装完成之后进行下一步。 + +安装完依赖后,直接执行 +/usr/local/python3/bin/python3 manager.py runserver x.x.x.x:8000 +即可访问正常访问项目 + +## 通过uwsgi启动: +/usr/local/python3/bin/uwsgi -d --ini /usr/loca/wwwroot/pwdselfservice/uwsgi.ini + +其中/xxx/xxx/pwdselfservice/uwsgi.ini是你自己的服务器中此文件的真实地址 + +启动之后也可以通过IP+端口访问了。 + +提供2个脚本,让uwsgi在修改文件时能自动重载: + +uwsgi-start.sh: +```shell +#!/bin/sh +/usr/local/python3/bin/uwsgi -d --ini /usr/loca/wwwroot/pwdselfservice/uwsgi.ini --touch-reload "/usr/loca/wwwroot/pwdselfservice/reload.set" +``` + +uwsgi-autoreload.sh: +```shell +#!/bin/sh +objectdir="/usr/loca/wwwroot/pwdselfservice" + +/usr/bin/inotifywait -mrq --exclude "(logs|\.swp|\.swx|\.log|\.pyc|\.sqlite3)" --timefmt '%d/%m/%y %H:%M' --format '%T %wf' --event modify,delete,move,create,attrib ${objectdir} | while read files +do +/bin/touch /usr/loca/wwwroot/pwdselfservice/reload.set +continue +done & +``` +脚本内的路径按自己实际情况修改 + +## Nginx配置: + +Nginx Server配置: +* proxy_pass的IP地址改成自己的服务器IP +* 配置可自己写一个vhost或直接加在nginx.conf中 +``` nginx +server { + listen 80; + server_name pwd.abc.com; + + location / { + proxy_pass http://192.168.x.x:8000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + + } + access_log /var/log/nginx/vhost/pwd.log access; + error_log /var/log/nginx/vhost/pwd.err error; +} +``` + +- 执行Nginx reload操作,重新加载配置 + + diff --git a/requestment b/requestment new file mode 100644 index 0000000..947c1fe --- /dev/null +++ b/requestment @@ -0,0 +1,7 @@ +Django==2.1.8 +dingtalk-sdk>=1.2.2 +pycrypto==2.6 +cryptography +ldap3 +requests +uwsgi \ No newline at end of file diff --git a/resetpwd/__init__.py b/resetpwd/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/resetpwd/ad.py b/resetpwd/ad.py new file mode 100644 index 0000000..131b0e1 --- /dev/null +++ b/resetpwd/ad.py @@ -0,0 +1,99 @@ +from ldap3 import * +from pwdselfservice.local_settings import * + + +def __ad_connect(): + username = str(AD_LOGIN_USER).lower() + server = Server(host=AD_HOST, use_ssl=True, port=636, get_info='ALL') + try: + conn = Connection(server, auto_bind=True, user=username, password=AD_LOGIN_USER_PWD, authentication='NTLM') + return conn + except Exception: + raise Exception('Server Error. Could not connect to Domain Controller') + + +def ad_ensure_user_by_sam(username): + """ + 通过sAMAccountName查询某个用户是否在AD中 + :param username: 除去@domain.com 的部分 + :return: True or False + """ + conn = __ad_connect() + base_dn = BASE_DN + condition = '(&(objectclass=person)(mail=' + username + '))' + attributes = ['sAMAccountName'] + return conn.search(base_dn, condition, attributes=attributes) + + +def ad_ensure_user_by_mail(user_mail_addr): + """ + 通过mail查询某个用户是否在AD中 + :param user_mail_addr: + :return: True or False + """ + conn = __ad_connect() + base_dn = BASE_DN + condition = '(&(objectclass=person)(mail=' + user_mail_addr + '))' + attributes = ['mail'] + return conn.search(base_dn, condition, attributes=attributes) + + +def ad_get_user_displayname_by_mail(user_mail_addr): + conn = __ad_connect() + conn.search(BASE_DN, '(&(objectclass=person)(mail=' + user_mail_addr + '))', attributes=[ + 'displayName']) + user_displayname = conn.entries[0]['displayName'] + conn.unbind() + return user_displayname + + +def ad_get_user_dn_by_mail(user_mail_addr): + conn = __ad_connect() + conn.search(BASE_DN, + '(&(objectclass=person)(mail=' + user_mail_addr + '))', attributes=['distinguishedName']) + user_dn = conn.entries[0]['distinguishedName'] + return user_dn + + +def ad_get_user_status_by_mail(user_mail_addr): + conn = __ad_connect() + conn.search(BASE_DN, + '(&(objectclass=person)(mail=' + user_mail_addr + '))', attributes=['userAccountControl']) + user_account_control = conn.entries[0]['userAccountControl'] + return user_account_control + + +def ad_unlock_user_by_mail(user_mail_addr): + conn = __ad_connect() + user_dn = ad_get_user_dn_by_mail(user_mail_addr) + result = conn.extend.microsoft.unlock_account(user="%s" % user_dn) + conn.unbind() + return result + + +def ad_reset_user_pwd_by_mail(user_mail_addr, new_password): + conn = __ad_connect() + user_dn = ad_get_user_dn_by_mail(user_mail_addr) + result = conn.extend.microsoft.modify_password(user="%s" % user_dn, new_password="%s" % new_password) + conn.unbind() + return result + + +def ad_modify_user_pwd_by_mail(user_mail_addr, old_password, new_password): + conn = __ad_connect() + user_dn = ad_get_user_dn_by_mail(user_mail_addr) + result = conn.extend.microsoft.modify_password(user="%s" % user_dn, new_password="%s" % new_password, + old_password="%s" % old_password) + conn.unbind() + return result + + +def ad_get_user_locked_status_by_mail(user_mail_addr): + conn = __ad_connect() + conn.search(BASE_DN, '(&(objectclass=person)(mail=' + user_mail_addr + '))', attributes=['lockoutTime']) + locked_status = conn.entries[0]['lockoutTime'] + print(locked_status) + if '1601-01-01' in str(locked_status): + return 0 + else: + return locked_status diff --git a/resetpwd/admin.py b/resetpwd/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/resetpwd/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/resetpwd/apps.py b/resetpwd/apps.py new file mode 100644 index 0000000..d0bf5a2 --- /dev/null +++ b/resetpwd/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class ResetpwdConfig(AppConfig): + name = 'resetpwd' diff --git a/resetpwd/crypto.py b/resetpwd/crypto.py new file mode 100644 index 0000000..c996977 --- /dev/null +++ b/resetpwd/crypto.py @@ -0,0 +1,22 @@ +from cryptography.fernet import Fernet + + +class Crypto(object): + """docstring for ClassName""" + def __init__(self, key): + self.factory = Fernet(key) + + @staticmethod + def generate_key(): + key = Fernet.generate_key() + print(key) + + # 加密 + def encrypt(self, string): + token = str(self.factory.encrypt(string.encode('utf-8')), 'utf-8') + return token + + # 解密 + def decrypt(self, token): + string = self.factory.decrypt(bytes(token.encode('utf-8'))).decode('utf-8') + return string diff --git a/resetpwd/dingding.py b/resetpwd/dingding.py new file mode 100644 index 0000000..845bede --- /dev/null +++ b/resetpwd/dingding.py @@ -0,0 +1,82 @@ +from dingtalk.client import * +import requests +from pwdselfservice.local_settings import * + + +def ding_get_access_token(): + resp = requests.get( + url=DING_URL + "/gettoken", + params=dict(appid=DING_SELF_APP_ID, appsecret=DING_SELF_APP_SECRET) + ) + resp = resp.json() + if resp['access_token']: + return resp['access_token'] + else: + return None + + +def ding_get_persistent_code(code, token): + resp = requests.post( + url="%s/get_persistent_code?access_token=%s" % (DING_URL, token), + json=dict(tmp_auth_code=code), + ) + resp = resp.json() + if resp['unionid']: + return resp['unionid'] + else: + return None + + +def ding_client_connect(): + client = AppKeyClient(corp_id=DING_CORP_ID, app_key=DING_APP_KEY, app_secret=DING_APP_SECRET) + return client + + +def ding_get_dept_user_list_detail(dept_id, offset, size): + client = ding_client_connect() + result = client.user.list(department_id=dept_id, offset=offset, size=size) + return result + + +def ding_get_userinfo_by_code(code): + """ + :param code: requestAuthCode接口中获取的CODE + :return: + """ + client = ding_client_connect() + resutl = client.user.getuserinfo(code) + return resutl + + +def ding_get_userid_by_unionid(unionid): + """ + :param unionid: 用户在当前钉钉开放平台账号范围内的唯一标识 + :return: + """ + client = ding_client_connect() + resutl = client.user.get_userid_by_unionid(unionid) + if resutl['userid']: + return resutl['userid'] + else: + return None + + +def ding_get_org_user_count(): + """ + 企业员工数量 + only_active – 是否包含未激活钉钉的人员数量 + :return: + """ + client = ding_client_connect() + resutl = client.user.get_org_user_count('only_active') + return resutl + + +def ding_get_userinfo_detail(user_id): + """ + user_id – 用户ID + :return: + """ + client = ding_client_connect() + resutl = client.user.get(user_id) + return resutl diff --git a/resetpwd/form.py b/resetpwd/form.py new file mode 100644 index 0000000..dd02390 --- /dev/null +++ b/resetpwd/form.py @@ -0,0 +1,34 @@ +from django.forms import fields as c_fields +from django import forms as c_forms +from django.core.exceptions import ValidationError + + +class CheckForm(c_forms.Form): + new_password = c_fields.RegexField( + '(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{8,30}', + # 密码必须同时包含大写、小写、数字和特殊字符其中三项且至少8位 + strip=True, + min_length=8, + max_length=30, + error_messages={'required': '新密码不能为空.', + 'invalid': '密码必须包含数字,字母、特殊字符', + 'min_length': "密码长度不能小于8个字符", + 'max_length': "密码长度不能大于30个字符"} + ) + old_password = c_fields.CharField(error_messages={'required': '确认密码不能为空'}) + ensure_password = c_fields.CharField(error_messages={'required': '确认密码不能为空'}) + user_email = c_fields.CharField(error_messages={'required': '邮箱不能为空', 'invalid': '邮箱格式错误'}) + + def clean(self): + pwd0 = self.cleaned_data.get('old_password') + pwd1 = self.cleaned_data.get('new_password') + pwd2 = self.cleaned_data.get('ensure_password') + if pwd1 == pwd2: + pass + elif pwd0 == pwd1: + # 这里异常模块导入要放在函数里面,放到文件开头有时会报错,找不到 + from django.core.exceptions import ValidationError + raise ValidationError('新旧密码不能一样') + else: + from django.core.exceptions import ValidationError + raise ValidationError('新密码和确认密码输入不一致') diff --git a/resetpwd/migrations/__init__.py b/resetpwd/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/resetpwd/models.py b/resetpwd/models.py new file mode 100644 index 0000000..8ecf29d --- /dev/null +++ b/resetpwd/models.py @@ -0,0 +1,4 @@ +from django.db import models +from django import forms +from django.contrib import auth + diff --git a/resetpwd/pwdcheck.py b/resetpwd/pwdcheck.py new file mode 100644 index 0000000..0c611eb --- /dev/null +++ b/resetpwd/pwdcheck.py @@ -0,0 +1,30 @@ +from django.shortcuts import render, reverse, HttpResponsePermanentRedirect, redirect +from django.http import * +from django.contrib import messages +from dingtalk import * +from .models import * +from .crypto import Crypto +from .ad import ad_get_user_locked_status_by_mail, ad_unlock_user_by_mail, ad_reset_user_pwd_by_mail, \ + ad_get_user_status_by_mail, ad_ensure_user_by_mail, ad_modify_user_pwd_by_mail +from .dingding import ding_get_userinfo_detail, ding_get_userid_by_unionid, ding_get_userinfo_by_code, \ + ding_get_persistent_code, ding_get_access_token +from pwdselfservice.local_settings import * +from .form import * + + +class CustomPasswortValidator(object): + + def __init__(self, min_length=1, max_length=30): + self.min_length = min_length + + def validate(self, password): + special_characters = "[~\!@#\$%\^&\*\(\)_\+{}\":;'\[\]]" + if not any(char.isdigit() for char in password): + raise ValidationError(_('Password must contain at least %(min_length)d digit.') % {'min_length': self.min_length}) + if not any(char.isalpha() for char in password): + raise ValidationError(_('Password must contain at least %(min_length)d letter.') % {'min_length': self.min_length}) + if not any(char in special_characters for char in password): + raise ValidationError(_('Password must contain at least %(min_length)d special character.') % {'min_length': self.min_length}) + + def get_help_text(self): + return "" diff --git a/resetpwd/tests.py b/resetpwd/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/resetpwd/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/resetpwd/views.py b/resetpwd/views.py new file mode 100644 index 0000000..a72ec02 --- /dev/null +++ b/resetpwd/views.py @@ -0,0 +1,382 @@ +from django.shortcuts import render +from django.http import * +from .crypto import Crypto +from .ad import ad_get_user_locked_status_by_mail, ad_unlock_user_by_mail, ad_reset_user_pwd_by_mail, \ + ad_get_user_status_by_mail, ad_ensure_user_by_mail, ad_modify_user_pwd_by_mail +from .dingding import ding_get_userinfo_detail, ding_get_userid_by_unionid, \ + ding_get_persistent_code, ding_get_access_token +from pwdselfservice.local_settings import * +from .form import CheckForm +import logging + + +msg_template = 'msg.html' +home_url = HOME_URL +logger = logging.getLogger('django') + +def resetpwd_index(request): + home_url = HOME_URL + app_id = DING_SELF_APP_ID + if request.method == 'GET': + return render(request, 'index.html', locals()) + else: + logger.error('[异常] 请求方法:%s,请求路径:%s' % (request.method, request.path)) + + if request.method == 'POST': + check_form = CheckForm(request.POST) + if check_form.is_valid(): + form_obj = check_form.cleaned_data + user_email = form_obj.get("user_email") + old_password = form_obj.get("old_password") + new_password = form_obj.get("new_password") + else: + msg = check_form.as_p().errors + logger.error('[异常] 请求方法:%s,请求路径:%s,错误信息:%s' % (request.method, request.path, msg)) + context = { + 'msg': msg, + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + + if user_email and old_password and new_password: + try: + # 判断账号是否被锁定 + if ad_get_user_locked_status_by_mail(user_mail_addr=user_email) is not 0: + context = { + 'msg': "此账号己被锁定,请先解锁账号。", + 'button_click': "window.history.back()", + 'button_display': "返回" + } + return render(request, msg_template, context) + + if ad_get_user_status_by_mail(user_mail_addr=user_email) == 514 or ad_get_user_status_by_mail( + user_mail_addr=user_email) == 66050: + context = { + 'msg': "此账号状态为己禁用,请联系HR确认账号是否正确。", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + + else: + try: + result = ad_modify_user_pwd_by_mail(user_mail_addr=user_email, old_password=old_password, + new_password=new_password) + if result is True: + context = { + 'msg': "密码己修改成功,请妥善保管密码。你可直接关闭此页面!", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + + else: + context = { + 'msg': "密码未修改成功,请确认旧密码是否正确。", + 'button_click': "window.history.back()", + 'button_display': "返回" + } + return render(request, msg_template, context) + + except IndexError: + context = { + 'msg': "请确认邮箱账号[%s]是否正确?未能在Active Directory中检索到相关信息。" % user_email, + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + except Exception as e: + context = { + 'msg': "出现未预期的错误[%s],请与管理员联系~" % str(e), + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + + except IndexError: + context = { + 'msg': "请确认邮箱账号[%s]是否正确?未能在Active Directory中检索到相关信息。" % user_email, + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + except Exception as e: + context = { + 'msg': "出现未预期的错误[%s],请与管理员联系~" % str(e), + 'button_click': "window.history.back()", + 'button_display': "返回" + } + return render(request, msg_template, context) + + else: + context = { + 'msg': "用户名、旧密码、新密码参数不正确,请重新确认后输入。", + 'button_click': "window.history.back()", + 'button_display': "返回" + } + return render(request, msg_template, context) + + else: + context = { + 'msg': "请从主页进行修改密码操作或扫码验证用户信息。", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + + +def resetpwd_check_userinfo(request): + code = request.GET.get('code') + if code: + logger.info('[成功] 请求方法:%s,请求路径:%s,CODE:%s' % (request.method, request.path, code)) + else: + logger.error('[异常] 请求方法:%s,请求路径:%s,未能拿到CODE。' % (request.method, request.path)) + try: + unionid = ding_get_persistent_code(code, ding_get_access_token()) + # unionid 在钉钉企业中是否存在 + if not unionid: + logger.error('[异常] 请求方法:%s,请求路径:%s,未能拿到unionid。' % (request.method, request.path)) + context = { + 'msg': '未能在钉钉企业通讯录中检索到相关信息,请确认当前登录钉钉的账号已在企业中注册!', + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + else: + ding_user_info = ding_get_userinfo_detail(ding_get_userid_by_unionid(unionid)) + try: + # 钉钉中此账号是否可用 + if ding_user_info['active']: + crypto = Crypto(CRYPTO_KEY) + unionid_cryto = crypto.encrypt(unionid) + # 配置cookie,并重定向到重置密码页面。 + set_cookie = HttpResponseRedirect('resetpwd') + set_cookie.set_cookie('tmpid', unionid_cryto, expires=TMPID_COOKIE_AGE) + return set_cookie + else: + context = { + 'msg': '邮箱是[%s]的用户在钉钉中未激活或可能己离职' % ding_user_info['email'], + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + except IndexError: + context = { + 'msg': "用户不存在或己离职", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + except Exception as e: + logger.error('[异常] :%s' % str(e)) + + except KeyError: + context = { + 'msg': "错误,钉钉临时Code己失效,请从主页重新扫码。", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + logger.error('[异常] :%s' % str(KeyError)) + return render(request, msg_template, context) + + except Exception as e: + context = { + 'msg': "错误[%s],请与管理员联系." % str(e), + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + logger.error('[异常] :%s' % str(e)) + return render(request, msg_template, context) + + +def resetpwd_reset(request): + global unionid_crypto + if request.method == 'GET': + try: + unionid_crypto = request.COOKIES.get('tmpid') + except Exception as e: + logger.error('[异常] :%s' % str(e)) + if not unionid_crypto: + logger.error('[异常] 请求方法:%s,请求路径:%s,未能拿到CODE或CODE己超时。' % (request.method, request.path)) + context = { + 'msg': "会话己超时,请重新扫码验证用户信息。", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + crypto = Crypto(CRYPTO_KEY) + unionid = crypto.decrypt(unionid_crypto) + user_email = ding_get_userinfo_detail(ding_get_userid_by_unionid(unionid))['email'] + if user_email: + context = { + 'user_email': user_email, + } + return render(request, 'resetpwd.html', context) + else: + context = { + 'msg': "%s 您好,企业钉钉中未能找到您账号的邮箱配置,请联系HR完善信息。" % ding_get_userinfo_detail(ding_get_userid_by_unionid( + unionid))['name'], + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + + elif request.method == 'POST': + new_password = request.POST.get('new_password').strip() + unionid_crypto = request.COOKIES.get('tmpid') + if not unionid_crypto: + context = { + 'msg': "会话己超时,请重新扫码验证用户信息。", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + crypto = Crypto(CRYPTO_KEY) + unionid = crypto.decrypt(unionid_crypto) + user_email = ding_get_userinfo_detail(ding_get_userid_by_unionid(unionid))['email'] + if ad_ensure_user_by_mail(user_mail_addr=user_email) is False: + context = { + 'msg': "账号[%s]在AD中不存在,请确认当前钉钉扫码账号绑定的邮箱是否和您正在使用的邮箱一致?或者该邮箱账号己被禁用!\n猜测:您的邮箱是否是带有数字或其它字母区分?" % user_email, + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + if ad_get_user_status_by_mail(user_mail_addr=user_email) == 514 or ad_get_user_status_by_mail( + user_mail_addr=user_email) == 66050: + context = { + 'msg': "此账号状态为己禁用,请联系HR确认账号是否正确。", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + else: + try: + result = ad_reset_user_pwd_by_mail(user_mail_addr=user_email, new_password=new_password) + if result: + # 重置密码并执行一次解锁,防止重置后账号还是锁定状态。 + ad_unlock_user_by_mail(user_email) + context = { + 'msg': "密码己重置成功,请妥善保管。你可以点击返回主页或直接关闭此页面!", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + else: + context = { + 'msg': "密码未重置成功,确认密码是否满足AD的复杂性要求。", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + except IndexError: + context = { + 'msg': "请确认邮箱账号[%s]是否正确?未能在AD中检索到相关信息。" % user_email, + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + except Exception as e: + context = { + 'msg': "出现未预期的错误[%s],请与管理员联系~" % str(e), + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + else: + context = { + 'msg': "请从主页开始进行操作。", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + + +def resetpwd_unlock(request): + if request.method == 'GET': + unionid_crypto = request.COOKIES.get('tmpid') + if not unionid_crypto: + context = { + 'msg': "会话己超时,请重新扫码验证用户信息。", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + crypto = Crypto(CRYPTO_KEY) + unionid = crypto.decrypt(unionid_crypto) + user_email = ding_get_userinfo_detail(ding_get_userid_by_unionid(unionid))['email'] + context = { + 'user_email': user_email, + } + return render(request, 'resetpwd.html', context) + + elif request.method == 'POST': + unionid_crypto = request.COOKIES.get('tmpid') + if not unionid_crypto: + context = { + 'msg': "会话己超时,请重新扫码验证用户信息。", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + crypto = Crypto(CRYPTO_KEY) + unionid = crypto.decrypt(unionid_crypto) + user_email = ding_get_userinfo_detail(ding_get_userid_by_unionid(unionid))['email'] + if ad_ensure_user_by_mail(user_mail_addr=user_email) is False: + context = { + 'msg': "账号[%s]在AD中未能正确检索到,请确认当前钉钉扫码账号绑定的邮箱是否和您正在使用的邮箱一致?或者该邮箱账号己被禁用!\n猜测:您的邮箱是否是带有数字或其它字母区分?" % + user_email, + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + else: + try: + result = ad_unlock_user_by_mail(user_email) + if result: + context = { + 'msg': "账号己解锁成功。你可以点击返回主页或直接关闭此页面!", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + else: + context = { + 'msg': "账号未能解锁,请联系管理员确认该账号在AD的是否己禁用。", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + except IndexError: + context = { + 'msg': "请确认邮箱账号[%s]是否正确?未能在AD中检索到相关信息。" % user_email, + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + except Exception as e: + context = { + 'msg': "出现未预期的错误[%s],请与管理员联系~" % str(e), + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + else: + context = { + 'msg': "请从主页开始进行操作。", + 'button_click': "window.location.href='%s'" % home_url, + 'button_display': "返回主页" + } + return render(request, msg_template, context) + + +def reset_msg(request): + msg = request.GET.get('msg') + button_click = request.GET.get('button_click') + button_display = request.GET.get('button_display') + context = { + 'msg': msg, + 'button_click': button_click, + 'button_display': button_display + } + return render(request, msg_template, context) diff --git a/static/css/load.css b/static/css/load.css new file mode 100644 index 0000000..6dab43d --- /dev/null +++ b/static/css/load.css @@ -0,0 +1,135 @@ +.sk-fading-circle { + margin: 100px auto; + width: 40px; + height: 40px; + position: relative; +} + +.sk-fading-circle .sk-circle { + width: 100%; + height: 100%; + position: absolute; + left: 0; + top: 0; +} + +.sk-fading-circle .sk-circle:before { + content: ''; + display: block; + margin: 0 auto; + width: 15%; + height: 15%; + background-color: #333; + border-radius: 100%; + -webkit-animation: sk-circleFadeDelay 1.2s infinite ease-in-out both; + animation: sk-circleFadeDelay 1.2s infinite ease-in-out both; +} +.sk-fading-circle .sk-circle2 { + -webkit-transform: rotate(30deg); + -ms-transform: rotate(30deg); + transform: rotate(30deg); +} +.sk-fading-circle .sk-circle3 { + -webkit-transform: rotate(60deg); + -ms-transform: rotate(60deg); + transform: rotate(60deg); +} +.sk-fading-circle .sk-circle4 { + -webkit-transform: rotate(90deg); + -ms-transform: rotate(90deg); + transform: rotate(90deg); +} +.sk-fading-circle .sk-circle5 { + -webkit-transform: rotate(120deg); + -ms-transform: rotate(120deg); + transform: rotate(120deg); +} +.sk-fading-circle .sk-circle6 { + -webkit-transform: rotate(150deg); + -ms-transform: rotate(150deg); + transform: rotate(150deg); +} +.sk-fading-circle .sk-circle7 { + -webkit-transform: rotate(180deg); + -ms-transform: rotate(180deg); + transform: rotate(180deg); +} +.sk-fading-circle .sk-circle8 { + -webkit-transform: rotate(210deg); + -ms-transform: rotate(210deg); + transform: rotate(210deg); +} +.sk-fading-circle .sk-circle9 { + -webkit-transform: rotate(240deg); + -ms-transform: rotate(240deg); + transform: rotate(240deg); +} +.sk-fading-circle .sk-circle10 { + -webkit-transform: rotate(270deg); + -ms-transform: rotate(270deg); + transform: rotate(270deg); +} +.sk-fading-circle .sk-circle11 { + -webkit-transform: rotate(300deg); + -ms-transform: rotate(300deg); + transform: rotate(300deg); +} +.sk-fading-circle .sk-circle12 { + -webkit-transform: rotate(330deg); + -ms-transform: rotate(330deg); + transform: rotate(330deg); +} +.sk-fading-circle .sk-circle2:before { + -webkit-animation-delay: -1.1s; + animation-delay: -1.1s; +} +.sk-fading-circle .sk-circle3:before { + -webkit-animation-delay: -1s; + animation-delay: -1s; +} +.sk-fading-circle .sk-circle4:before { + -webkit-animation-delay: -0.9s; + animation-delay: -0.9s; +} +.sk-fading-circle .sk-circle5:before { + -webkit-animation-delay: -0.8s; + animation-delay: -0.8s; +} +.sk-fading-circle .sk-circle6:before { + -webkit-animation-delay: -0.7s; + animation-delay: -0.7s; +} +.sk-fading-circle .sk-circle7:before { + -webkit-animation-delay: -0.6s; + animation-delay: -0.6s; +} +.sk-fading-circle .sk-circle8:before { + -webkit-animation-delay: -0.5s; + animation-delay: -0.5s; +} +.sk-fading-circle .sk-circle9:before { + -webkit-animation-delay: -0.4s; + animation-delay: -0.4s; +} +.sk-fading-circle .sk-circle10:before { + -webkit-animation-delay: -0.3s; + animation-delay: -0.3s; +} +.sk-fading-circle .sk-circle11:before { + -webkit-animation-delay: -0.2s; + animation-delay: -0.2s; +} +.sk-fading-circle .sk-circle12:before { + -webkit-animation-delay: -0.1s; + animation-delay: -0.1s; +} + +@-webkit-keyframes sk-circleFadeDelay { + 0%, 39%, 100% { opacity: 0; } + 40% { opacity: 1; } +} + +@keyframes sk-circleFadeDelay { + 0%, 39%, 100% { opacity: 0; } + 40% { opacity: 1; } +} \ No newline at end of file diff --git a/static/css/login.css b/static/css/login.css new file mode 100644 index 0000000..1693c81 --- /dev/null +++ b/static/css/login.css @@ -0,0 +1,119 @@ +a, body, button, dd, div, dl, dt, h1, h2, h3, h4, h5, h6, input, li, ol, p, td, textarea, ul { margin: 0; padding: 0; } +body, button, input, select, textarea { font: 9pt/1.5 tahoma,arial,Hiragino Sans GB,\5b8b\4f53,sans-serif; } +button, h1, h2, h3, h4, h5, h6, input, select, textarea { font-size: 100%; } + /*background-image: linear-gradient(160deg, #2f548e 20%,#043559 80%);*/ +html{height: 100%; background-image: linear-gradient(160deg, #2f548e 20%,#043559 80%);} +ol, ul { list-style: none;} +a { color: #666; text-decoration: none; } +a:hover { color: #043559; text-decoration: underline; } +body { font-size: 9pt; height: 100%; + font-family: 'microsoft yahei', sans-serif; min-width: 750pt; margin: 0; overflow: hidden} +img { border: 0; vertical-align: top; } +textarea { resize: none; } +a, button, input, select, textarea { outline: 0; } +a, button { cursor: pointer; } +button { border: none; } +.errorlist {font-size: 16px; color: #333333} +.pagewrap {height: 100% } +.main { position: relative; margin-top:0; width: 100%; height: 100%} +.header {height: 100px;margin-bottom: 5%;margin-left: 50px; background: url(/static/img/logo.png) left center no-repeat; } +.header h1 a { display: block; } +.content { overflow: hidden; margin-left: 10% } +.content .con_left { float: left; height: 450px; width: 50%; margin-top: 65px} +/*.content .con_left .box {position: absolute; width: 400px; height:400px; left: 50%; right: 50%; margin-left: -100px; margin-right: -100px;}*/ +.content .con_left p { padding: 0 0 3px; width: 10pc; color: #040000; font-size: 1pc; font-family: 'microsoft yahei', sans-serif; } +.content .con_left a { padding: 0 0 0 2pc; color: #2f548e; text-decoration: underline; font-size: 1pc; font-family: 'microsoft yahei', sans-serif; } +.content .con_right { float: left; margin: 65px 0 0; width: 28pc; height: 450px; border: 1px solid #dedede; background: #fff; } +.content .con_right .con_r_top { padding: 0 0 0 39px; width: 409px; height: 110px; border-top: 8px solid #2e558e; } +.content .con_right .con_r_top .left, .content .con_right .con_r_top .right { float: left; padding: 35px 0 0; width: 186px; height: 35px; text-align: center; text-decoration: none; font-size: 18px; font-family: "微软雅黑"; } +.content .con_right .con_r_top .left { border-bottom: 2px solid #dedede; color: #999; } +.content .con_right ul .con_r_left .erweima { text-align: center; } +.content .con_right ul .con_r_left p {color: #2f548e; font-size: 25px; font-family: 'microsoft yahei', sans-serif; } +.content .con_right ul .con_r_left .user input { margin: 0 0 21px -1px; padding-left: 7px; width: 324px; height: 33px; border: 1px solid #dedede; color: #999; font-size: 14px; font-family: "微软雅黑"; line-height: 2pc; } +.content .con_right ul .con_r_left .user { padding: 0 0 0 39px; } +.content .con_right ul .con_r_left .user ul{font-size: 16px; color: #333333} +.content .con_right ul .con_r_left .user li{font-size: 16px; color: #333333} +.content .con_right ul .con_r_left .user .user-icon { float: left; width: 36px; height: 35px; background: url(../img/user-icon.jpg) left top no-repeat; } +.content .con_right ul .con_r_left .user .mima-icon { float: left; width: 36px; height: 35px; background: url(../img/mima-icon.jpg) left top no-repeat; } +.content .con_right ul .con_r_left .user .unlock-icon { float: left; width: 36px; height: 35px; background: url(../img/unlock.jpg) left top no-repeat; } +.content .con_right ul .con_r_left p { overflow: hidden; padding: 0 39px 37px; color: #666; font-size: 13px; font-family: 'microsoft yahei', sans-serif; } +.content .con_right ul .con_r_left p .mima { float: left; padding-left: 5px; text-decoration: none; } +.content .con_right ul .con_r_left p .zhuce { float: right; text-decoration: none; } +.content .con_right ul .con_r_left button { margin: 0 0 0 75pt; width: 250px; height: 44px; background: #2e558e; color: #fff; font-size: 1pc; font-family: 'microsoft yahei', sans-serif; } +.content .con_right .con_r_top .right { border-bottom: 2px solid #2e558e; color: #333; } +.content .con_right ul .con_r_right .user input { margin: 0 0 21px -1px; padding-left: 7px; width: 324px; height: 33px; border: 1px solid #dedede; color: #999; font-size: 14px; font-family: "微软雅黑"; line-height: 2pc; } +.content .con_right ul .con_r_right .user { padding: 0 0 0 39px; } +.content .con_right ul .con_r_right .user ul{font-size: 16px; color: #333333} +.content .con_right ul .con_r_right .user li{font-size: 16px; color: #333333} +.content .con_right ul .con_r_right .user .user-icon { float: left; width: 36px; height: 35px; background: url(../img/user-icon.jpg) left top no-repeat; } +.content .con_right ul .con_r_right .user .mima-icon { float: left; width: 36px; height: 35px; background: url(../img/mima-icon.jpg) left top no-repeat; } +.content .con_right ul .con_r_right .user .unlock-icon { float: left; width: 36px; height: 35px; background: url(../img/unlock.jpg) left top no-repeat; } +.content .con_right ul .con_r_right p { overflow: hidden; padding: 0 39px 37px; color: #666; font-size: 13px; font-family: 'microsoft yahei', sans-serif; } +.content .con_right ul .con_r_right p .mima { float: left; padding-left: 5px; text-decoration: none; } +.content .con_right ul .con_r_right p .zhuce { float: right; text-decoration: none; } +.content .con_right ul .con_r_right button { margin: 0 0 0 75pt; width: 250px; height: 44px; background: #2e558e; color: #fff; font-size: 1pc; font-family: 'microsoft yahei', sans-serif; } +.content .con_right ul .con_r_left { display: none; } +.con_right ul .con_r_left .erweima { position: relative; margin: 0 auto; width: 365px; height: 330px; } +.qrcode { position: absolute; top: 0; left: 0; width: 174px; height: 11pc; } +.divimg { position: absolute; top: 50%; left: 50%; z-index: 100; overflow: hidden; margin-top: -15px; margin-left: -30px; padding: 1px; width: 60px; height: 30px; border: 1px solid #eee; border-radius: .5rem; background: #fff; opacity: .9; filter: alpha(opacity=90); -moz-opacity: .9; } +.content .con_right ul .con_r_right .user .yanzheng { width: 150px; margin: 0 5px 10px 1px; padding-left: 5px; } +.content .con_right ul .con_r_right .user .next { font-size: 12px; width: 40px; height: 33px; float: right; margin-right: 40px; } +.content .con_right .con_r_top { *height: 90px; } + +.autoWidth{margin:0 auto;min-width:1000px;max-width:1200px} +.auto{margin:0 auto;min-width:1000px;max-width:1200px} +@media screen and (max-width:1233px){.auto{padding-left:10px} +} +.clearfix:after,.clearfix:before{display:table;line-height:0;content:""} +.clearfix:after{clear:both} +.clear-float{clear:both} + +.footer{background-color:#009fd9;font-family: 'microsoft yahei', sans-serif; } +.footer-floor1{width:100%;padding:36px 0 60px} +.footer-list{width:69%;height:100%;float:left} +.footer-list ul{float:left;margin-right:13%} +.footer-list .flist-4{margin-right:0} +.footer-list li{line-height:32px} +.footer-list li a{color:#b6e2f2;font-size:12px;text-decoration:none} +.footer-list li a:hover{text-decoration:underline;color:#fff} +.footer-list .flist-title{font-size:16px;color:#fff;margin-bottom:15px} +.footer-floor2{width:100%;border-top:1px solid #4cc3ed;padding:20px 0;text-align:center} +.footer-floor2 p{text-align:center;color:#b6e2f2;font-size:12px;line-height:30px} +.footer-floor2 p span{font-family:PingFangSC-Light,'helvetica neue','hiragino sans gb',tahoma,'microsoft yahei ui','microsoft yahei',sans-serif} +.footer-floor2 a{color:#b6e2f2} +.footer-floor2 a:hover{color:#a8d0e0;text-decoration:underline} +.foot-link{margin:0 15px;text-decoration:none;color:#b6e2f2} +.foot-link:hover{text-decoration:underline} +.footer-right{width:300px;float:right} +.telephone{width:100%;height:32px;line-height:32px;color:#fff} +.telephone .tel-number{font-size:30px;font-weight:400;text-align:right} +.official-plat{width:100%;height:100%;margin-top:20px;position:relative} +.official-plat ul{float:right;margin-top:7px} +.official-plat ul li{height:45px} +.official-plat ul a{display:inline-block;height:32px;width:100%;line-height:32px;color:#fff;text-decoration:none;font-size:12px} +.official-plat>p{display:inline-block;width:132px;height:132px;border:1px solid #ddd;background-color:#fff} +#wx-corner{border:10px solid transparent;border-left:10px solid #fff;position:absolute;top:12px;right:-20px;z-index:10} +#wb-corner{border:10px solid transparent;border-left:10px solid #fff;position:absolute;top:58px;right:-20px;z-index:10} +.five-superiority{width:100%;border-bottom:1px solid #27aede;padding:10px 0 20px} +.five-superiority-list li{float:left;width:20%;height:36px;text-align:center;border-left:1px solid #27aede} +.five-superiority-list li:first-child{border-left:none} +.five-superiority-list li a{display:inline-block;position:relative;width:100%;height:36px;line-height:36px;background:no-repeat 2% center;text-indent:2em;color:#fff;font-size:16px} +.five-superiority-list li a:hover{color:#bfe7f5} +.five-superiority-list li a.superiority-text{text-indent:4em} +.compensate_ico .superiority-icon{background-position:0 0} +.compensate_ico:hover .superiority-icon{background-position:0 -50px} +.retreat_ico .superiority-icon{background-position:0 -100px} +.retreat_ico:hover .superiority-icon{background-position:0 -150px} +.technology_ico .superiority-icon{background-position:0 -200px} +.technology_ico:hover .superiority-icon{background-position:0 -250px} +.prepare_ico .superiority-icon{background-position:0 -300px} +.prepare_ico:hover .superiority-icon{background-position:0 -350px} +.service_ico .superiority-icon{background-position:0 -400px} +.service_ico:hover .superiority-icon{background-position:0 -450px} +.marquee-box{overflow:hidden;width:100%;position:absolute;left:0;top:0} +.marquee{width:8000%;height:60px} +.wave-list-box{float:left} +.wave-list-box ul{float:left;height:60px;overflow:hidden;zoom:1} +.wave-list-box ul li{height:60px;width:100%;float:left;line-height:30px;list-style:none} +.wave-box{position:relative;height:60px;background:#fff} + diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..01f0f7c --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,66 @@ +*{margin:0;padding:0;box-sizing:border-box;list-style:none} +html{height: 100%; width:100%} +body{font-family:"Microsoft Yahei";min-width:1000px} +a{outline:0;text-decoration:none} +strong{font-weight:400} +.strong{font-weight:700} +::selection{background:#1EACDF;color:#fff} +img{border:0} +::-moz-selection{background:#1EACDF;color:#fff} +::-webkit-selection{background:#1EACDF;color:#fff} +.autoWidth{margin:0 auto;min-width:1000px;max-width:1200px} +.auto{margin:0 auto;min-width:1000px;max-width:1200px} +@media screen and (max-width:1233px){.auto{padding-left:10px} +} +.clearfix:after,.clearfix:before{display:table;line-height:0;content:""} +.clearfix:after{clear:both} +.clear-float{clear:both} + + + +.footer{background-color:#009fd9;font-family:"Microsoft Yahei"} +.footer-floor1{width:100%;padding:36px 0 60px} +.footer-list{width:69%;height:100%;float:left} +.footer-list ul{float:left;margin-right:13%} +.footer-list .flist-4{margin-right:0} +.footer-list li{line-height:32px} +.footer-list li a{color:#b6e2f2;font-size:12px;text-decoration:none} +.footer-list li a:hover{text-decoration:underline;color:#fff} +.footer-list .flist-title{font-size:16px;color:#fff;margin-bottom:15px} +.footer-floor2{width:100%;border-top:1px solid #4cc3ed;padding:20px 0;text-align:center} +.footer-floor2 p{text-align:center;color:#b6e2f2;font-size:12px;line-height:30px} +.footer-floor2 p span{font-family:PingFangSC-Light,'helvetica neue','hiragino sans gb',tahoma,'microsoft yahei ui','microsoft yahei',simsun,sans-serif} +.footer-floor2 a{color:#b6e2f2} +.footer-floor2 a:hover{color:#a8d0e0;text-decoration:underline} +.foot-link{margin:0 15px;text-decoration:none;color:#b6e2f2} +.foot-link:hover{text-decoration:underline} +.footer-right{width:300px;float:right} +.official-plat{width:100%;height:100%;margin-top:20px;position:relative} +.official-plat ul{float:right;margin-top:7px} +.official-plat ul li{height:45px} +.official-plat ul a{display:inline-block;height:32px;width:100%;line-height:32px;color:#fff;text-decoration:none;font-size:12px} +.official-plat>p{display:inline-block;width:132px;height:132px;border:1px solid #ddd;background-color:#fff} +#wx-corner{border:10px solid transparent;border-left:10px solid #fff;position:absolute;top:12px;right:-20px;z-index:10} +#wb-corner{border:10px solid transparent;border-left:10px solid #fff;position:absolute;top:58px;right:-20px;z-index:10} +.five-superiority{width:100%;border-bottom:1px solid #27aede;padding:10px 0 20px} +.five-superiority-list li{float:left;width:20%;height:36px;text-align:center;border-left:1px solid #27aede} +.five-superiority-list li:first-child{border-left:none} +.five-superiority-list li a{display:inline-block;position:relative;width:100%;height:36px;line-height:36px;background:no-repeat 2% center;text-indent:2em;color:#fff;font-size:16px} +.five-superiority-list li a:hover{color:#bfe7f5} +.five-superiority-list li a.superiority-text{text-indent:4em} +.compensate_ico .superiority-icon{background-position:0 0} +.compensate_ico:hover .superiority-icon{background-position:0 -50px} +.retreat_ico .superiority-icon{background-position:0 -100px} +.retreat_ico:hover .superiority-icon{background-position:0 -150px} +.technology_ico .superiority-icon{background-position:0 -200px} +.technology_ico:hover .superiority-icon{background-position:0 -250px} +.prepare_ico .superiority-icon{background-position:0 -300px} +.prepare_ico:hover .superiority-icon{background-position:0 -350px} +.service_ico .superiority-icon{background-position:0 -400px} +.service_ico:hover .superiority-icon{background-position:0 -450px} +.marquee-box{overflow:hidden;width:100%;position:absolute;left:0;top:0} +.marquee{width:8000%;height:60px} +.wave-list-box{float:left} +.wave-list-box ul{float:left;height:60px;overflow:hidden;zoom:1} +.wave-list-box ul li{height:60px;width:100%;float:left;line-height:30px;list-style:none} +.wave-box{position:relative;height:60px;background:#fff} diff --git a/static/img/favicon.ico b/static/img/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..c09b46f8b2bc5ff4cab4e2161c9c63f21149b160 GIT binary patch literal 55502 zcmeI53y>T|8OP@gBq2N!zzUF%x&TEH15$vLuM#ebB5E*&MS@!53qeAuh)@_s$O`x> zL6JwLv?8HI3lLCBK~1R0Q78%c2!@Iz5~!1hfrxO4fS2UR`up$f+?WcwY%V3HAk9+c+xFwdj5@ z2)yq3;9v(@{2rVFUI((UDFpon=m%rzzLPv^lfV9_!-2RIr(^N{5_xoAm<-aiX#~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r*|$Lk@`v#bUwwT}4d}jTJ|P<9j&03~sDv zM0mcD8wiLISt01|H*e!rLRN{X^_yaJ6&!S9ZUA|uN0;`3gvjjwNQO8ylEWi5SsQ}TmC$&L2Y%oso1ru^al zA_sdIuO=UThRY9xhh&)_78=Ta$mft>i2N^x`+Gw@f?#HJNEgEP1+E{R0;T=X;QG-i z749ztBmLf>yBJ!yzb~Mgl7)UhmjLS*qwvx3SKd2xJXYt2hi<8iDz5tc3dIcnrMze# Wvc-fQa!BCr;`a_`hG?WUP)qwZeFo6%mkOz;^d;tf|AVqJOz-6iAnjTCALaHmqNUdTj1*pHyCSZ<>rF? z1y)^L5|oN?23FO@A(aKG`a!A1`K3k4sX*n*FwMZQ!*3BtA<#8e{zaL7g>=oo!a;y_9)Fd<+H1To=BAIO1cp42>Gjwu3WjsNc$ z_`nICA>{xt3o`z{&CtTY#=^qF%EHFV%ErkC#M~TgY#iJ?TwL5-Ts#6iU?9N5$1lLo z$0IB(A|fm-BP}g0BM%3R?Ck8kJiHPD0uoZ9f}&Dz31S)l4=@OFFi0>6GcyV@FbOg; z3o`yc!qCgW2n2}ogMopajfItwff-ehnT3^!L4bjQiH(JWmldX*nU#T2kcov|$Vi0E z&{0V^I7C!TF>&HTr$v{HOJx#}xiIv%f0K6T*r zs-S>fJF2q;_+&f1L}o>Ba_#>pv*U+GU7)qc{#Pq!nH@HAv0hyEmEqsMo3i@M3l4|R z)yUgz7n3&Sfn?=_DND*i!1pC83h6^?qLSgWT_JzRS5R%3ars ztGhR0q5r~GscV8gHW>{o#E(h-nZB^OcKy29-QnC4cQRL9TYA+~;loS5tyf+%9AG?_ zy~f?THE;p9t*uJMYOM<^G=igDT`w%0%hp)Jz?iN`Rk10|K9`vyP3i# literal 0 HcmV?d00001 diff --git a/static/img/logo.jpg b/static/img/logo.jpg new file mode 100644 index 0000000000000000000000000000000000000000..46e17eacbebdc4a8dd1c087a5791f2e47f99b196 GIT binary patch literal 20264 zcmce;cQ{;I_W(R1NQem0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4u5JnQRD#;XKCE*tu8zq8)pJgLD#*>7 zGnD8keyePs)J|03R6?BtJmy`lG2G1;A0|BDqhuLX$nQxwWG{HW*7#}HSPX8>eboNx z<5}y4n)oHQk|FRGRCC z4Ihd#r>5FqLZ;^VQare@!h)cbSt ztKGb@tj)itm_@7o4Qm)R0Y(ktjb|DxGCj#-$s_x4zL5)gcDqE(Y?Q+^hCGm{Q@aM6 zb+XOQJf_`|0uVv@^J<&nohqrvxI7u;xbwGpdw#djZwUhOv5@$=QXqteV7~nn{NiPk z7b$GPp!GPkWq2Xs)BpL8jtn-f;SznoRwq^2AI2?7rf>^-Cmas=Hf)c1jfVfo+kyc$d zfAD{RJ5v6X-=r8FgS{ltMnAwQ>*K1BdJdlHn&WTb@L^UZPe}GMb-sjy*>-Hkyc%>E z9Y7dXOKQeoRIF}KkD#&E+{Io@Ea&s1-Y8_PW&Wo9Eh16=`r~Tdqm%2EyVMcZKD(7r+#|69GV0FOS4m`_h zbYnx}*n<6arB2{Jbbw{&(VfswL%&VCZR@T)-3)?iO*?8~r=S4HXHb#eHewUr-Y0_j zt;}1AR7CUfx-2eI&*grYMJ={7%c`4~pPl5TleJ9n2&E`3iwam<{dB94N1)(GDt#@3 z@U1qQ@pd{XiV=K|g0kI0v?zkSjSqzx!CstqZdeSITVB<5gO-&3V)l;ZHcQ10Ie9SE zhm-2(3*ll*t1Pz#)<-rF;o|H%?2}M~avW4wMA@*Z@p$dTC>XhyR1)#N29kMeJw0j` zETM;R9=ew~bk7{a7==BsvoygkD#dx2wd`Oy!&sN9>1XqJh2JTa1@;V1Q1S{wrl4CO5nCZZm2~ifBxU7j`pqq=y1ie}=CEl^|mlrr%%T|PD=fST|d~J^Z KN7dzj4E+fnGo-r! literal 0 HcmV?d00001 diff --git a/static/img/mima-icon.jpg b/static/img/mima-icon.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b390cbdccc3666b30dfc7ff37fb934e5654cacf9 GIT binary patch literal 1413 zcmbVMU2NM_6u!3ew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RgS6EMKD4tHD(v( z=GeC^x*gqtm{G1Xj7d|gly*zGSqGnOM?(Y96xIMA1Q}JB!So*TVmrDcxpS#f3jI}`EXchJO|>VbEJ ze-r_vlvV<^?pYoL4BtozDsQ5OJ2bHi5%Fo@hDYG=rGh&u?!0hOxHiH_>=57w-@7{_ z{+$v3&WL|!#2@Yvoe}@eh<|6qzcb?B8S(Fo_;*J9J0t#`5&w6C`kfJf;-f=n#Q#5t z_!B4cV0hjJU?9ARuSRYl4Jcs9s}x{>1(RyZA#8$|k$_-m4|x3p1q+BlA>iWzt!I8~ zjEx3UA>k(|1Xymkif!3cT4SsX&rFP!>ojpSGJPB;mK_Irr_{jwrV7l&D#c)oDLLe~ zZ}x|teTCIiOe#m2|T*&Ggw&yVFK@c4XAFBVLS@W<^AVAYso?y?ET=t@D$C z8B|r6BGaJLun3P8sorC;cS@qraa$N|7D$&V9k%F`AYiA#b;A}4`RVCgo><5h ziqklJK|+E+oWagau=b@^*?YAz$NhaTgnsQdKsz(sRdLXUnAh2{ASjAb$P@;Z%5ZUFIJvmt`I>Gp>k}5+gK4dGzhQg9%ycDta@juithojEbC)#nlV z%=Jx0*8#o*9_Jm=xNE0REv*~)LH4!Ai@RFbM~25Ow8|t=Q$U_oVjGAc5c@*SyYj~u z6$|V8hh922L!zAaF^#$6t?v)S+ACn}(M3I)6di6cs(@ zWW((liM+3soYy;&zCv!7($>FxVF4>DAC$D*fB0DR>cN!?a~Zq;*@Ix(^)3aj^4gT$ z<5wS#${Xq`ImNHkRqMU_iOUig-U$=^=gIwwYUQt5ljNZJ^W6*pVC%$Dse82-~Z?$*j?MfYRBB)QJsS@$Hb zMR+c1c_DvR_I6d%w!Pag=KF!Y>{%v0$5ATtHcG`0Je*lDY B9aI1S literal 0 HcmV?d00001 diff --git a/static/img/user-icon.jpg b/static/img/user-icon.jpg new file mode 100644 index 0000000000000000000000000000000000000000..22140685f200017f28ac7d0f740a3bc9a6f16434 GIT binary patch literal 1405 zcmbVMU1%It6uz^wf7xu4U6at*RGm&LRGZ!T*`56vvrTq)c4!{9P18sV1N}jww=?&yalumt-%6@ltwyV{ zsBWGisB}6_kTgNl5r~Lb)0!>RBAV6T^uWoMXex%S=o(h{C`{-TJA=bWH&alJVzK3T z$7-o+J+B7Zvd84@Fm^;+F+~}|`C%AYb&M?Uom229LXqGK#qTJ+FAn&Gao`0+@n>S^_*3EHUpK5l%Xi2wqtE3xP z{&)gAa6-`}y=pyIf1b^3IoVXs$`WttD%PkktL(&2{#)Lgw$lHp83BVK>do;;vouw( z1MAyX>%&89cw`Muj0s1>Spgl5h6mCD96`kS8Jq)Nx7+P;dp#a+n-{Kjzt`(;4+aA5 zfj}@6Y)B~B(HZLO2zGUKcXxH|?d$8?`%Fs^pU<}|xT`l5>fO^5?%C72_^%sh0fhaa zAM8hwFmQztG>kZRfeil%6hV;f9|WLoj|=hrL)Ewq0hh}K+-O@9i?{$9cJHH}@EjAm zvaeix=YFhvyeIsquLjil2?S9Da-v}{1pXT69Ns^hnp+%Rd7!>IoA`G9wZ)qkuUzmy z#IVxYFTXzW>sR>~da$+6KFlYceB;yMx!cQA%P(#GIe+TLMEc|O!0y0dZSXuvLwNbn zy+1C$`qa#KpS+7yR_E?sxO8j@eSP)L>|*Ka{aY&^Ts=DaJMQk=Si`P~r-$DDsO?4V z<$K0Azn$-Xh@H+n_+|anwHxYt$aVYKx4fyPbH4T6Yqvk=H{Q?QnV(!N9JuuT$$bZ} R3w-U$)5gJt;kr0K{tY)&nSTHP literal 0 HcmV?d00001 diff --git a/static/js/bubbly-bg.js b/static/js/bubbly-bg.js new file mode 100644 index 0000000..b7a7527 --- /dev/null +++ b/static/js/bubbly-bg.js @@ -0,0 +1 @@ +"use strict";window.bubbly=function(t){var n=t||{},o=function(){return Math.random()},r=n.canvas||document.createElement("canvas"),e=r.width,a=r.height;null===r.parentNode&&(r.setAttribute("style","position:fixed;z-index:-1;left:0;top:0;min-width:100vw;min-height:100vh;"),e=r.width=window.innerWidth,a=r.height=window.innerHeight,document.body.appendChild(r));var i=r.getContext("2d");i.shadowColor=n.shadowColor||"#fff",i.shadowBlur=n.blur||4;var l=i.createLinearGradient(0,0,e,a);l.addColorStop(0,n.colorStart||"#2AE"),l.addColorStop(1,n.colorStop||"#17B");for(var c=n.bubbles||Math.floor(.02*(e+a)),u=[],d=0;de&&(t.x=-t.r),t.x+t.r<0&&(t.x=e+t.r),t.y-t.r>a&&(t.y=-t.r),t.y+t.r<0&&(t.y=a+t.r)})}()}; \ No newline at end of file diff --git a/static/js/check.js b/static/js/check.js new file mode 100644 index 0000000..6ce2361 --- /dev/null +++ b/static/js/check.js @@ -0,0 +1,85 @@ +$(function () { + $(".content .con_right .left").click(function (e) { + $(this).css({ "color": "#333333", "border-bottom": "2px solid #2e558e" }); + $(".content .con_right .right").css({ "color": "#999999", "border-bottom": "2px solid #dedede" }); + $(".content .con_right ul .con_r_left").css("display", "block"); + $(".content .con_right ul .con_r_right").css("display", "none"); + }); + + $(".content .con_right .right").click(function (e) { + $(this).css({ "color": "#333333", "border-bottom": "2px solid #2e558e" }); + $(".content .con_right .left").css({ "color": "#999999", "border-bottom": "2px solid #dedede" }); + $(".content .con_right ul .con_r_right").css("display", "block"); + $(".content .con_right ul .con_r_left").css("display", "none"); + }); + + + $('#btn_modify').click(function () { + // ^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[!@#$\%\^\&\*\(\)])[0-9a-zA-Z!@#$\%\^\&\*\(\)]{8,32}$ 要求密码了里面包含字母、数字、特殊字符。 + // (?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{8,30} 密码必须同时包含大写、小写、数字和特殊字符其中三项且至少8位 + // (?=.*?[a-z])(?=.*?[A-Z])(?=.*?\d)(?=.*?[!#@*&.])[a-zA-Z\d!#@*&.]*{8,30}$ + // 判断密码满足大写字母,小写字母,数字和特殊字符,其中四种组合都需要包含 + // (?=.*[0-9])(?=.*[a-zA-Z]).{8,30} 大小写字母+数字 + regex_mail = new RegExp('^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$') + regex_pwd = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{8,30}'); + if ($.trim($('#user_email').val()) === '') { + alert('请输入邮箱账号'); + return false; + } else if (!regex_mail.test($.trim($('#user_email').val()))) { + alert('请输入正确的邮箱账号。\n'); + return false; + } else if ($.trim($('#old_password').val()) === '') { + alert('请输入旧密码'); + return false; + } else if ($.trim($('#new_password').val()) === '') { + alert('请输入新密码'); + return false; + } else if ($.trim($('#new_password').val()) === '1qaz@WSX') { + alert('密码1qaz@WSX为初始密码,禁止使用,请重新输入新密码。\n密码必须同时包含大写、小写、数字和特殊字符其中三项且至少8位。'); + return false; + } else if (!regex_pwd.test($.trim($('#new_password').val()))) { + alert('密码不符合复杂度规则,请重新输入新密码。\n密码必须同时包含大写、小写、数字和特殊字符其中三项且至少8位。'); + return false; + } else if ($.trim($('#ensure_password').val()) === '') { + alert('请再次输入新密码'); + return false; + } else if ($.trim($('#new_password').val()) === $.trim($('#old_password').val())) { + alert('新旧密码不能一样'); + return false; + } else if ($.trim($('#ensure_password').val()) !== $.trim($('#new_password').val())) { + alert('两次输入的新密码不一致'); + return false; + } else { + return true; + } + }); + + $('#btn_reset').click(function () { + let regex_mail = new RegExp('^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$') + let regex_pwd = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{8,30}'); + if ($.trim($('#user_email').val()) === '') { + alert('请输入邮箱账号'); + return false; + } else if (!regex_mail.test($.trim($('#user_email').val()))) { + alert('请输入正确的邮箱账号。\n'); + return false; + } else if ($.trim($('#new_password').val()) === '') { + alert('请输入密码'); + return false; + } else if ($.trim($('#ensure_password').val()) === '') { + alert('请再次输入新密码'); + return false; + } else if ($.trim($('#new_password').val()) === '1qaz@WSX') { + alert('密码1qaz@WSX为初始密码,禁止使用,请重新输入新密码。\n密码必须同时包含大写、小写、数字和特殊字符其中三项且至少8位。'); + return false; + } else if (!regex_pwd.test($.trim($('#new_password').val()))) { + alert('密码不符合复杂度规则,请重新输入新密码。\n密码必须同时包含大写、小写、数字和特殊字符其中三项且至少8位。\n例如:1qaz@WSX'); + return false; + } else if ($.trim($('#ensure_password').val()) !== $.trim($('#new_password').val())) { + alert('两次输入的新密码不一致'); + return false; + } else { + return true; + } + }); +}) diff --git a/static/js/ddLogin.js b/static/js/ddLogin.js new file mode 100644 index 0000000..41abd9a --- /dev/null +++ b/static/js/ddLogin.js @@ -0,0 +1,18 @@ +!function (window, document) { + function d(a) { + var e, c = document.createElement("iframe"), + d = "https://login.dingtalk.com/login/qrcode.htm?goto=" + a.goto ; + d += a.style ? "&style=" + encodeURIComponent(a.style) : "", + d += a.href ? "&href=" + a.href : "", + c.src = d, + c.frameBorder = "0", + c.allowTransparency = "true", + c.scrolling = "no", + c.width = a.width ? a.width + 'px' : "365px", + c.height = a.height ? a.height + 'px' : "400px", + e = document.getElementById(a.id), + e.innerHTML = "", + e.appendChild(c) + } + window.DDLogin = d +}(window, document); diff --git a/static/js/jquery-1.8.3.min.js b/static/js/jquery-1.8.3.min.js new file mode 100644 index 0000000..3883779 --- /dev/null +++ b/static/js/jquery-1.8.3.min.js @@ -0,0 +1,2 @@ +/*! jQuery v1.8.3 jquery.com | jquery.org/license */ +(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write(""),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1])return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e);o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return r.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a0)return;r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return!e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string")return null;t=v.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(S.test(t.replace(T,"@").replace(N,"]").replace(x,"")))return(new Function("return "+t))();v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;s0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f)for(;u-1)a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return!a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t
a",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c;return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a)return;n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="
t
",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="
",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e))return;var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t)return;c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function")i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n);return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e))return;var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a])return;if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n=0)r=r.replace(" "+n[s]+" "," ");i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o=0}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e)))return;r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y])return;n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u)u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0);return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1)return;m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode)m.push([l,g]),c=l;c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c);f.length&&w.push({elem:s,matches:f})}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=R.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f)return n.push(s),n}else{if(i[2])return S.apply(n,x.call(t.getElementsByTagName(e),0)),n;if((f=i[3])&&Z&&t.getElementsByClassName)return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ot(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(s=[]);n=!1;if(r=I.exec(u))s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ");for(o in i.filter)(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r);if(!n)break}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u))return t.sizset=!0,t;t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u-1&&(s[f]=!(o[f]=c))}}else g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++)v(x,m,a,f);if(u){if(y>0)while(w--)!x[w]&&!m[w]&&(m[w]=E.call(l));m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e)return S.apply(n,x.call(r,0)),n;break}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;ti.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="
",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4])q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t;return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return!0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="

",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--)a[f]=c+a[f].join("");h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p)try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string")return v(e).filter(function(){for(t=0,n=u.length;t0)for(i=r;i=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*\s*$/g,Nt={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X
","
"]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e))return this.each(function(t){v(this).wrapAll(e.call(this,t))});if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++)if(!e||v.filter(e,[n]).length)!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1>");try{for(;r1&&typeof f=="string"&&St.test(f))return this.each(function(){v(this).domManip(e,n,r)});if(v.isFunction(f))return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)});if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r);return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s)i[s]&&Ot(r[s],i[s])}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s)At(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined")t=i;for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u)continue;if(typeof u=="string")if(!gt.test(u))u=t.createTextNode(u);else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--)c=c.lastChild;if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]===""&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o)v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked)for(s=0;(u=b[s])!=null;s++)v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t);if(n){m=function(e){if(!e.type||xt.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)};for(s=0;(u=b[s])!=null;s++)if(!v.nodeName(u,"script")||!m(u))n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++)if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events)for(s in n.events)l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle);a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=s[i];return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t)return Dt(e,"marginRight")})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+$t[r]+t]=i[r]||i[r-2]||i[0];return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){s(this.name,this.value)});else for(r in e)fn(r,e[r],n,s);return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En)return En.apply(this,arguments);if(!this.length)return this;var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("
").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2)return;E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304)c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b);else{b=T;if(!T||e)T="error",e<0&&(e=0)}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2)return x;f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in{success:1,error:1,complete:1})x[l](c[l]);o=kn(xn,c,n,x);if(!o)T(-1,"No Transport");else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h)return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn)Hn[e](0,1)}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i)a.readyState!==4&&a.abort();else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do a=a||".5",u/=a,v.style(i.elem,e,u+r);while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0])return;var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static")e=e.offsetParent;return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return v})})(window); \ No newline at end of file diff --git a/static/js/script.js b/static/js/script.js new file mode 100644 index 0000000..9f9d6a7 --- /dev/null +++ b/static/js/script.js @@ -0,0 +1,41 @@ +$(document).ready(function () { + + + $(".official-plat ul li:first-child").hover(function () { + $(".weixin").show(); + $(".weibo").hide(); + }); + $("li[title='点击打开官方微博']").hover(function () { + $(".weixin").hide(); + $(".weibo").show(); + }); + + //href="#a_null"的统一设置为无效链接 + $("a[href='#a_null']").click(function () { + return false; + }); + + +}); + +//波浪动画 +$(function () { + var marqueeScroll = function (id1, id2, id3, timer) { + var $parent = $("#" + id1); + var $goal = $("#" + id2); + var $closegoal = $("#" + id3); + $closegoal.html($goal.html()); + function Marquee() { + if (parseInt($parent.scrollLeft()) - $closegoal.width() >= 0) { + $parent.scrollLeft(parseInt($parent.scrollLeft()) - $goal.width()); + } + else { + $parent.scrollLeft($parent.scrollLeft() + 1); + } + } + + setInterval(Marquee, timer); + } + var marqueeScroll1 = new marqueeScroll("marquee-box", "wave-list-box1", "wave-list-box2", 20); + var marqueeScroll2 = new marqueeScroll("marquee-box3", "wave-list-box4", "wave-list-box5", 40); +}); diff --git a/templates/farvirate.ico b/templates/farvirate.ico new file mode 100644 index 0000000000000000000000000000000000000000..c09b46f8b2bc5ff4cab4e2161c9c63f21149b160 GIT binary patch literal 55502 zcmeI53y>T|8OP@gBq2N!zzUF%x&TEH15$vLuM#ebB5E*&MS@!53qeAuh)@_s$O`x> zL6JwLv?8HI3lLCBK~1R0Q78%c2!@Iz5~!1hfrxO4fS2UR`up$f+?WcwY%V3HAk9+c+xFwdj5@ z2)yq3;9v(@{2rVFUI((UDFpon=m%rzzLPv^lfV9_!-2RIr(^N{5_xoAm<-aiX#~3! zRBD6nPwT+VU=cVIoCfB3q{4x?6sO|$r{M2EoW~sx(nxs@1ZkM!+y&z5dZoPYbbb#4 zSzUVw?XAp!IM(?%AN&evTo|X#ooqh<)MI;5_$Ck+|1WHp?s=Ju(3Fm|N%VLDSOelT zx{>XBf?Dlj3cBMw`MSQ$s5PiBmpTL8M7#yWX?0PJwY`;cn}B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mLf>yBJ!yzb~Mgl7)UhmjLS*qwvx3SKd2xJXYt2hi<8iDz5tc3dIcnrMze# Wvc-fQa!BCr;`a_`h + +密码自助服务 + + + + + + +
+
+
+ +
+
+
+
+

「域账号/邮箱」密码自助平台

+
+
+

提示:新密码要求满足8至30位长度(不包含空格),至少包含大小写字母及数字组成。

+

如果密码己遗忘,可点击[重置/解锁],使用钉钉扫描验证后直接重置密码。

+
+
+
+ +
    +
  • +
    + {% csrf_token %} +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +

    + + +
  • + + +
+
+
+
+
+ + \ No newline at end of file diff --git a/templates/msg.html b/templates/msg.html new file mode 100644 index 0000000..95a1822 --- /dev/null +++ b/templates/msg.html @@ -0,0 +1,45 @@ +{% load staticfiles %} + + +密码自助服务 + + + + + +
+
+
+
+
+
+

「域账号/邮箱」 + 密码自助平台

+
+
+

提示:新密码要求满足8至30位长度(不包含空格),至少包含大小写字母及数字组成。

+

如果密码己遗忘,可点击[重置/解锁],使用钉钉扫描验证后直接重置密码。

+
+
+
+
+

提示

+
+
+
    +
  • + {% csrf_token %} +
    +

    {{ msg }}

    +

    + +
  • +
+ +
+
+
+
+ \ No newline at end of file diff --git a/templates/resetcheck.html b/templates/resetcheck.html new file mode 100644 index 0000000..e639a94 --- /dev/null +++ b/templates/resetcheck.html @@ -0,0 +1,15 @@ +{% load staticfiles %} + + +密码自助服务 + + + + + + + +
+ {% csrf_token %} + + \ No newline at end of file diff --git a/templates/resetpwd.html b/templates/resetpwd.html new file mode 100644 index 0000000..8aeacf5 --- /dev/null +++ b/templates/resetpwd.html @@ -0,0 +1,72 @@ +{% load staticfiles %} + + +密码自助服务 + + + + + + +
+
+
+
+
+
+

「域账号/邮箱」 + 密码自助平台

+
+
+

提示:新密码要求满足8至30位长度,包含大小写字母及数字。

+

如果密码己遗忘,可点击[重置/解锁],使用钉钉扫描验证后直接重置密码。

+
+
+
+
+

重置密码

+ 解锁账号 +
+
    +
  • +
    + {% csrf_token %} +
    +
    + +
    +
    + +
    +
    + +
    +

    +

    会话有效期5分钟,重密码会自动解锁被锁定的账号。

    + + +
  • + + +
+
+
+
+
+ \ No newline at end of file diff --git a/uwsgi.ini b/uwsgi.ini new file mode 100644 index 0000000..151a128 --- /dev/null +++ b/uwsgi.ini @@ -0,0 +1,27 @@ +[uwsgi] +http-socket = 192.168.90.111:8000 + +chdir = /usr/local/wwwroot/pwdselfservice + +module = pwdselfservice.wsgi:application + +master = true + +processes = 4 + +threads = 4 + +max-requests = 2000 + +chmod-socket = 755 + +vacuum = true + +#设置缓冲 +post-buffering = 4096 + +#设置静态文件 +static-map = /static=/usr/local/wwwroot/pwdselfservice/static + +#设置日志目录 +daemonize = /usr/local/wwwroot/log/uwsgi/uwsgi.log \ No newline at end of file