Moved raylib webpage to docs folder
raylib webpage has been completely reorganized and moved from gh-pages (a pain to work with) to docs folder. Useless libs have been removed, webs have been renamed, etc. Now it would be easier (hopefully) to update webpage. :)
							
								
								
									
										66
									
								
								docs/common/css/examples.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,66 @@
 | 
			
		||||
#container .mix{ position: relative;  display: none; }
 | 
			
		||||
#container .extext { top: 160px!important; width: 400px!important; }
 | 
			
		||||
 | 
			
		||||
#filter_menu { width: 820px; height: 80px; margin-left: 18px; }
 | 
			
		||||
 | 
			
		||||
.legendButton { padding:5px 15px; float:left; margin-left:10px; margin-right:10px; margin-bottom: 20px; }
 | 
			
		||||
#core { cursor:pointer; background-color:#e1e1e1; color:#5c5a5a; border:3px solid #898888; }
 | 
			
		||||
#shapes { cursor:pointer; background-color:#f0d6d6; color:#c55757; border:3px solid #e66666; }
 | 
			
		||||
#textures { cursor:pointer; background-color:#c8eabf; color:#60815a; border:3px solid #75a06d; }
 | 
			
		||||
#text { cursor:pointer; background-color:#bef0dd; color:#377764; border:3px solid #52b296; }
 | 
			
		||||
#models { cursor:pointer; background-color:#bedce8; color:#417794; border:3px solid #5d9cbd; }
 | 
			
		||||
#shaders { cursor:pointer; background-color:#e2c3f5; color:#a864d2; border:3px solid #a864d2; }
 | 
			
		||||
#audio { cursor:pointer; background-color:#ebddae; color:#8c7539; border:3px solid #d3b157; }
 | 
			
		||||
 | 
			
		||||
.core:hover { background-color:#e1e1e1; color:#5c5a5a; border:4px solid #898888; }
 | 
			
		||||
.shapes:hover { background-color:#f0d6d6; color:#c55757; border:4px solid #e66666; }
 | 
			
		||||
.textures:hover { background-color:#c8eabf; color:#60815a; border:4px solid #75a06d; }
 | 
			
		||||
.text:hover { background-color:#bef0dd; color:#377764; border:4px solid #52b296; }
 | 
			
		||||
.models:hover { background-color:#bedce8; color:#417794; border:4px solid #5d9cbd; }
 | 
			
		||||
.audio:hover { background-color:#ebddae; color:#8c7539; border:4px solid #d3b157; }
 | 
			
		||||
 | 
			
		||||
.fcore { border: 1px solid #898888; margin-left: 12px; }
 | 
			
		||||
.fshapes { border: 1px solid #e66666; margin-left: 12px; }
 | 
			
		||||
.ftextures { border: 1px solid #75a06d; margin-left: 12px; }
 | 
			
		||||
.ftext { border: 1px solid #52b296; margin-left: 12px; }
 | 
			
		||||
.fmodels { border: 1px solid #5d9cbd; margin-left: 12px; }
 | 
			
		||||
.fshaders { border: 1px solid #a864d2; margin-left: 12px; }
 | 
			
		||||
.faudio { border: 1px solid #d3b157; margin-left: 12px; }
 | 
			
		||||
 | 
			
		||||
.fcore p { color:#5c5a5a!important; }
 | 
			
		||||
.fshapes p { color:#c55757!important; }
 | 
			
		||||
.ftextures p { color:#60815a!important; }
 | 
			
		||||
.ftext p { color:#377764!important; }
 | 
			
		||||
.fmodels p { color:#417794!important; }
 | 
			
		||||
.fshaders p { color:#a864d2!important; }
 | 
			
		||||
.faudio p { color:#8c7539!important; }
 | 
			
		||||
 | 
			
		||||
#container .fcore a img, #container .fcore a { border: none; overflow: hidden; float: left; background-color: #e1e1e1; opacity: 1; }
 | 
			
		||||
#container .fcore a:hover { border: 10px solid #898888; }
 | 
			
		||||
#container .fcore a:hover img { margin: -10px; opacity: 0.4; }
 | 
			
		||||
 | 
			
		||||
#container .fshapes a img, #container .fshapes a { border: none; overflow: hidden; float: left; background-color: #f0d6d6; opacity: 1; }
 | 
			
		||||
#container .fshapes a:hover { border: 10px solid #e66666; }
 | 
			
		||||
#container .fshapes a:hover img { margin: -10px; opacity: 0.3; }
 | 
			
		||||
 | 
			
		||||
#container .ftextures a img, #container .ftextures a { border: none; overflow: hidden; float: left; background-color: #c8eabf; opacity: 1; }
 | 
			
		||||
#container .ftextures a:hover { border: 10px solid #75a06d; }
 | 
			
		||||
#container .ftextures a:hover img { margin: -10px; opacity: 0.3; }
 | 
			
		||||
 | 
			
		||||
#container .ftext a img, #container .ftext a { border: none; overflow: hidden; float: left; background-color: #bef0dd; opacity: 1; }
 | 
			
		||||
#container .ftext a:hover { border: 10px solid #52b296; }
 | 
			
		||||
#container .ftext a:hover img { margin: -10px; opacity: 0.3; }
 | 
			
		||||
 | 
			
		||||
#container .fmodels a img, #container .fmodels a { border: none; overflow: hidden; float: left; background-color: #bedce8; opacity: 1; }
 | 
			
		||||
#container .fmodels a:hover { border: 10px solid #5d9cbd; }
 | 
			
		||||
#container .fmodels a:hover img { margin: -10px; opacity: 0.3; }
 | 
			
		||||
 | 
			
		||||
#container .fshaders a img, #container .fshaders a { border: none; overflow: hidden; float: left; background-color: #e0c6f1; opacity: 1; }
 | 
			
		||||
#container .fshaders a:hover { border: 10px solid #a864d2; }
 | 
			
		||||
#container .fshaders a:hover img { margin: -10px; opacity: 0.3; }
 | 
			
		||||
 | 
			
		||||
#container .faudio a img, #container .faudio a { border: none; overflow: hidden; float: left; background-color: #ebddae; opacity: 1; }
 | 
			
		||||
#container .faudio a:hover { border: 10px solid #d3b157; }
 | 
			
		||||
#container .faudio a:hover img { margin: -10px; opacity: 0.3; }
 | 
			
		||||
 | 
			
		||||
#container .extext { position:absolute; top:140px; width:320px; text-align: center; display: none; }
 | 
			
		||||
							
								
								
									
										35
									
								
								docs/common/css/games.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,35 @@
 | 
			
		||||
#container .mix{ position: relative;  display: none; }
 | 
			
		||||
#container .extext { top: 160px!important; width: 400px!important; }
 | 
			
		||||
 | 
			
		||||
#filter_menu { width: 820px; height: 80px; margin-left: 18px; }
 | 
			
		||||
 | 
			
		||||
.legendButton { padding:5px 15px; float:left; margin-left:10px; margin-right:10px; margin-bottom: 20px; }
 | 
			
		||||
#sample { cursor:pointer; background-color:#e1e1e1; color:#5c5a5a; border:3px solid #898888; }
 | 
			
		||||
#game { cursor:pointer; background-color:#f0d6d6; color:#c55757; border:3px solid #e66666; }
 | 
			
		||||
#user { cursor:pointer; background-color:#bedce8; color:#417794; border:3px solid #5d9cbd; }
 | 
			
		||||
 | 
			
		||||
.sample:hover { background-color:#e1e1e1; color:#5c5a5a; border:4px solid #898888; }
 | 
			
		||||
.game:hover { background-color:#f0d6d6; color:#c55757; border:4px solid #e66666; }
 | 
			
		||||
.user:hover { background-color:#bedce8; color:#417794; border:4px solid #5d9cbd; }
 | 
			
		||||
 | 
			
		||||
.fsample { border: 1px solid #898888; margin-left: 12px; }
 | 
			
		||||
.fgame { border: 1px solid #e66666; margin-left: 12px; }
 | 
			
		||||
.fuser { border: 1px solid #5d9cbd; margin-left: 12px; }
 | 
			
		||||
 | 
			
		||||
.fsample p { color:#5c5a5a!important; }
 | 
			
		||||
.fgame p { color:#c55757!important; }
 | 
			
		||||
.fuser p { color:#417794!important; }
 | 
			
		||||
 | 
			
		||||
#container .fsample a img, #container .fsample a { border: none; overflow: hidden; float: left; background-color: #e1e1e1; opacity: 1; }
 | 
			
		||||
#container .fsample a:hover { border: 10px solid #898888; }
 | 
			
		||||
#container .fsample a:hover img { margin: -10px; opacity: 0.4; }
 | 
			
		||||
 | 
			
		||||
#container .fgame a img, #container .fgame a { border: none; overflow: hidden; float: left; background-color: #f0d6d6; opacity: 1; }
 | 
			
		||||
#container .fgame a:hover { border: 10px solid #e66666; }
 | 
			
		||||
#container .fgame a:hover img { margin: -10px; opacity: 0.3; }
 | 
			
		||||
 | 
			
		||||
#container .fuser a img, #container .fuser a { border: none; overflow: hidden; float: left; background-color: #bedce8; opacity: 1; }
 | 
			
		||||
#container .fuser a:hover { border: 10px solid #5d9cbd; }
 | 
			
		||||
#container .fuser a:hover img { margin: -10px; opacity: 0.3; }
 | 
			
		||||
 | 
			
		||||
#container .extext { position:absolute; top:140px; width:320px; text-align: center; display: none; }
 | 
			
		||||
							
								
								
									
										109
									
								
								docs/common/css/main.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,109 @@
 | 
			
		||||
@font-face {
 | 
			
		||||
    font-family: 'grixel_acme_7_wide_xtnd';
 | 
			
		||||
    src: url('../font/acme_7_wide_xtnd.eot');
 | 
			
		||||
    src: url('../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
 | 
			
		||||
         url('../font/acme_7_wide_xtnd.woff') format('woff'),
 | 
			
		||||
         url('../font/acme_7_wide_xtnd.ttf') format('truetype');
 | 
			
		||||
    font-weight: normal;
 | 
			
		||||
    font-style: normal;
 | 
			
		||||
	font-size-adjust:0.49;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
::-webkit-scrollbar { width: 10px; height: 10px; }
 | 
			
		||||
::-webkit-scrollbar-button:start:decrement,
 | 
			
		||||
::-webkit-scrollbar-button:end:increment { display: block; height: 10px; }
 | 
			
		||||
::-webkit-scrollbar-button:vertical:increment { background-color: #fff; }
 | 
			
		||||
::-webkit-scrollbar-track-piece { background-color: #bdbdbd; }
 | 
			
		||||
::-webkit-scrollbar-thumb:vertical { height: 50px; background-color: #000000; }
 | 
			
		||||
::-webkit-scrollbar-thumb:horizontal { width: 50px; background-color: #000000; }
 | 
			
		||||
 | 
			
		||||
*{padding:0px; margin:0px; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial; -moz-font-smoothing: none;-webkit-font-smoothing: none; line-height:24px;}
 | 
			
		||||
a{text-decoration: none; color:black;}
 | 
			
		||||
body{background-color:#f5f5f5;}
 | 
			
		||||
p a:hover{text-decoration: none; color:gray;}
 | 
			
		||||
 | 
			
		||||
.page{width:840px; margin:0 auto;}
 | 
			
		||||
 | 
			
		||||
.header{width:100%; float:left; position:relative; height:128px; font-size:10pt; margin-top:40px; margin-left:10px;}
 | 
			
		||||
.content{font-size:8pt; width:840px; padding:10px; padding-top:30px; float:left; position:relative; padding-bottom:50px;}
 | 
			
		||||
.footer{width:100%; float:left; position:relative; border-top:1px solid black; text-align: right;  height:40px; padding-top:10px;}
 | 
			
		||||
.footer p a{color:#aaaaaa;}
 | 
			
		||||
.footer p a:hover{color:#444;}
 | 
			
		||||
.footer p { font-size:6pt; color:#aaaaaa; margin-top:-8px; }
 | 
			
		||||
.simplelink { font-weight: bold; color: #ff6060; }
 | 
			
		||||
 | 
			
		||||
/* font change for better reading... */
 | 
			
		||||
.content p, .content a, .content p strong, .content strong, .content .downloadText{font-family: Courier New, Verdana, Arial!important; font-size: medium; line-height: 200%;  }
 | 
			
		||||
.downloadButtonInstaller { font-size: x-small; }
 | 
			
		||||
.list, .list strong {font-family: Courier New, Verdana, Arial!important; font-size: medium; line-height: 200%;  }
 | 
			
		||||
 | 
			
		||||
#logo{width:128px; height:128px; float:left; position:relative; background-image:url(../img/raylib_logo.png);}
 | 
			
		||||
.menu{width:680px; height:39px; text-align:right; right:0px; bottom:7px; position:relative; float:left; margin-left: 30px;}
 | 
			
		||||
.menu a{padding:5px 20px; color:black; font-size:12pt; float:left; position:relative; border-bottom:1px solid black;}
 | 
			
		||||
.menu a:hover{margin-top:-20px; padding:15px 15px; background: rgb(254,255,255); 
 | 
			
		||||
	background: -moz-linear-gradient(top, rgba(245,245,245,1) 0%, rgba(224,224,224,1) 100%); 
 | 
			
		||||
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(245,245,245,1)), color-stop(100%,rgba(224,224,224,1))); 
 | 
			
		||||
	background: -webkit-linear-gradient(top, rgba(245,245,245,1) 0%,rgba(224,224,224,1) 100%); 
 | 
			
		||||
	background: -o-linear-gradient(top, rgba(245,245,245,1) 0%,rgba(224,224,224,1) 100%); 
 | 
			
		||||
	background: -ms-linear-gradient(top, rgba(245,245,245,1) 0%,rgba(224,224,224,1) 100%); 
 | 
			
		||||
	background: linear-gradient(to bottom,  rgba(245,245,245,1) 0%,rgba(224,224,224,1) 100%); 
 | 
			
		||||
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#e0e0e0',GradientType=0 ); }
 | 
			
		||||
 | 
			
		||||
#active{
 | 
			
		||||
	padding:5px 15px; color:#707070; font-size:12pt; float:left; position:relative; border-bottom:1px solid black;
 | 
			
		||||
	margin-top:-20px; padding:15px 15px; background: rgb(254,255,255); 
 | 
			
		||||
	background: -moz-linear-gradient(top, rgba(245,245,245,1) 0%, rgba(224,224,224,1) 100%); 
 | 
			
		||||
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(245,245,245,1)), color-stop(100%,rgba(224,224,224,1))); 
 | 
			
		||||
	background: -webkit-linear-gradient(top, rgba(245,245,245,1) 0%,rgba(224,224,224,1) 100%); 
 | 
			
		||||
	background: -o-linear-gradient(top, rgba(245,245,245,1) 0%,rgba(224,224,224,1) 100%); 
 | 
			
		||||
	background: -ms-linear-gradient(top, rgba(245,245,245,1) 0%,rgba(224,224,224,1) 100%); 
 | 
			
		||||
	background: linear-gradient(to bottom,  rgba(245,245,245,1) 0%,rgba(224,224,224,1) 100%); 
 | 
			
		||||
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#e0e0e0',GradientType=0 );
 | 
			
		||||
}
 | 
			
		||||
	
 | 
			
		||||
#social{ width:300px; height:50px; position:relative; float:right; margin-right:8px; margin-top:20px; margin-bottom:20px; }
 | 
			
		||||
#social a:hover{ background-position: 0 -36px;}
 | 
			
		||||
#twitch{ width:36px; height:36px; float:left; position:relative; background-image: url(../img/icon_twitch.png); cursor: pointer; background-repeat:no-repeat; background-position: 0 0;}
 | 
			
		||||
#patreon{ width:36px; height:36px; float:left; position:relative; background-image: url(../img/icon_patreon.png); cursor: pointer; background-repeat:no-repeat; background-position: 0 0;}
 | 
			
		||||
#itchio{ width:36px; height:36px; float:left; position:relative; background-image: url(../img/icon_itchio.png); cursor: pointer; background-repeat:no-repeat; background-position: 0 0;}
 | 
			
		||||
#reddit{ width:36px; height:36px; float:left; position:relative; background-image: url(../img/icon_reddit.png); cursor: pointer; background-repeat:no-repeat; background-position: 0 0;}
 | 
			
		||||
#freenode{ width:36px; height:36px; float:left; position:relative; background-image: url(../img/icon_freenode_irc.png); cursor: pointer; background-repeat:no-repeat; background-position: 0 0;}
 | 
			
		||||
#facebook{ width:36px; height:36px; float:left; position:relative; background-image: url(../img/icon_facebook.png); cursor: pointer; background-repeat:no-repeat; background-position: 0 0;}
 | 
			
		||||
#twitter{ width:36px; height:36px; float:left; position:relative; background-image: url(../img/icon_twitter.png); cursor: pointer; background-repeat:no-repeat; background-position: 0 0;}
 | 
			
		||||
#github{ width:36px; height:36px; float:left; position:relative; background-image: url(../img/icon_github.png); cursor: pointer; background-repeat:no-repeat; background-position: 0 0;}
 | 
			
		||||
.list{margin-top:10px; margin-left:30px; display: inline-block}
 | 
			
		||||
 | 
			
		||||
#licensebox { width:808px; height:400px; border:12px solid; border-color:#d0d0d0; background-color:#e4e4e4;}
 | 
			
		||||
#licensebox p { font-size:12px; margin-top: 15px; margin-left: 10px;}
 | 
			
		||||
.licensepoint { margin-left: 25px!important;}
 | 
			
		||||
 | 
			
		||||
.downloadText{width:420px; height:40px; float:left; position:relative; margin-left:40px;}
 | 
			
		||||
.downloadButton{width:220px; height:35px; float:left; position: relative; cursor:pointer; font-weight: bold; line-height:35px; text-align: center; border-width:5px!important;}
 | 
			
		||||
.downloadButtonInstaller{width:460px; height:35px; position: relative; margin: auto auto; margin-top:20px!important; cursor:pointer; font-weight: bold; line-height:35px; text-align: center; border-width:5px!important;}
 | 
			
		||||
#btngit{background-color:#e1e1e1; color:#5c5a5a; border:4px solid #898888;}
 | 
			
		||||
#btngit:hover{background-color:#bedce8; color:#417794; border:4px solid #5d9cbd;}
 | 
			
		||||
#btnlib{background-color:#e1e1e1; color:#5c5a5a; border:4px solid #898888; margin-top: 15px;}
 | 
			
		||||
#btnlib:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666; margin-top: 15px;}
 | 
			
		||||
#btnmac{font-weight: normal; cursor:default; background-color:#f0f0f0; color:#5c5a5a; border:4px solid #d3d3d3;}
 | 
			
		||||
#newVersion{background-color:#f0d6d6; color:#e55757; border:1px solid #f66666; margin-top: 15px; margin-left: -5px; width:100%; height:30px; position: relative; margin: auto auto; line-height:30px; text-align: center;}
 | 
			
		||||
#raylib13{position:relative; background-color:#222222; color:#f5f5f5; width:100vw; left:calc(-52vw + 50%); padding:30px; text-align:center; margin: 10px;}
 | 
			
		||||
 | 
			
		||||
#basicgrid{width:580px; margin-left:60px; float:left; position:relative; text-align: center}
 | 
			
		||||
#advgrid{width:560px; margin-left:70px; float:left; position:relative; text-align: center}
 | 
			
		||||
.exampleBox{cursor:pointer; margin:15px 20px; width:54px; padding-right:2px; height:56px; border:4px solid black; display:inline-block; text-align: right; font-weight: bold; vertical-align: bottom;}
 | 
			
		||||
.exampleBox .in{display: table-cell; vertical-align: bottom; width:52px; height:56px;}
 | 
			
		||||
 | 
			
		||||
.specialBox{cursor:pointer; vertical-align: bottom; color:#818181; width:56px; height:58px; padding-right:2px; padding-top:4px; padding-left:4px; margin:15px 20px; display:inline-block; border:1px solid #b9b9b9; text-align:right;}
 | 
			
		||||
.specialBox .in{display: table-cell; vertical-align: bottom; width:52px; height:52px; border:1px solid #b9b9b9; margin-top:-5px;}
 | 
			
		||||
.specialBox:hover{ color: black; border:1px solid black; }
 | 
			
		||||
.specialBox .in:hover{ color: black; border:1px solid black; }
 | 
			
		||||
.boxintext{margin-bottom: 3px; margin-right: 2px; line-height:10px; font-size:6pt;}
 | 
			
		||||
.boxintextex{margin-bottom: 3px; margin-right: -2px; line-height:10px; font-size:6pt; width:54px!important; height:53px!important; font-weight: normal!important;}
 | 
			
		||||
.boxtodo{margin-bottom: 13px; margin-right: 7px;}
 | 
			
		||||
 | 
			
		||||
.help{font-size:8px; margin-left: 25px;}
 | 
			
		||||
#paypalbox{width:200px; height:50px; border:12px solid; border-color:#d0d0d0; background-color:#e4e4e4; margin:0 auto;}
 | 
			
		||||
#paypalform input {margin-top: 12px; margin-left: 50px;}
 | 
			
		||||
#forum{color: maroon;}
 | 
			
		||||
 | 
			
		||||
#itchioframe{display:block;text-align:center;}
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								docs/common/font/acme_7_wide_xtnd.eot
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								docs/common/font/acme_7_wide_xtnd.ttf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								docs/common/font/acme_7_wide_xtnd.woff
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								docs/common/img/fb_raylib_logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 3.7 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/img/icon_facebook.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 583 B  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/img/icon_freenode_irc.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.8 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/img/icon_github.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.1 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/img/icon_itchio.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.7 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/img/icon_patreon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 3.2 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/img/icon_reddit.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 3.1 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/img/icon_twitch.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 2.5 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/img/icon_twitter.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 856 B  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/img/ln_raylib_logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.3 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/img/raylib_logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.8 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/img/raylib_logo_64x64.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.1 KiB  | 
							
								
								
									
										144
									
								
								docs/common/js/examples.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,144 @@
 | 
			
		||||
$(document).ready(function() {
 | 
			
		||||
    
 | 
			
		||||
    // Init fancybox
 | 
			
		||||
    $('.fancybox').fancybox();
 | 
			
		||||
 | 
			
		||||
    var exampleName = [ 
 | 
			
		||||
        'core_basic_window',
 | 
			
		||||
        'core_input_keys',
 | 
			
		||||
        'core_input_mouse',
 | 
			
		||||
        'core_mouse_wheel',
 | 
			
		||||
        'core_input_gamepad',
 | 
			
		||||
        'core_random_values',
 | 
			
		||||
        'core_color_select',
 | 
			
		||||
        'core_drop_files',
 | 
			
		||||
        'core_storage_values',
 | 
			
		||||
        'core_gestures_detection',
 | 
			
		||||
        'core_3d_mode',
 | 
			
		||||
        'core_3d_picking',
 | 
			
		||||
        'core_3d_camera_free',
 | 
			
		||||
        'core_3d_camera_first_person',
 | 
			
		||||
        'core_2d_camera',
 | 
			
		||||
        'core_world_screen',
 | 
			
		||||
        'core_oculus_rift',
 | 
			
		||||
        'shapes_logo_raylib',
 | 
			
		||||
        'shapes_basic_shapes',
 | 
			
		||||
        'shapes_colors_palette',
 | 
			
		||||
        'shapes_logo_raylib_anim',
 | 
			
		||||
        'textures_logo_raylib',
 | 
			
		||||
        'textures_image_loading',
 | 
			
		||||
        'textures_rectangle',
 | 
			
		||||
        'textures_srcrec_dstrec',
 | 
			
		||||
        'textures_to_image',
 | 
			
		||||
        'textures_raw_data',
 | 
			
		||||
        'textures_formats_loading',
 | 
			
		||||
        'textures_particles_trail_blending',
 | 
			
		||||
        'textures_image_processing',
 | 
			
		||||
        'textures_image_drawing',
 | 
			
		||||
        'text_sprite_fonts',
 | 
			
		||||
        'text_bmfont_ttf',
 | 
			
		||||
        'text_rbmf_fonts',
 | 
			
		||||
        'text_format_text',
 | 
			
		||||
        'text_font_select',
 | 
			
		||||
        'text_writing_anim',
 | 
			
		||||
        'text_ttf_loading',
 | 
			
		||||
        'text_bmfont_unordered',
 | 
			
		||||
        'models_geometric_shapes',
 | 
			
		||||
        'models_box_collisions',
 | 
			
		||||
        'models_billboard',
 | 
			
		||||
        'models_obj_loading',
 | 
			
		||||
        'models_heightmap',
 | 
			
		||||
        'models_cubicmap',
 | 
			
		||||
        'shaders_model_shader',
 | 
			
		||||
        'shaders_shapes_textures',
 | 
			
		||||
        'shaders_custom_uniform',
 | 
			
		||||
        'shaders_postprocessing',
 | 
			
		||||
        'shaders_standard_lighting',
 | 
			
		||||
        'audio_sound_loading',
 | 
			
		||||
        'audio_music_stream',
 | 
			
		||||
        'audio_module_playing',
 | 
			
		||||
        'audio_raw_stream'];
 | 
			
		||||
 | 
			
		||||
    var exampleDesc = [
 | 
			
		||||
        'basic window',
 | 
			
		||||
        'input keys', 
 | 
			
		||||
        'input mouse',
 | 
			
		||||
        'mouse wheel',
 | 
			
		||||
        'input gamepad',
 | 
			
		||||
        'random values',
 | 
			
		||||
        'color select',
 | 
			
		||||
        'drop files',
 | 
			
		||||
        'storage values',
 | 
			
		||||
        'gestures detection',
 | 
			
		||||
        '3d mode',
 | 
			
		||||
        '3d picking',
 | 
			
		||||
        '3d camera free',
 | 
			
		||||
        '3d camera first person',
 | 
			
		||||
        '2d camera',
 | 
			
		||||
        'world screen',
 | 
			
		||||
        'oculus rift',
 | 
			
		||||
        'logo raylib shapes',
 | 
			
		||||
        'basic shapes',
 | 
			
		||||
        'colors palette',
 | 
			
		||||
        'logo raylib anim',
 | 
			
		||||
        'logo raylib texture',
 | 
			
		||||
        'image loading',
 | 
			
		||||
        'texture rectangle',
 | 
			
		||||
        'src-dest. rectangles',
 | 
			
		||||
        'texture to image',
 | 
			
		||||
        'raw data loading',
 | 
			
		||||
        'textures formats loading',
 | 
			
		||||
        'particles trail blending',
 | 
			
		||||
        'image processing',
 | 
			
		||||
        'image drawing',
 | 
			
		||||
        'sprite fonts',
 | 
			
		||||
        'bmfonts ttf',
 | 
			
		||||
        'rbmf fonts',
 | 
			
		||||
        'text formatting',
 | 
			
		||||
        'font selection',
 | 
			
		||||
        'writing animation',
 | 
			
		||||
        'ttf loading',
 | 
			
		||||
        'bmfont unordered',
 | 
			
		||||
        'geometric shapes',
 | 
			
		||||
        'box collisions',
 | 
			
		||||
        'billboard drawing',
 | 
			
		||||
        'obj loading',
 | 
			
		||||
        'heightmap loading',
 | 
			
		||||
        'cubesmap loading',
 | 
			
		||||
        'model shader',
 | 
			
		||||
        'shapes textures shader',
 | 
			
		||||
        'custom uniform in shaders',
 | 
			
		||||
        'postprocessing shaders',
 | 
			
		||||
        'standard lighting',
 | 
			
		||||
        'sound loading',
 | 
			
		||||
        'music streaming',
 | 
			
		||||
        'module playing',
 | 
			
		||||
        'raw stream'];
 | 
			
		||||
 | 
			
		||||
    for (var i = 0; i < exampleName.length; i++)
 | 
			
		||||
    {
 | 
			
		||||
        var filterType = exampleName[i].substring(0, exampleName[i].indexOf("_"));
 | 
			
		||||
 | 
			
		||||
        $('#container').append(
 | 
			
		||||
            '<div class="mix f' + filterType + '">' +
 | 
			
		||||
            '<a class="fancybox fancybox.iframe" href="examples/web/loader.html?name=' + exampleName[i] + '" title="' + exampleDesc[i] + '">' +
 | 
			
		||||
            '<img width="400" height="225" src="../examples/img/' + exampleName[i] + '.png"><div class="extext"><p>' + exampleDesc[i] + '</p></div></a>' +
 | 
			
		||||
            '</div>');
 | 
			
		||||
 | 
			
		||||
        $('#container a .extext').hide();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Instantiate MixItUp:
 | 
			
		||||
	$('#container').mixItUp();
 | 
			
		||||
 | 
			
		||||
    $("#container a").hover(
 | 
			
		||||
        function(){ $(this).find(".extext").show(); },
 | 
			
		||||
        function(){ $(this).find(".extext").hide(); });
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
    $("#container a img").hover(
 | 
			
		||||
        function() { $(this).stop().animate({ opacity:0.6 }, 200, "easeOutQuad" ); },
 | 
			
		||||
        function() { $(this).stop().animate({ opacity:0 }, 200, "easeOutQuad" ); }
 | 
			
		||||
    )
 | 
			
		||||
*/
 | 
			
		||||
});
 | 
			
		||||
							
								
								
									
										109
									
								
								docs/common/js/games.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,109 @@
 | 
			
		||||
$(document).ready(function() {
 | 
			
		||||
    
 | 
			
		||||
    // Init fancybox
 | 
			
		||||
    $('.fancybox').fancybox();
 | 
			
		||||
 | 
			
		||||
    var exampleName = [ 
 | 
			
		||||
        'sample_arkanoid',
 | 
			
		||||
        'sample_missile_commander',
 | 
			
		||||
        'sample_gorilas',
 | 
			
		||||
        'sample_snake',
 | 
			
		||||
        'sample_asteroids',
 | 
			
		||||
        'sample_asteroids_survival',
 | 
			
		||||
        'sample_pang',
 | 
			
		||||
        'sample_space_invaders',
 | 
			
		||||
        'sample_floppy',
 | 
			
		||||
        'sample_tetris',
 | 
			
		||||
        'sample_gold_fever',
 | 
			
		||||
        'sample_doom',
 | 
			
		||||
        'game_raylib_features',
 | 
			
		||||
        'game_drturtle',
 | 
			
		||||
        'game_just_do',
 | 
			
		||||
        'game_skully_escape',
 | 
			
		||||
        'game_koala_seasons',
 | 
			
		||||
        'game_light_my_ritual',
 | 
			
		||||
        'user_raymario',    
 | 
			
		||||
        'user_crazyball',
 | 
			
		||||
        'user_tictactoe',
 | 
			
		||||
        'user_super_red_rope',
 | 
			
		||||
        'user_taptojamp',    
 | 
			
		||||
        'user_funwithsat'];
 | 
			
		||||
 | 
			
		||||
    var exampleDesc = [
 | 
			
		||||
        'arkanoid',
 | 
			
		||||
        'missile commander',
 | 
			
		||||
        'gorilas',
 | 
			
		||||
        'snake',
 | 
			
		||||
        'asteroids',
 | 
			
		||||
        'asteroids survival',
 | 
			
		||||
        'pang',
 | 
			
		||||
        'space invaders',
 | 
			
		||||
        'floppy',
 | 
			
		||||
        'tetris',
 | 
			
		||||
        'gold fever',
 | 
			
		||||
        'doom',
 | 
			
		||||
        'raylib Features DEMO',
 | 
			
		||||
        'Dr Turtle & Mr Gamera',
 | 
			
		||||
        'JUST DO',
 | 
			
		||||
        'Skully Escape',
 | 
			
		||||
        'Koala Seasons',
 | 
			
		||||
        'LIGHT MY RITUAL',
 | 
			
		||||
        'RayMario (Victor Fisac)',    
 | 
			
		||||
        'CrazyBall (Victor Fisac)',
 | 
			
		||||
        'Tic-Tac-Toe (LelixSuper)',
 | 
			
		||||
        'Super Red Rope Puzzles (Kurnic)',
 | 
			
		||||
        'TapToJAmp (MarcMDE)',    
 | 
			
		||||
        'FunWithSATCollisions (MarcMDE)'];
 | 
			
		||||
 | 
			
		||||
    for (var i = 0; i < exampleName.length; i++)
 | 
			
		||||
    {
 | 
			
		||||
        var filterType = exampleName[i].substring(0, exampleName[i].indexOf("_"));
 | 
			
		||||
        
 | 
			
		||||
        var linkTag;
 | 
			
		||||
        
 | 
			
		||||
        if (filterType == 'sample') linkTag = '<a class="fancybox fancybox.iframe" href="games/loader.html?name=' + exampleName[i] + '" title="' + exampleDesc[i] + '">';
 | 
			
		||||
        else if (filterType == 'game') linkTag = '<a target="_blank" href="games/' + exampleName[i].substring(5) + '.html" title="' + exampleDesc[i] + '">';
 | 
			
		||||
        else if (filterType == 'user')
 | 
			
		||||
        {
 | 
			
		||||
            switch (exampleName[i])
 | 
			
		||||
            {
 | 
			
		||||
                case 'user_raymario': linkTag = '<a target="_blank" href="https://github.com/victorfisac/RayMario" title="' + exampleDesc[i] + '">'; break;
 | 
			
		||||
                case 'user_crazyball': linkTag = '<a target="_blank" href="https://github.com/victorfisac/CrazyBall" title="' + exampleDesc[i] + '">'; break;
 | 
			
		||||
                case 'user_tictactoe': linkTag = '<a target="_blank" href="https://github.com/LelixSuper/TicTacToe" title="' + exampleDesc[i] + '">'; break;
 | 
			
		||||
                case 'user_super_red_rope': linkTag = '<a target="_blank" href="https://kurnic.itch.io/super-red-rope-puzzles" title="' + exampleDesc[i] + '">'; break;
 | 
			
		||||
                case 'user_taptojamp': linkTag = '<a target="_blank" href="http://marcmde.github.io/TapToJAmp_v2_0/" title="' + exampleDesc[i] + '">'; break;
 | 
			
		||||
                case 'user_funwithsat': linkTag = '<a target="_blank" href="http://marcmde.github.io/FunWithSATCollisions_v_1_0_Browser/" title="' + exampleDesc[i] + '">'; break;
 | 
			
		||||
                default: break;
 | 
			
		||||
            }
 | 
			
		||||
            /*
 | 
			
		||||
            https://github.com/MarcMDE/TapToJump    //http://marcmde.github.io/TapToJump_v1_0_Browser/
 | 
			
		||||
            https://github.com/MarcMDE/TapToJAmp    //http://marcmde.github.io/TapToJAmp_v2_0/
 | 
			
		||||
            https://github.com/MarcMDE/FunWithSATCollisions //http://marcmde.github.io/FunWithSATCollisions_v_1_0_Browser/
 | 
			
		||||
            https://kurnic.wordpress.com/portfolio/flappy-jetpack/
 | 
			
		||||
            */
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        if (exampleName[i] == 'game_koala_seasons') linkTag = '<a target="_blank" href="http://www.koalaseasons.com" title="' + exampleDesc[i] + '">';
 | 
			
		||||
 | 
			
		||||
        $('#container').append(
 | 
			
		||||
            '<div class="mix f' + filterType + '">' + linkTag +
 | 
			
		||||
            '<img width="400" height="225" src="../games/img/' + exampleName[i] + '.png"><div class="extext"><p>' + exampleDesc[i] + '</p></div></a>' +
 | 
			
		||||
            '</div>');
 | 
			
		||||
 | 
			
		||||
        $('#container a .extext').hide();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Instantiate MixItUp:
 | 
			
		||||
	$('#container').mixItUp();
 | 
			
		||||
 | 
			
		||||
    $("#container a").hover(
 | 
			
		||||
        function(){ $(this).find(".extext").show(); },
 | 
			
		||||
        function(){ $(this).find(".extext").hide(); });
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
    $("#container a img").hover(
 | 
			
		||||
        function() { $(this).stop().animate({ opacity:0.6 }, 200, "easeOutQuad" ); },
 | 
			
		||||
        function() { $(this).stop().animate({ opacity:0 }, 200, "easeOutQuad" ); }
 | 
			
		||||
    )
 | 
			
		||||
*/
 | 
			
		||||
});
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								docs/common/libs/fancybox/blank.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 43 B  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/libs/fancybox/fancybox_loading.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 6.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/libs/fancybox/fancybox_loading@2x.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 14 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/libs/fancybox/fancybox_overlay.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1003 B  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/libs/fancybox/fancybox_sprite.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.3 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/libs/fancybox/fancybox_sprite@2x.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 6.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/common/libs/fancybox/helpers/fancybox_buttons.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.1 KiB  | 
@@ -0,0 +1,97 @@
 | 
			
		||||
#fancybox-buttons {
 | 
			
		||||
	position: fixed;
 | 
			
		||||
	left: 0;
 | 
			
		||||
	width: 100%;
 | 
			
		||||
	z-index: 8050;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons.top {
 | 
			
		||||
	top: 10px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons.bottom {
 | 
			
		||||
	bottom: 10px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons ul {
 | 
			
		||||
	display: block;
 | 
			
		||||
	width: 166px;
 | 
			
		||||
	height: 30px;
 | 
			
		||||
	margin: 0 auto;
 | 
			
		||||
	padding: 0;
 | 
			
		||||
	list-style: none;
 | 
			
		||||
	border: 1px solid #111;
 | 
			
		||||
	border-radius: 3px;
 | 
			
		||||
	-webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
 | 
			
		||||
	   -moz-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
 | 
			
		||||
	        box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
 | 
			
		||||
	background: rgb(50,50,50);
 | 
			
		||||
	background: -moz-linear-gradient(top, rgb(68,68,68) 0%, rgb(52,52,52) 50%, rgb(41,41,41) 50%, rgb(51,51,51) 100%);
 | 
			
		||||
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(68,68,68)), color-stop(50%,rgb(52,52,52)), color-stop(50%,rgb(41,41,41)), color-stop(100%,rgb(51,51,51)));
 | 
			
		||||
	background: -webkit-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
 | 
			
		||||
	background: -o-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
 | 
			
		||||
	background: -ms-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
 | 
			
		||||
	background: linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
 | 
			
		||||
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#444444', endColorstr='#222222',GradientType=0 );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons ul li {
 | 
			
		||||
	float: left;
 | 
			
		||||
	margin: 0;
 | 
			
		||||
	padding: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons a {
 | 
			
		||||
	display: block;
 | 
			
		||||
	width: 30px;
 | 
			
		||||
	height: 30px;
 | 
			
		||||
	text-indent: -9999px;
 | 
			
		||||
	background-color: transparent;
 | 
			
		||||
	background-image: url('fancybox_buttons.png');
 | 
			
		||||
	background-repeat: no-repeat;
 | 
			
		||||
	outline: none;
 | 
			
		||||
	opacity: 0.8;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons a:hover {
 | 
			
		||||
	opacity: 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons a.btnPrev {
 | 
			
		||||
	background-position: 5px 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons a.btnNext {
 | 
			
		||||
	background-position: -33px 0;
 | 
			
		||||
	border-right: 1px solid #3e3e3e;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons a.btnPlay {
 | 
			
		||||
	background-position: 0 -30px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons a.btnPlayOn {
 | 
			
		||||
	background-position: -30px -30px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons a.btnToggle {
 | 
			
		||||
	background-position: 3px -60px;
 | 
			
		||||
	border-left: 1px solid #111;
 | 
			
		||||
	border-right: 1px solid #3e3e3e;
 | 
			
		||||
	width: 35px
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons a.btnToggleOn {
 | 
			
		||||
	background-position: -27px -60px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons a.btnClose {
 | 
			
		||||
	border-left: 1px solid #111;
 | 
			
		||||
	width: 35px;
 | 
			
		||||
	background-position: -56px 0px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-buttons a.btnDisabled {
 | 
			
		||||
	opacity : 0.4;
 | 
			
		||||
	cursor: default;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										122
									
								
								docs/common/libs/fancybox/helpers/jquery.fancybox-buttons.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,122 @@
 | 
			
		||||
 /*!
 | 
			
		||||
 * Buttons helper for fancyBox
 | 
			
		||||
 * version: 1.0.5 (Mon, 15 Oct 2012)
 | 
			
		||||
 * @requires fancyBox v2.0 or later
 | 
			
		||||
 *
 | 
			
		||||
 * Usage:
 | 
			
		||||
 *     $(".fancybox").fancybox({
 | 
			
		||||
 *         helpers : {
 | 
			
		||||
 *             buttons: {
 | 
			
		||||
 *                 position : 'top'
 | 
			
		||||
 *             }
 | 
			
		||||
 *         }
 | 
			
		||||
 *     });
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
(function ($) {
 | 
			
		||||
	//Shortcut for fancyBox object
 | 
			
		||||
	var F = $.fancybox;
 | 
			
		||||
 | 
			
		||||
	//Add helper object
 | 
			
		||||
	F.helpers.buttons = {
 | 
			
		||||
		defaults : {
 | 
			
		||||
			skipSingle : false, // disables if gallery contains single image
 | 
			
		||||
			position   : 'top', // 'top' or 'bottom'
 | 
			
		||||
			tpl        : '<div id="fancybox-buttons"><ul><li><a class="btnPrev" title="Previous" href="javascript:;"></a></li><li><a class="btnPlay" title="Start slideshow" href="javascript:;"></a></li><li><a class="btnNext" title="Next" href="javascript:;"></a></li><li><a class="btnToggle" title="Toggle size" href="javascript:;"></a></li><li><a class="btnClose" title="Close" href="javascript:;"></a></li></ul></div>'
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		list : null,
 | 
			
		||||
		buttons: null,
 | 
			
		||||
 | 
			
		||||
		beforeLoad: function (opts, obj) {
 | 
			
		||||
			//Remove self if gallery do not have at least two items
 | 
			
		||||
 | 
			
		||||
			if (opts.skipSingle && obj.group.length < 2) {
 | 
			
		||||
				obj.helpers.buttons = false;
 | 
			
		||||
				obj.closeBtn = true;
 | 
			
		||||
 | 
			
		||||
				return;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			//Increase top margin to give space for buttons
 | 
			
		||||
			obj.margin[ opts.position === 'bottom' ? 2 : 0 ] += 30;
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		onPlayStart: function () {
 | 
			
		||||
			if (this.buttons) {
 | 
			
		||||
				this.buttons.play.attr('title', 'Pause slideshow').addClass('btnPlayOn');
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		onPlayEnd: function () {
 | 
			
		||||
			if (this.buttons) {
 | 
			
		||||
				this.buttons.play.attr('title', 'Start slideshow').removeClass('btnPlayOn');
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		afterShow: function (opts, obj) {
 | 
			
		||||
			var buttons = this.buttons;
 | 
			
		||||
 | 
			
		||||
			if (!buttons) {
 | 
			
		||||
				this.list = $(opts.tpl).addClass(opts.position).appendTo('body');
 | 
			
		||||
 | 
			
		||||
				buttons = {
 | 
			
		||||
					prev   : this.list.find('.btnPrev').click( F.prev ),
 | 
			
		||||
					next   : this.list.find('.btnNext').click( F.next ),
 | 
			
		||||
					play   : this.list.find('.btnPlay').click( F.play ),
 | 
			
		||||
					toggle : this.list.find('.btnToggle').click( F.toggle ),
 | 
			
		||||
					close  : this.list.find('.btnClose').click( F.close )
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			//Prev
 | 
			
		||||
			if (obj.index > 0 || obj.loop) {
 | 
			
		||||
				buttons.prev.removeClass('btnDisabled');
 | 
			
		||||
			} else {
 | 
			
		||||
				buttons.prev.addClass('btnDisabled');
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			//Next / Play
 | 
			
		||||
			if (obj.loop || obj.index < obj.group.length - 1) {
 | 
			
		||||
				buttons.next.removeClass('btnDisabled');
 | 
			
		||||
				buttons.play.removeClass('btnDisabled');
 | 
			
		||||
 | 
			
		||||
			} else {
 | 
			
		||||
				buttons.next.addClass('btnDisabled');
 | 
			
		||||
				buttons.play.addClass('btnDisabled');
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			this.buttons = buttons;
 | 
			
		||||
 | 
			
		||||
			this.onUpdate(opts, obj);
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		onUpdate: function (opts, obj) {
 | 
			
		||||
			var toggle;
 | 
			
		||||
 | 
			
		||||
			if (!this.buttons) {
 | 
			
		||||
				return;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			toggle = this.buttons.toggle.removeClass('btnDisabled btnToggleOn');
 | 
			
		||||
 | 
			
		||||
			//Size toggle button
 | 
			
		||||
			if (obj.canShrink) {
 | 
			
		||||
				toggle.addClass('btnToggleOn');
 | 
			
		||||
 | 
			
		||||
			} else if (!obj.canExpand) {
 | 
			
		||||
				toggle.addClass('btnDisabled');
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		beforeClose: function () {
 | 
			
		||||
			if (this.list) {
 | 
			
		||||
				this.list.remove();
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			this.list    = null;
 | 
			
		||||
			this.buttons = null;
 | 
			
		||||
		}
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
}(jQuery));
 | 
			
		||||
							
								
								
									
										199
									
								
								docs/common/libs/fancybox/helpers/jquery.fancybox-media.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,199 @@
 | 
			
		||||
/*!
 | 
			
		||||
 * Media helper for fancyBox
 | 
			
		||||
 * version: 1.0.6 (Fri, 14 Jun 2013)
 | 
			
		||||
 * @requires fancyBox v2.0 or later
 | 
			
		||||
 *
 | 
			
		||||
 * Usage:
 | 
			
		||||
 *     $(".fancybox").fancybox({
 | 
			
		||||
 *         helpers : {
 | 
			
		||||
 *             media: true
 | 
			
		||||
 *         }
 | 
			
		||||
 *     });
 | 
			
		||||
 *
 | 
			
		||||
 * Set custom URL parameters:
 | 
			
		||||
 *     $(".fancybox").fancybox({
 | 
			
		||||
 *         helpers : {
 | 
			
		||||
 *             media: {
 | 
			
		||||
 *                 youtube : {
 | 
			
		||||
 *                     params : {
 | 
			
		||||
 *                         autoplay : 0
 | 
			
		||||
 *                     }
 | 
			
		||||
 *                 }
 | 
			
		||||
 *             }
 | 
			
		||||
 *         }
 | 
			
		||||
 *     });
 | 
			
		||||
 *
 | 
			
		||||
 * Or:
 | 
			
		||||
 *     $(".fancybox").fancybox({,
 | 
			
		||||
 *         helpers : {
 | 
			
		||||
 *             media: true
 | 
			
		||||
 *         },
 | 
			
		||||
 *         youtube : {
 | 
			
		||||
 *             autoplay: 0
 | 
			
		||||
 *         }
 | 
			
		||||
 *     });
 | 
			
		||||
 *
 | 
			
		||||
 *  Supports:
 | 
			
		||||
 *
 | 
			
		||||
 *      Youtube
 | 
			
		||||
 *          http://www.youtube.com/watch?v=opj24KnzrWo
 | 
			
		||||
 *          http://www.youtube.com/embed/opj24KnzrWo
 | 
			
		||||
 *          http://youtu.be/opj24KnzrWo
 | 
			
		||||
 *			http://www.youtube-nocookie.com/embed/opj24KnzrWo
 | 
			
		||||
 *      Vimeo
 | 
			
		||||
 *          http://vimeo.com/40648169
 | 
			
		||||
 *          http://vimeo.com/channels/staffpicks/38843628
 | 
			
		||||
 *          http://vimeo.com/groups/surrealism/videos/36516384
 | 
			
		||||
 *          http://player.vimeo.com/video/45074303
 | 
			
		||||
 *      Metacafe
 | 
			
		||||
 *          http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/
 | 
			
		||||
 *          http://www.metacafe.com/watch/7635964/
 | 
			
		||||
 *      Dailymotion
 | 
			
		||||
 *          http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people
 | 
			
		||||
 *      Twitvid
 | 
			
		||||
 *          http://twitvid.com/QY7MD
 | 
			
		||||
 *      Twitpic
 | 
			
		||||
 *          http://twitpic.com/7p93st
 | 
			
		||||
 *      Instagram
 | 
			
		||||
 *          http://instagr.am/p/IejkuUGxQn/
 | 
			
		||||
 *          http://instagram.com/p/IejkuUGxQn/
 | 
			
		||||
 *      Google maps
 | 
			
		||||
 *          http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17
 | 
			
		||||
 *          http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16
 | 
			
		||||
 *          http://maps.google.com/?ll=48.859463,2.292626&spn=0.000965,0.002642&t=m&z=19&layer=c&cbll=48.859524,2.292532&panoid=YJ0lq28OOy3VT2IqIuVY0g&cbp=12,151.58,,0,-15.56
 | 
			
		||||
 */
 | 
			
		||||
(function ($) {
 | 
			
		||||
	"use strict";
 | 
			
		||||
 | 
			
		||||
	//Shortcut for fancyBox object
 | 
			
		||||
	var F = $.fancybox,
 | 
			
		||||
		format = function( url, rez, params ) {
 | 
			
		||||
			params = params || '';
 | 
			
		||||
 | 
			
		||||
			if ( $.type( params ) === "object" ) {
 | 
			
		||||
				params = $.param(params, true);
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			$.each(rez, function(key, value) {
 | 
			
		||||
				url = url.replace( '$' + key, value || '' );
 | 
			
		||||
			});
 | 
			
		||||
 | 
			
		||||
			if (params.length) {
 | 
			
		||||
				url += ( url.indexOf('?') > 0 ? '&' : '?' ) + params;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			return url;
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
	//Add helper object
 | 
			
		||||
	F.helpers.media = {
 | 
			
		||||
		defaults : {
 | 
			
		||||
			youtube : {
 | 
			
		||||
				matcher : /(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,
 | 
			
		||||
				params  : {
 | 
			
		||||
					autoplay    : 1,
 | 
			
		||||
					autohide    : 1,
 | 
			
		||||
					fs          : 1,
 | 
			
		||||
					rel         : 0,
 | 
			
		||||
					hd          : 1,
 | 
			
		||||
					wmode       : 'opaque',
 | 
			
		||||
					enablejsapi : 1
 | 
			
		||||
				},
 | 
			
		||||
				type : 'iframe',
 | 
			
		||||
				url  : '//www.youtube.com/embed/$3'
 | 
			
		||||
			},
 | 
			
		||||
			vimeo : {
 | 
			
		||||
				matcher : /(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,
 | 
			
		||||
				params  : {
 | 
			
		||||
					autoplay      : 1,
 | 
			
		||||
					hd            : 1,
 | 
			
		||||
					show_title    : 1,
 | 
			
		||||
					show_byline   : 1,
 | 
			
		||||
					show_portrait : 0,
 | 
			
		||||
					fullscreen    : 1
 | 
			
		||||
				},
 | 
			
		||||
				type : 'iframe',
 | 
			
		||||
				url  : '//player.vimeo.com/video/$1'
 | 
			
		||||
			},
 | 
			
		||||
			metacafe : {
 | 
			
		||||
				matcher : /metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,
 | 
			
		||||
				params  : {
 | 
			
		||||
					autoPlay : 'yes'
 | 
			
		||||
				},
 | 
			
		||||
				type : 'swf',
 | 
			
		||||
				url  : function( rez, params, obj ) {
 | 
			
		||||
					obj.swf.flashVars = 'playerVars=' + $.param( params, true );
 | 
			
		||||
 | 
			
		||||
					return '//www.metacafe.com/fplayer/' + rez[1] + '/.swf';
 | 
			
		||||
				}
 | 
			
		||||
			},
 | 
			
		||||
			dailymotion : {
 | 
			
		||||
				matcher : /dailymotion.com\/video\/(.*)\/?(.*)/,
 | 
			
		||||
				params  : {
 | 
			
		||||
					additionalInfos : 0,
 | 
			
		||||
					autoStart : 1
 | 
			
		||||
				},
 | 
			
		||||
				type : 'swf',
 | 
			
		||||
				url  : '//www.dailymotion.com/swf/video/$1'
 | 
			
		||||
			},
 | 
			
		||||
			twitvid : {
 | 
			
		||||
				matcher : /twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,
 | 
			
		||||
				params  : {
 | 
			
		||||
					autoplay : 0
 | 
			
		||||
				},
 | 
			
		||||
				type : 'iframe',
 | 
			
		||||
				url  : '//www.twitvid.com/embed.php?guid=$1'
 | 
			
		||||
			},
 | 
			
		||||
			twitpic : {
 | 
			
		||||
				matcher : /twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,
 | 
			
		||||
				type : 'image',
 | 
			
		||||
				url  : '//twitpic.com/show/full/$1/'
 | 
			
		||||
			},
 | 
			
		||||
			instagram : {
 | 
			
		||||
				matcher : /(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,
 | 
			
		||||
				type : 'image',
 | 
			
		||||
				url  : '//$1/p/$2/media/?size=l'
 | 
			
		||||
			},
 | 
			
		||||
			google_maps : {
 | 
			
		||||
				matcher : /maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,
 | 
			
		||||
				type : 'iframe',
 | 
			
		||||
				url  : function( rez ) {
 | 
			
		||||
					return '//maps.google.' + rez[1] + '/' + rez[3] + '' + rez[4] + '&output=' + (rez[4].indexOf('layer=c') > 0 ? 'svembed' : 'embed');
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		beforeLoad : function(opts, obj) {
 | 
			
		||||
			var url   = obj.href || '',
 | 
			
		||||
				type  = false,
 | 
			
		||||
				what,
 | 
			
		||||
				item,
 | 
			
		||||
				rez,
 | 
			
		||||
				params;
 | 
			
		||||
 | 
			
		||||
			for (what in opts) {
 | 
			
		||||
				if (opts.hasOwnProperty(what)) {
 | 
			
		||||
					item = opts[ what ];
 | 
			
		||||
					rez  = url.match( item.matcher );
 | 
			
		||||
 | 
			
		||||
					if (rez) {
 | 
			
		||||
						type   = item.type;
 | 
			
		||||
						params = $.extend(true, {}, item.params, obj[ what ] || ($.isPlainObject(opts[ what ]) ? opts[ what ].params : null));
 | 
			
		||||
 | 
			
		||||
						url = $.type( item.url ) === "function" ? item.url.call( this, rez, params, obj ) : format( item.url, rez, params );
 | 
			
		||||
 | 
			
		||||
						break;
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if (type) {
 | 
			
		||||
				obj.href = url;
 | 
			
		||||
				obj.type = type;
 | 
			
		||||
 | 
			
		||||
				obj.autoHeight = false;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
}(jQuery));
 | 
			
		||||
							
								
								
									
										55
									
								
								docs/common/libs/fancybox/helpers/jquery.fancybox-thumbs.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,55 @@
 | 
			
		||||
#fancybox-thumbs {
 | 
			
		||||
	position: fixed;
 | 
			
		||||
	left: 0;
 | 
			
		||||
	width: 100%;
 | 
			
		||||
	overflow: hidden;
 | 
			
		||||
	z-index: 8050;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-thumbs.bottom {
 | 
			
		||||
	bottom: 2px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-thumbs.top {
 | 
			
		||||
	top: 2px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-thumbs ul {
 | 
			
		||||
	position: relative;
 | 
			
		||||
	list-style: none;
 | 
			
		||||
	margin: 0;
 | 
			
		||||
	padding: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-thumbs ul li {
 | 
			
		||||
	float: left;
 | 
			
		||||
	padding: 1px;
 | 
			
		||||
	opacity: 0.5;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-thumbs ul li.active {
 | 
			
		||||
	opacity: 0.75;
 | 
			
		||||
	padding: 0;
 | 
			
		||||
	border: 1px solid #fff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-thumbs ul li:hover {
 | 
			
		||||
	opacity: 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-thumbs ul li a {
 | 
			
		||||
	display: block;
 | 
			
		||||
	position: relative;
 | 
			
		||||
	overflow: hidden;
 | 
			
		||||
	border: 1px solid #222;
 | 
			
		||||
	background: #111;
 | 
			
		||||
	outline: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-thumbs ul li img {
 | 
			
		||||
	display: block;
 | 
			
		||||
	position: relative;
 | 
			
		||||
	border: 0;
 | 
			
		||||
	padding: 0;
 | 
			
		||||
	max-width: none;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										162
									
								
								docs/common/libs/fancybox/helpers/jquery.fancybox-thumbs.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,162 @@
 | 
			
		||||
 /*!
 | 
			
		||||
 * Thumbnail helper for fancyBox
 | 
			
		||||
 * version: 1.0.7 (Mon, 01 Oct 2012)
 | 
			
		||||
 * @requires fancyBox v2.0 or later
 | 
			
		||||
 *
 | 
			
		||||
 * Usage:
 | 
			
		||||
 *     $(".fancybox").fancybox({
 | 
			
		||||
 *         helpers : {
 | 
			
		||||
 *             thumbs: {
 | 
			
		||||
 *                 width  : 50,
 | 
			
		||||
 *                 height : 50
 | 
			
		||||
 *             }
 | 
			
		||||
 *         }
 | 
			
		||||
 *     });
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
(function ($) {
 | 
			
		||||
	//Shortcut for fancyBox object
 | 
			
		||||
	var F = $.fancybox;
 | 
			
		||||
 | 
			
		||||
	//Add helper object
 | 
			
		||||
	F.helpers.thumbs = {
 | 
			
		||||
		defaults : {
 | 
			
		||||
			width    : 50,       // thumbnail width
 | 
			
		||||
			height   : 50,       // thumbnail height
 | 
			
		||||
			position : 'bottom', // 'top' or 'bottom'
 | 
			
		||||
			source   : function ( item ) {  // function to obtain the URL of the thumbnail image
 | 
			
		||||
				var href;
 | 
			
		||||
 | 
			
		||||
				if (item.element) {
 | 
			
		||||
					href = $(item.element).find('img').attr('src');
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				if (!href && item.type === 'image' && item.href) {
 | 
			
		||||
					href = item.href;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				return href;
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		wrap  : null,
 | 
			
		||||
		list  : null,
 | 
			
		||||
		width : 0,
 | 
			
		||||
 | 
			
		||||
		init: function (opts, obj) {
 | 
			
		||||
			var that = this,
 | 
			
		||||
				list,
 | 
			
		||||
				thumbWidth  = opts.width,
 | 
			
		||||
				thumbHeight = opts.height,
 | 
			
		||||
				thumbSource = opts.source;
 | 
			
		||||
 | 
			
		||||
			//Build list structure
 | 
			
		||||
			list = '';
 | 
			
		||||
 | 
			
		||||
			for (var n = 0; n < obj.group.length; n++) {
 | 
			
		||||
				list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>';
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			this.wrap = $('<div id="fancybox-thumbs"></div>').addClass(opts.position).appendTo('body');
 | 
			
		||||
			this.list = $('<ul>' + list + '</ul>').appendTo(this.wrap);
 | 
			
		||||
 | 
			
		||||
			//Load each thumbnail
 | 
			
		||||
			$.each(obj.group, function (i) {
 | 
			
		||||
				var href = thumbSource( obj.group[ i ] );
 | 
			
		||||
 | 
			
		||||
				if (!href) {
 | 
			
		||||
					return;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				$("<img />").load(function () {
 | 
			
		||||
					var width  = this.width,
 | 
			
		||||
						height = this.height,
 | 
			
		||||
						widthRatio, heightRatio, parent;
 | 
			
		||||
 | 
			
		||||
					if (!that.list || !width || !height) {
 | 
			
		||||
						return;
 | 
			
		||||
					}
 | 
			
		||||
 | 
			
		||||
					//Calculate thumbnail width/height and center it
 | 
			
		||||
					widthRatio  = width / thumbWidth;
 | 
			
		||||
					heightRatio = height / thumbHeight;
 | 
			
		||||
 | 
			
		||||
					parent = that.list.children().eq(i).find('a');
 | 
			
		||||
 | 
			
		||||
					if (widthRatio >= 1 && heightRatio >= 1) {
 | 
			
		||||
						if (widthRatio > heightRatio) {
 | 
			
		||||
							width  = Math.floor(width / heightRatio);
 | 
			
		||||
							height = thumbHeight;
 | 
			
		||||
 | 
			
		||||
						} else {
 | 
			
		||||
							width  = thumbWidth;
 | 
			
		||||
							height = Math.floor(height / widthRatio);
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
 | 
			
		||||
					$(this).css({
 | 
			
		||||
						width  : width,
 | 
			
		||||
						height : height,
 | 
			
		||||
						top    : Math.floor(thumbHeight / 2 - height / 2),
 | 
			
		||||
						left   : Math.floor(thumbWidth / 2 - width / 2)
 | 
			
		||||
					});
 | 
			
		||||
 | 
			
		||||
					parent.width(thumbWidth).height(thumbHeight);
 | 
			
		||||
 | 
			
		||||
					$(this).hide().appendTo(parent).fadeIn(300);
 | 
			
		||||
 | 
			
		||||
				}).attr('src', href);
 | 
			
		||||
			});
 | 
			
		||||
 | 
			
		||||
			//Set initial width
 | 
			
		||||
			this.width = this.list.children().eq(0).outerWidth(true);
 | 
			
		||||
 | 
			
		||||
			this.list.width(this.width * (obj.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5)));
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		beforeLoad: function (opts, obj) {
 | 
			
		||||
			//Remove self if gallery do not have at least two items
 | 
			
		||||
			if (obj.group.length < 2) {
 | 
			
		||||
				obj.helpers.thumbs = false;
 | 
			
		||||
 | 
			
		||||
				return;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			//Increase bottom margin to give space for thumbs
 | 
			
		||||
			obj.margin[ opts.position === 'top' ? 0 : 2 ] += ((opts.height) + 15);
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		afterShow: function (opts, obj) {
 | 
			
		||||
			//Check if exists and create or update list
 | 
			
		||||
			if (this.list) {
 | 
			
		||||
				this.onUpdate(opts, obj);
 | 
			
		||||
 | 
			
		||||
			} else {
 | 
			
		||||
				this.init(opts, obj);
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			//Set active element
 | 
			
		||||
			this.list.children().removeClass('active').eq(obj.index).addClass('active');
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		//Center list
 | 
			
		||||
		onUpdate: function (opts, obj) {
 | 
			
		||||
			if (this.list) {
 | 
			
		||||
				this.list.stop(true).animate({
 | 
			
		||||
					'left': Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5))
 | 
			
		||||
				}, 150);
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		beforeClose: function () {
 | 
			
		||||
			if (this.wrap) {
 | 
			
		||||
				this.wrap.remove();
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			this.wrap  = null;
 | 
			
		||||
			this.list  = null;
 | 
			
		||||
			this.width = 0;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}(jQuery));
 | 
			
		||||
							
								
								
									
										284
									
								
								docs/common/libs/fancybox/jquery.fancybox.css
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,284 @@
 | 
			
		||||
/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
 | 
			
		||||
.fancybox-wrap,
 | 
			
		||||
.fancybox-skin,
 | 
			
		||||
.fancybox-outer,
 | 
			
		||||
.fancybox-inner,
 | 
			
		||||
.fancybox-image,
 | 
			
		||||
.fancybox-wrap iframe,
 | 
			
		||||
.fancybox-wrap object,
 | 
			
		||||
.fancybox-nav,
 | 
			
		||||
.fancybox-nav span,
 | 
			
		||||
.fancybox-tmp
 | 
			
		||||
{
 | 
			
		||||
	padding: 0;
 | 
			
		||||
	margin: 0;
 | 
			
		||||
	border: 0;
 | 
			
		||||
	outline: none;
 | 
			
		||||
	vertical-align: top;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Ray: modified for raylib examples */
 | 
			
		||||
.fancybox-inner
 | 
			
		||||
{
 | 
			
		||||
    overflow: hidden!important;
 | 
			
		||||
    min-height: 520px!important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Ray: modified for raylib examples */
 | 
			
		||||
.fancybox-wrap {
 | 
			
		||||
    width: 860px!important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-wrap {
 | 
			
		||||
	position: absolute;
 | 
			
		||||
	top: 0;
 | 
			
		||||
	left: 0;
 | 
			
		||||
	z-index: 8020;
 | 
			
		||||
	border: 4px solid;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-skin {
 | 
			
		||||
	position: relative;
 | 
			
		||||
	background: #f9f9f9;
 | 
			
		||||
	color: #444;
 | 
			
		||||
	text-shadow: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-opened {
 | 
			
		||||
	z-index: 8030;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-opened .fancybox-skin {
 | 
			
		||||
	-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
 | 
			
		||||
	   -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
 | 
			
		||||
	        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-outer, .fancybox-inner {
 | 
			
		||||
	position: relative;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Ray: modified for raylib examples */
 | 
			
		||||
.fancybox-inner {
 | 
			
		||||
	overflow: hidden;
 | 
			
		||||
    width: 850px!important;     
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-type-iframe .fancybox-inner {
 | 
			
		||||
	-webkit-overflow-scrolling: touch;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-error {
 | 
			
		||||
	color: #444;
 | 
			
		||||
	font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
 | 
			
		||||
	margin: 0;
 | 
			
		||||
	padding: 15px;
 | 
			
		||||
	white-space: nowrap;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Ray: modified for raylib examples */
 | 
			
		||||
.fancybox-image, .fancybox-iframe {
 | 
			
		||||
	display: block;
 | 
			
		||||
	width: 830px;      
 | 
			
		||||
	height: 100%;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-image {
 | 
			
		||||
	max-width: 100%;
 | 
			
		||||
	max-height: 100%;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
 | 
			
		||||
	background-image: url('fancybox_sprite.png');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-loading {
 | 
			
		||||
	position: fixed;
 | 
			
		||||
	top: 50%;
 | 
			
		||||
	left: 50%;
 | 
			
		||||
	margin-top: -22px;
 | 
			
		||||
	margin-left: -22px;
 | 
			
		||||
	background-position: 0 -108px;
 | 
			
		||||
	opacity: 0.8;
 | 
			
		||||
	cursor: pointer;
 | 
			
		||||
	z-index: 8060;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#fancybox-loading div {
 | 
			
		||||
	width: 44px;
 | 
			
		||||
	height: 44px;
 | 
			
		||||
	background: url('fancybox_loading.gif') center center no-repeat;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-close {
 | 
			
		||||
	position: absolute;
 | 
			
		||||
	top: -18px;
 | 
			
		||||
	right: -18px;
 | 
			
		||||
	width: 36px;
 | 
			
		||||
	height: 36px;
 | 
			
		||||
	cursor: pointer;
 | 
			
		||||
	z-index: 8040;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-nav {
 | 
			
		||||
	position: absolute;
 | 
			
		||||
	top: 0;
 | 
			
		||||
	width: 40%;
 | 
			
		||||
	height: 100%;
 | 
			
		||||
	cursor: pointer;
 | 
			
		||||
	text-decoration: none;
 | 
			
		||||
	background: transparent url('blank.gif'); /* helps IE */
 | 
			
		||||
	-webkit-tap-highlight-color: rgba(0,0,0,0);
 | 
			
		||||
	z-index: 8040;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-prev {
 | 
			
		||||
	left: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-next {
 | 
			
		||||
	right: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-nav span {
 | 
			
		||||
	position: absolute;
 | 
			
		||||
	top: 50%;
 | 
			
		||||
	width: 36px;
 | 
			
		||||
	height: 34px;
 | 
			
		||||
	margin-top: -18px;
 | 
			
		||||
	cursor: pointer;
 | 
			
		||||
	z-index: 8040;
 | 
			
		||||
	visibility: hidden;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-prev span {
 | 
			
		||||
	left: 10px;
 | 
			
		||||
	background-position: 0 -36px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-next span {
 | 
			
		||||
	right: 10px;
 | 
			
		||||
	background-position: 0 -72px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-nav:hover span {
 | 
			
		||||
	visibility: visible;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-tmp {
 | 
			
		||||
	position: absolute;
 | 
			
		||||
	top: -99999px;
 | 
			
		||||
	left: -99999px;
 | 
			
		||||
	visibility: hidden;
 | 
			
		||||
	max-width: 99999px;
 | 
			
		||||
	max-height: 99999px;
 | 
			
		||||
	overflow: visible !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Overlay helper */
 | 
			
		||||
 | 
			
		||||
.fancybox-lock {
 | 
			
		||||
    overflow: hidden !important;
 | 
			
		||||
    width: auto;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-lock body {
 | 
			
		||||
    overflow: hidden !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-lock-test {
 | 
			
		||||
    overflow-y: hidden !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-overlay {
 | 
			
		||||
	position: absolute;
 | 
			
		||||
	top: 0;
 | 
			
		||||
	left: 0;
 | 
			
		||||
	overflow: hidden;
 | 
			
		||||
	display: none;
 | 
			
		||||
	z-index: 8010;
 | 
			
		||||
	background: url('fancybox_overlay.png');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-overlay-fixed {
 | 
			
		||||
	position: fixed;
 | 
			
		||||
	bottom: 0;
 | 
			
		||||
	right: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-lock .fancybox-overlay {
 | 
			
		||||
	overflow: auto;
 | 
			
		||||
	overflow-y: scroll;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Title helper */
 | 
			
		||||
 | 
			
		||||
.fancybox-title {
 | 
			
		||||
	visibility: hidden;
 | 
			
		||||
	font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
 | 
			
		||||
	position: relative;
 | 
			
		||||
	text-shadow: none;
 | 
			
		||||
	z-index: 8050;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-opened .fancybox-title {
 | 
			
		||||
	visibility: visible;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-title-float-wrap {
 | 
			
		||||
	position: absolute;
 | 
			
		||||
	bottom: 0;
 | 
			
		||||
	right: 50%;
 | 
			
		||||
	margin-bottom: -35px;
 | 
			
		||||
	z-index: 8050;
 | 
			
		||||
	text-align: center;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-title-float-wrap .child {
 | 
			
		||||
	display: inline-block;
 | 
			
		||||
	margin-right: -100%;
 | 
			
		||||
	padding: 2px 20px;
 | 
			
		||||
	background: transparent; /* Fallback for web browsers that doesn't support RGBa */
 | 
			
		||||
	background: rgba(0, 0, 0, 0.8);
 | 
			
		||||
	text-shadow: 0 1px 2px #222;
 | 
			
		||||
	color: #FFF;
 | 
			
		||||
	font-size: 10px;
 | 
			
		||||
	line-height: 24px;
 | 
			
		||||
	white-space: nowrap;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-title-outside-wrap {
 | 
			
		||||
	position: relative;
 | 
			
		||||
	margin-top: 10px;
 | 
			
		||||
	color: #fff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-title-inside-wrap {
 | 
			
		||||
	padding-top: 10px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fancybox-title-over-wrap {
 | 
			
		||||
	position: absolute;
 | 
			
		||||
	bottom: 0;
 | 
			
		||||
	left: 0;
 | 
			
		||||
	color: #fff;
 | 
			
		||||
	padding: 10px;
 | 
			
		||||
	background: #000;
 | 
			
		||||
	background: rgba(0, 0, 0, .8);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*Retina graphics!*/
 | 
			
		||||
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
 | 
			
		||||
	   only screen and (min--moz-device-pixel-ratio: 1.5),
 | 
			
		||||
	   only screen and (min-device-pixel-ratio: 1.5){
 | 
			
		||||
 | 
			
		||||
	#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
 | 
			
		||||
		background-image: url('fancybox_sprite@2x.png');
 | 
			
		||||
		background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	#fancybox-loading div {
 | 
			
		||||
		background-image: url('fancybox_loading@2x.gif');
 | 
			
		||||
		background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										2020
									
								
								docs/common/libs/fancybox/jquery.fancybox.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										46
									
								
								docs/common/libs/fancybox/jquery.fancybox.pack.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,46 @@
 | 
			
		||||
/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
 | 
			
		||||
(function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&E(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},w=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.5",defaults:{padding:15,margin:20,
 | 
			
		||||
width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},
 | 
			
		||||
keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+
 | 
			
		||||
(I?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,
 | 
			
		||||
openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,
 | 
			
		||||
isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,
 | 
			
		||||
c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&
 | 
			
		||||
k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||
 | 
			
		||||
b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=
 | 
			
		||||
setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,p.bind({"onCancel.player beforeClose.player":c,"onUpdate.player":e,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(q(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))},prev:function(a){var d=b.current;
 | 
			
		||||
d&&(q(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=
 | 
			
		||||
a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),
 | 
			
		||||
b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),
 | 
			
		||||
y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;
 | 
			
		||||
if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==v)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox-skin")&&!h.is(".fancybox-wrap");)j=h[0]&&!(h[0].style.overflow&&"hidden"===h[0].style.overflow)&&
 | 
			
		||||
(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,
 | 
			
		||||
{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,
 | 
			
		||||
mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=
 | 
			
		||||
!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");
 | 
			
		||||
"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=
 | 
			
		||||
this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);
 | 
			
		||||
f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,
 | 
			
		||||
e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,
 | 
			
		||||
outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}",
 | 
			
		||||
g);break;case "swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll":
 | 
			
		||||
"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?
 | 
			
		||||
h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||
 | 
			
		||||
h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c<m&&(c=m,j=l(c/D)),j<u&&(j=u,c=l(j*D))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&
 | 
			
		||||
"iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,p)));if(h.fitToView)if(g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height(),h.aspectRatio)for(;(a>z||y>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(p,j-10)),c=l(j*D),c<m&&(c=m,j=l(c/D)),c>n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&j<A&&c+x+q<z)&&(c+=q);g.width(c).height(j);e.width(c+x);a=e.width();
 | 
			
		||||
y=e.height();e=(a>z||y>r)&&c>m&&j>u;c=h.aspectRatio?c<F&&j<B&&c<C&&j<A:(c<F||j<B)&&(c<C||j<A);f.extend(h,{dim:{width:w(a),height:w(y)},origWidth:C,origHeight:A,canShrink:e,canExpand:c,wPadding:x,hPadding:v,wrapSpace:y-k.outerHeight(!0),skinSpace:k.height()-j});!H&&(h.autoHeight&&j>u&&j<p&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute",top:c[0],left:c[3]};d.autoCenter&&d.fixed&&
 | 
			
		||||
!a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=w(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=w(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&&(d.preventDefault(),
 | 
			
		||||
b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=
 | 
			
		||||
a||b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())):
 | 
			
		||||
(c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:w(c.top-h*a.topRatio),left:w(c.left-j*a.leftRatio),width:w(f+j),height:w(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"===
 | 
			
		||||
f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,
 | 
			
		||||
{duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=w(l(e[g])-200),c[g]="+=200px"):(e[g]=w(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=
 | 
			
		||||
b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:f("html"),create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=
 | 
			
		||||
f('<div class="fancybox-overlay"></div>').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?
 | 
			
		||||
b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),
 | 
			
		||||
p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===
 | 
			
		||||
f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=
 | 
			
		||||
b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('<div class="fancybox-title fancybox-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,
 | 
			
		||||
e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+
 | 
			
		||||
":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body");var e=20===
 | 
			
		||||
d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("<style type='text/css'>.fancybox-margin{margin-right:"+(d-a)+"px;}</style>").appendTo("head")})})(window,document,jQuery);
 | 
			
		||||
							
								
								
									
										205
									
								
								docs/common/libs/jquery.easing.1.3.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,205 @@
 | 
			
		||||
/*
 | 
			
		||||
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 | 
			
		||||
 *
 | 
			
		||||
 * Uses the built in easing capabilities added In jQuery 1.1
 | 
			
		||||
 * to offer multiple easing options
 | 
			
		||||
 *
 | 
			
		||||
 * TERMS OF USE - jQuery Easing
 | 
			
		||||
 * 
 | 
			
		||||
 * Open source under the BSD License. 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright © 2008 George McGinley Smith
 | 
			
		||||
 * All rights reserved.
 | 
			
		||||
 * 
 | 
			
		||||
 * Redistribution and use in source and binary forms, with or without modification, 
 | 
			
		||||
 * are permitted provided that the following conditions are met:
 | 
			
		||||
 * 
 | 
			
		||||
 * Redistributions of source code must retain the above copyright notice, this list of 
 | 
			
		||||
 * conditions and the following disclaimer.
 | 
			
		||||
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 | 
			
		||||
 * of conditions and the following disclaimer in the documentation and/or other materials 
 | 
			
		||||
 * provided with the distribution.
 | 
			
		||||
 * 
 | 
			
		||||
 * Neither the name of the author nor the names of contributors may be used to endorse 
 | 
			
		||||
 * or promote products derived from this software without specific prior written permission.
 | 
			
		||||
 * 
 | 
			
		||||
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 | 
			
		||||
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 | 
			
		||||
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 | 
			
		||||
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 | 
			
		||||
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 | 
			
		||||
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 | 
			
		||||
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 | 
			
		||||
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 | 
			
		||||
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 | 
			
		||||
 *
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
// t: current time, b: begInnIng value, c: change In value, d: duration
 | 
			
		||||
jQuery.easing['jswing'] = jQuery.easing['swing'];
 | 
			
		||||
 | 
			
		||||
jQuery.extend( jQuery.easing,
 | 
			
		||||
{
 | 
			
		||||
	def: 'easeOutQuad',
 | 
			
		||||
	swing: function (x, t, b, c, d) {
 | 
			
		||||
		//alert(jQuery.easing.default);
 | 
			
		||||
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
 | 
			
		||||
	},
 | 
			
		||||
	easeInQuad: function (x, t, b, c, d) {
 | 
			
		||||
		return c*(t/=d)*t + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeOutQuad: function (x, t, b, c, d) {
 | 
			
		||||
		return -c *(t/=d)*(t-2) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInOutQuad: function (x, t, b, c, d) {
 | 
			
		||||
		if ((t/=d/2) < 1) return c/2*t*t + b;
 | 
			
		||||
		return -c/2 * ((--t)*(t-2) - 1) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInCubic: function (x, t, b, c, d) {
 | 
			
		||||
		return c*(t/=d)*t*t + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeOutCubic: function (x, t, b, c, d) {
 | 
			
		||||
		return c*((t=t/d-1)*t*t + 1) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInOutCubic: function (x, t, b, c, d) {
 | 
			
		||||
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
 | 
			
		||||
		return c/2*((t-=2)*t*t + 2) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInQuart: function (x, t, b, c, d) {
 | 
			
		||||
		return c*(t/=d)*t*t*t + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeOutQuart: function (x, t, b, c, d) {
 | 
			
		||||
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInOutQuart: function (x, t, b, c, d) {
 | 
			
		||||
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
 | 
			
		||||
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInQuint: function (x, t, b, c, d) {
 | 
			
		||||
		return c*(t/=d)*t*t*t*t + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeOutQuint: function (x, t, b, c, d) {
 | 
			
		||||
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInOutQuint: function (x, t, b, c, d) {
 | 
			
		||||
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
 | 
			
		||||
		return c/2*((t-=2)*t*t*t*t + 2) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInSine: function (x, t, b, c, d) {
 | 
			
		||||
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeOutSine: function (x, t, b, c, d) {
 | 
			
		||||
		return c * Math.sin(t/d * (Math.PI/2)) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInOutSine: function (x, t, b, c, d) {
 | 
			
		||||
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInExpo: function (x, t, b, c, d) {
 | 
			
		||||
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeOutExpo: function (x, t, b, c, d) {
 | 
			
		||||
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInOutExpo: function (x, t, b, c, d) {
 | 
			
		||||
		if (t==0) return b;
 | 
			
		||||
		if (t==d) return b+c;
 | 
			
		||||
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
 | 
			
		||||
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInCirc: function (x, t, b, c, d) {
 | 
			
		||||
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeOutCirc: function (x, t, b, c, d) {
 | 
			
		||||
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInOutCirc: function (x, t, b, c, d) {
 | 
			
		||||
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
 | 
			
		||||
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInElastic: function (x, t, b, c, d) {
 | 
			
		||||
		var s=1.70158;var p=0;var a=c;
 | 
			
		||||
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
 | 
			
		||||
		if (a < Math.abs(c)) { a=c; var s=p/4; }
 | 
			
		||||
		else var s = p/(2*Math.PI) * Math.asin (c/a);
 | 
			
		||||
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeOutElastic: function (x, t, b, c, d) {
 | 
			
		||||
		var s=1.70158;var p=0;var a=c;
 | 
			
		||||
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
 | 
			
		||||
		if (a < Math.abs(c)) { a=c; var s=p/4; }
 | 
			
		||||
		else var s = p/(2*Math.PI) * Math.asin (c/a);
 | 
			
		||||
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInOutElastic: function (x, t, b, c, d) {
 | 
			
		||||
		var s=1.70158;var p=0;var a=c;
 | 
			
		||||
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
 | 
			
		||||
		if (a < Math.abs(c)) { a=c; var s=p/4; }
 | 
			
		||||
		else var s = p/(2*Math.PI) * Math.asin (c/a);
 | 
			
		||||
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
 | 
			
		||||
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInBack: function (x, t, b, c, d, s) {
 | 
			
		||||
		if (s == undefined) s = 1.70158;
 | 
			
		||||
		return c*(t/=d)*t*((s+1)*t - s) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeOutBack: function (x, t, b, c, d, s) {
 | 
			
		||||
		if (s == undefined) s = 1.70158;
 | 
			
		||||
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInOutBack: function (x, t, b, c, d, s) {
 | 
			
		||||
		if (s == undefined) s = 1.70158; 
 | 
			
		||||
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
 | 
			
		||||
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeInBounce: function (x, t, b, c, d) {
 | 
			
		||||
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
 | 
			
		||||
	},
 | 
			
		||||
	easeOutBounce: function (x, t, b, c, d) {
 | 
			
		||||
		if ((t/=d) < (1/2.75)) {
 | 
			
		||||
			return c*(7.5625*t*t) + b;
 | 
			
		||||
		} else if (t < (2/2.75)) {
 | 
			
		||||
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
 | 
			
		||||
		} else if (t < (2.5/2.75)) {
 | 
			
		||||
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
 | 
			
		||||
		} else {
 | 
			
		||||
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	easeInOutBounce: function (x, t, b, c, d) {
 | 
			
		||||
		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
 | 
			
		||||
		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
 | 
			
		||||
	}
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 *
 | 
			
		||||
 * TERMS OF USE - EASING EQUATIONS
 | 
			
		||||
 * 
 | 
			
		||||
 * Open source under the BSD License. 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright © 2001 Robert Penner
 | 
			
		||||
 * All rights reserved.
 | 
			
		||||
 * 
 | 
			
		||||
 * Redistribution and use in source and binary forms, with or without modification, 
 | 
			
		||||
 * are permitted provided that the following conditions are met:
 | 
			
		||||
 * 
 | 
			
		||||
 * Redistributions of source code must retain the above copyright notice, this list of 
 | 
			
		||||
 * conditions and the following disclaimer.
 | 
			
		||||
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 | 
			
		||||
 * of conditions and the following disclaimer in the documentation and/or other materials 
 | 
			
		||||
 * provided with the distribution.
 | 
			
		||||
 * 
 | 
			
		||||
 * Neither the name of the author nor the names of contributors may be used to endorse 
 | 
			
		||||
 * or promote products derived from this software without specific prior written permission.
 | 
			
		||||
 * 
 | 
			
		||||
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 | 
			
		||||
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 | 
			
		||||
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 | 
			
		||||
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 | 
			
		||||
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 | 
			
		||||
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 | 
			
		||||
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 | 
			
		||||
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 | 
			
		||||
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
							
								
								
									
										8
									
								
								docs/common/libs/jquery.mousewheel.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,8 @@
 | 
			
		||||
/*!
 | 
			
		||||
 * jQuery Mousewheel 3.1.13
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright 2015 jQuery Foundation and other contributors
 | 
			
		||||
 * Released under the MIT license.
 | 
			
		||||
 * http://jquery.org/license
 | 
			
		||||
 */
 | 
			
		||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
 | 
			
		||||