├── .idea ├── .name ├── scopes │ └── scope_settings.xml ├── encodings.xml ├── vcs.xml ├── misc.xml ├── modules.xml ├── Pompem.iml └── workspace.xml ├── Bots ├── __init__.py ├── Day.pyc ├── Exploitdb.pyc ├── __init__.pyc ├── PacketStorm.pyc ├── Day.py ├── Exploitdb.py └── PacketStorm.py ├── Engine ├── __init__.py ├── Router.pyc ├── Update.pyc ├── Functions.pyc ├── __init__.pyc ├── ExecAndPrint.pyc ├── Router.py ├── ExecAndPrint.py ├── Update.py └── Functions.py ├── Model ├── __init__.py ├── Result.pyc ├── __init__.pyc └── Result.py ├── .gitignore ├── requirements.txt ├── .ropeproject ├── history ├── objectdb ├── globalnames └── config.py ├── bootstrap ├── img │ ├── glyphicons-halflings.png │ └── glyphicons-halflings-white.png ├── css │ ├── bootstrap-responsive.min.css │ └── bootstrap-responsive.css └── js │ ├── bootstrap.min.js │ └── bootstrap.js ├── README.md └── pompem.py /.idea/.name: -------------------------------------------------------------------------------- 1 | Pompem -------------------------------------------------------------------------------- /Bots/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'runix' 2 | -------------------------------------------------------------------------------- /Engine/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'runix' 2 | -------------------------------------------------------------------------------- /Model/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'runix' 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | include 3 | lib 4 | *.pyc 5 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | BeautifulSoup==3.2.1 2 | requests==2.2.1 3 | -------------------------------------------------------------------------------- /Bots/Day.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/Bots/Day.pyc -------------------------------------------------------------------------------- /Model/Result.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/Model/Result.pyc -------------------------------------------------------------------------------- /Bots/Exploitdb.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/Bots/Exploitdb.pyc -------------------------------------------------------------------------------- /Bots/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/Bots/__init__.pyc -------------------------------------------------------------------------------- /Engine/Router.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/Engine/Router.pyc -------------------------------------------------------------------------------- /Engine/Update.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/Engine/Update.pyc -------------------------------------------------------------------------------- /Model/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/Model/__init__.pyc -------------------------------------------------------------------------------- /.ropeproject/history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/.ropeproject/history -------------------------------------------------------------------------------- /.ropeproject/objectdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/.ropeproject/objectdb -------------------------------------------------------------------------------- /Bots/PacketStorm.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/Bots/PacketStorm.pyc -------------------------------------------------------------------------------- /Engine/Functions.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/Engine/Functions.pyc -------------------------------------------------------------------------------- /Engine/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/Engine/__init__.pyc -------------------------------------------------------------------------------- /Engine/ExecAndPrint.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/Engine/ExecAndPrint.pyc -------------------------------------------------------------------------------- /.ropeproject/globalnames: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/.ropeproject/globalnames -------------------------------------------------------------------------------- /bootstrap/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/bootstrap/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /bootstrap/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/Pompem/master/bootstrap/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /.idea/scopes/scope_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Model/Result.py: -------------------------------------------------------------------------------- 1 | # -*- coding: UTF-8 -*- 2 | import sys 3 | sys.path.insert(0, '..') 4 | 5 | class Result: 6 | def __init__(self, date=None, description=None, author=None): 7 | self.date = date 8 | self.description = description 9 | self.author = author 10 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/Pompem.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Pompem - Exploit Finder 2 | == 3 | 4 | Pompem is an open source tool, which is designed to automate the search for exploits in major databases. 5 | Developed in Python, has a system of advanced search, thus facilitating the work of pentesters and ethical hackers. 6 | In its current version, performs searches in databases: Exploit-db, 1337day, Packetstorm Security... 7 | 8 | Screenshots 9 | ---- 10 | 11 | 12 | Installation 13 | ---- 14 | 15 | You can download the latest tarball by clicking [here](https://github.com/rfunix/Pompem/tarball/master) or latest zipball by clicking [here](https://github.com/rfunix/Pompem/zipball/master). 16 | 17 | Preferably, you can download pompem by cloning the [Git](https://github.com/rfunix/Pompem) repository: 18 | 19 | git clone https://github.com/rfunix/Pompem.git Pompem-dev 20 | 21 | Pompem works out of the box with [Python](http://www.python.org/download/) version '''2.6.x''' and '''2.7.x''' on any platform. 22 | 23 | Pompem lib uses the following setup: 24 | 25 | BeautifulSoup => http://www.crummy.com/software/BeautifulSoup/ 26 | 27 | Requests => http://docs.python-requests.org/en/latest/ 28 | 29 | If you have not realized the Download. 30 | 31 | 32 | Usage 33 | ---- 34 | 35 | To get the list of basic options and information about the project: 36 | 37 | python pompem.py -h 38 | 39 | Examples of use: 40 | 41 | python pompem.py -s Wordpress --txt 42 | python pompem.py -s Joomla --html 43 | python pompem.py -s "Internet Explorer,joomla,wordpress" --html --txt 44 | python pompem.py -s ssh,ftp,mysql 45 | python pompem.py --update 46 | -------------------------------------------------------------------------------- /Bots/Day.py: -------------------------------------------------------------------------------- 1 | # -*- coding: UTF-8 -*- 2 | import sys 3 | sys.path.insert(0, '..') 4 | from Engine.Functions import DownloadPage 5 | from Model.Result import Result 6 | 7 | import re 8 | 9 | 10 | class BotDay: 11 | def __init__(self, filter_description=None, results=[]): 12 | self.filter_description = filter_description 13 | self.results = results 14 | 15 | def botSearch(self): 16 | d = DownloadPage() 17 | self.results = [] 18 | url = "http://1337day.com/search" 19 | data = {"dong": "{0}".format(self.filter_description), "submit_search": "Submit"} 20 | try: 21 | pagehtml = d.postDownloadPageDay(url, data) 22 | if (pagehtml): 23 | self.extractData(pagehtml) 24 | except Exception, ex: 25 | pass 26 | return self.results 27 | 28 | def extractData(self, html): 29 | result = Result() 30 | html = str(html).replace("\n", " ") 31 | html = re.sub(r"\"", "'", html) 32 | r = re.compile(r".*?>" 33 | "(?P\d{4}-\d{2}-\d{2})" 34 | ".*?href='(?P[^']*?)'>.*?>" 35 | "(?P[^<]*?)" 36 | "<.*?free.*?author.*?>(?P[^<]*?)<") 37 | for match in r.finditer(html): 38 | if match: 39 | self.results.append(match.groupdict()) 40 | numDownload = re.search(r"\d+?$", self.results[len(self.results)-1]['Download']) 41 | self.results[len(self.results) -1]['Download'] = \ 42 | "http://1337day.com/exploit/{0}".format(numDownload.group(0)) 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /Bots/Exploitdb.py: -------------------------------------------------------------------------------- 1 | # -*- coding: UTF-8 -*- 2 | import sys 3 | sys.path.insert(0, '..') 4 | from Engine.Functions import DownloadPage 5 | from Model.Result import Result 6 | 7 | import re 8 | 9 | 10 | class ExploitDB: 11 | def __init__(self, filter_description=None, results=[]): 12 | self.filter_description = filter_description 13 | self.results = results 14 | 15 | def botSearch(self): 16 | d = DownloadPage() 17 | self.results = [] 18 | for i in range(5): 19 | url = "http://www.exploit-db.com/search/" 20 | parameters = {"action": "search", "filter_page":"{0}".format(i), 21 | "filter_description":"{0}".format(self.filter_description)} 22 | try: 23 | pagehtml = d.getDownloadPage(url, parameters) 24 | if (pagehtml): 25 | self.extractData(pagehtml) 26 | except Exception, ex: 27 | pass 28 | return self.results 29 | 30 | 31 | 32 | def extractData(self, html): 33 | result = Result() 34 | html = re.sub(r"\n", " ", html) 35 | html = re.sub(r"\"", "'", html) 36 | r = re.compile(r"(?P[^<]*?)<.*?class='list_explot_dlink'>.*?" 38 | ".*?" 39 | "(?P[^<]*?)<.*?" 40 | "class='list_explot_author'>.*?" 41 | "title='(?P[^']*?)'.*?" 42 | "") 43 | for match in r.finditer(html): 44 | if match: 45 | 46 | 47 | self.results.append(match.groupdict()) 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /Bots/PacketStorm.py: -------------------------------------------------------------------------------- 1 | # -*- coding: UTF-8 -*- 2 | import sys 3 | sys.path.insert(0, '..') 4 | from Engine.Functions import DownloadPage 5 | from Model.Result import Result 6 | 7 | import re 8 | 9 | 10 | class PacketStorm: 11 | def __init__(self, filter_description=None, results=[]): 12 | self.filter_description = filter_description 13 | self.results = results 14 | 15 | def botSearch(self): 16 | d = DownloadPage() 17 | self.results = [] 18 | for i in range(5): 19 | url = "http://packetstormsecurity.com/search/files/page{0}/".format(i) 20 | parameters = {"q": "{0}".format(self.filter_description)} 21 | try: 22 | pagehtml = d.getDownloadPage(url, parameters) 23 | if (pagehtml): 24 | self.extractData(pagehtml) 25 | except Exception, ex: 26 | pass 27 | return self.results 28 | 29 | def extractData(self, html): 30 | result = Result() 31 | html = re.sub(r"\"", "'", html) 32 | r = re.search(r"(?ms)
.*?" 37 | "title='[^']*?'>(?P[^<]*?)<.*?" 38 | "href='.*?(?P\d{4}-\d{2}-\d{2}).*?" 39 | "'person'>(?P[^<]*?).*?" 40 | "/files/tags/exploit.*?" 41 | "act-links'>") 44 | for match in r.finditer(html): 45 | match2 = r2.search(match.group()) 46 | if match2: 47 | self.results.append(match2.groupdict()) 48 | self.results[len(self.results) -1]['Download'] = \ 49 | "http://packetstormsecurity.com{0}".format(self.results[len(self.results) -1]['Download']) 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /Engine/Router.py: -------------------------------------------------------------------------------- 1 | # -*- coding: UTF-8 -*- 2 | import sys 3 | from Bots.Exploitdb import ExploitDB 4 | from Bots.PacketStorm import PacketStorm 5 | from Bots.Day import BotDay 6 | from threading import Thread 7 | 8 | sys.path.insert(0, '..') 9 | 10 | class Router(object): 11 | def __init__(self, words=None, dictAllResults={}, listWordResults=[]): 12 | self.dictAllResults = dictAllResults 13 | self.listWordResults =listWordResults 14 | self.words = words 15 | 16 | 17 | def searchInBots(self): 18 | if self.words: 19 | try: 20 | for word in self.words: 21 | self.listWordResults = [] 22 | if(word): 23 | th1 = Thread(target=self.addBotExploitDB, args=(word,)) 24 | th1.start() 25 | th1.join() 26 | #self.addBotExploitDB(word) 27 | th2 = Thread(target=self.addBotPacketStorm, args=(word,)) 28 | th2.start() 29 | th2.join() 30 | #self.addBotPacketStorm(word) 31 | th3 = Thread(target=self.addBotDay, args=(word,)) 32 | th3.start() 33 | th3.join() 34 | #self.addBotDay(word) 35 | self.dictAllResults[word] = self.listWordResults 36 | return self.dictAllResults 37 | except Exception, ex: 38 | pass 39 | 40 | 41 | def addBotPacketStorm(self, word): 42 | packetStorm = PacketStorm() 43 | packetStorm.filter_description = word 44 | self.listWordResults.append(packetStorm.botSearch()) 45 | 46 | def addBotExploitDB(self, word): 47 | exploitDB = ExploitDB() 48 | exploitDB.filter_description = str(word).strip("\n") 49 | self.listWordResults.append(exploitDB.botSearch()) 50 | 51 | def addBotDay(self, word): 52 | day = BotDay() 53 | day.filter_description = str(word).strip("\n") 54 | self.listWordResults.append(day.botSearch()) 55 | 56 | -------------------------------------------------------------------------------- /Engine/ExecAndPrint.py: -------------------------------------------------------------------------------- 1 | # -*- coding: UTF-8 -*- 2 | 3 | from Engine.Router import Router 4 | from Engine.Functions import WriteHtml,WriteTxt 5 | import webbrowser 6 | 7 | def execute(**kwargs): 8 | print ("+ Searching Exploits for {0}...".format(kwargs["keywords"])) 9 | router = Router() 10 | router.words = kwargs["keywordsformated"] 11 | dictAllResults = router.searchInBots() 12 | 13 | if (dict(kwargs).has_key("fileText")): 14 | try: 15 | WriteTxt(dictAllResults) 16 | print("Your results will be saved in txt - out.txt") 17 | if(not dict(kwargs).has_key("fileHtml")): 18 | return 19 | except Exception, ex: 20 | print "ERROR -> {0}".format(ex.message) 21 | 22 | if (dict(kwargs).has_key("fileHtml")): 23 | try: 24 | WriteHtml(dictAllResults) 25 | print("Your results will be saved in html - out.html") 26 | new = 2 27 | url = "out.html" 28 | webbrowser.open(url,new=new) 29 | return 30 | except Exception, ex: 31 | print "ERROR -> {0}".format(ex.message) 32 | 33 | for wordSearch, listResults in dictAllResults.items(): 34 | if (not listResults[0]): 35 | print("\nWas no result found for {0}".format(wordSearch)) 36 | continue 37 | 38 | countPrint = 0 39 | print ("+Results {0}".format(wordSearch)) 40 | print ("+"+"-" * 150+"+") 41 | print ("+Date Description Download Author") 42 | print ("+"+"-" * 150+"+") 43 | 44 | for listDictResults in listResults: 45 | countPrint = 0 46 | for dictResults in listDictResults: 47 | if (countPrint > 15): 48 | break 49 | countPrint +=1 50 | print("+ {0} | {1} | {2} | {3} ".format(dictResults["Date"], 51 | str(dictResults["Description"])[0:40], 52 | dictResults["Download"], str(dictResults["Author"])[0:20])) 53 | print ("+"+"-" * 150+"+") 54 | 55 | 56 | -------------------------------------------------------------------------------- /Engine/Update.py: -------------------------------------------------------------------------------- 1 | #-*- coding: UTF-8 -*- 2 | 3 | import os 4 | import time 5 | from subprocess import PIPE 6 | from subprocess import Popen as execute 7 | import platform 8 | 9 | class UpdateVersion(): 10 | def __init__(self, gitRepository=None): 11 | self.gitRepository = "https://github.com/rfunix/Pompem.git" 12 | 13 | 14 | def update(self): 15 | if not os.path.dirname(os.path.abspath(__file__)): 16 | print("not a git repository. Please checkout the 'rfunix/Pompem' repository") 17 | print("from GitHub (e.g. git clone https://github.com/rfunix/Pompem.git Pompem-dev") 18 | else: 19 | print ("updating Pompem to the latest development version from the GitHub repository") 20 | print ("[%s] [INFO] update in progress " % time.strftime("%X")) 21 | process = execute("git pull %s HEAD" % self.gitRepository, shell=True, stdout=PIPE, stderr=PIPE) 22 | self.companyingProcess(process) 23 | stdout, stderr = process.communicate() 24 | success = not process.returncode 25 | 26 | if success: 27 | print("Update was successful") 28 | else: 29 | print("Update unrealized") 30 | 31 | 32 | if not success: 33 | if "windows" in str(platform.system()).lower(): 34 | print("for Windows platform it's recommended ") 35 | print("to use a GitHub for Windows client for updating ") 36 | print("purposes (http://windows.github.com/) or just ") 37 | print("download the latest snapshot from ") 38 | print("https://github.com/rfunix/Pompem.git") 39 | else: 40 | print("for Linux platform it's required ") 41 | print("to install a standard 'git' package (e.g.: 'sudo apt-get install git')") 42 | 43 | return success 44 | 45 | def companyingProcess(self,process): 46 | 47 | while True: 48 | print(".") 49 | time.sleep(1) 50 | codeReturn = process.poll() 51 | if codeReturn is not None: 52 | if codeReturn == 0: 53 | print(" done\n") 54 | elif codeReturn < 0: 55 | print(" process terminated by signal %d\n" % codeReturn) 56 | elif codeReturn > 0: 57 | print(" quit unexpectedly with return code %d\n" % codeReturn) 58 | break 59 | 60 | -------------------------------------------------------------------------------- /pompem.py: -------------------------------------------------------------------------------- 1 | # -*- coding: UTF-8 -*- 2 | 3 | import sys 4 | sys.path.insert(0, '..') 5 | import optparse 6 | from Engine.Update import UpdateVersion 7 | from Engine.ExecAndPrint import execute 8 | 9 | 10 | def main(): 11 | parser = optparse.OptionParser(add_help_option=False) 12 | 13 | parser.add_option("-s", "--search", dest="keywords", type="string", 14 | help="text for search",) 15 | 16 | parser.add_option("--txt", dest="fileText", \ 17 | action="store_true", help="enter the file name",) 18 | 19 | parser.add_option("--html", dest="fileHtml", action="store_true", \ 20 | help="enter the file name",) 21 | 22 | parser.add_option("--update", 23 | action="store_true", dest="update", 24 | help="upgrade to latest version") 25 | 26 | parser.add_option("-h", "--help", 27 | action="store_true", dest="help", help="-h") 28 | (options, args) = parser.parse_args() 29 | 30 | argsParameters = {} 31 | keywords = options.keywords 32 | fileText = options.fileText 33 | fileHtml = options.fileHtml 34 | update = options.update 35 | help = options.help 36 | if help: 37 | printHelpMessage() 38 | return 39 | #keywords = "ssh" 40 | if (update): 41 | u = UpdateVersion() 42 | u.update() #Update from github 43 | return 44 | if(keywords): 45 | if fileText: 46 | argsParameters["fileText"] = fileText 47 | if fileHtml: 48 | argsParameters["fileHtml"] = fileHtml 49 | keywordsformated = str(keywords).split(",") 50 | if keywordsformated: 51 | argsParameters["keywordsformated"] = keywordsformated 52 | argsParameters["keywords"] = keywords 53 | execute(**argsParameters) 54 | else: 55 | basicInfo() 56 | return 57 | 58 | def printHelpMessage(): 59 | print """ 60 | Options: 61 | -h, --help show this help message and exit 62 | -s, --search text for search 63 | --txt Write txt File 64 | --html Write html File 65 | --update upgrade to latest version 66 | """ 67 | 68 | def basicInfo(): 69 | print """ 70 | Pompem - Exploit Finder | Developed by Relax Lab 71 | \n Rafael Francischini (Programmer and Ethical Hacker) - @rfunix\n 72 | Bruno Fraga (Security Researcher) - @brunofraga_net\n 73 | Usage: pompem.py [-s/--search ] 74 | [--txt Write txt file ] 75 | [--html Write html file] 76 | \n Get basic options and Help, use: -h\--help 77 | """ 78 | 79 | if __name__ == "__main__": 80 | main() 81 | -------------------------------------------------------------------------------- /.ropeproject/config.py: -------------------------------------------------------------------------------- 1 | # The default ``config.py`` 2 | 3 | 4 | def set_prefs(prefs): 5 | """This function is called before opening the project""" 6 | 7 | # Specify which files and folders to ignore in the project. 8 | # Changes to ignored resources are not added to the history and 9 | # VCSs. Also they are not returned in `Project.get_files()`. 10 | # Note that ``?`` and ``*`` match all characters but slashes. 11 | # '*.pyc': matches 'test.pyc' and 'pkg/test.pyc' 12 | # 'mod*.pyc': matches 'test/mod1.pyc' but not 'mod/1.pyc' 13 | # '.svn': matches 'pkg/.svn' and all of its children 14 | # 'build/*.o': matches 'build/lib.o' but not 'build/sub/lib.o' 15 | # 'build//*.o': matches 'build/lib.o' and 'build/sub/lib.o' 16 | prefs['ignored_resources'] = ['*.pyc', '*~', '.ropeproject', 17 | '.hg', '.svn', '_svn', '.git'] 18 | 19 | # Specifies which files should be considered python files. It is 20 | # useful when you have scripts inside your project. Only files 21 | # ending with ``.py`` are considered to be python files by 22 | # default. 23 | #prefs['python_files'] = ['*.py'] 24 | 25 | # Custom source folders: By default rope searches the project 26 | # for finding source folders (folders that should be searched 27 | # for finding modules). You can add paths to that list. Note 28 | # that rope guesses project source folders correctly most of the 29 | # time; use this if you have any problems. 30 | # The folders should be relative to project root and use '/' for 31 | # separating folders regardless of the platform rope is running on. 32 | # 'src/my_source_folder' for instance. 33 | #prefs.add('source_folders', 'src') 34 | 35 | # You can extend python path for looking up modules 36 | #prefs.add('python_path', '~/python/') 37 | 38 | # Should rope save object information or not. 39 | prefs['save_objectdb'] = True 40 | prefs['compress_objectdb'] = False 41 | 42 | # If `True`, rope analyzes each module when it is being saved. 43 | prefs['automatic_soa'] = True 44 | # The depth of calls to follow in static object analysis 45 | prefs['soa_followed_calls'] = 0 46 | 47 | # If `False` when running modules or unit tests "dynamic object 48 | # analysis" is turned off. This makes them much faster. 49 | prefs['perform_doa'] = True 50 | 51 | # Rope can check the validity of its object DB when running. 52 | prefs['validate_objectdb'] = True 53 | 54 | # How many undos to hold? 55 | prefs['max_history_items'] = 32 56 | 57 | # Shows whether to save history across sessions. 58 | prefs['save_history'] = True 59 | prefs['compress_history'] = False 60 | 61 | # Set the number spaces used for indenting. According to 62 | # :PEP:`8`, it is best to use 4 spaces. Since most of rope's 63 | # unit-tests use 4 spaces it is more reliable, too. 64 | prefs['indent_size'] = 4 65 | 66 | # Builtin and c-extension modules that are allowed to be imported 67 | # and inspected by rope. 68 | prefs['extension_modules'] = [] 69 | 70 | # Add all standard c-extensions to extension_modules list. 71 | prefs['import_dynload_stdmods'] = True 72 | 73 | # If `True` modules with syntax errors are considered to be empty. 74 | # The default value is `False`; When `False` syntax errors raise 75 | # `rope.base.exceptions.ModuleSyntaxError` exception. 76 | prefs['ignore_syntax_errors'] = False 77 | 78 | # If `True`, rope ignores unresolvable imports. Otherwise, they 79 | # appear in the importing namespace. 80 | prefs['ignore_bad_imports'] = False 81 | 82 | 83 | def project_opened(project): 84 | """This function is called after opening the project""" 85 | # Do whatever you like here! 86 | -------------------------------------------------------------------------------- /Engine/Functions.py: -------------------------------------------------------------------------------- 1 | # -*- coding: UTF-8 -*- 2 | 3 | import requests 4 | import sys 5 | from BeautifulSoup import BeautifulStoneSoup 6 | sys.path.insert(0, '..') 7 | 8 | 9 | class DownloadPage(object): 10 | def __init__(self, url=None): 11 | self.url = url 12 | 13 | def getDownloadPage(self, host=None, parametros=None): 14 | try: 15 | headers = {'User-Agent': 'Googlebot/2.1 (+http://www.googlebot.com/bot.html) '} 16 | 17 | r = requests.get(host, params=parametros, headers=headers) 18 | 19 | decodedstring = BeautifulStoneSoup(r.text, 20 | convertEntities=BeautifulStoneSoup.HTML_ENTITIES) 21 | return str(decodedstring) 22 | except Exception, e: 23 | print (e.message) 24 | return None 25 | 26 | 27 | def postDownloadPageDay(self, host=None, postData={}): 28 | headers = {'User-Agent': 'Googlebot/2.1 (+http://www.googlebot.com/bot.html) '} 29 | s = requests.session() 30 | s.post(host, headers=headers, data={"agree":"OK"}) 31 | r = s.post(host,headers=headers, data=postData) 32 | 33 | 34 | decodedstring = BeautifulStoneSoup(r.text, 35 | convertEntities=BeautifulStoneSoup.HTML_ENTITIES) 36 | 37 | return decodedstring 38 | 39 | 40 | def WriteTxt(dictAllResults): 41 | f = open("out.txt", "w") 42 | for wordSearch, listResults in dictAllResults.items(): 43 | if (not listResults[0]): 44 | continue 45 | f.write("+"+"-" * 150+"+\n") 46 | f.write("+Results {0}\n".format(wordSearch)) 47 | f.write("+"+"-" * 150+"+\n") 48 | f.write("+Date Description Download Author\n") 49 | f.write("+"+"-" * 150+"+\n") 50 | for listDictResults in listResults: 51 | for dictResults in listDictResults: 52 | f.write("+ {0} | {1} | {2} | {3} \n".format(dictResults["Date"], 53 | str(dictResults["Description"]), 54 | dictResults["Download"], str(dictResults["Author"]))) 55 | f.write("+"+"-" * 150+"+\n") 56 | f.close() 57 | 58 | 59 | 60 | def WriteHtml(dictAllResults): 61 | f = open(r"out.html", "w") 62 | f.write(r''' 63 | 64 | 65 | 66 | 67 | Bootstrap, from Twitter 68 | 69 | 70 | 71 | 72 | 73 | 74 | 83 | 84 | 85 | 86 |
87 |
88 |
89 |
90 |

Pompem - Finder Exploit Tool

91 |

Relax Lab

92 |
93 |
94 |
95 |
96 |

Results for search:

97 |
98 |
99 | ''') 100 | 101 | for wordSearch, listResults in dictAllResults.items(): 102 | if (not listResults[0]): 103 | continue 104 | 105 | f.write(r''' 106 |
107 |

{0}

108 |
109 |
110 |
111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | '''.format(wordSearch)) 124 | 125 | for listDictResults in listResults: 126 | for dictResults in listDictResults: 127 | f.write(r''' 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | '''.format(dictResults["Date"], 136 | str(dictResults["Description"]), 137 | dictResults["Download"], str(dictResults["Author"]))) 138 | f.write(r''' 139 | 140 |
Date DescriptionDownloadAuthor
{0}{1}{2}{3}
141 |
142 |
143 | ''') 144 | 145 | 146 | f.write(r''' 147 |
148 | 149 | 150 | 151 | 152 | ''') 153 | f.close() 154 | 155 | -------------------------------------------------------------------------------- /bootstrap/css/bootstrap-responsive.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Responsive v2.2.2 3 | * 4 | * Copyright 2012 Twitter, Inc 5 | * Licensed under the Apache License v2.0 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Designed and built with all the love in the world @twitter by @mdo and @fat. 9 | */.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.hidden{display:none;visibility:hidden}.visible-phone{display:none!important}.visible-tablet{display:none!important}.hidden-desktop{display:none!important}.visible-desktop{display:inherit!important}@media(min-width:768px) and (max-width:979px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-tablet{display:inherit!important}.hidden-tablet{display:none!important}}@media(max-width:767px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-phone{display:inherit!important}.hidden-phone{display:none!important}}@media(min-width:1200px){.row{margin-left:-30px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:30px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:1170px}.span12{width:1170px}.span11{width:1070px}.span10{width:970px}.span9{width:870px}.span8{width:770px}.span7{width:670px}.span6{width:570px}.span5{width:470px}.span4{width:370px}.span3{width:270px}.span2{width:170px}.span1{width:70px}.offset12{margin-left:1230px}.offset11{margin-left:1130px}.offset10{margin-left:1030px}.offset9{margin-left:930px}.offset8{margin-left:830px}.offset7{margin-left:730px}.offset6{margin-left:630px}.offset5{margin-left:530px}.offset4{margin-left:430px}.offset3{margin-left:330px}.offset2{margin-left:230px}.offset1{margin-left:130px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.564102564102564%;*margin-left:2.5109110747408616%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.564102564102564%}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.45299145299145%;*width:91.39979996362975%}.row-fluid .span10{width:82.90598290598291%;*width:82.8527914166212%}.row-fluid .span9{width:74.35897435897436%;*width:74.30578286961266%}.row-fluid .span8{width:65.81196581196582%;*width:65.75877432260411%}.row-fluid .span7{width:57.26495726495726%;*width:57.21176577559556%}.row-fluid .span6{width:48.717948717948715%;*width:48.664757228587014%}.row-fluid .span5{width:40.17094017094017%;*width:40.11774868157847%}.row-fluid .span4{width:31.623931623931625%;*width:31.570740134569924%}.row-fluid .span3{width:23.076923076923077%;*width:23.023731587561375%}.row-fluid .span2{width:14.52991452991453%;*width:14.476723040552828%}.row-fluid .span1{width:5.982905982905983%;*width:5.929714493544281%}.row-fluid .offset12{margin-left:105.12820512820512%;*margin-left:105.02182214948171%}.row-fluid .offset12:first-child{margin-left:102.56410256410257%;*margin-left:102.45771958537915%}.row-fluid .offset11{margin-left:96.58119658119658%;*margin-left:96.47481360247316%}.row-fluid .offset11:first-child{margin-left:94.01709401709402%;*margin-left:93.91071103837061%}.row-fluid .offset10{margin-left:88.03418803418803%;*margin-left:87.92780505546462%}.row-fluid .offset10:first-child{margin-left:85.47008547008548%;*margin-left:85.36370249136206%}.row-fluid .offset9{margin-left:79.48717948717949%;*margin-left:79.38079650845607%}.row-fluid .offset9:first-child{margin-left:76.92307692307693%;*margin-left:76.81669394435352%}.row-fluid .offset8{margin-left:70.94017094017094%;*margin-left:70.83378796144753%}.row-fluid .offset8:first-child{margin-left:68.37606837606839%;*margin-left:68.26968539734497%}.row-fluid .offset7{margin-left:62.393162393162385%;*margin-left:62.28677941443899%}.row-fluid .offset7:first-child{margin-left:59.82905982905982%;*margin-left:59.72267685033642%}.row-fluid .offset6{margin-left:53.84615384615384%;*margin-left:53.739770867430444%}.row-fluid .offset6:first-child{margin-left:51.28205128205128%;*margin-left:51.175668303327875%}.row-fluid .offset5{margin-left:45.299145299145295%;*margin-left:45.1927623204219%}.row-fluid .offset5:first-child{margin-left:42.73504273504273%;*margin-left:42.62865975631933%}.row-fluid .offset4{margin-left:36.75213675213675%;*margin-left:36.645753773413354%}.row-fluid .offset4:first-child{margin-left:34.18803418803419%;*margin-left:34.081651209310785%}.row-fluid .offset3{margin-left:28.205128205128204%;*margin-left:28.0987452264048%}.row-fluid .offset3:first-child{margin-left:25.641025641025642%;*margin-left:25.53464266230224%}.row-fluid .offset2{margin-left:19.65811965811966%;*margin-left:19.551736679396257%}.row-fluid .offset2:first-child{margin-left:17.094017094017094%;*margin-left:16.98763411529369%}.row-fluid .offset1{margin-left:11.11111111111111%;*margin-left:11.004728132387708%}.row-fluid .offset1:first-child{margin-left:8.547008547008547%;*margin-left:8.440625568285142%}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:30px}input.span12,textarea.span12,.uneditable-input.span12{width:1156px}input.span11,textarea.span11,.uneditable-input.span11{width:1056px}input.span10,textarea.span10,.uneditable-input.span10{width:956px}input.span9,textarea.span9,.uneditable-input.span9{width:856px}input.span8,textarea.span8,.uneditable-input.span8{width:756px}input.span7,textarea.span7,.uneditable-input.span7{width:656px}input.span6,textarea.span6,.uneditable-input.span6{width:556px}input.span5,textarea.span5,.uneditable-input.span5{width:456px}input.span4,textarea.span4,.uneditable-input.span4{width:356px}input.span3,textarea.span3,.uneditable-input.span3{width:256px}input.span2,textarea.span2,.uneditable-input.span2{width:156px}input.span1,textarea.span1,.uneditable-input.span1{width:56px}.thumbnails{margin-left:-30px}.thumbnails>li{margin-left:30px}.row-fluid .thumbnails{margin-left:0}}@media(min-width:768px) and (max-width:979px){.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:724px}.span12{width:724px}.span11{width:662px}.span10{width:600px}.span9{width:538px}.span8{width:476px}.span7{width:414px}.span6{width:352px}.span5{width:290px}.span4{width:228px}.span3{width:166px}.span2{width:104px}.span1{width:42px}.offset12{margin-left:764px}.offset11{margin-left:702px}.offset10{margin-left:640px}.offset9{margin-left:578px}.offset8{margin-left:516px}.offset7{margin-left:454px}.offset6{margin-left:392px}.offset5{margin-left:330px}.offset4{margin-left:268px}.offset3{margin-left:206px}.offset2{margin-left:144px}.offset1{margin-left:82px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.7624309392265194%;*margin-left:2.709239449864817%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.7624309392265194%}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.43646408839778%;*width:91.38327259903608%}.row-fluid .span10{width:82.87292817679558%;*width:82.81973668743387%}.row-fluid .span9{width:74.30939226519337%;*width:74.25620077583166%}.row-fluid .span8{width:65.74585635359117%;*width:65.69266486422946%}.row-fluid .span7{width:57.18232044198895%;*width:57.12912895262725%}.row-fluid .span6{width:48.61878453038674%;*width:48.56559304102504%}.row-fluid .span5{width:40.05524861878453%;*width:40.00205712942283%}.row-fluid .span4{width:31.491712707182323%;*width:31.43852121782062%}.row-fluid .span3{width:22.92817679558011%;*width:22.87498530621841%}.row-fluid .span2{width:14.3646408839779%;*width:14.311449394616199%}.row-fluid .span1{width:5.801104972375691%;*width:5.747913483013988%}.row-fluid .offset12{margin-left:105.52486187845304%;*margin-left:105.41847889972962%}.row-fluid .offset12:first-child{margin-left:102.76243093922652%;*margin-left:102.6560479605031%}.row-fluid .offset11{margin-left:96.96132596685082%;*margin-left:96.8549429881274%}.row-fluid .offset11:first-child{margin-left:94.1988950276243%;*margin-left:94.09251204890089%}.row-fluid .offset10{margin-left:88.39779005524862%;*margin-left:88.2914070765252%}.row-fluid .offset10:first-child{margin-left:85.6353591160221%;*margin-left:85.52897613729868%}.row-fluid .offset9{margin-left:79.8342541436464%;*margin-left:79.72787116492299%}.row-fluid .offset9:first-child{margin-left:77.07182320441989%;*margin-left:76.96544022569647%}.row-fluid .offset8{margin-left:71.2707182320442%;*margin-left:71.16433525332079%}.row-fluid .offset8:first-child{margin-left:68.50828729281768%;*margin-left:68.40190431409427%}.row-fluid .offset7{margin-left:62.70718232044199%;*margin-left:62.600799341718584%}.row-fluid .offset7:first-child{margin-left:59.94475138121547%;*margin-left:59.838368402492065%}.row-fluid .offset6{margin-left:54.14364640883978%;*margin-left:54.037263430116376%}.row-fluid .offset6:first-child{margin-left:51.38121546961326%;*margin-left:51.27483249088986%}.row-fluid .offset5{margin-left:45.58011049723757%;*margin-left:45.47372751851417%}.row-fluid .offset5:first-child{margin-left:42.81767955801105%;*margin-left:42.71129657928765%}.row-fluid .offset4{margin-left:37.01657458563536%;*margin-left:36.91019160691196%}.row-fluid .offset4:first-child{margin-left:34.25414364640884%;*margin-left:34.14776066768544%}.row-fluid .offset3{margin-left:28.45303867403315%;*margin-left:28.346655695309746%}.row-fluid .offset3:first-child{margin-left:25.69060773480663%;*margin-left:25.584224756083227%}.row-fluid .offset2{margin-left:19.88950276243094%;*margin-left:19.783119783707537%}.row-fluid .offset2:first-child{margin-left:17.12707182320442%;*margin-left:17.02068884448102%}.row-fluid .offset1{margin-left:11.32596685082873%;*margin-left:11.219583872105325%}.row-fluid .offset1:first-child{margin-left:8.56353591160221%;*margin-left:8.457152932878806%}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:20px}input.span12,textarea.span12,.uneditable-input.span12{width:710px}input.span11,textarea.span11,.uneditable-input.span11{width:648px}input.span10,textarea.span10,.uneditable-input.span10{width:586px}input.span9,textarea.span9,.uneditable-input.span9{width:524px}input.span8,textarea.span8,.uneditable-input.span8{width:462px}input.span7,textarea.span7,.uneditable-input.span7{width:400px}input.span6,textarea.span6,.uneditable-input.span6{width:338px}input.span5,textarea.span5,.uneditable-input.span5{width:276px}input.span4,textarea.span4,.uneditable-input.span4{width:214px}input.span3,textarea.span3,.uneditable-input.span3{width:152px}input.span2,textarea.span2,.uneditable-input.span2{width:90px}input.span1,textarea.span1,.uneditable-input.span1{width:28px}}@media(max-width:767px){body{padding-right:20px;padding-left:20px}.navbar-fixed-top,.navbar-fixed-bottom,.navbar-static-top{margin-right:-20px;margin-left:-20px}.container-fluid{padding:0}.dl-horizontal dt{float:none;width:auto;clear:none;text-align:left}.dl-horizontal dd{margin-left:0}.container{width:auto}.row-fluid{width:100%}.row,.thumbnails{margin-left:0}.thumbnails>li{float:none;margin-left:0}[class*="span"],.uneditable-input[class*="span"],.row-fluid [class*="span"]{display:block;float:none;width:100%;margin-left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.span12,.row-fluid .span12{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="offset"]:first-child{margin-left:0}.input-large,.input-xlarge,.input-xxlarge,input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.input-prepend input,.input-append input,.input-prepend input[class*="span"],.input-append input[class*="span"]{display:inline-block;width:auto}.controls-row [class*="span"]+[class*="span"]{margin-left:0}.modal{position:fixed;top:20px;right:20px;left:20px;width:auto;margin:0}.modal.fade{top:-100px}.modal.fade.in{top:20px}}@media(max-width:480px){.nav-collapse{-webkit-transform:translate3d(0,0,0)}.page-header h1 small{display:block;line-height:20px}input[type="checkbox"],input[type="radio"]{border:1px solid #ccc}.form-horizontal .control-label{float:none;width:auto;padding-top:0;text-align:left}.form-horizontal .controls{margin-left:0}.form-horizontal .control-list{padding-top:0}.form-horizontal .form-actions{padding-right:10px;padding-left:10px}.media .pull-left,.media .pull-right{display:block;float:none;margin-bottom:10px}.media-object{margin-right:0;margin-left:0}.modal{top:10px;right:10px;left:10px}.modal-header .close{padding:10px;margin:-10px}.carousel-caption{position:static}}@media(max-width:979px){body{padding-top:0}.navbar-fixed-top,.navbar-fixed-bottom{position:static}.navbar-fixed-top{margin-bottom:20px}.navbar-fixed-bottom{margin-top:20px}.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding:5px}.navbar .container{width:auto;padding:0}.navbar .brand{padding-right:10px;padding-left:10px;margin:0 0 0 -5px}.nav-collapse{clear:both}.nav-collapse .nav{float:none;margin:0 0 10px}.nav-collapse .nav>li{float:none}.nav-collapse .nav>li>a{margin-bottom:2px}.nav-collapse .nav>.divider-vertical{display:none}.nav-collapse .nav .nav-header{color:#777;text-shadow:none}.nav-collapse .nav>li>a,.nav-collapse .dropdown-menu a{padding:9px 15px;font-weight:bold;color:#777;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.nav-collapse .btn{padding:4px 10px 4px;font-weight:normal;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.nav-collapse .dropdown-menu li+li a{margin-bottom:2px}.nav-collapse .nav>li>a:hover,.nav-collapse .dropdown-menu a:hover{background-color:#f2f2f2}.navbar-inverse .nav-collapse .nav>li>a,.navbar-inverse .nav-collapse .dropdown-menu a{color:#999}.navbar-inverse .nav-collapse .nav>li>a:hover,.navbar-inverse .nav-collapse .dropdown-menu a:hover{background-color:#111}.nav-collapse.in .btn-group{padding:0;margin-top:5px}.nav-collapse .dropdown-menu{position:static;top:auto;left:auto;display:none;float:none;max-width:none;padding:0;margin:0 15px;background-color:transparent;border:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.nav-collapse .open>.dropdown-menu{display:block}.nav-collapse .dropdown-menu:before,.nav-collapse .dropdown-menu:after{display:none}.nav-collapse .dropdown-menu .divider{display:none}.nav-collapse .nav>li>.dropdown-menu:before,.nav-collapse .nav>li>.dropdown-menu:after{display:none}.nav-collapse .navbar-form,.nav-collapse .navbar-search{float:none;padding:10px 15px;margin:10px 0;border-top:1px solid #f2f2f2;border-bottom:1px solid #f2f2f2;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1)}.navbar-inverse .nav-collapse .navbar-form,.navbar-inverse .nav-collapse .navbar-search{border-top-color:#111;border-bottom-color:#111}.navbar .nav-collapse .nav.pull-right{float:none;margin-left:0}.nav-collapse,.nav-collapse.collapse{height:0;overflow:hidden}.navbar .btn-navbar{display:block}.navbar-static .navbar-inner{padding-right:10px;padding-left:10px}}@media(min-width:980px){.nav-collapse.collapse{height:auto!important;overflow:visible!important}} 10 | -------------------------------------------------------------------------------- /bootstrap/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap.js by @fat & @mdo 3 | * Copyright 2012 Twitter, Inc. 4 | * http://www.apache.org/licenses/LICENSE-2.0.txt 5 | */ 6 | !function(e){"use strict";e(function(){e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jQuery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=e(r),t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()},e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e(document).on("click.alert.data-api",t,n.prototype.close)}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active"),this.$element.toggleClass("active")},e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;i||r.data("button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.defaults={loadingText:"loading..."},e.fn.button.Constructor=t,e(document).on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=n,this.options.slide&&this.slide(this.options.slide),this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){return t||(this.paused=!1),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},to:function(t){var n=this.$element.find(".item.active"),r=n.parent().children(),i=r.index(n),s=this;if(t>r.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){s.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",e(r[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle()),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this,f;this.sliding=!0,s&&this.pause(),i=i.length?i:this.$element.find(".item")[u](),f=e.Event("slide",{relatedTarget:i[0]});if(i.hasClass("active"))return;if(e.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(f);if(f.isDefaultPrevented())return;i.addClass(t),i[0].offsetWidth,r.addClass(o),i.addClass(o),this.$element.one(e.support.transition.end,function(){i.removeClass([t,o].join(" ")).addClass("active"),r.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger("slid")},0)})}else{this.$element.trigger(f);if(f.isDefaultPrevented())return;r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&&this.cycle(),this}},e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("carousel"),s=e.extend({},e.fn.carousel.defaults,typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;i||r.data("carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&&i.cycle()})},e.fn.carousel.defaults={interval:5e3,pause:"hover"},e.fn.carousel.Constructor=t,e(document).on("click.carousel.data-api","[data-slide]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=e.extend({},i.data(),n.data());i.carousel(s),t.preventDefault()})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.collapse.defaults,n),this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.prototype={constructor:t,dimension:function(){var e=this.$element.hasClass("width");return e?"width":"height"},show:function(){var t,n,r,i;if(this.transitioning)return;t=this.dimension(),n=e.camelCase(["scroll",t].join("-")),r=this.$parent&&this.$parent.find("> .accordion-group > .in");if(r&&r.length){i=r.data("collapse");if(i&&i.transitioning)return;r.collapse("hide"),i||r.data("collapse",null)}this.$element[t](0),this.transition("addClass",e.Event("show"),"shown"),e.support.transition&&this.$element[t](this.$element[0][n])},hide:function(){var t;if(this.transitioning)return;t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeClass",e.Event("hide"),"hidden"),this.$element[t](0)},reset:function(e){var t=this.dimension();return this.$element.removeClass("collapse")[t](e||"auto")[0].offsetWidth,this.$element[e!==null?"addClass":"removeClass"]("collapse"),this},transition:function(t,n,r){var i=this,s=function(){n.type=="show"&&i.reset(),i.transitioning=0,i.$element.trigger(r)};this.$element.trigger(n);if(n.isDefaultPrevented())return;this.transitioning=1,this.$element[t]("in"),e.support.transition&&this.$element.hasClass("collapse")?this.$element.one(e.support.transition.end,s):s()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}},e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("collapse"),s=typeof n=="object"&&n;i||r.data("collapse",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.collapse.defaults={toggle:!0},e.fn.collapse.Constructor=t,e(document).on("click.collapse.data-api","[data-toggle=collapse]",function(t){var n=e(this),r,i=n.attr("data-target")||t.preventDefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(i).data("collapse")?"toggle":n.data();n[e(i).hasClass("in")?"addClass":"removeClass"]("collapsed"),e(i).collapse(s)})}(window.jQuery),!function(e){"use strict";function r(){e(t).each(function(){i(e(this)).removeClass("open")})}function i(t){var n=t.attr("data-target"),r;return n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),r=e(n),r.length||(r=t.parent()),r}var t="[data-toggle=dropdown]",n=function(t){var n=e(t).on("click.dropdown.data-api",this.toggle);e("html").on("click.dropdown.data-api",function(){n.parent().removeClass("open")})};n.prototype={constructor:n,toggle:function(t){var n=e(this),s,o;if(n.is(".disabled, :disabled"))return;return s=i(n),o=s.hasClass("open"),r(),o||(s.toggleClass("open"),n.focus()),!1},keydown:function(t){var n,r,s,o,u,a;if(!/(38|40|27)/.test(t.keyCode))return;n=e(this),t.preventDefault(),t.stopPropagation();if(n.is(".disabled, :disabled"))return;o=i(n),u=o.hasClass("open");if(!u||u&&t.keyCode==27)return n.click();r=e("[role=menu] li:not(.divider) a",o);if(!r.length)return;a=r.index(r.filter(":focus")),t.keyCode==38&&a>0&&a--,t.keyCode==40&&a').appendTo(document.body),this.$backdrop.click(this.options.backdrop=="static"?e.proxy(this.$element[0].focus,this.$element[0]):e.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),i?this.$backdrop.one(e.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,e.proxy(this.removeBackdrop,this)):this.removeBackdrop()):t&&t()}},e.fn.modal=function(n){return this.each(function(){var r=e(this),i=r.data("modal"),s=e.extend({},e.fn.modal.defaults,r.data(),typeof n=="object"&&n);i||r.data("modal",i=new t(this,s)),typeof n=="string"?i[n]():s.show&&i.show()})},e.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},e.fn.modal.Constructor=t,e(document).on("click.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r=n.attr("href"),i=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),s=i.data("modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),n.data());t.preventDefault(),i.modal(s).one("hide",function(){n.focus()})})}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("tooltip",e,t)};t.prototype={constructor:t,init:function(t,n,r){var i,s;this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.enabled=!0,this.options.trigger=="click"?this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this)):this.options.trigger!="manual"&&(i=this.options.trigger=="hover"?"mouseenter":"focus",s=this.options.trigger=="hover"?"mouseleave":"blur",this.$element.on(i+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.leave,this))),this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return t=e.extend({},e.fn[this.type].defaults,t,this.$element.data()),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);if(!n.options.delay||!n.options.delay.show)return n.show();clearTimeout(this.timeout),n.hoverState="in",this.timeout=setTimeout(function(){n.hoverState=="in"&&n.show()},n.options.delay.show)},leave:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);this.timeout&&clearTimeout(this.timeout);if(!n.options.delay||!n.options.delay.hide)return n.hide();n.hoverState="out",this.timeout=setTimeout(function(){n.hoverState=="out"&&n.hide()},n.options.delay.hide)},show:function(){var e,t,n,r,i,s,o;if(this.hasContent()&&this.enabled){e=this.tip(),this.setContent(),this.options.animation&&e.addClass("fade"),s=typeof this.options.placement=="function"?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,t=/in/.test(s),e.detach().css({top:0,left:0,display:"block"}).insertAfter(this.$element),n=this.getPosition(t),r=e[0].offsetWidth,i=e[0].offsetHeight;switch(t?s.split(" ")[1]:s){case"bottom":o={top:n.top+n.height,left:n.left+n.width/2-r/2};break;case"top":o={top:n.top-i,left:n.left+n.width/2-r/2};break;case"left":o={top:n.top+n.height/2-i/2,left:n.left-r};break;case"right":o={top:n.top+n.height/2-i/2,left:n.left+n.width}}e.offset(o).addClass(s).addClass("in")}},setContent:function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},hide:function(){function r(){var t=setTimeout(function(){n.off(e.support.transition.end).detach()},500);n.one(e.support.transition.end,function(){clearTimeout(t),n.detach()})}var t=this,n=this.tip();return n.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?r():n.detach(),this},fixTitle:function(){var e=this.$element;(e.attr("title")||typeof e.attr("data-original-title")!="string")&&e.attr("data-original-title",e.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(t){return e.extend({},t?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title),e},tip:function(){return this.$tip=this.$tip||e(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);n[n.tip().hasClass("in")?"hide":"show"]()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}},e.fn.tooltip=function(n){return this.each(function(){var r=e(this),i=r.data("tooltip"),s=typeof n=="object"&&n;i||r.data("tooltip",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.tooltip.Constructor=t,e.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'
',trigger:"hover",title:"",delay:0,html:!1}}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype,{constructor:t,setContent:function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content > *")[this.options.html?"html":"text"](n),e.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content),e},tip:function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}}),e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("popover"),s=typeof n=="object"&&n;i||r.data("popover",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.popover.Constructor=t,e.fn.popover.defaults=e.extend({},e.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'

'})}(window.jQuery),!function(e){"use strict";function t(t,n){var r=e.proxy(this.process,this),i=e(t).is("body")?e(window):e(t),s;this.options=e.extend({},e.fn.scrollspy.defaults,n),this.$scrollElement=i.on("scroll.scroll-spy.data-api",r),this.selector=(this.options.target||(s=e(t).attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=e("body"),this.refresh(),this.process()}t.prototype={constructor:t,refresh:function(){var t=this,n;this.offsets=e([]),this.targets=e([]),n=this.$body.find(this.selector).map(function(){var t=e(this),n=t.data("target")||t.attr("href"),r=/^#\w/.test(n)&&e(n);return r&&r.length&&[[r.position().top,n]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},process:function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=t-this.$scrollElement.height(),r=this.offsets,i=this.targets,s=this.activeTarget,o;if(e>=n)return s!=(o=i.last()[0])&&this.activate(o);for(o=r.length;o--;)s!=i[o]&&e>=r[o]&&(!r[o+1]||e<=r[o+1])&&this.activate(i[o])},activate:function(t){var n,r;this.activeTarget=t,e(this.selector).parent(".active").removeClass("active"),r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(r).parent("li").addClass("active"),n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate")}},e.fn.scrollspy=function(n){return this.each(function(){var r=e(this),i=r.data("scrollspy"),s=typeof n=="object"&&n;i||r.data("scrollspy",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.scrollspy.Constructor=t,e.fn.scrollspy.defaults={offset:10},e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);t.scrollspy(t.data())})})}(window.jQuery),!function(e){"use strict";var t=function(t){this.element=e(t)};t.prototype={constructor:t,show:function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.attr("data-target"),i,s,o;r||(r=t.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));if(t.parent("li").hasClass("active"))return;i=n.find(".active:last a")[0],o=e.Event("show",{relatedTarget:i}),t.trigger(o);if(o.isDefaultPrevented())return;s=e(r),this.activate(t.parent("li"),n),this.activate(s,s.parent(),function(){t.trigger({type:"shown",relatedTarget:i})})},activate:function(t,n,r){function o(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),r&&r()}var i=n.find("> .active"),s=r&&e.support.transition&&i.hasClass("fade");s?i.one(e.support.transition.end,o):o(),i.removeClass("in")}},e.fn.tab=function(n){return this.each(function(){var r=e(this),i=r.data("tab");i||r.data("tab",i=new t(this)),typeof n=="string"&&i[n]()})},e.fn.tab.Constructor=t,e(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),e(this).tab("show")})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.typeahead.defaults,n),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.$menu=e(this.options.menu).appendTo("body"),this.source=this.options.source,this.shown=!1,this.listen()};t.prototype={constructor:t,select:function(){var e=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(e)).change(),this.hide()},updater:function(e){return e},show:function(){var t=e.extend({},this.$element.offset(),{height:this.$element[0].offsetHeight});return this.$menu.css({top:t.top+t.height,left:t.left}),this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(t){var n;return this.query=this.$element.val(),!this.query||this.query.length"+t+""})},render:function(t){var n=this;return t=e(t).map(function(t,r){return t=e(n.options.item).attr("data-value",r),t.find("a").html(n.highlighter(r)),t[0]}),t.first().addClass("active"),this.$menu.html(t),this},next:function(t){var n=this.$menu.find(".active").removeClass("active"),r=n.next();r.length||(r=e(this.$menu.find("li")[0])),r.addClass("active")},prev:function(e){var t=this.$menu.find(".active").removeClass("active"),n=t.prev();n.length||(n=this.$menu.find("li").last()),n.addClass("active")},listen:function(){this.$element.on("blur",e.proxy(this.blur,this)).on("keypress",e.proxy(this.keypress,this)).on("keyup",e.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",e.proxy(this.keydown,this)),this.$menu.on("click",e.proxy(this.click,this)).on("mouseenter","li",e.proxy(this.mouseenter,this))},eventSupported:function(e){var t=e in this.$element;return t||(this.$element.setAttribute(e,"return;"),t=typeof this.$element[e]=="function"),t},move:function(e){if(!this.shown)return;switch(e.keyCode){case 9:case 13:case 27:e.preventDefault();break;case 38:e.preventDefault(),this.prev();break;case 40:e.preventDefault(),this.next()}e.stopPropagation()},keydown:function(t){this.suppressKeyPressRepeat=!~e.inArray(t.keyCode,[40,38,9,13,27]),this.move(t)},keypress:function(e){if(this.suppressKeyPressRepeat)return;this.move(e)},keyup:function(e){switch(e.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}e.stopPropagation(),e.preventDefault()},blur:function(e){var t=this;setTimeout(function(){t.hide()},150)},click:function(e){e.stopPropagation(),e.preventDefault(),this.select()},mouseenter:function(t){this.$menu.find(".active").removeClass("active"),e(t.currentTarget).addClass("active")}},e.fn.typeahead=function(n){return this.each(function(){var r=e(this),i=r.data("typeahead"),s=typeof n=="object"&&n;i||r.data("typeahead",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.typeahead.defaults={source:[],items:8,menu:'',item:'
  • ',minLength:1},e.fn.typeahead.Constructor=t,e(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var n=e(this);if(n.data("typeahead"))return;t.preventDefault(),n.typeahead(n.data())})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.options=e.extend({},e.fn.affix.defaults,n),this.$window=e(window).on("scroll.affix.data-api",e.proxy(this.checkPosition,this)).on("click.affix.data-api",e.proxy(function(){setTimeout(e.proxy(this.checkPosition,this),1)},this)),this.$element=e(t),this.checkPosition()};t.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var t=e(document).height(),n=this.$window.scrollTop(),r=this.$element.offset(),i=this.options.offset,s=i.bottom,o=i.top,u="affix affix-top affix-bottom",a;typeof i!="object"&&(s=o=i),typeof o=="function"&&(o=i.top()),typeof s=="function"&&(s=i.bottom()),a=this.unpin!=null&&n+this.unpin<=r.top?!1:s!=null&&r.top+this.$element.height()>=t-s?"bottom":o!=null&&n<=o?"top":!1;if(this.affixed===a)return;this.affixed=a,this.unpin=a=="bottom"?r.top-n:null,this.$element.removeClass(u).addClass("affix"+(a?"-"+a:""))},e.fn.affix=function(n){return this.each(function(){var r=e(this),i=r.data("affix"),s=typeof n=="object"&&n;i||r.data("affix",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.affix.Constructor=t,e.fn.affix.defaults={offset:0},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),n=t.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),t.affix(n)})})}(window.jQuery); -------------------------------------------------------------------------------- /bootstrap/css/bootstrap-responsive.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Responsive v2.2.2 3 | * 4 | * Copyright 2012 Twitter, Inc 5 | * Licensed under the Apache License v2.0 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Designed and built with all the love in the world @twitter by @mdo and @fat. 9 | */ 10 | 11 | .clearfix { 12 | *zoom: 1; 13 | } 14 | 15 | .clearfix:before, 16 | .clearfix:after { 17 | display: table; 18 | line-height: 0; 19 | content: ""; 20 | } 21 | 22 | .clearfix:after { 23 | clear: both; 24 | } 25 | 26 | .hide-text { 27 | font: 0/0 a; 28 | color: transparent; 29 | text-shadow: none; 30 | background-color: transparent; 31 | border: 0; 32 | } 33 | 34 | .input-block-level { 35 | display: block; 36 | width: 100%; 37 | min-height: 30px; 38 | -webkit-box-sizing: border-box; 39 | -moz-box-sizing: border-box; 40 | box-sizing: border-box; 41 | } 42 | 43 | .hidden { 44 | display: none; 45 | visibility: hidden; 46 | } 47 | 48 | .visible-phone { 49 | display: none !important; 50 | } 51 | 52 | .visible-tablet { 53 | display: none !important; 54 | } 55 | 56 | .hidden-desktop { 57 | display: none !important; 58 | } 59 | 60 | .visible-desktop { 61 | display: inherit !important; 62 | } 63 | 64 | @media (min-width: 768px) and (max-width: 979px) { 65 | .hidden-desktop { 66 | display: inherit !important; 67 | } 68 | .visible-desktop { 69 | display: none !important ; 70 | } 71 | .visible-tablet { 72 | display: inherit !important; 73 | } 74 | .hidden-tablet { 75 | display: none !important; 76 | } 77 | } 78 | 79 | @media (max-width: 767px) { 80 | .hidden-desktop { 81 | display: inherit !important; 82 | } 83 | .visible-desktop { 84 | display: none !important; 85 | } 86 | .visible-phone { 87 | display: inherit !important; 88 | } 89 | .hidden-phone { 90 | display: none !important; 91 | } 92 | } 93 | 94 | @media (min-width: 1200px) { 95 | .row { 96 | margin-left: -30px; 97 | *zoom: 1; 98 | } 99 | .row:before, 100 | .row:after { 101 | display: table; 102 | line-height: 0; 103 | content: ""; 104 | } 105 | .row:after { 106 | clear: both; 107 | } 108 | [class*="span"] { 109 | float: left; 110 | min-height: 1px; 111 | margin-left: 30px; 112 | } 113 | .container, 114 | .navbar-static-top .container, 115 | .navbar-fixed-top .container, 116 | .navbar-fixed-bottom .container { 117 | width: 1170px; 118 | } 119 | .span12 { 120 | width: 1170px; 121 | } 122 | .span11 { 123 | width: 1070px; 124 | } 125 | .span10 { 126 | width: 970px; 127 | } 128 | .span9 { 129 | width: 870px; 130 | } 131 | .span8 { 132 | width: 770px; 133 | } 134 | .span7 { 135 | width: 670px; 136 | } 137 | .span6 { 138 | width: 570px; 139 | } 140 | .span5 { 141 | width: 470px; 142 | } 143 | .span4 { 144 | width: 370px; 145 | } 146 | .span3 { 147 | width: 270px; 148 | } 149 | .span2 { 150 | width: 170px; 151 | } 152 | .span1 { 153 | width: 70px; 154 | } 155 | .offset12 { 156 | margin-left: 1230px; 157 | } 158 | .offset11 { 159 | margin-left: 1130px; 160 | } 161 | .offset10 { 162 | margin-left: 1030px; 163 | } 164 | .offset9 { 165 | margin-left: 930px; 166 | } 167 | .offset8 { 168 | margin-left: 830px; 169 | } 170 | .offset7 { 171 | margin-left: 730px; 172 | } 173 | .offset6 { 174 | margin-left: 630px; 175 | } 176 | .offset5 { 177 | margin-left: 530px; 178 | } 179 | .offset4 { 180 | margin-left: 430px; 181 | } 182 | .offset3 { 183 | margin-left: 330px; 184 | } 185 | .offset2 { 186 | margin-left: 230px; 187 | } 188 | .offset1 { 189 | margin-left: 130px; 190 | } 191 | .row-fluid { 192 | width: 100%; 193 | *zoom: 1; 194 | } 195 | .row-fluid:before, 196 | .row-fluid:after { 197 | display: table; 198 | line-height: 0; 199 | content: ""; 200 | } 201 | .row-fluid:after { 202 | clear: both; 203 | } 204 | .row-fluid [class*="span"] { 205 | display: block; 206 | float: left; 207 | width: 100%; 208 | min-height: 30px; 209 | margin-left: 2.564102564102564%; 210 | *margin-left: 2.5109110747408616%; 211 | -webkit-box-sizing: border-box; 212 | -moz-box-sizing: border-box; 213 | box-sizing: border-box; 214 | } 215 | .row-fluid [class*="span"]:first-child { 216 | margin-left: 0; 217 | } 218 | .row-fluid .controls-row [class*="span"] + [class*="span"] { 219 | margin-left: 2.564102564102564%; 220 | } 221 | .row-fluid .span12 { 222 | width: 100%; 223 | *width: 99.94680851063829%; 224 | } 225 | .row-fluid .span11 { 226 | width: 91.45299145299145%; 227 | *width: 91.39979996362975%; 228 | } 229 | .row-fluid .span10 { 230 | width: 82.90598290598291%; 231 | *width: 82.8527914166212%; 232 | } 233 | .row-fluid .span9 { 234 | width: 74.35897435897436%; 235 | *width: 74.30578286961266%; 236 | } 237 | .row-fluid .span8 { 238 | width: 65.81196581196582%; 239 | *width: 65.75877432260411%; 240 | } 241 | .row-fluid .span7 { 242 | width: 57.26495726495726%; 243 | *width: 57.21176577559556%; 244 | } 245 | .row-fluid .span6 { 246 | width: 48.717948717948715%; 247 | *width: 48.664757228587014%; 248 | } 249 | .row-fluid .span5 { 250 | width: 40.17094017094017%; 251 | *width: 40.11774868157847%; 252 | } 253 | .row-fluid .span4 { 254 | width: 31.623931623931625%; 255 | *width: 31.570740134569924%; 256 | } 257 | .row-fluid .span3 { 258 | width: 23.076923076923077%; 259 | *width: 23.023731587561375%; 260 | } 261 | .row-fluid .span2 { 262 | width: 14.52991452991453%; 263 | *width: 14.476723040552828%; 264 | } 265 | .row-fluid .span1 { 266 | width: 5.982905982905983%; 267 | *width: 5.929714493544281%; 268 | } 269 | .row-fluid .offset12 { 270 | margin-left: 105.12820512820512%; 271 | *margin-left: 105.02182214948171%; 272 | } 273 | .row-fluid .offset12:first-child { 274 | margin-left: 102.56410256410257%; 275 | *margin-left: 102.45771958537915%; 276 | } 277 | .row-fluid .offset11 { 278 | margin-left: 96.58119658119658%; 279 | *margin-left: 96.47481360247316%; 280 | } 281 | .row-fluid .offset11:first-child { 282 | margin-left: 94.01709401709402%; 283 | *margin-left: 93.91071103837061%; 284 | } 285 | .row-fluid .offset10 { 286 | margin-left: 88.03418803418803%; 287 | *margin-left: 87.92780505546462%; 288 | } 289 | .row-fluid .offset10:first-child { 290 | margin-left: 85.47008547008548%; 291 | *margin-left: 85.36370249136206%; 292 | } 293 | .row-fluid .offset9 { 294 | margin-left: 79.48717948717949%; 295 | *margin-left: 79.38079650845607%; 296 | } 297 | .row-fluid .offset9:first-child { 298 | margin-left: 76.92307692307693%; 299 | *margin-left: 76.81669394435352%; 300 | } 301 | .row-fluid .offset8 { 302 | margin-left: 70.94017094017094%; 303 | *margin-left: 70.83378796144753%; 304 | } 305 | .row-fluid .offset8:first-child { 306 | margin-left: 68.37606837606839%; 307 | *margin-left: 68.26968539734497%; 308 | } 309 | .row-fluid .offset7 { 310 | margin-left: 62.393162393162385%; 311 | *margin-left: 62.28677941443899%; 312 | } 313 | .row-fluid .offset7:first-child { 314 | margin-left: 59.82905982905982%; 315 | *margin-left: 59.72267685033642%; 316 | } 317 | .row-fluid .offset6 { 318 | margin-left: 53.84615384615384%; 319 | *margin-left: 53.739770867430444%; 320 | } 321 | .row-fluid .offset6:first-child { 322 | margin-left: 51.28205128205128%; 323 | *margin-left: 51.175668303327875%; 324 | } 325 | .row-fluid .offset5 { 326 | margin-left: 45.299145299145295%; 327 | *margin-left: 45.1927623204219%; 328 | } 329 | .row-fluid .offset5:first-child { 330 | margin-left: 42.73504273504273%; 331 | *margin-left: 42.62865975631933%; 332 | } 333 | .row-fluid .offset4 { 334 | margin-left: 36.75213675213675%; 335 | *margin-left: 36.645753773413354%; 336 | } 337 | .row-fluid .offset4:first-child { 338 | margin-left: 34.18803418803419%; 339 | *margin-left: 34.081651209310785%; 340 | } 341 | .row-fluid .offset3 { 342 | margin-left: 28.205128205128204%; 343 | *margin-left: 28.0987452264048%; 344 | } 345 | .row-fluid .offset3:first-child { 346 | margin-left: 25.641025641025642%; 347 | *margin-left: 25.53464266230224%; 348 | } 349 | .row-fluid .offset2 { 350 | margin-left: 19.65811965811966%; 351 | *margin-left: 19.551736679396257%; 352 | } 353 | .row-fluid .offset2:first-child { 354 | margin-left: 17.094017094017094%; 355 | *margin-left: 16.98763411529369%; 356 | } 357 | .row-fluid .offset1 { 358 | margin-left: 11.11111111111111%; 359 | *margin-left: 11.004728132387708%; 360 | } 361 | .row-fluid .offset1:first-child { 362 | margin-left: 8.547008547008547%; 363 | *margin-left: 8.440625568285142%; 364 | } 365 | input, 366 | textarea, 367 | .uneditable-input { 368 | margin-left: 0; 369 | } 370 | .controls-row [class*="span"] + [class*="span"] { 371 | margin-left: 30px; 372 | } 373 | input.span12, 374 | textarea.span12, 375 | .uneditable-input.span12 { 376 | width: 1156px; 377 | } 378 | input.span11, 379 | textarea.span11, 380 | .uneditable-input.span11 { 381 | width: 1056px; 382 | } 383 | input.span10, 384 | textarea.span10, 385 | .uneditable-input.span10 { 386 | width: 956px; 387 | } 388 | input.span9, 389 | textarea.span9, 390 | .uneditable-input.span9 { 391 | width: 856px; 392 | } 393 | input.span8, 394 | textarea.span8, 395 | .uneditable-input.span8 { 396 | width: 756px; 397 | } 398 | input.span7, 399 | textarea.span7, 400 | .uneditable-input.span7 { 401 | width: 656px; 402 | } 403 | input.span6, 404 | textarea.span6, 405 | .uneditable-input.span6 { 406 | width: 556px; 407 | } 408 | input.span5, 409 | textarea.span5, 410 | .uneditable-input.span5 { 411 | width: 456px; 412 | } 413 | input.span4, 414 | textarea.span4, 415 | .uneditable-input.span4 { 416 | width: 356px; 417 | } 418 | input.span3, 419 | textarea.span3, 420 | .uneditable-input.span3 { 421 | width: 256px; 422 | } 423 | input.span2, 424 | textarea.span2, 425 | .uneditable-input.span2 { 426 | width: 156px; 427 | } 428 | input.span1, 429 | textarea.span1, 430 | .uneditable-input.span1 { 431 | width: 56px; 432 | } 433 | .thumbnails { 434 | margin-left: -30px; 435 | } 436 | .thumbnails > li { 437 | margin-left: 30px; 438 | } 439 | .row-fluid .thumbnails { 440 | margin-left: 0; 441 | } 442 | } 443 | 444 | @media (min-width: 768px) and (max-width: 979px) { 445 | .row { 446 | margin-left: -20px; 447 | *zoom: 1; 448 | } 449 | .row:before, 450 | .row:after { 451 | display: table; 452 | line-height: 0; 453 | content: ""; 454 | } 455 | .row:after { 456 | clear: both; 457 | } 458 | [class*="span"] { 459 | float: left; 460 | min-height: 1px; 461 | margin-left: 20px; 462 | } 463 | .container, 464 | .navbar-static-top .container, 465 | .navbar-fixed-top .container, 466 | .navbar-fixed-bottom .container { 467 | width: 724px; 468 | } 469 | .span12 { 470 | width: 724px; 471 | } 472 | .span11 { 473 | width: 662px; 474 | } 475 | .span10 { 476 | width: 600px; 477 | } 478 | .span9 { 479 | width: 538px; 480 | } 481 | .span8 { 482 | width: 476px; 483 | } 484 | .span7 { 485 | width: 414px; 486 | } 487 | .span6 { 488 | width: 352px; 489 | } 490 | .span5 { 491 | width: 290px; 492 | } 493 | .span4 { 494 | width: 228px; 495 | } 496 | .span3 { 497 | width: 166px; 498 | } 499 | .span2 { 500 | width: 104px; 501 | } 502 | .span1 { 503 | width: 42px; 504 | } 505 | .offset12 { 506 | margin-left: 764px; 507 | } 508 | .offset11 { 509 | margin-left: 702px; 510 | } 511 | .offset10 { 512 | margin-left: 640px; 513 | } 514 | .offset9 { 515 | margin-left: 578px; 516 | } 517 | .offset8 { 518 | margin-left: 516px; 519 | } 520 | .offset7 { 521 | margin-left: 454px; 522 | } 523 | .offset6 { 524 | margin-left: 392px; 525 | } 526 | .offset5 { 527 | margin-left: 330px; 528 | } 529 | .offset4 { 530 | margin-left: 268px; 531 | } 532 | .offset3 { 533 | margin-left: 206px; 534 | } 535 | .offset2 { 536 | margin-left: 144px; 537 | } 538 | .offset1 { 539 | margin-left: 82px; 540 | } 541 | .row-fluid { 542 | width: 100%; 543 | *zoom: 1; 544 | } 545 | .row-fluid:before, 546 | .row-fluid:after { 547 | display: table; 548 | line-height: 0; 549 | content: ""; 550 | } 551 | .row-fluid:after { 552 | clear: both; 553 | } 554 | .row-fluid [class*="span"] { 555 | display: block; 556 | float: left; 557 | width: 100%; 558 | min-height: 30px; 559 | margin-left: 2.7624309392265194%; 560 | *margin-left: 2.709239449864817%; 561 | -webkit-box-sizing: border-box; 562 | -moz-box-sizing: border-box; 563 | box-sizing: border-box; 564 | } 565 | .row-fluid [class*="span"]:first-child { 566 | margin-left: 0; 567 | } 568 | .row-fluid .controls-row [class*="span"] + [class*="span"] { 569 | margin-left: 2.7624309392265194%; 570 | } 571 | .row-fluid .span12 { 572 | width: 100%; 573 | *width: 99.94680851063829%; 574 | } 575 | .row-fluid .span11 { 576 | width: 91.43646408839778%; 577 | *width: 91.38327259903608%; 578 | } 579 | .row-fluid .span10 { 580 | width: 82.87292817679558%; 581 | *width: 82.81973668743387%; 582 | } 583 | .row-fluid .span9 { 584 | width: 74.30939226519337%; 585 | *width: 74.25620077583166%; 586 | } 587 | .row-fluid .span8 { 588 | width: 65.74585635359117%; 589 | *width: 65.69266486422946%; 590 | } 591 | .row-fluid .span7 { 592 | width: 57.18232044198895%; 593 | *width: 57.12912895262725%; 594 | } 595 | .row-fluid .span6 { 596 | width: 48.61878453038674%; 597 | *width: 48.56559304102504%; 598 | } 599 | .row-fluid .span5 { 600 | width: 40.05524861878453%; 601 | *width: 40.00205712942283%; 602 | } 603 | .row-fluid .span4 { 604 | width: 31.491712707182323%; 605 | *width: 31.43852121782062%; 606 | } 607 | .row-fluid .span3 { 608 | width: 22.92817679558011%; 609 | *width: 22.87498530621841%; 610 | } 611 | .row-fluid .span2 { 612 | width: 14.3646408839779%; 613 | *width: 14.311449394616199%; 614 | } 615 | .row-fluid .span1 { 616 | width: 5.801104972375691%; 617 | *width: 5.747913483013988%; 618 | } 619 | .row-fluid .offset12 { 620 | margin-left: 105.52486187845304%; 621 | *margin-left: 105.41847889972962%; 622 | } 623 | .row-fluid .offset12:first-child { 624 | margin-left: 102.76243093922652%; 625 | *margin-left: 102.6560479605031%; 626 | } 627 | .row-fluid .offset11 { 628 | margin-left: 96.96132596685082%; 629 | *margin-left: 96.8549429881274%; 630 | } 631 | .row-fluid .offset11:first-child { 632 | margin-left: 94.1988950276243%; 633 | *margin-left: 94.09251204890089%; 634 | } 635 | .row-fluid .offset10 { 636 | margin-left: 88.39779005524862%; 637 | *margin-left: 88.2914070765252%; 638 | } 639 | .row-fluid .offset10:first-child { 640 | margin-left: 85.6353591160221%; 641 | *margin-left: 85.52897613729868%; 642 | } 643 | .row-fluid .offset9 { 644 | margin-left: 79.8342541436464%; 645 | *margin-left: 79.72787116492299%; 646 | } 647 | .row-fluid .offset9:first-child { 648 | margin-left: 77.07182320441989%; 649 | *margin-left: 76.96544022569647%; 650 | } 651 | .row-fluid .offset8 { 652 | margin-left: 71.2707182320442%; 653 | *margin-left: 71.16433525332079%; 654 | } 655 | .row-fluid .offset8:first-child { 656 | margin-left: 68.50828729281768%; 657 | *margin-left: 68.40190431409427%; 658 | } 659 | .row-fluid .offset7 { 660 | margin-left: 62.70718232044199%; 661 | *margin-left: 62.600799341718584%; 662 | } 663 | .row-fluid .offset7:first-child { 664 | margin-left: 59.94475138121547%; 665 | *margin-left: 59.838368402492065%; 666 | } 667 | .row-fluid .offset6 { 668 | margin-left: 54.14364640883978%; 669 | *margin-left: 54.037263430116376%; 670 | } 671 | .row-fluid .offset6:first-child { 672 | margin-left: 51.38121546961326%; 673 | *margin-left: 51.27483249088986%; 674 | } 675 | .row-fluid .offset5 { 676 | margin-left: 45.58011049723757%; 677 | *margin-left: 45.47372751851417%; 678 | } 679 | .row-fluid .offset5:first-child { 680 | margin-left: 42.81767955801105%; 681 | *margin-left: 42.71129657928765%; 682 | } 683 | .row-fluid .offset4 { 684 | margin-left: 37.01657458563536%; 685 | *margin-left: 36.91019160691196%; 686 | } 687 | .row-fluid .offset4:first-child { 688 | margin-left: 34.25414364640884%; 689 | *margin-left: 34.14776066768544%; 690 | } 691 | .row-fluid .offset3 { 692 | margin-left: 28.45303867403315%; 693 | *margin-left: 28.346655695309746%; 694 | } 695 | .row-fluid .offset3:first-child { 696 | margin-left: 25.69060773480663%; 697 | *margin-left: 25.584224756083227%; 698 | } 699 | .row-fluid .offset2 { 700 | margin-left: 19.88950276243094%; 701 | *margin-left: 19.783119783707537%; 702 | } 703 | .row-fluid .offset2:first-child { 704 | margin-left: 17.12707182320442%; 705 | *margin-left: 17.02068884448102%; 706 | } 707 | .row-fluid .offset1 { 708 | margin-left: 11.32596685082873%; 709 | *margin-left: 11.219583872105325%; 710 | } 711 | .row-fluid .offset1:first-child { 712 | margin-left: 8.56353591160221%; 713 | *margin-left: 8.457152932878806%; 714 | } 715 | input, 716 | textarea, 717 | .uneditable-input { 718 | margin-left: 0; 719 | } 720 | .controls-row [class*="span"] + [class*="span"] { 721 | margin-left: 20px; 722 | } 723 | input.span12, 724 | textarea.span12, 725 | .uneditable-input.span12 { 726 | width: 710px; 727 | } 728 | input.span11, 729 | textarea.span11, 730 | .uneditable-input.span11 { 731 | width: 648px; 732 | } 733 | input.span10, 734 | textarea.span10, 735 | .uneditable-input.span10 { 736 | width: 586px; 737 | } 738 | input.span9, 739 | textarea.span9, 740 | .uneditable-input.span9 { 741 | width: 524px; 742 | } 743 | input.span8, 744 | textarea.span8, 745 | .uneditable-input.span8 { 746 | width: 462px; 747 | } 748 | input.span7, 749 | textarea.span7, 750 | .uneditable-input.span7 { 751 | width: 400px; 752 | } 753 | input.span6, 754 | textarea.span6, 755 | .uneditable-input.span6 { 756 | width: 338px; 757 | } 758 | input.span5, 759 | textarea.span5, 760 | .uneditable-input.span5 { 761 | width: 276px; 762 | } 763 | input.span4, 764 | textarea.span4, 765 | .uneditable-input.span4 { 766 | width: 214px; 767 | } 768 | input.span3, 769 | textarea.span3, 770 | .uneditable-input.span3 { 771 | width: 152px; 772 | } 773 | input.span2, 774 | textarea.span2, 775 | .uneditable-input.span2 { 776 | width: 90px; 777 | } 778 | input.span1, 779 | textarea.span1, 780 | .uneditable-input.span1 { 781 | width: 28px; 782 | } 783 | } 784 | 785 | @media (max-width: 767px) { 786 | body { 787 | padding-right: 20px; 788 | padding-left: 20px; 789 | } 790 | .navbar-fixed-top, 791 | .navbar-fixed-bottom, 792 | .navbar-static-top { 793 | margin-right: -20px; 794 | margin-left: -20px; 795 | } 796 | .container-fluid { 797 | padding: 0; 798 | } 799 | .dl-horizontal dt { 800 | float: none; 801 | width: auto; 802 | clear: none; 803 | text-align: left; 804 | } 805 | .dl-horizontal dd { 806 | margin-left: 0; 807 | } 808 | .container { 809 | width: auto; 810 | } 811 | .row-fluid { 812 | width: 100%; 813 | } 814 | .row, 815 | .thumbnails { 816 | margin-left: 0; 817 | } 818 | .thumbnails > li { 819 | float: none; 820 | margin-left: 0; 821 | } 822 | [class*="span"], 823 | .uneditable-input[class*="span"], 824 | .row-fluid [class*="span"] { 825 | display: block; 826 | float: none; 827 | width: 100%; 828 | margin-left: 0; 829 | -webkit-box-sizing: border-box; 830 | -moz-box-sizing: border-box; 831 | box-sizing: border-box; 832 | } 833 | .span12, 834 | .row-fluid .span12 { 835 | width: 100%; 836 | -webkit-box-sizing: border-box; 837 | -moz-box-sizing: border-box; 838 | box-sizing: border-box; 839 | } 840 | .row-fluid [class*="offset"]:first-child { 841 | margin-left: 0; 842 | } 843 | .input-large, 844 | .input-xlarge, 845 | .input-xxlarge, 846 | input[class*="span"], 847 | select[class*="span"], 848 | textarea[class*="span"], 849 | .uneditable-input { 850 | display: block; 851 | width: 100%; 852 | min-height: 30px; 853 | -webkit-box-sizing: border-box; 854 | -moz-box-sizing: border-box; 855 | box-sizing: border-box; 856 | } 857 | .input-prepend input, 858 | .input-append input, 859 | .input-prepend input[class*="span"], 860 | .input-append input[class*="span"] { 861 | display: inline-block; 862 | width: auto; 863 | } 864 | .controls-row [class*="span"] + [class*="span"] { 865 | margin-left: 0; 866 | } 867 | .modal { 868 | position: fixed; 869 | top: 20px; 870 | right: 20px; 871 | left: 20px; 872 | width: auto; 873 | margin: 0; 874 | } 875 | .modal.fade { 876 | top: -100px; 877 | } 878 | .modal.fade.in { 879 | top: 20px; 880 | } 881 | } 882 | 883 | @media (max-width: 480px) { 884 | .nav-collapse { 885 | -webkit-transform: translate3d(0, 0, 0); 886 | } 887 | .page-header h1 small { 888 | display: block; 889 | line-height: 20px; 890 | } 891 | input[type="checkbox"], 892 | input[type="radio"] { 893 | border: 1px solid #ccc; 894 | } 895 | .form-horizontal .control-label { 896 | float: none; 897 | width: auto; 898 | padding-top: 0; 899 | text-align: left; 900 | } 901 | .form-horizontal .controls { 902 | margin-left: 0; 903 | } 904 | .form-horizontal .control-list { 905 | padding-top: 0; 906 | } 907 | .form-horizontal .form-actions { 908 | padding-right: 10px; 909 | padding-left: 10px; 910 | } 911 | .media .pull-left, 912 | .media .pull-right { 913 | display: block; 914 | float: none; 915 | margin-bottom: 10px; 916 | } 917 | .media-object { 918 | margin-right: 0; 919 | margin-left: 0; 920 | } 921 | .modal { 922 | top: 10px; 923 | right: 10px; 924 | left: 10px; 925 | } 926 | .modal-header .close { 927 | padding: 10px; 928 | margin: -10px; 929 | } 930 | .carousel-caption { 931 | position: static; 932 | } 933 | } 934 | 935 | @media (max-width: 979px) { 936 | body { 937 | padding-top: 0; 938 | } 939 | .navbar-fixed-top, 940 | .navbar-fixed-bottom { 941 | position: static; 942 | } 943 | .navbar-fixed-top { 944 | margin-bottom: 20px; 945 | } 946 | .navbar-fixed-bottom { 947 | margin-top: 20px; 948 | } 949 | .navbar-fixed-top .navbar-inner, 950 | .navbar-fixed-bottom .navbar-inner { 951 | padding: 5px; 952 | } 953 | .navbar .container { 954 | width: auto; 955 | padding: 0; 956 | } 957 | .navbar .brand { 958 | padding-right: 10px; 959 | padding-left: 10px; 960 | margin: 0 0 0 -5px; 961 | } 962 | .nav-collapse { 963 | clear: both; 964 | } 965 | .nav-collapse .nav { 966 | float: none; 967 | margin: 0 0 10px; 968 | } 969 | .nav-collapse .nav > li { 970 | float: none; 971 | } 972 | .nav-collapse .nav > li > a { 973 | margin-bottom: 2px; 974 | } 975 | .nav-collapse .nav > .divider-vertical { 976 | display: none; 977 | } 978 | .nav-collapse .nav .nav-header { 979 | color: #777777; 980 | text-shadow: none; 981 | } 982 | .nav-collapse .nav > li > a, 983 | .nav-collapse .dropdown-menu a { 984 | padding: 9px 15px; 985 | font-weight: bold; 986 | color: #777777; 987 | -webkit-border-radius: 3px; 988 | -moz-border-radius: 3px; 989 | border-radius: 3px; 990 | } 991 | .nav-collapse .btn { 992 | padding: 4px 10px 4px; 993 | font-weight: normal; 994 | -webkit-border-radius: 4px; 995 | -moz-border-radius: 4px; 996 | border-radius: 4px; 997 | } 998 | .nav-collapse .dropdown-menu li + li a { 999 | margin-bottom: 2px; 1000 | } 1001 | .nav-collapse .nav > li > a:hover, 1002 | .nav-collapse .dropdown-menu a:hover { 1003 | background-color: #f2f2f2; 1004 | } 1005 | .navbar-inverse .nav-collapse .nav > li > a, 1006 | .navbar-inverse .nav-collapse .dropdown-menu a { 1007 | color: #999999; 1008 | } 1009 | .navbar-inverse .nav-collapse .nav > li > a:hover, 1010 | .navbar-inverse .nav-collapse .dropdown-menu a:hover { 1011 | background-color: #111111; 1012 | } 1013 | .nav-collapse.in .btn-group { 1014 | padding: 0; 1015 | margin-top: 5px; 1016 | } 1017 | .nav-collapse .dropdown-menu { 1018 | position: static; 1019 | top: auto; 1020 | left: auto; 1021 | display: none; 1022 | float: none; 1023 | max-width: none; 1024 | padding: 0; 1025 | margin: 0 15px; 1026 | background-color: transparent; 1027 | border: none; 1028 | -webkit-border-radius: 0; 1029 | -moz-border-radius: 0; 1030 | border-radius: 0; 1031 | -webkit-box-shadow: none; 1032 | -moz-box-shadow: none; 1033 | box-shadow: none; 1034 | } 1035 | .nav-collapse .open > .dropdown-menu { 1036 | display: block; 1037 | } 1038 | .nav-collapse .dropdown-menu:before, 1039 | .nav-collapse .dropdown-menu:after { 1040 | display: none; 1041 | } 1042 | .nav-collapse .dropdown-menu .divider { 1043 | display: none; 1044 | } 1045 | .nav-collapse .nav > li > .dropdown-menu:before, 1046 | .nav-collapse .nav > li > .dropdown-menu:after { 1047 | display: none; 1048 | } 1049 | .nav-collapse .navbar-form, 1050 | .nav-collapse .navbar-search { 1051 | float: none; 1052 | padding: 10px 15px; 1053 | margin: 10px 0; 1054 | border-top: 1px solid #f2f2f2; 1055 | border-bottom: 1px solid #f2f2f2; 1056 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); 1057 | -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); 1058 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); 1059 | } 1060 | .navbar-inverse .nav-collapse .navbar-form, 1061 | .navbar-inverse .nav-collapse .navbar-search { 1062 | border-top-color: #111111; 1063 | border-bottom-color: #111111; 1064 | } 1065 | .navbar .nav-collapse .nav.pull-right { 1066 | float: none; 1067 | margin-left: 0; 1068 | } 1069 | .nav-collapse, 1070 | .nav-collapse.collapse { 1071 | height: 0; 1072 | overflow: hidden; 1073 | } 1074 | .navbar .btn-navbar { 1075 | display: block; 1076 | } 1077 | .navbar-static .navbar-inner { 1078 | padding-right: 10px; 1079 | padding-left: 10px; 1080 | } 1081 | } 1082 | 1083 | @media (min-width: 980px) { 1084 | .nav-collapse.collapse { 1085 | height: auto !important; 1086 | overflow: visible !important; 1087 | } 1088 | } 1089 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 149 | 150 | 151 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 190 | 191 | 192 | 193 | 196 | 197 | 200 | 201 | 202 | 203 | 206 | 207 | 210 | 211 | 214 | 215 | 216 | 217 | 220 | 221 | 224 | 225 | 228 | 229 | 230 | 231 | 234 | 235 | 238 | 239 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 291 | 292 | 312 | 313 | 331 | 332 | 350 | 351 | 369 | 370 | 389 | 390 | 414 | 415 | 436 | 437 | 453 | 454 | 476 | 477 | 478 | 479 | 480 | 499 | 500 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 554 | 555 | 556 | 557 | 1392773101310 558 | 1392773101310 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 629 | 630 | 633 | 634 | 635 | 636 | 637 | 638 | file://$PROJECT_DIR$/Engine/ExecAndPrint.py 639 | 44 640 | 642 | 643 | file://$PROJECT_DIR$/pompem.py 644 | 36 645 | 647 | 648 | 649 | 650 | 651 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | -------------------------------------------------------------------------------- /bootstrap/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | /* =================================================== 2 | * bootstrap-transition.js v2.2.2 3 | * http://twitter.github.com/bootstrap/javascript.html#transitions 4 | * =================================================== 5 | * Copyright 2012 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | 21 | !function ($) { 22 | 23 | "use strict"; // jshint ;_; 24 | 25 | 26 | /* CSS TRANSITION SUPPORT (http://www.modernizr.com/) 27 | * ======================================================= */ 28 | 29 | $(function () { 30 | 31 | $.support.transition = (function () { 32 | 33 | var transitionEnd = (function () { 34 | 35 | var el = document.createElement('bootstrap') 36 | , transEndEventNames = { 37 | 'WebkitTransition' : 'webkitTransitionEnd' 38 | , 'MozTransition' : 'transitionend' 39 | , 'OTransition' : 'oTransitionEnd otransitionend' 40 | , 'transition' : 'transitionend' 41 | } 42 | , name 43 | 44 | for (name in transEndEventNames){ 45 | if (el.style[name] !== undefined) { 46 | return transEndEventNames[name] 47 | } 48 | } 49 | 50 | }()) 51 | 52 | return transitionEnd && { 53 | end: transitionEnd 54 | } 55 | 56 | })() 57 | 58 | }) 59 | 60 | }(window.jQuery);/* ========================================================== 61 | * bootstrap-alert.js v2.2.2 62 | * http://twitter.github.com/bootstrap/javascript.html#alerts 63 | * ========================================================== 64 | * Copyright 2012 Twitter, Inc. 65 | * 66 | * Licensed under the Apache License, Version 2.0 (the "License"); 67 | * you may not use this file except in compliance with the License. 68 | * You may obtain a copy of the License at 69 | * 70 | * http://www.apache.org/licenses/LICENSE-2.0 71 | * 72 | * Unless required by applicable law or agreed to in writing, software 73 | * distributed under the License is distributed on an "AS IS" BASIS, 74 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 75 | * See the License for the specific language governing permissions and 76 | * limitations under the License. 77 | * ========================================================== */ 78 | 79 | 80 | !function ($) { 81 | 82 | "use strict"; // jshint ;_; 83 | 84 | 85 | /* ALERT CLASS DEFINITION 86 | * ====================== */ 87 | 88 | var dismiss = '[data-dismiss="alert"]' 89 | , Alert = function (el) { 90 | $(el).on('click', dismiss, this.close) 91 | } 92 | 93 | Alert.prototype.close = function (e) { 94 | var $this = $(this) 95 | , selector = $this.attr('data-target') 96 | , $parent 97 | 98 | if (!selector) { 99 | selector = $this.attr('href') 100 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 101 | } 102 | 103 | $parent = $(selector) 104 | 105 | e && e.preventDefault() 106 | 107 | $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent()) 108 | 109 | $parent.trigger(e = $.Event('close')) 110 | 111 | if (e.isDefaultPrevented()) return 112 | 113 | $parent.removeClass('in') 114 | 115 | function removeElement() { 116 | $parent 117 | .trigger('closed') 118 | .remove() 119 | } 120 | 121 | $.support.transition && $parent.hasClass('fade') ? 122 | $parent.on($.support.transition.end, removeElement) : 123 | removeElement() 124 | } 125 | 126 | 127 | /* ALERT PLUGIN DEFINITION 128 | * ======================= */ 129 | 130 | $.fn.alert = function (option) { 131 | return this.each(function () { 132 | var $this = $(this) 133 | , data = $this.data('alert') 134 | if (!data) $this.data('alert', (data = new Alert(this))) 135 | if (typeof option == 'string') data[option].call($this) 136 | }) 137 | } 138 | 139 | $.fn.alert.Constructor = Alert 140 | 141 | 142 | /* ALERT DATA-API 143 | * ============== */ 144 | 145 | $(document).on('click.alert.data-api', dismiss, Alert.prototype.close) 146 | 147 | }(window.jQuery); 148 | /* ============================================================ 149 | * bootstrap-button.js v2.2.2 150 | * http://twitter.github.com/bootstrap/javascript.html#buttons 151 | * ============================================================ 152 | * Copyright 2012 Twitter, Inc. 153 | * 154 | * Licensed under the Apache License, Version 2.0 (the "License"); 155 | * you may not use this file except in compliance with the License. 156 | * You may obtain a copy of the License at 157 | * 158 | * http://www.apache.org/licenses/LICENSE-2.0 159 | * 160 | * Unless required by applicable law or agreed to in writing, software 161 | * distributed under the License is distributed on an "AS IS" BASIS, 162 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 163 | * See the License for the specific language governing permissions and 164 | * limitations under the License. 165 | * ============================================================ */ 166 | 167 | 168 | !function ($) { 169 | 170 | "use strict"; // jshint ;_; 171 | 172 | 173 | /* BUTTON PUBLIC CLASS DEFINITION 174 | * ============================== */ 175 | 176 | var Button = function (element, options) { 177 | this.$element = $(element) 178 | this.options = $.extend({}, $.fn.button.defaults, options) 179 | } 180 | 181 | Button.prototype.setState = function (state) { 182 | var d = 'disabled' 183 | , $el = this.$element 184 | , data = $el.data() 185 | , val = $el.is('input') ? 'val' : 'html' 186 | 187 | state = state + 'Text' 188 | data.resetText || $el.data('resetText', $el[val]()) 189 | 190 | $el[val](data[state] || this.options[state]) 191 | 192 | // push to event loop to allow forms to submit 193 | setTimeout(function () { 194 | state == 'loadingText' ? 195 | $el.addClass(d).attr(d, d) : 196 | $el.removeClass(d).removeAttr(d) 197 | }, 0) 198 | } 199 | 200 | Button.prototype.toggle = function () { 201 | var $parent = this.$element.closest('[data-toggle="buttons-radio"]') 202 | 203 | $parent && $parent 204 | .find('.active') 205 | .removeClass('active') 206 | 207 | this.$element.toggleClass('active') 208 | } 209 | 210 | 211 | /* BUTTON PLUGIN DEFINITION 212 | * ======================== */ 213 | 214 | $.fn.button = function (option) { 215 | return this.each(function () { 216 | var $this = $(this) 217 | , data = $this.data('button') 218 | , options = typeof option == 'object' && option 219 | if (!data) $this.data('button', (data = new Button(this, options))) 220 | if (option == 'toggle') data.toggle() 221 | else if (option) data.setState(option) 222 | }) 223 | } 224 | 225 | $.fn.button.defaults = { 226 | loadingText: 'loading...' 227 | } 228 | 229 | $.fn.button.Constructor = Button 230 | 231 | 232 | /* BUTTON DATA-API 233 | * =============== */ 234 | 235 | $(document).on('click.button.data-api', '[data-toggle^=button]', function (e) { 236 | var $btn = $(e.target) 237 | if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') 238 | $btn.button('toggle') 239 | }) 240 | 241 | }(window.jQuery);/* ========================================================== 242 | * bootstrap-carousel.js v2.2.2 243 | * http://twitter.github.com/bootstrap/javascript.html#carousel 244 | * ========================================================== 245 | * Copyright 2012 Twitter, Inc. 246 | * 247 | * Licensed under the Apache License, Version 2.0 (the "License"); 248 | * you may not use this file except in compliance with the License. 249 | * You may obtain a copy of the License at 250 | * 251 | * http://www.apache.org/licenses/LICENSE-2.0 252 | * 253 | * Unless required by applicable law or agreed to in writing, software 254 | * distributed under the License is distributed on an "AS IS" BASIS, 255 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 256 | * See the License for the specific language governing permissions and 257 | * limitations under the License. 258 | * ========================================================== */ 259 | 260 | 261 | !function ($) { 262 | 263 | "use strict"; // jshint ;_; 264 | 265 | 266 | /* CAROUSEL CLASS DEFINITION 267 | * ========================= */ 268 | 269 | var Carousel = function (element, options) { 270 | this.$element = $(element) 271 | this.options = options 272 | this.options.slide && this.slide(this.options.slide) 273 | this.options.pause == 'hover' && this.$element 274 | .on('mouseenter', $.proxy(this.pause, this)) 275 | .on('mouseleave', $.proxy(this.cycle, this)) 276 | } 277 | 278 | Carousel.prototype = { 279 | 280 | cycle: function (e) { 281 | if (!e) this.paused = false 282 | this.options.interval 283 | && !this.paused 284 | && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) 285 | return this 286 | } 287 | 288 | , to: function (pos) { 289 | var $active = this.$element.find('.item.active') 290 | , children = $active.parent().children() 291 | , activePos = children.index($active) 292 | , that = this 293 | 294 | if (pos > (children.length - 1) || pos < 0) return 295 | 296 | if (this.sliding) { 297 | return this.$element.one('slid', function () { 298 | that.to(pos) 299 | }) 300 | } 301 | 302 | if (activePos == pos) { 303 | return this.pause().cycle() 304 | } 305 | 306 | return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos])) 307 | } 308 | 309 | , pause: function (e) { 310 | if (!e) this.paused = true 311 | if (this.$element.find('.next, .prev').length && $.support.transition.end) { 312 | this.$element.trigger($.support.transition.end) 313 | this.cycle() 314 | } 315 | clearInterval(this.interval) 316 | this.interval = null 317 | return this 318 | } 319 | 320 | , next: function () { 321 | if (this.sliding) return 322 | return this.slide('next') 323 | } 324 | 325 | , prev: function () { 326 | if (this.sliding) return 327 | return this.slide('prev') 328 | } 329 | 330 | , slide: function (type, next) { 331 | var $active = this.$element.find('.item.active') 332 | , $next = next || $active[type]() 333 | , isCycling = this.interval 334 | , direction = type == 'next' ? 'left' : 'right' 335 | , fallback = type == 'next' ? 'first' : 'last' 336 | , that = this 337 | , e 338 | 339 | this.sliding = true 340 | 341 | isCycling && this.pause() 342 | 343 | $next = $next.length ? $next : this.$element.find('.item')[fallback]() 344 | 345 | e = $.Event('slide', { 346 | relatedTarget: $next[0] 347 | }) 348 | 349 | if ($next.hasClass('active')) return 350 | 351 | if ($.support.transition && this.$element.hasClass('slide')) { 352 | this.$element.trigger(e) 353 | if (e.isDefaultPrevented()) return 354 | $next.addClass(type) 355 | $next[0].offsetWidth // force reflow 356 | $active.addClass(direction) 357 | $next.addClass(direction) 358 | this.$element.one($.support.transition.end, function () { 359 | $next.removeClass([type, direction].join(' ')).addClass('active') 360 | $active.removeClass(['active', direction].join(' ')) 361 | that.sliding = false 362 | setTimeout(function () { that.$element.trigger('slid') }, 0) 363 | }) 364 | } else { 365 | this.$element.trigger(e) 366 | if (e.isDefaultPrevented()) return 367 | $active.removeClass('active') 368 | $next.addClass('active') 369 | this.sliding = false 370 | this.$element.trigger('slid') 371 | } 372 | 373 | isCycling && this.cycle() 374 | 375 | return this 376 | } 377 | 378 | } 379 | 380 | 381 | /* CAROUSEL PLUGIN DEFINITION 382 | * ========================== */ 383 | 384 | $.fn.carousel = function (option) { 385 | return this.each(function () { 386 | var $this = $(this) 387 | , data = $this.data('carousel') 388 | , options = $.extend({}, $.fn.carousel.defaults, typeof option == 'object' && option) 389 | , action = typeof option == 'string' ? option : options.slide 390 | if (!data) $this.data('carousel', (data = new Carousel(this, options))) 391 | if (typeof option == 'number') data.to(option) 392 | else if (action) data[action]() 393 | else if (options.interval) data.cycle() 394 | }) 395 | } 396 | 397 | $.fn.carousel.defaults = { 398 | interval: 5000 399 | , pause: 'hover' 400 | } 401 | 402 | $.fn.carousel.Constructor = Carousel 403 | 404 | 405 | /* CAROUSEL DATA-API 406 | * ================= */ 407 | 408 | $(document).on('click.carousel.data-api', '[data-slide]', function (e) { 409 | var $this = $(this), href 410 | , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7 411 | , options = $.extend({}, $target.data(), $this.data()) 412 | $target.carousel(options) 413 | e.preventDefault() 414 | }) 415 | 416 | }(window.jQuery);/* ============================================================= 417 | * bootstrap-collapse.js v2.2.2 418 | * http://twitter.github.com/bootstrap/javascript.html#collapse 419 | * ============================================================= 420 | * Copyright 2012 Twitter, Inc. 421 | * 422 | * Licensed under the Apache License, Version 2.0 (the "License"); 423 | * you may not use this file except in compliance with the License. 424 | * You may obtain a copy of the License at 425 | * 426 | * http://www.apache.org/licenses/LICENSE-2.0 427 | * 428 | * Unless required by applicable law or agreed to in writing, software 429 | * distributed under the License is distributed on an "AS IS" BASIS, 430 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 431 | * See the License for the specific language governing permissions and 432 | * limitations under the License. 433 | * ============================================================ */ 434 | 435 | 436 | !function ($) { 437 | 438 | "use strict"; // jshint ;_; 439 | 440 | 441 | /* COLLAPSE PUBLIC CLASS DEFINITION 442 | * ================================ */ 443 | 444 | var Collapse = function (element, options) { 445 | this.$element = $(element) 446 | this.options = $.extend({}, $.fn.collapse.defaults, options) 447 | 448 | if (this.options.parent) { 449 | this.$parent = $(this.options.parent) 450 | } 451 | 452 | this.options.toggle && this.toggle() 453 | } 454 | 455 | Collapse.prototype = { 456 | 457 | constructor: Collapse 458 | 459 | , dimension: function () { 460 | var hasWidth = this.$element.hasClass('width') 461 | return hasWidth ? 'width' : 'height' 462 | } 463 | 464 | , show: function () { 465 | var dimension 466 | , scroll 467 | , actives 468 | , hasData 469 | 470 | if (this.transitioning) return 471 | 472 | dimension = this.dimension() 473 | scroll = $.camelCase(['scroll', dimension].join('-')) 474 | actives = this.$parent && this.$parent.find('> .accordion-group > .in') 475 | 476 | if (actives && actives.length) { 477 | hasData = actives.data('collapse') 478 | if (hasData && hasData.transitioning) return 479 | actives.collapse('hide') 480 | hasData || actives.data('collapse', null) 481 | } 482 | 483 | this.$element[dimension](0) 484 | this.transition('addClass', $.Event('show'), 'shown') 485 | $.support.transition && this.$element[dimension](this.$element[0][scroll]) 486 | } 487 | 488 | , hide: function () { 489 | var dimension 490 | if (this.transitioning) return 491 | dimension = this.dimension() 492 | this.reset(this.$element[dimension]()) 493 | this.transition('removeClass', $.Event('hide'), 'hidden') 494 | this.$element[dimension](0) 495 | } 496 | 497 | , reset: function (size) { 498 | var dimension = this.dimension() 499 | 500 | this.$element 501 | .removeClass('collapse') 502 | [dimension](size || 'auto') 503 | [0].offsetWidth 504 | 505 | this.$element[size !== null ? 'addClass' : 'removeClass']('collapse') 506 | 507 | return this 508 | } 509 | 510 | , transition: function (method, startEvent, completeEvent) { 511 | var that = this 512 | , complete = function () { 513 | if (startEvent.type == 'show') that.reset() 514 | that.transitioning = 0 515 | that.$element.trigger(completeEvent) 516 | } 517 | 518 | this.$element.trigger(startEvent) 519 | 520 | if (startEvent.isDefaultPrevented()) return 521 | 522 | this.transitioning = 1 523 | 524 | this.$element[method]('in') 525 | 526 | $.support.transition && this.$element.hasClass('collapse') ? 527 | this.$element.one($.support.transition.end, complete) : 528 | complete() 529 | } 530 | 531 | , toggle: function () { 532 | this[this.$element.hasClass('in') ? 'hide' : 'show']() 533 | } 534 | 535 | } 536 | 537 | 538 | /* COLLAPSIBLE PLUGIN DEFINITION 539 | * ============================== */ 540 | 541 | $.fn.collapse = function (option) { 542 | return this.each(function () { 543 | var $this = $(this) 544 | , data = $this.data('collapse') 545 | , options = typeof option == 'object' && option 546 | if (!data) $this.data('collapse', (data = new Collapse(this, options))) 547 | if (typeof option == 'string') data[option]() 548 | }) 549 | } 550 | 551 | $.fn.collapse.defaults = { 552 | toggle: true 553 | } 554 | 555 | $.fn.collapse.Constructor = Collapse 556 | 557 | 558 | /* COLLAPSIBLE DATA-API 559 | * ==================== */ 560 | 561 | $(document).on('click.collapse.data-api', '[data-toggle=collapse]', function (e) { 562 | var $this = $(this), href 563 | , target = $this.attr('data-target') 564 | || e.preventDefault() 565 | || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7 566 | , option = $(target).data('collapse') ? 'toggle' : $this.data() 567 | $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed') 568 | $(target).collapse(option) 569 | }) 570 | 571 | }(window.jQuery);/* ============================================================ 572 | * bootstrap-dropdown.js v2.2.2 573 | * http://twitter.github.com/bootstrap/javascript.html#dropdowns 574 | * ============================================================ 575 | * Copyright 2012 Twitter, Inc. 576 | * 577 | * Licensed under the Apache License, Version 2.0 (the "License"); 578 | * you may not use this file except in compliance with the License. 579 | * You may obtain a copy of the License at 580 | * 581 | * http://www.apache.org/licenses/LICENSE-2.0 582 | * 583 | * Unless required by applicable law or agreed to in writing, software 584 | * distributed under the License is distributed on an "AS IS" BASIS, 585 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 586 | * See the License for the specific language governing permissions and 587 | * limitations under the License. 588 | * ============================================================ */ 589 | 590 | 591 | !function ($) { 592 | 593 | "use strict"; // jshint ;_; 594 | 595 | 596 | /* DROPDOWN CLASS DEFINITION 597 | * ========================= */ 598 | 599 | var toggle = '[data-toggle=dropdown]' 600 | , Dropdown = function (element) { 601 | var $el = $(element).on('click.dropdown.data-api', this.toggle) 602 | $('html').on('click.dropdown.data-api', function () { 603 | $el.parent().removeClass('open') 604 | }) 605 | } 606 | 607 | Dropdown.prototype = { 608 | 609 | constructor: Dropdown 610 | 611 | , toggle: function (e) { 612 | var $this = $(this) 613 | , $parent 614 | , isActive 615 | 616 | if ($this.is('.disabled, :disabled')) return 617 | 618 | $parent = getParent($this) 619 | 620 | isActive = $parent.hasClass('open') 621 | 622 | clearMenus() 623 | 624 | if (!isActive) { 625 | $parent.toggleClass('open') 626 | $this.focus() 627 | } 628 | 629 | return false 630 | } 631 | 632 | , keydown: function (e) { 633 | var $this 634 | , $items 635 | , $active 636 | , $parent 637 | , isActive 638 | , index 639 | 640 | if (!/(38|40|27)/.test(e.keyCode)) return 641 | 642 | $this = $(this) 643 | 644 | e.preventDefault() 645 | e.stopPropagation() 646 | 647 | if ($this.is('.disabled, :disabled')) return 648 | 649 | $parent = getParent($this) 650 | 651 | isActive = $parent.hasClass('open') 652 | 653 | if (!isActive || (isActive && e.keyCode == 27)) return $this.click() 654 | 655 | $items = $('[role=menu] li:not(.divider) a', $parent) 656 | 657 | if (!$items.length) return 658 | 659 | index = $items.index($items.filter(':focus')) 660 | 661 | if (e.keyCode == 38 && index > 0) index-- // up 662 | if (e.keyCode == 40 && index < $items.length - 1) index++ // down 663 | if (!~index) index = 0 664 | 665 | $items 666 | .eq(index) 667 | .focus() 668 | } 669 | 670 | } 671 | 672 | function clearMenus() { 673 | $(toggle).each(function () { 674 | getParent($(this)).removeClass('open') 675 | }) 676 | } 677 | 678 | function getParent($this) { 679 | var selector = $this.attr('data-target') 680 | , $parent 681 | 682 | if (!selector) { 683 | selector = $this.attr('href') 684 | selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 685 | } 686 | 687 | $parent = $(selector) 688 | $parent.length || ($parent = $this.parent()) 689 | 690 | return $parent 691 | } 692 | 693 | 694 | /* DROPDOWN PLUGIN DEFINITION 695 | * ========================== */ 696 | 697 | $.fn.dropdown = function (option) { 698 | return this.each(function () { 699 | var $this = $(this) 700 | , data = $this.data('dropdown') 701 | if (!data) $this.data('dropdown', (data = new Dropdown(this))) 702 | if (typeof option == 'string') data[option].call($this) 703 | }) 704 | } 705 | 706 | $.fn.dropdown.Constructor = Dropdown 707 | 708 | 709 | /* APPLY TO STANDARD DROPDOWN ELEMENTS 710 | * =================================== */ 711 | 712 | $(document) 713 | .on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus) 714 | .on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() }) 715 | .on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle) 716 | .on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown) 717 | 718 | }(window.jQuery);/* ========================================================= 719 | * bootstrap-modal.js v2.2.2 720 | * http://twitter.github.com/bootstrap/javascript.html#modals 721 | * ========================================================= 722 | * Copyright 2012 Twitter, Inc. 723 | * 724 | * Licensed under the Apache License, Version 2.0 (the "License"); 725 | * you may not use this file except in compliance with the License. 726 | * You may obtain a copy of the License at 727 | * 728 | * http://www.apache.org/licenses/LICENSE-2.0 729 | * 730 | * Unless required by applicable law or agreed to in writing, software 731 | * distributed under the License is distributed on an "AS IS" BASIS, 732 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 733 | * See the License for the specific language governing permissions and 734 | * limitations under the License. 735 | * ========================================================= */ 736 | 737 | 738 | !function ($) { 739 | 740 | "use strict"; // jshint ;_; 741 | 742 | 743 | /* MODAL CLASS DEFINITION 744 | * ====================== */ 745 | 746 | var Modal = function (element, options) { 747 | this.options = options 748 | this.$element = $(element) 749 | .delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this)) 750 | this.options.remote && this.$element.find('.modal-body').load(this.options.remote) 751 | } 752 | 753 | Modal.prototype = { 754 | 755 | constructor: Modal 756 | 757 | , toggle: function () { 758 | return this[!this.isShown ? 'show' : 'hide']() 759 | } 760 | 761 | , show: function () { 762 | var that = this 763 | , e = $.Event('show') 764 | 765 | this.$element.trigger(e) 766 | 767 | if (this.isShown || e.isDefaultPrevented()) return 768 | 769 | this.isShown = true 770 | 771 | this.escape() 772 | 773 | this.backdrop(function () { 774 | var transition = $.support.transition && that.$element.hasClass('fade') 775 | 776 | if (!that.$element.parent().length) { 777 | that.$element.appendTo(document.body) //don't move modals dom position 778 | } 779 | 780 | that.$element 781 | .show() 782 | 783 | if (transition) { 784 | that.$element[0].offsetWidth // force reflow 785 | } 786 | 787 | that.$element 788 | .addClass('in') 789 | .attr('aria-hidden', false) 790 | 791 | that.enforceFocus() 792 | 793 | transition ? 794 | that.$element.one($.support.transition.end, function () { that.$element.focus().trigger('shown') }) : 795 | that.$element.focus().trigger('shown') 796 | 797 | }) 798 | } 799 | 800 | , hide: function (e) { 801 | e && e.preventDefault() 802 | 803 | var that = this 804 | 805 | e = $.Event('hide') 806 | 807 | this.$element.trigger(e) 808 | 809 | if (!this.isShown || e.isDefaultPrevented()) return 810 | 811 | this.isShown = false 812 | 813 | this.escape() 814 | 815 | $(document).off('focusin.modal') 816 | 817 | this.$element 818 | .removeClass('in') 819 | .attr('aria-hidden', true) 820 | 821 | $.support.transition && this.$element.hasClass('fade') ? 822 | this.hideWithTransition() : 823 | this.hideModal() 824 | } 825 | 826 | , enforceFocus: function () { 827 | var that = this 828 | $(document).on('focusin.modal', function (e) { 829 | if (that.$element[0] !== e.target && !that.$element.has(e.target).length) { 830 | that.$element.focus() 831 | } 832 | }) 833 | } 834 | 835 | , escape: function () { 836 | var that = this 837 | if (this.isShown && this.options.keyboard) { 838 | this.$element.on('keyup.dismiss.modal', function ( e ) { 839 | e.which == 27 && that.hide() 840 | }) 841 | } else if (!this.isShown) { 842 | this.$element.off('keyup.dismiss.modal') 843 | } 844 | } 845 | 846 | , hideWithTransition: function () { 847 | var that = this 848 | , timeout = setTimeout(function () { 849 | that.$element.off($.support.transition.end) 850 | that.hideModal() 851 | }, 500) 852 | 853 | this.$element.one($.support.transition.end, function () { 854 | clearTimeout(timeout) 855 | that.hideModal() 856 | }) 857 | } 858 | 859 | , hideModal: function (that) { 860 | this.$element 861 | .hide() 862 | .trigger('hidden') 863 | 864 | this.backdrop() 865 | } 866 | 867 | , removeBackdrop: function () { 868 | this.$backdrop.remove() 869 | this.$backdrop = null 870 | } 871 | 872 | , backdrop: function (callback) { 873 | var that = this 874 | , animate = this.$element.hasClass('fade') ? 'fade' : '' 875 | 876 | if (this.isShown && this.options.backdrop) { 877 | var doAnimate = $.support.transition && animate 878 | 879 | this.$backdrop = $('