diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 44335d2..0000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ - -*.mp4 - -*.webm diff --git a/README.md b/README.md deleted file mode 100644 index ff7d6c0..0000000 --- a/README.md +++ /dev/null @@ -1,10 +0,0 @@ -Puls3-America -============= -.-..-. _ .-. .-. -: `' : :_; : : : : -: .. : .--. .-. .--. .--. .--. ,-.,-. .-' : .--. : : .--. -: :; :' '_.': :' .; :: ..'' .; ; : ,. :' .; :' .; : _ : :_ ' .; ; -:_;:_;`.__.': :`.__.':_; `.__,_;:_;:_;`.__.'`.__.':_;`.__;`.__,_; - .-. : - -El mejor curso de Diseño Web :D diff --git a/Thumbs.db b/Thumbs.db new file mode 100644 index 0000000..065e608 Binary files /dev/null and b/Thumbs.db differ diff --git a/articulo.html b/articulo.html new file mode 100644 index 0000000..6b9ec77 --- /dev/null +++ b/articulo.html @@ -0,0 +1,173 @@ + + + + + + + + + + + Puls3: Comunidad online de gente pro y (no sé qué más escribir) + + + + + + + + + + + + + +
+ + + +

Puls3: Comunidad de gente cool, atractiva y millonaria

+ +
+ +
+
+ + +
+ Home +
+
+
+ + + + +
+ +
+ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/css/iview.css b/css/iview.css new file mode 100644 index 0000000..f112316 --- /dev/null +++ b/css/iview.css @@ -0,0 +1,129 @@ +/* The slider */ +.iviewSlider { + overflow: hidden; +} + +/* The timer in the Slider */ +#iview-timer { + position: absolute; + z-index: 100; + border-radius: 5px; + cursor: pointer; +} + +#iview-timer div { + border-radius: 3px; +} + +/* The Preloader in the Slider */ +#iview-preloader { + position: absolute; + z-index: 1000; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + border: #000 1px solid; + padding: 1px; + width: 100px; + height: 3px; +} +#iview-preloader div { + float: left; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; + height: 3px; + background: #000; + width: 0px; +} + +/* The strips and boxes in the Slider */ +.iview-strip { + display:block; + position:absolute; + z-index:5; +} +.iview-block { + display:block; + position:absolute; + z-index:5; +} + +/* Direction nav styles (e.g. Next & Prev) */ +.iview-directionNav a { + position:absolute; + top:45%; + z-index:9; + cursor:pointer; +} +.iview-prevNav { + left:0px; +} +.iview-nextNav { + right:0px; +} + +/* Control nav styles (e.g. 1,2,3...) */ +.iview-controlNav { + position:absolute; + z-index:9; +} +.iview-controlNav a { + z-index:9; + cursor:pointer; +} +.iview-controlNav a.active { + font-weight:bold; +} +.iview-controlNav .iview-items ul { + list-style: none; +} +.iview-controlNav .iview-items ul li { + display: inline; + position: relative; +} +.iview-controlNav .iview-tooltip { + position: absolute; +} + +/* The captions in the Slider */ +.iview-caption { + position:absolute; + z-index:4; + overflow: hidden; + cursor: default; +} + +/* The video show in the Slider */ +.iview-video-show { + background: #000; + position: absolute; + width: 100%; + height: 100%; + z-index: 101; +} +.iview-video-show .iview-video-container { + position: relative; + width: 100%; + height: 100%; +} +.iview-video-show .iview-video-container a.iview-video-close { + position: absolute; + right: 10px; + top: 10px; + background: #000; + color: #FFF; + height: 20px; + width: 20px; + text-align: center; + line-height: 29px; + font-size: 22px; + font-weight: bold; + overflow: hidden; + -webkit-border-radius: 15px; + -moz-border-radius: 15px; + border-radius: 15px; +} +.iview-video-show .iview-video-container a.iview-video-close:hover { + background: #000; +} \ No newline at end of file diff --git a/css/skin 4/style.css b/css/skin 4/style.css new file mode 100644 index 0000000..296177b --- /dev/null +++ b/css/skin 4/style.css @@ -0,0 +1,110 @@ +.container { + display: block; + margin: 0px auto; +} + +#iview { + display: block; + max-width: 960px; + min-width: 300px; + background: #000; + background: rgba(0, 0, 0, 0.7); + padding: 5px; + border-radius: 2px; + position: relative; + margin: 40px auto; + overflow: hidden; +} + +#iview .iviewSlider { + display: block; + width: 900px; + height: 400px; + overflow: hidden; + border-radius: 4px; +} + + +#iview div.iview-directionNav { + position: absolute; + top: 47%; + left: 0px; + z-index: 9; + width: 100%; +} + +#iview div.iview-directionNav a { + display: block; + cursor: pointer; + position: absolute; + width: 27px; + height: 27px; + background-image: url(../../img/bg_direction_nav.png); + text-indent: -9999px; + -webkit-transition: left 0.3s ease-in-out; + -webkit-transition-property: left,right; + -moz-transition: left 0.3s ease-in-out; + -moz-transition-property: left,right; + -o-transition: left 0.3s ease-in-out; + -o-transition-property: left,right; + -ms-transition: left 0.3s ease-in-out; + -ms-transition-property: left,right; + transition: left 0.3s ease-in-out; + transition-property: left,right; +} + +#iview div.iview-directionNav a.iview-nextNav { + right: -27px; + background-position: 27px 0px; +} + +#iview div.iview-directionNav a.iview-prevNav { + left: -27px; + background-position: 0px 0px +} + +#iview.iview-hover div.iview-directionNav a.iview-nextNav { + right: 20px; +} + +#iview.iview-hover div.iview-directionNav a.iview-prevNav { + left: 20px; +} + +.iview-caption { + background: url('../../img/caption-bg.png'); + color: #FFF; + border-radius: 3px; + padding: 10px 15px; + font-family: Verdana; + font-size: 12px; + text-shadow: #000 1px 1px 0px; +} + +.iview-caption.caption1 { + text-shadow: none; +} + +.iview-caption.caption2 { + text-shadow: none; +} + +.iview-caption.caption3 { + text-shadow: none; +} + +#iview-preloader { + border: #666 1px solid; + width: 150px +} + +#iview-preloader div { + background: #666; +} +#iview-timer { + border-radius: 10px; +} + +#iview-timer div { + border-radius: 10px; +} \ No newline at end of file diff --git a/estilos.css b/estilos.css index d121478..1e828bb 100644 --- a/estilos.css +++ b/estilos.css @@ -1,276 +1,420 @@ +/*Y ahora los estilos:*/ +/*Se importan las fuentes especiales...*/ @font-face { - font-family: 'icomoon'; + font-family:'icomoon'; src:url('fonts/icomoon.eot'); - src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'), - url('fonts/icomoon.woff') format('woff'), - url('fonts/icomoon.ttf') format('truetype'), - url('fonts/icomoon.svg#icomoon') format('svg'); - font-weight: normal; + src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'), url('fonts/icomoon.woff') format('woff'), url('fonts/icomoon.ttf') format('truetype'), url('fonts/icomoon.svg#icomoon') format('svg'); + font-weight:normal; font-style: normal; } - -a -{ - color: #DD4F24; +/*Se le da color a los links*/ +a { + color:#DD4F24; + text-decoration: none; } -body -{ - background: #EFEFEF; - color: #4C4C4C; - font-family: "PT Sans", Arial; - font-size: 16px; - margin: 0; -} -/* -comentario de lo que sea -*/ -footer -{ - background: #434343; - color: #A7A7A7; - padding: 1em 0; - text-align: center; +/*Características básicas del body*/ +body { + /*Color de fondo de la página.*/ + background:#EFEFEF; + /*Color de la fuente*/ + color:#4C4C4C; + /*Tipografía(PT Sans),y,en caso de que no se pueda cargar esa...Arial*/ + font-family:"PT Sans",Arial; + /*Tamaño de fuente*/ + font-size:16px; +} +/*Y del footer...[De auí todo es muy intuitivo,así que sólo explicaré lo importante]*/ +footer { + background:#434343; + color:#A7A7A7; + padding:1em 0; + text-align:center; width: 100%; } -footer p -{ - margin: 0; -} -header -{ - background: #434343; - color: white; - margin: 0; - padding: 0.5em; -} -header:after{ - clear: both; - content: ""; - display: block; +/*Anidados:estamos diciendo que le aplique los estilos a el párrafo que esté dentro del footer*/ +footer p { + margin:0; } -header figure -{ - float: left; +header { + background:#434343; + color:white; + margin:0; + padding:0.5em; + position: relative; } -header h1 -{ - font-size: 20px; - font-weight: normal; - margin: 1em 85px 1em 100px; +header a div { + background-color:#06bbe1; + /*El redondeado del borde */ + border-radius:3px 3px 0 0; + color:white; + font-size:1.1em; + /*El alto*/ + height:25px; + /*El ancho*/ + width:80px; + position:absolute; + /*Espacio desde abajo*/ + bottom:0; + /*Espacio desde la izquierda*/ + left:60%; + padding:0 10px; + vertical-align:middle; +} +/*Agregar las tipografías especiales:o*/ +/*Despues del div que contiene el link que está en el header...*/ +header a div:after { + + /*Agregar la "letra":*/ + content:"\e002"; + /*50% de opacidad*/ + opacity:0.5; + /*Y la fuente(Lo más importante)que sabe a qué caracter se refiere*/ + font-family:"icomoon"; + /*Que se pegue a la derecha*/ + float:right; + /*Y que pase por toda la mitad*/ + line-height:22px; +} +/*Organizando algunos bugs del header...*/ +header:after { + clear:both; + content:""; display: block; } -header #avatar -{ - position: absolute; - top: 0; - right: 0; - margin: 1em 1em 0 0; -} -header #avatar figcaption -{ - background: #22BCE0; - float: right; - height: 50px; +/*cuando el cursor esté sobre el header*/ +header a div { + -webkit-transition:background-color 1s ease; + -moz-transition: background-color 1s ease; + -o-transition: background-color 1s ease; + transition: background-color 1s ease; +} +header a div:hover { + background-color:#07AECF; +} +header figure { + float:left; +} +header h1 { + font-size:20px; + font-weight:normal; + margin:1em 85px 1em 100px; + display:block; +} +header #avatar { + position:absolute; + top:0; + right:0; + margin:1em 1em 0 0; +} +header #avatar figcaption { + background:#22BCE0; + float:right; + height:50px; line-height: 50px; } -header #avatar figcaption:after -{ - content: "\e001"; - font-family: "icomoon"; - font-size: 0.7em; - opacity: 0.5; +/*Más tipografías especiales...*/ +header #avatar figcaption:after { + content:"\e001"; + font-family:"icomoon"; + font-size:0.7em; + opacity:0.5; } -header #avatar img -{ - float: left; - width: 50px; +header #avatar img { + float:left; + width:50px; } -header #logo img -{ - width: 80px; +header #logo { + max-height:80px; + width:100px; } -nav -{ - background: #878787; - font-size: 0.9em; -} -nav ul -{ - list-style: none; - margin: 0; - padding: 0; -} -nav ul li -{ - display: inline-block; - margin: 0 1.2em 0 0; - vertical-align: top; +header #logo img { + width:80px; } -nav ul li a -{ - color: white; - display: block; - padding: 0.5em 0; -} -nav #flechita_nav a -{ - background: #22BCE0; - padding: 0.5em 0; - text-decoration: none; +nav { + background:#878787; + font-size: 0.9em; } -nav #flechita_nav a:after -{ - content: "\e000"; - font-family: "icomoon"; - opacity: 0.6; +nav ul { + /*Eliminando los puntos de los li(List items)*/ + list-style:none; + margin:0; + padding:0; +} +nav ul li { + display:inline-block; + padding:0 0.6em; + vertical-align:top; + margin:0; +} +nav ul li a { + color:white; + display:block; + padding:0.5em 0; + text-decoration:none; +} +nav ul li { + -webkit-transition:background-color 0.8s ease; + -moz-transition: background-color 0.8s ease; + -o-transition: background-color 0.8s ease; + transition: background-color 0.8s ease; + } -nav #publicar_nav -{ - /*i is zorri*/ - background: #DD4F24; - float: right; - margin-right: 0; - padding-right: 1em; - position: relative; +nav ul li:hover { + background-color:#7C7C7C; +} +nav #flechita_nav { + padding-left:0; + padding-right:0; +} +nav #flechita_nav a { + background:#22BCE0; + padding:0.5em 0; + text-decoration:none; +} +nav #flechita_nav a:after { + content:"\e000"; + font-family:"icomoon"; + opacity:0.6; +} +nav #publicar_nav { + background:#DD4F24; + float:right; + margin-right:0; + padding-right:1em; + position:relative; +} +nav #publicar_nav a { + display:inline-block; + padding:0.5em 1em; + text-decoration:none; +} +nav #publicar_nav:after { + color:rgba(255,255,255,0.5); + content:"\e004"; + font-family:"icomoon"; + font-size:1.8em; + position:absolute; + right:0; + top:0; +} +nav #publicar_nav:hover { + background:#FF5B29; +} +#bienvenida { + display:none; +} + { + margin:1em; +} +.item { + background:white; + border-bottom:3px #22BCE0 solid; + margin-bottom:3em; + min-height:128px; + position:relative; +} +#contenido p,#contenido p { + color:#7A7A7A; + font-size:0.9em; +} +.primer_item { + background:white; + border-bottom:3px #de5659 solid; + margin-bottom:3em; + min-height:128px; + padding-right:1em; + position:relative; +} +.primer_item .votacion { + background:white; + border-radius:0 0 0.5em 0.5em; + margin:3px 0 0 0; + padding:0.5em 0; + position:absolute; + text-align:center; + top:100%; + width:96px; } -nav #publicar_nav:after -{ - color: rgba(255,255,255,0.5); - content: "\e004"; - font-family: "icomoon"; - font-size: 1.8em; - position: absolute; - right: 0; - top: 0; + +.primer_item .votacion a { + text-decoration:none; } -nav #publicar_nav a -{ - display: inline-block; - padding: 0.5em 1em; - text-decoration: none; +.primer_item .votacion .down:after,.primer_item .votacion .up:after { + font-family:"icomoon"; + font-size:1.5em; + vertical-align:bottom; } -#bienvenida -{ - display: none; +.primer_item .votacion .down:after { + color:red; + content:"\e001"; } -#contenido -{ - margin: 1em; +.primer_item .votacion .up:after { + color:green; + content:"\e002"; } -#contenido .item -{ - background: white; - border-bottom: 3px #22BCE0 solid; - margin-bottom: 3em; - min-height: 128px; - position: relative; +.primer_item .datos_item .guardar_item { + margin:0 1em; + text-decoration:none; } -#contenido .item p -{ - color: #7A7A7A; - font-size: 0.9em; +.primer_item .datos_item .guardar_item:after { + color:#FD5; + content:"\e003"; + font-family: "icomoon"; } -#contenido .item .datos_item -{ +/****************************************************/ +#item_resaltado { + padding:0; + margin:0 auto; +} +#item_resaltado #imagen_grande { + font-size:1.3em; + position:relative; +} +#item_resaltado #imagen_grande #info_resaltada { + background:rgba(225,225,225,0.9); + bottom:5px; + border-bottom:3px solid #DD4F24; + position:absolute; + text-align:left; + width:100% +} +#item_resaltado .votacion { + float:left; + height:3em; + text-align:center; + color:black; + width:15%; + vertical-align:middle; +} +#item_resaltado #datos_resaltados { + float:right; + width:85%; +} +.datos_item { text-align: right; } -#contenido .item .datos_item .comentarios_item -{ - background: #878787; - border-radius: 4px; - color: white; - margin: 0 0 0 2em; - padding: 4px; - position: relative; - text-decoration: none; +.datos_item .comentarios_item { + background:#878787; + border-radius:4px; + color:white; + margin:0 0 0 2em; + padding:4px; + position:relative; + /*Eliminando toda decoración del texto*/ + text-decoration:none; +} +.datos_item .comentarios_item:after { + border-left:5px solid transparent; + border-right:5px solid transparent; + border-top:5px solid #878787; + content:""; + left:18px; + position:absolute; + top:100%; } -#contenido .item .datos_item .comentarios_item:after{ - border-left: 5px solid transparent; - border-right: 5px solid transparent; - border-top: 5px solid #878787; - content: ""; - left :10px; - position: absolute; +.item .datos_item .guardar_item { + margin:0 1em; + text-decoration:none; +} +.item .datos_item .guardar_item:after { + color:#FD5; + content:"\e003"; + font-family:"icomoon"; +} +.datos_item .tag_item { + background:#22BCE0; + border-radius:0.5em; + color:white; + float:left; + padding:0.2em 0.5em; + text-decoration:none; +} +.imagen_item { + float:left; + margin:0 1em 0 0; +} +.imagen_item img { + width:96px; +} +.titulo_item { + font-size:1em; + font-style:italic; + padding:0.5em 0.5em 0; +} +.titulo_item a { + color:#444; + text-decoration:none; +} +.item .votacion { + background:white; + border-radius:0 0 0.5em 0.5em; + margin:3px 0 0 0; + padding:0.5em 0; + position:absolute; + text-align:center; top:100%; + width:96px; } -#contenido .item .datos_item .guardar_item -{ - margin: 0 1em; - text-decoration: none; +.votacion a { + text-decoration:none; } -#contenido .item .datos_item .guardar_item:after -{ - color: #FD5; - content: "\e003"; - font-family: "icomoon"; +.votacion .down:after,.votacion .up:after { + font-family:"icomoon"; + font-size:1.5em; + vertical-align:bottom; } -#contenido .item .datos_item .tag_item -{ - background: #22BCE0; - border-radius: 0.5em; - color: white; - float: left; - padding: 0.2em 0.5em; - text-decoration: none; +.votacion .down:after { + color:red; + content:"\e001"; } -#contenido .item .imagen_item -{ - float: left; - margin: 0 1em 0 0; +.votacion .up:after { + color:green; + content: "\e002"; } -#contenido .item .imagen_item img -{ - width: 96px; +#item_resaltado { + /*Borrando algunas cosas que apareceremos cuando sea un desktop...*/ + display:none; } -#contenido .item .titulo_item -{ - font-size: 1em; - font-style: italic; - padding: 0.5em 0.5em 0; +#post_texto { + padding:4em; + padding-top:0; + width: 80%; + font-size:0.9em; + text-align:justify; + font-weight: normal; } -#contenido .item .titulo_item a -{ - color: #444; - text-decoration: none; +#post_texto h1 { + font-size:1.3em; + text-align:center; } -#contenido .item .votacion -{ - background: white; - border-radius: 0 0 0.5em 0.5em; - margin: 3px 0 0 0; - padding: 0.5em 0; - position: absolute; - text-align: center; - top: 100%; - width: 96px; +#post_texto figure img { + width:100%; } -#contenido .item .votacion a -{ - text-decoration: none; +#post_texto figure figcaption { + color:#b3b3b3; + font-size: 0.7em; } -#contenido .item .votacion .down:after, -#contenido .item .votacion .up:after -{ - font-family: "icomoon"; - font-size: 1.5em; - vertical-align: bottom; +.item_imagen .titulo_item_imagen { + font-size:1em; + font-style:italic; + padding:0.5em 0.5em 0; } -#contenido .item .votacion .down:after -{ - color: red; - content: "\e001"; +.item_imagen .titulo_item_imagen a { + color:#BEBEBE; + text-decoration:none; } -#contenido .item .votacion .up:after +.item_imagen .votacion { - color: green; - content: "\e002"; + float: left; + height: 5em; + font-size: 1.3em; + text-align: center; + color: black; + margin-right: 1em; + width: 10%; + vertical-align: middle; } - - - - - - - - - +#grupo +{ + display: none; +} \ No newline at end of file diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..e5c0052 Binary files /dev/null and b/favicon.ico differ diff --git a/fonts/webfonts/geo-medium/eot/1110FC_0.eot b/fonts/webfonts/geo-medium/eot/1110FC_0.eot new file mode 100644 index 0000000..01bb181 Binary files /dev/null and b/fonts/webfonts/geo-medium/eot/1110FC_0.eot differ diff --git a/fonts/webfonts/geo-medium/svg/1110FC_0.svg b/fonts/webfonts/geo-medium/svg/1110FC_0.svg new file mode 100644 index 0000000..5cc5483 --- /dev/null +++ b/fonts/webfonts/geo-medium/svg/1110FC_0.svg @@ -0,0 +1,411 @@ + + +This is a Webfont from MyFonts. Full information about this font: +http://www.myfonts.com/fonts/emtype/geogrotesque/ +Copyright (c) 2009 by Eduardo Manso. All rights reserved.Geogrotesque is a trademark of Eduardo Manso. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/fonts/webfonts/geo-medium/svg/svg_test.html b/fonts/webfonts/geo-medium/svg/svg_test.html new file mode 100644 index 0000000..fb7c83d --- /dev/null +++ b/fonts/webfonts/geo-medium/svg/svg_test.html @@ -0,0 +1,46 @@ + + + +MyFonts Webfonts Demo for iOS devices + + + + + + + + +

MyFonts Webfonts Demo for iOS devices

+ + +

0. Geogrotesque Medium +(VersionID 499206, otf) +

+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+ +

An, partus ancillae sitne in fructu habendus, disseretur inter principes civitatis, P. Scaevolam M'.que Manilium, ab iisque M. Brutus dissentiet -- quod et acutum genus est et ad usus civium non inutile, nosque ea scripta reliquaque eiusdem generis et legimus libenter et legemus --, haec, quae vitam omnem continent, neglegentur? nam, ut sint illa vendibiliora, haec uberiora certe sunt. quamquam id quidem licebit iis existimare, qui legerint. nos autem hanc omnem quaestionem de finibus bonorum et malorum fere a nobis explicatam esse his litteris arbitramur, in quibus, quantum potuimus, non modo quid nobis probaretur, sed etiam quid a singulis philosophiae disciplinis diceretur, persecuti sumus.

+ +

Id qui in una virtute ponunt et splendore nominis capti quid natura postulet non intellegunt, errore maximo, si Epicurum audire voluerint, liberabuntur: istae enim vestrae eximiae pulchraeque virtutes nisi voluptatem efficerent, quis eas aut laudabilis aut expetendas arbitraretur? ut enim medicorum scientiam non ipsius artis, sed bonae valetudinis causa probamus, et gubernatoris ars, quia bene navigandi rationem habet, utilitate, non arte laudatur, sic sapientia, quae ars vivendi putanda est, non expeteretur, si nihil efficeret; nunc expetitur, quod est tamquam artifex conquirendae et comparandae voluptatis.

+ + + + + + \ No newline at end of file diff --git a/fonts/webfonts/geo-medium/ttf/1110FC_0.ttf b/fonts/webfonts/geo-medium/ttf/1110FC_0.ttf new file mode 100644 index 0000000..a43d6c3 Binary files /dev/null and b/fonts/webfonts/geo-medium/ttf/1110FC_0.ttf differ diff --git a/fonts/webfonts/geo-medium/woff/1110FC_0.woff b/fonts/webfonts/geo-medium/woff/1110FC_0.woff new file mode 100644 index 0000000..f431702 Binary files /dev/null and b/fonts/webfonts/geo-medium/woff/1110FC_0.woff differ diff --git a/fonts/webfonts/geo-regular/eot/11014B_0.eot b/fonts/webfonts/geo-regular/eot/11014B_0.eot new file mode 100644 index 0000000..b87819c Binary files /dev/null and b/fonts/webfonts/geo-regular/eot/11014B_0.eot differ diff --git a/fonts/webfonts/geo-regular/svg/11014B_0.svg b/fonts/webfonts/geo-regular/svg/11014B_0.svg new file mode 100644 index 0000000..b366c72 --- /dev/null +++ b/fonts/webfonts/geo-regular/svg/11014B_0.svg @@ -0,0 +1,403 @@ + + +This is a Webfont from MyFonts. Full information about this font: +http://www.myfonts.com/fonts/emtype/geogrotesque/ +Copyright (c) 2009 by Eduardo Manso. All rights reserved.Geogrotesque is a trademark of Eduardo Manso. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/fonts/webfonts/geo-regular/svg/svg_test.html b/fonts/webfonts/geo-regular/svg/svg_test.html new file mode 100644 index 0000000..2d76f6a --- /dev/null +++ b/fonts/webfonts/geo-regular/svg/svg_test.html @@ -0,0 +1,46 @@ + + + +MyFonts Webfonts Demo for iOS devices + + + + + + + + +

MyFonts Webfonts Demo for iOS devices

+ + +

0. Geogrotesque Regular +(VersionID 499202, otf) +

+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+ +

An, partus ancillae sitne in fructu habendus, disseretur inter principes civitatis, P. Scaevolam M'.que Manilium, ab iisque M. Brutus dissentiet -- quod et acutum genus est et ad usus civium non inutile, nosque ea scripta reliquaque eiusdem generis et legimus libenter et legemus --, haec, quae vitam omnem continent, neglegentur? nam, ut sint illa vendibiliora, haec uberiora certe sunt. quamquam id quidem licebit iis existimare, qui legerint. nos autem hanc omnem quaestionem de finibus bonorum et malorum fere a nobis explicatam esse his litteris arbitramur, in quibus, quantum potuimus, non modo quid nobis probaretur, sed etiam quid a singulis philosophiae disciplinis diceretur, persecuti sumus.

+ +

Id qui in una virtute ponunt et splendore nominis capti quid natura postulet non intellegunt, errore maximo, si Epicurum audire voluerint, liberabuntur: istae enim vestrae eximiae pulchraeque virtutes nisi voluptatem efficerent, quis eas aut laudabilis aut expetendas arbitraretur? ut enim medicorum scientiam non ipsius artis, sed bonae valetudinis causa probamus, et gubernatoris ars, quia bene navigandi rationem habet, utilitate, non arte laudatur, sic sapientia, quae ars vivendi putanda est, non expeteretur, si nihil efficeret; nunc expetitur, quod est tamquam artifex conquirendae et comparandae voluptatis.

+ + + + + + \ No newline at end of file diff --git a/fonts/webfonts/geo-regular/ttf/11014B_0.ttf b/fonts/webfonts/geo-regular/ttf/11014B_0.ttf new file mode 100644 index 0000000..27e926e Binary files /dev/null and b/fonts/webfonts/geo-regular/ttf/11014B_0.ttf differ diff --git a/fonts/webfonts/geo-regular/woff/11014B_0.woff b/fonts/webfonts/geo-regular/woff/11014B_0.woff new file mode 100644 index 0000000..cae7abd Binary files /dev/null and b/fonts/webfonts/geo-regular/woff/11014B_0.woff differ diff --git a/fonts/webfonts/geo-semibold/eot/style_169898.eot b/fonts/webfonts/geo-semibold/eot/style_169898.eot new file mode 100644 index 0000000..7fe26f1 Binary files /dev/null and b/fonts/webfonts/geo-semibold/eot/style_169898.eot differ diff --git a/fonts/webfonts/geo-semibold/svg/index.html b/fonts/webfonts/geo-semibold/svg/index.html new file mode 100644 index 0000000..5ae427c --- /dev/null +++ b/fonts/webfonts/geo-semibold/svg/index.html @@ -0,0 +1,46 @@ + + + +MyFonts Webfonts Demo for iOS devices + + + + + + + + +

MyFonts Webfonts Demo for iOS devices

+ + +

0. Geogrotesque SemiBold +(VersionID 499201, otf) +

+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+ +

An, partus ancillae sitne in fructu habendus, disseretur inter principes civitatis, P. Scaevolam M'.que Manilium, ab iisque M. Brutus dissentiet -- quod et acutum genus est et ad usus civium non inutile, nosque ea scripta reliquaque eiusdem generis et legimus libenter et legemus --, haec, quae vitam omnem continent, neglegentur? nam, ut sint illa vendibiliora, haec uberiora certe sunt. quamquam id quidem licebit iis existimare, qui legerint. nos autem hanc omnem quaestionem de finibus bonorum et malorum fere a nobis explicatam esse his litteris arbitramur, in quibus, quantum potuimus, non modo quid nobis probaretur, sed etiam quid a singulis philosophiae disciplinis diceretur, persecuti sumus.

+ +

Id qui in una virtute ponunt et splendore nominis capti quid natura postulet non intellegunt, errore maximo, si Epicurum audire voluerint, liberabuntur: istae enim vestrae eximiae pulchraeque virtutes nisi voluptatem efficerent, quis eas aut laudabilis aut expetendas arbitraretur? ut enim medicorum scientiam non ipsius artis, sed bonae valetudinis causa probamus, et gubernatoris ars, quia bene navigandi rationem habet, utilitate, non arte laudatur, sic sapientia, quae ars vivendi putanda est, non expeteretur, si nihil efficeret; nunc expetitur, quod est tamquam artifex conquirendae et comparandae voluptatis.

+ + + + + + \ No newline at end of file diff --git a/fonts/webfonts/geo-semibold/svg/style_169898.svg b/fonts/webfonts/geo-semibold/svg/style_169898.svg new file mode 100644 index 0000000..7a48dbb --- /dev/null +++ b/fonts/webfonts/geo-semibold/svg/style_169898.svg @@ -0,0 +1,419 @@ + + +This is a Webfont from MyFonts. Full information about this font: +http://www.myfonts.com/fonts/emtype/geogrotesque/semibold// +Copyright (c) 2009 by Eduardo Manso. All rights reserved.Geogrotesque is a trademark of Eduardo Manso. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/fonts/webfonts/geo-semibold/ttf/style_169898.ttf b/fonts/webfonts/geo-semibold/ttf/style_169898.ttf new file mode 100644 index 0000000..9ac21e8 Binary files /dev/null and b/fonts/webfonts/geo-semibold/ttf/style_169898.ttf differ diff --git a/fonts/webfonts/geo-semibold/woff/style_169898.woff b/fonts/webfonts/geo-semibold/woff/style_169898.woff new file mode 100644 index 0000000..1ad3fbf Binary files /dev/null and b/fonts/webfonts/geo-semibold/woff/style_169898.woff differ diff --git a/github.txt b/github.txt deleted file mode 100644 index bef50e5..0000000 --- a/github.txt +++ /dev/null @@ -1,32 +0,0 @@ - - - - -SISTEMA DE CONTROL DE VERSIONES - -Archivos -FTP ---> Hosting /public_html/ -www.fuckencio.com - -====== - -Github.com (repositorio) -Local COMMIT SYNC -________________ - -SVN (Subversion) -GIT - -Repositorios de código -Github.com - -1. Multiples versiones del mismo código -2. Cambios delta - Base de datos atómico de el código -3. Multiples personas sobre el mismo archivo -4. CULPA AL CULPABLE -5. Ramas (branches) - * master (github.com) REPO PRINCIPAL - * master (fuckencio.com) REPO LOCAL - * master (local) REPO LOCAL - * devpony (local) --> merge --> master (local) diff --git a/imagen-grande.jpg b/imagen-grande.jpg new file mode 100644 index 0000000..a99d294 Binary files /dev/null and b/imagen-grande.jpg differ diff --git a/img/bckg.jpg b/img/bckg.jpg new file mode 100644 index 0000000..2739a3e Binary files /dev/null and b/img/bckg.jpg differ diff --git a/img/bg_direction_nav.png b/img/bg_direction_nav.png new file mode 100644 index 0000000..de3fe04 Binary files /dev/null and b/img/bg_direction_nav.png differ diff --git a/img/bg_direction_nav_white.png b/img/bg_direction_nav_white.png new file mode 100644 index 0000000..cb98d23 Binary files /dev/null and b/img/bg_direction_nav_white.png differ diff --git a/img/bullets.png b/img/bullets.png new file mode 100644 index 0000000..1af5b01 Binary files /dev/null and b/img/bullets.png differ diff --git a/img/bullets_2.png b/img/bullets_2.png new file mode 100644 index 0000000..7dc41d4 Binary files /dev/null and b/img/bullets_2.png differ diff --git a/img/caption-bg.png b/img/caption-bg.png new file mode 100644 index 0000000..48e10d1 Binary files /dev/null and b/img/caption-bg.png differ diff --git a/img/nav-bg.png b/img/nav-bg.png new file mode 100644 index 0000000..643530f Binary files /dev/null and b/img/nav-bg.png differ diff --git a/img/nav_paddles.png b/img/nav_paddles.png new file mode 100644 index 0000000..6cdcd57 Binary files /dev/null and b/img/nav_paddles.png differ diff --git a/img/nav_paddles_down.png b/img/nav_paddles_down.png new file mode 100644 index 0000000..370b269 Binary files /dev/null and b/img/nav_paddles_down.png differ diff --git a/img/navigation-bg.png b/img/navigation-bg.png new file mode 100644 index 0000000..056b60e Binary files /dev/null and b/img/navigation-bg.png differ diff --git a/img/slider-controls.png b/img/slider-controls.png new file mode 100644 index 0000000..59b1112 Binary files /dev/null and b/img/slider-controls.png differ diff --git a/img/timer-bar-bg.png b/img/timer-bar-bg.png new file mode 100644 index 0000000..bba86aa Binary files /dev/null and b/img/timer-bar-bg.png differ diff --git a/img/tooltip.png b/img/tooltip.png new file mode 100644 index 0000000..a1f2ed0 Binary files /dev/null and b/img/tooltip.png differ diff --git a/img/topbar-active.png b/img/topbar-active.png new file mode 100644 index 0000000..51ef527 Binary files /dev/null and b/img/topbar-active.png differ diff --git a/img/topbar-hover.png b/img/topbar-hover.png new file mode 100644 index 0000000..02aaddd Binary files /dev/null and b/img/topbar-hover.png differ diff --git a/img/topbar.png b/img/topbar.png new file mode 100644 index 0000000..46c0d6a Binary files /dev/null and b/img/topbar.png differ diff --git a/index.html b/index.html index 31db222..ebb04fa 100644 --- a/index.html +++ b/index.html @@ -1,80 +1,260 @@ + + + + - - - - Puls3: Comunidad online de gente pro y (no sé que más escribir) + + + Puls3: Comunidad online de gente pro y (no sé qué más escribir) + + + + + + + + iView™ v2.0 + + + + + + + + + + - +
+ +

Puls3: Comunidad de gente cool, atractiva y millonaria

+
+ + +
+ Home +
+
+ + + +
-
- + + +
+ + +
+
+ + - - - - - - - - - + \ No newline at end of file diff --git a/js/iview.js b/js/iview.js new file mode 100644 index 0000000..dc8f689 --- /dev/null +++ b/js/iview.js @@ -0,0 +1,1747 @@ +/** + * jQuery iView Slider v2.0 + * + * @version: 2.0.1 - August 17, 2012 + * + * @author: Hemn Chawroka + * hemn@iprodev.com + * http://iprodev.com/ + * + */ (function ($, window, undefined) { + + var iView = function (el, options) { + //Get slider holder + var iv = this; + + iv.options = options; + + iv.sliderContent = el, iv.sliderInner = iv.sliderContent.html(); + + iv.sliderContent.html("
" + iv.sliderInner + "
"); + + //Get slider + iv.slider = $('.iviewSlider', iv.sliderContent); + iv.slider.css('position', 'relative'); + + //Necessary variables. + iv.defs = { + slide: 0, + total: 0, + image: '', + images: [], + width: iv.sliderContent.width(), + height: iv.sliderContent.height(), + timer: options.timer.toLowerCase(), + lock: false, + paused: (options.autoAdvance) ? false : true, + time: options.pauseTime, + easing: options.easing + }; + + //Disable slider text selection + iv.disableSelection(iv.slider[0]); + + //Find slides + iv.slides = iv.slider.children(); + iv.slides.each(function (i) { + var slide = $(this); + + //Find images & thumbnails + iv.defs.images.push(slide.data("iview:image")); + if (slide.data("iview:thumbnail")) iv.defs.images.push(slide.data("iview:thumbnail")); + slide.css('display', 'none'); + + //Find videos + if (slide.data("iview:type") == "video") { + var element = slide.children().eq(0), + video = $('
˟
'); + slide.append(video); + element.appendTo($('div.iview-video-container', video)); + video.css({ + width: iv.defs.width, + height: iv.defs.height, + top: '-' + iv.defs.height + 'px' + }).hide(); + slide.addClass('iview-video').css({ + 'cursor': 'pointer' + }); + } + + iv.defs.total++; + }).css({ + width: iv.defs.width, + height: iv.defs.height + }); + + //Set Preloader Element + iv.sliderContent.append('
'); + var iviewPreloader = $('#iview-preloader', iv.sliderContent); + var preloaderBar = $('div', iviewPreloader); + iviewPreloader.css({ + top: ((iv.defs.height / 2) - (iviewPreloader.height() / 2)) + 'px', + left: ((iv.defs.width / 2) - (iviewPreloader.width() / 2)) + 'px' + }); + + //Set Timer Element + iv.sliderContent.append('
'); + iv.iviewTimer = $('#iview-timer', iv.sliderContent); + iv.iviewTimer.hide(); + + //Find captions + $('.iview-caption', iv.slider).each(function (i) { + var caption = $(this); + caption.html('
' + caption.html() + '
'); + }); + + //If randomStart + options.startSlide = (options.randomStart) ? Math.floor(Math.random() * iv.defs.total) : options.startSlide; + + //Set startSlide + options.startSlide = (options.startSlide > 0 && options.startSlide >= iv.defs.total) ? iv.defs.total - 1 : options.startSlide; + iv.defs.slide = options.startSlide; + + //Set first image + iv.defs.image = iv.slides.eq(iv.defs.slide); + + //Set pauseTime + iv.defs.time = (iv.defs.image.data('iview:pausetime')) ? iv.defs.image.data('iview:pausetime') : options.pauseTime; + + //Set easing + iv.defs.easing = (iv.defs.image.data('iview:easing')) ? iv.defs.image.data('iview:easing') : options.easing; + + iv.pieDegree = 0; + var padding = options.timerPadding, + diameter = options.timerDiameter, + stroke = options.timerStroke; + + if (iv.defs.total > 1 && iv.defs.timer != "bar") { + //Start the Raphael + stroke = (iv.defs.timer == "360bar") ? options.timerStroke : 0; + var width = (diameter + (padding * 2) + (stroke * 2)), + height = width, + r = Raphael(iv.iviewTimer[0], width, height); + + iv.R = (diameter / 2); + + var param = { + stroke: options.timerBg, + "stroke-width": (stroke + (padding * 2)) + }, + param2 = { + stroke: options.timerColor, + "stroke-width": stroke, + "stroke-linecap": "round" + }, + param3 = { + fill: options.timerColor, + stroke: 'none', + "stroke-width": 0 + }, + bgParam = { + fill: options.timerBg, + stroke: 'none', + "stroke-width": 0 + }; + + // Custom Arc Attribute + r.customAttributes.arc = function (value, R) { + var total = 360, + alpha = 360 / total * value, + a = (90 - alpha) * Math.PI / 180, + cx = ((diameter / 2) + padding + stroke), + cy = ((diameter / 2) + padding + stroke), + x = cx + R * Math.cos(a), + y = cy - R * Math.sin(a), + path; + if (total == value) { + path = [["M", cx, cy - R], ["A", R, R, 0, 1, 1, 299.99, cy - R]]; + } else { + path = [["M", cx, cy - R], ["A", R, R, 0, +(alpha > 180), 1, x, y]]; + } + return { + path: path + }; + }; + + // Custom Segment Attribute + r.customAttributes.segment = function (angle, R) { + var a1 = -90; + R = R - 1; + angle = (a1 + angle); + var flag = (angle - a1) > 180, + x = ((diameter / 2) + padding), + y = ((diameter / 2) + padding); + a1 = (a1 % 360) * Math.PI / 180; + angle = (angle % 360) * Math.PI / 180; + return { + path: [["M", x, y], ["l", R * Math.cos(a1), R * Math.sin(a1)], ["A", R, R, 0, +flag, 1, x + R * Math.cos(angle), y + R * Math.sin(angle)], ["z"]] + }; + }; + + if (iv.defs.total > 1 && iv.defs.timer == "pie") { + r.circle(iv.R + padding, iv.R + padding, iv.R + padding - 1).attr(bgParam); + } + iv.timerBgPath = r.path().attr(param), iv.timerPath = r.path().attr(param2), iv.pieTimer = r.path().attr(param3); + } + + iv.barTimer = $('div', iv.iviewTimer); + + if (iv.defs.total > 1 && iv.defs.timer == "360bar") { + iv.timerBgPath.attr({ + arc: [359.9, iv.R] + }); + } + + //Set Timer Styles + if (iv.defs.timer == "bar") { + iv.iviewTimer.css({ + opacity: options.timerOpacity, + width: diameter, + height: stroke, + border: options.timerBarStroke + 'px ' + options.timerBarStrokeColor + ' ' + options.timerBarStrokeStyle, + padding: padding, + background: options.timerBg + }); + iv.barTimer.css({ + width: 0, + height: stroke, + background: options.timerColor, + 'float': 'left' + }); + } else { + iv.iviewTimer.css({ + opacity: options.timerOpacity, + width: width, + height: height + }); + } + + //Set Timer Position + iv.setTimerPosition(); + + // Run Preloader + new ImagePreload(iv.defs.images, function (i) { + var percent = (i * 10); + preloaderBar.stop().animate({ + width: percent + '%' + }); + }, function () { + preloaderBar.stop().animate({ + width: '100%' + }, function () { + iviewPreloader.remove(); + iv.startSlider(); + + //Trigger the onAfterLoad callback + options.onAfterLoad.call(this); + }); + }); + + //Touch navigation + iv.sliderContent.bind('swipeleft', function () { + if (iv.defs.lock) return false; + iv.cleanTimer(); + iv.goTo('next'); + }).bind('swiperight', function () { + if (iv.defs.lock) return false; + iv.cleanTimer(); + iv.defs.slide -= 2; + iv.goTo('prev'); + }); + + + + //Keyboard Navigation + if (options.keyboardNav) { + $(document).bind('keyup.iView', function (event) { + //Left + if (event.keyCode == '37') { + if (iv.defs.lock) return false; + iv.cleanTimer(); + iv.defs.slide -= 2; + iv.goTo('prev'); + } + //Right + if (event.keyCode == '39') { + if (iv.defs.lock) return false; + iv.cleanTimer(); + iv.goTo('next'); + } + }); + } + + //Play/Pause action + iv.iviewTimer.live('click', function () { + if (iv.iviewTimer.hasClass('paused')) { + iv.playSlider(); + } else { + iv.stopSlider(); + } + }); + + //Bind the stop action + iv.sliderContent.bind('iView:pause', function () { + iv.stopSlider(); + }); + + //Bind the start action + iv.sliderContent.bind('iView:play', function () { + iv.playSlider(); + }); + + //Bind the start action + iv.sliderContent.bind('iView:previous', function () { + if (iv.defs.lock) return false; + iv.cleanTimer(); + iv.defs.slide -= 2; + iv.goTo('prev'); + }); + + //Bind the start action + iv.sliderContent.bind('iView:next', function () { + if (iv.defs.lock) return false; + iv.cleanTimer(); + iv.goTo('next'); + }); + + //Bind the goSlide action + iv.sliderContent.bind('iView:goSlide', function (event, slide) { + if (iv.defs.lock || iv.defs.slide == slide) return false; + if ($(this).hasClass('active')) return false; + iv.cleanTimer(); + iv.slider.css('background', 'url("' + iv.defs.image.data('iview:image') + '") no-repeat'); + iv.defs.slide = slide - 1; + iv.goTo('control'); + }); + + //Bind the resize action + iv.sliderContent.bind('resize', function () { + + t = $(this), + tW = t.width(), + tH = t.height(), + width = iv.slider.width(), + height = iv.slider.height(); + + if(iv.defs.width != tW){ + var ratio = (tW / width), + newHeight = Math.round(iv.defs.height * ratio); + iv.slider.css({ + '-webkit-transform-origin' : '0 0', + '-moz-transform-origin' : '0 0', + '-o-transform-origin' : '0 0', + '-ms-transform-origin' : '0 0', + 'transform-origin' : '0 0', + '-webkit-transform' : 'scale('+ ratio +')', + '-moz-transform' : 'scale('+ ratio +')', + '-o-transform' : 'scale('+ ratio +')', + '-ms-transform' : 'scale('+ ratio +')', + 'transform' : 'scale('+ ratio +')' + }); + t.css({ height: newHeight }); + iv.defs.width = tW; + + //Set Timer Position + iv.setTimerPosition(); + } + }); + + //Bind video display + $('.iview-video', iv.slider).click(function(e){ + var t = $(this), + video = $('.iview-video-show', t); + if(!$(e.target).hasClass('iview-video-close') && !$(e.target).hasClass('iview-caption') && !$(e.target).parents().hasClass('iview-caption')){ + video.show().animate({ top: 0 }, 1000, 'easeOutBounce'); + iv.sliderContent.trigger('iView:pause'); + } + }); + + //Bind the video closer + $('.iview-video-close', iv.slider).click(function(){ + var video = $(this).parents('.iview-video-show'), + iframe = $('iframe', video), + src = iframe.attr('src'); + + iframe.removeAttr('src').attr('src',src); + + video.animate({ top: '-' + iv.defs.height + 'px' }, 1000, 'easeOutBounce', function(){ + video.hide(); + iv.sliderContent.trigger('iView:play'); + }); + }); + + }; + + //iView helper functions + iView.prototype = { + timer: null, + + //Start Slider + startSlider: function () { + var iv = this; + + var img = new Image(); + img.src = iv.slides.eq(0).data('iview:image'); + imgWidth = img.width; + if(imgWidth != iv.defs.width){ + iv.defs.width = imgWidth; + iv.sliderContent.trigger('resize'); + } + + iv.iviewTimer.show(); + + //Show slide + iv.slides.eq(iv.defs.slide).css('display', 'block'); + + //Set first background + iv.slider.css('background', 'url("' + iv.defs.image.data('iview:image') + '") no-repeat'); + + //Set initial caption + iv.setCaption(iv.options); + + iv.iviewTimer.addClass('paused').attr('title', iv.options.playLabel); + + if (iv.options.autoAdvance && iv.defs.total > 1) { + iv.iviewTimer.removeClass('paused').attr('title', iv.options.pauseLabel); + iv.setTimer(); + } + + //Add Direction nav + if (iv.options.directionNav) { + iv.sliderContent.append('
' + iv.options.previousLabel + '' + iv.options.nextLabel + '
'); + + //Animate Direction nav + $('.iview-directionNav', iv.sliderContent).css({ + opacity: iv.options.directionNavHoverOpacity + }); + iv.sliderContent.hover(function () { + $('.iview-directionNav', iv.sliderContent).stop().animate({ + opacity: 1 + }, 300); + }, function () { + $('.iview-directionNav', iv.sliderContent).stop().animate({ + opacity: iv.options.directionNavHoverOpacity + }, 300); + }); + + $('a.iview-prevNav', iv.sliderContent).live('click', function () { + if (iv.defs.lock) return false; + iv.cleanTimer(); + iv.defs.slide -= 2; + iv.goTo('prev'); + }); + + $('a.iview-nextNav', iv.sliderContent).live('click', function () { + if (iv.defs.lock) return false; + iv.cleanTimer(); + iv.goTo('next'); + }); + } + + //Add Control nav + if (iv.options.controlNav) { + var iviewControl = '
', + iviewTooltip = ''; + if (!iv.options.directionNav && iv.options.controlNavNextPrev) iviewControl += '' + iv.options.previousLabel + ''; + iviewControl += '
'; + if (!iv.options.directionNav && iv.options.controlNavNextPrev) iviewControl += '' + iv.options.nextLabel + ''; + iviewControl += '
'; + + if (!iv.options.controlNavThumbs && iv.options.controlNavTooltip) iviewControl += '
' + iviewTooltip + '
'; + + iv.sliderContent.append(iviewControl); + + //Set initial active link + $('.iview-controlNav a.iview-control:eq(' + iv.defs.slide + ')', iv.sliderContent).addClass('active'); + + $('a.iview-controlPrevNav', iv.sliderContent).live('click', function () { + if (iv.defs.lock) return false; + iv.cleanTimer(); + iv.defs.slide -= 2; + iv.goTo('prev'); + }); + + $('a.iview-controlNextNav', iv.sliderContent).live('click', function () { + if (iv.defs.lock) return false; + iv.cleanTimer(); + iv.goTo('next'); + }); + + $('.iview-controlNav a.iview-control', iv.sliderContent).live('click', function () { + if (iv.defs.lock) return false; + if ($(this).hasClass('active')) return false; + iv.cleanTimer(); + iv.slider.css('background', 'url("' + iv.defs.image.data('iview:image') + '") no-repeat'); + iv.defs.slide = $(this).attr('rel') - 1; + iv.goTo('control'); + }); + + //Animate Control nav + $('.iview-controlNav', iv.sliderContent).css({ + opacity: iv.options.controlNavHoverOpacity + }); + iv.sliderContent.hover(function () { + $('.iview-controlNav', iv.sliderContent).stop().animate({ + opacity: 1 + }, 300); + iv.sliderContent.addClass('iview-hover'); + }, function () { + $('.iview-controlNav', iv.sliderContent).stop().animate({ + opacity: iv.options.controlNavHoverOpacity + }, 300); + iv.sliderContent.removeClass('iview-hover'); + }); + + //Show Tooltip + var tooltipTimer = null; + + $('.iview-controlNav a.iview-control', iv.sliderContent).hover(function (e) { + var t = $(this), + i = t.attr('rel'), + tooltip = $('#iview-tooltip', iv.sliderContent), + holder = $('div.holder', tooltip), + x = t.offset().left - iv.sliderContent.offset().left - (tooltip.outerWidth() / 2) + iv.options.tooltipX, + y = t.offset().top - iv.sliderContent.offset().top - tooltip.outerHeight() + iv.options.tooltipY, + imD = $('div[rel=' + i + ']') + scrollLeft = (i * imD.width()); + + tooltip.stop().animate({ + left: x, + top: y, + opacity: 1 + }, 300); + //tooltip.css({ opacity: 1 }); + if (tooltip.not(':visible')) tooltip.fadeIn(300); + holder.stop().animate({ + scrollLeft: scrollLeft + }, 300); + + clearTimeout(tooltipTimer); + + }, function (e) { + var tooltip = $('#iview-tooltip', iv.sliderContent); + tooltipTimer = setTimeout(function () { + tooltip.animate({ + opacity: 0 + }, 300, function () { + tooltip.hide(); + }); + }, 200); + }); + } + + //Bind hover setting + iv.sliderContent.bind('mouseover.iView mousemove.iView', function () { + //Clear the timer + if (iv.options.pauseOnHover && !iv.defs.paused) iv.cleanTimer(); + + iv.sliderContent.addClass('iview-hover'); + }).bind('mouseout.iView', function () { + //Restart the timer + if (iv.options.pauseOnHover && !iv.defs.paused && iv.timer == null && iv.pieDegree <= 359 && iv.options.autoAdvance) iv.setTimer(); + + iv.sliderContent.removeClass('iview-hover'); + }); + }, + + // setCaption function + setCaption: function () { + var iv = this, + slide = iv.slides.eq(iv.defs.slide), + captions = $('.iview-caption', slide), + timeEx = 0; + captions.each(function (i) { + var caption = $(this), + fx = (caption.data('transition')) ? $.trim(caption.data('transition').toLowerCase()) : "fade", + speed = (caption.data('speed')) ? caption.data('speed') : iv.options.captionSpeed, + easing = (caption.data('easing')) ? caption.data('easing') : iv.options.captionEasing, + x = (caption.data('x')!="undefined") ? caption.data('x') : "center", + y = (caption.data('y')!="undefined") ? caption.data('y') : "center", + w = (caption.data('width')) ? caption.data('width') : caption.width(), + h = (caption.data('height')) ? caption.data('height') : caption.height(), + oW = caption.outerWidth(), + oH = caption.outerHeight(); + + if(x == "center") x = ((iv.defs.width/2) - (oW/2)); + if(y == "center") y = ((iv.defs.height/2) - (oH/2)); + + var captionContain = $('.caption-contain', caption); + + caption.css({ + opacity: 0 + }); + captionContain.css({ + opacity: 0, + position: 'relative', + width: w, + height: h + }); + + switch (fx) { + case "wipedown": + caption.css({ + top: (y - h), + left: x + }); + captionContain.css({ + top: (h + (h * 3)), + left: 0 + }); + break; + case "wipeup": + caption.css({ + top: (y + h), + left: x + }); + captionContain.css({ + top: (h - (h * 3)), + left: 0 + }); + break; + case "wiperight": + caption.css({ + top: y, + left: (x - w) + }); + captionContain.css({ + top: 0, + left: (w + (w * 2)) + }); + break; + case "wipeleft": + caption.css({ + top: y, + left: (x + w) + }); + captionContain.css({ + top: 0, + left: (w - (w * 2)) + }); + break; + case "fade": + caption.css({ + top: y, + left: x + }); + captionContain.css({ + top: 0, + left: 0 + }); + break; + case "expanddown": + caption.css({ + top: y, + left: x, + height: 0 + }); + captionContain.css({ + top: (h + (h * 3)), + left: 0 + }); + break; + case "expandup": + caption.css({ + top: (y + h), + left: x, + height: 0 + }); + captionContain.css({ + top: (h - (h * 3)), + left: 0 + }); + break; + case "expandright": + caption.css({ + top: y, + left: x, + width: 0 + }); + captionContain.css({ + top: 0, + left: (w + (w * 2)) + }); + break; + case "expandleft": + caption.css({ + top: y, + left: (x + w), + width: 0 + }); + captionContain.css({ + top: 0, + left: (w - (w * 2)) + }); + break; + } + + setTimeout(function () { + caption.animate({ + opacity: iv.options.captionOpacity, + top: y, + left: x, + width: w, + height: h + }, speed, easing, function () {}); + }, timeEx); + setTimeout(function () { + captionContain.animate({ + opacity: iv.options.captionOpacity, + top: 0, + left: 0 + }, speed, easing); + }, (timeEx + 100)); + timeEx += 250; + }); + }, + + //Process the timer + processTimer: function () { + var iv = this; + if (iv.defs.timer == "360bar") { + var degree = (iv.pieDegree == 0) ? 0 : iv.pieDegree + .9; + iv.timerPath.attr({ + arc: [degree, iv.R] + }); + } else if (iv.defs.timer == "pie") { + var degree = (iv.pieDegree == 0) ? 0 : iv.pieDegree + .9; + iv.pieTimer.attr({ + segment: [degree, iv.R] + }); + } else { + iv.barTimer.css({ + width: ((iv.pieDegree / 360) * 100) + '%' + }); + } + iv.pieDegree += 3; + }, + + //When Animation finishes + transitionEnd: function (iv) { + //Trigger the onAfterChange callback + iv.options.onAfterChange.call(this); + + //Lock the slider + iv.defs.lock = false; + + //Hide slider slides + iv.slides.css('display', 'none'); + + //Diplay the current slide + iv.slides.eq(iv.defs.slide).show(); + + iv.slider.css('background', 'url("' + iv.defs.image.data('iview:image') + '") no-repeat'); + + // Remove any strips and blocks from last transition + $('.iview-strip, .iview-block', iv.slider).remove(); + + //Set slide pauseTime + iv.defs.time = (iv.defs.image.data('iview:pausetime')) ? iv.defs.image.data('iview:pausetime') : iv.options.pauseTime; + + //Process timer + iv.iviewTimer.animate({ + opacity: iv.options.timerOpacity + }); + iv.pieDegree = 0; + iv.processTimer(); + + //Set caption + iv.setCaption(iv.options); + + //Restart the timer + if (iv.timer == null && !iv.defs.paused) iv.timer = setInterval(function () { + iv.timerCall(iv); + }, (iv.defs.time / 120)); + }, + + // Add strips + addStrips: function (vertical, opts) { + var iv = this; + opts = (opts) ? opts : iv.options; + for (var i = 0; i < opts.strips; i++) { + var stripWidth = Math.round(iv.slider.width() / opts.strips), + stripHeight = Math.round(iv.slider.height() / opts.strips), + bgPosition = '-' + ((stripWidth + (i * stripWidth)) - stripWidth) + 'px 0%', + top = ((vertical) ? (stripHeight * i) + 'px' : '0px'), + left = ((vertical) ? '0px' : (stripWidth * i) + 'px'); + if (vertical) bgPosition = '0% -' + ((stripHeight + (i * stripHeight)) - stripHeight) + 'px'; + + if (i == opts.strips - 1) { + var width = ((vertical) ? '0px' : (iv.slider.width() - (stripWidth * i)) + 'px'), + height = ((vertical) ? (iv.slider.height() - (stripHeight * i)) + 'px' : '0px'); + } else { + var width = ((vertical) ? '0px' : stripWidth + 'px'), + height = ((vertical) ? stripHeight + 'px' : '0px'); + } + + var strip = $('
').css({ + width: width, + height: height, + top: top, + left: left, + background: 'url("' + iv.defs.image.data('iview:image') + '") no-repeat ' + bgPosition, + opacity: 0 + }); + + iv.slider.append(strip); + } + }, + + // Add blocks + addBlocks: function () { + var iv = this, + blockWidth = Math.round(iv.slider.width() / iv.options.blockCols), + blockHeight = Math.round(iv.slider.height() / iv.options.blockRows); + + for (var rows = 0; rows < iv.options.blockRows; rows++) { + for (var columns = 0; columns < iv.options.blockCols; columns++) { + var top = (rows * blockHeight) + 'px', + left = (columns * blockWidth) + 'px', + width = blockWidth + 'px', + height = blockHeight + 'px', + bgPosition = '-' + ((blockWidth + (columns * blockWidth)) - blockWidth) + 'px -' + ((blockHeight + (rows * blockHeight)) - blockHeight) + 'px'; + + if (columns == iv.options.blockCols - 1) width = (iv.slider.width() - (blockWidth * columns)) + 'px'; + + var block = $('
').css({ + width: blockWidth + 'px', + height: blockHeight + 'px', + top: (rows * blockHeight) + 'px', + left: (columns * blockWidth) + 'px', + background: 'url("' + iv.defs.image.data('iview:image') + '") no-repeat ' + bgPosition, + opacity: 0 + }); + + iv.slider.append(block); + } + } + }, + + runTransition: function (fx) { + var iv = this; + + switch (fx) { + case 'strip-up-right': + case 'strip-up-left': + iv.addStrips(); + var timeDelay = 0; + i = 0, strips = $('.iview-strip', iv.slider); + if (fx == 'strip-up-left') strips = $('.iview-strip', iv.slider).reverse(); + + strips.each(function () { + var strip = $(this); + strip.css({ + top: '', + bottom: '0px' + }); + + setTimeout(function () { + strip.animate({ + height: '100%', + opacity: '1.0' + }, iv.options.animationSpeed, iv.defs.easing, function () { + if (i == iv.options.strips - 1) iv.transitionEnd(iv); + i++; + }); + }, (100 + timeDelay)); + + timeDelay += 50; + }); + break; + case 'strip-down': + case 'strip-down-right': + case 'strip-down-left': + iv.addStrips(); + var timeDelay = 0, + i = 0, + strips = $('.iview-strip', iv.slider); + if (fx == 'strip-down-left') strips = $('.iview-strip', iv.slider).reverse(); + + strips.each(function () { + var strip = $(this); + strip.css({ + bottom: '', + top: '0px' + }); + + setTimeout(function () { + strip.animate({ + height: '100%', + opacity: '1.0' + }, iv.options.animationSpeed, iv.defs.easing, function () { + if (i == iv.options.strips - 1) iv.transitionEnd(iv); + i++; + }); + }, (100 + timeDelay)); + timeDelay += 50; + }); + break; + case 'strip-left-right': + case 'strip-left-right-up': + case 'strip-left-right-down': + iv.addStrips(true); + var timeDelay = 0, + i = 0, + v = 0, + strips = $('.iview-strip', iv.slider); + if (fx == 'strip-left-right-down') strips = $('.iview-strip', iv.slider).reverse(); + + strips.each(function () { + var strip = $(this); + if (i == 0) { + strip.css({ + right: '', + left: '0px' + }); + i++; + } else { + strip.css({ + left: '', + right: '0px' + }); + i = 0; + } + + setTimeout(function () { + strip.animate({ + width: '100%', + opacity: '1.0' + }, iv.options.animationSpeed, iv.defs.easing, function () { + if (v == iv.options.strips - 1) iv.transitionEnd(iv); + v++; + }); + }, (100 + timeDelay)); + timeDelay += 50; + }); + break; + case 'strip-up-down': + case 'strip-up-down-right': + case 'strip-up-down-left': + iv.addStrips(); + var timeDelay = 0, + i = 0, + v = 0, + strips = $('.iview-strip', iv.slider); + if (fx == 'strip-up-down-left') strips = $('.iview-strip', iv.slider).reverse(); + + strips.each(function () { + var strip = $(this); + if (i == 0) { + strip.css({ + bottom: '', + top: '0px' + }); + i++; + } else { + strip.css({ + top: '', + bottom: '0px' + }); + i = 0; + } + + setTimeout(function () { + strip.animate({ + height: '100%', + opacity: '1.0' + }, iv.options.animationSpeed, iv.defs.easing, function () { + if (v == iv.options.strips - 1) iv.transitionEnd(iv); + v++; + }); + }, (100 + timeDelay)); + timeDelay += 50; + }); + break; + case 'left-curtain': + case 'right-curtain': + case 'top-curtain': + case 'bottom-curtain': + if (fx == 'left-curtain' || fx == 'right-curtain') iv.addStrips(); + else iv.addStrips(true); + var timeDelay = 0, + i = 0, + strips = $('.iview-strip', iv.slider); + + if (fx == 'right-curtain' || fx == 'bottom-curtain') strips = $('.iview-strip', iv.slider).reverse(); + + strips.each(function () { + var strip = $(this); + var width = strip.width(); + var height = strip.height(); + if (fx == 'left-curtain' || fx == 'right-curtain') strip.css({ + top: '0px', + height: '100%', + width: '0px' + }); + else strip.css({ + left: '0px', + height: '0px', + width: '100%' + }); + setTimeout(function () { + if (fx == 'left-curtain' || fx == 'right-curtain') strip.animate({ + width: width, + opacity: '1.0' + }, iv.options.animationSpeed, iv.defs.easing, function () { + if (i == iv.options.strips - 1) iv.transitionEnd(iv); + i++; + }); + else strip.animate({ + height: height, + opacity: '1.0' + }, iv.options.animationSpeed, iv.defs.easing, function () { + if (i == iv.options.strips - 1) iv.transitionEnd(iv); + i++; + }); + }, (100 + timeDelay)); + timeDelay += 50; + }); + break; + case 'strip-up-right': + case 'strip-up-left': + iv.addStrips(); + var timeDelay = 0, + i = 0, + strips = $('.iview-strip', iv.slider); + if (fx == 'strip-up-left') strips = $('.iview-strip', iv.slider).reverse(); + + strips.each(function () { + var strip = $(this); + strip.css({ + 'bottom': '0px' + }); + setTimeout(function () { + strip.animate({ + height: '100%', + opacity: '1.0' + }, iv.options.animationSpeed, iv.defs.easing, function () { + if (i == iv.options.strips - 1) iv.transitionEnd(iv); + i++; + }); + }, (100 + timeDelay)); + timeDelay += 50; + }); + break; + case 'strip-left-fade': + case 'strip-right-fade': + case 'strip-top-fade': + case 'strip-bottom-fade': + if (fx == 'strip-left-fade' || fx == 'strip-right-fade') iv.addStrips(); + else iv.addStrips(true); + var timeDelay = 0, + i = 0, + strips = $('.iview-strip', iv.slider); + + if (fx == 'strip-right-fade' || fx == 'strip-bottom-fade') strips = $('.iview-strip', iv.slider).reverse(); + + strips.each(function () { + var strip = $(this); + var width = strip.width(); + var height = strip.height(); + if (fx == 'strip-left-fade' || fx == 'strip-right-fade') strip.css({ + top: '0px', + height: '100%', + width: width + }); + else strip.css({ + left: '0px', + height: height, + width: '100%' + }); + setTimeout(function () { + strip.animate({ + opacity: '1.0' + }, iv.options.animationSpeed * 1.7, iv.defs.easing, function () { + if (i == iv.options.strips - 1) iv.transitionEnd(iv); + i++; + }); + }, (100 + timeDelay)); + timeDelay += 35; + }); + break; + case 'slide-in-up': + case 'slide-in-down': + opts = { + strips: 1 + }; + iv.addStrips(false, opts); + + var strip = $('.iview-strip:first', iv.slider), + top = 0; + + if (fx == 'slide-in-up') top = '-' + iv.defs.height + 'px'; + else top = iv.defs.height + 'px'; + + strip.css({ + top: top, + 'height': '100%', + 'width': iv.defs.width + }); + + strip.animate({ + 'top': '0px', + opacity: 1 + }, (iv.options.animationSpeed * 2), iv.defs.easing, function () { + iv.transitionEnd(iv); + }); + break; + case 'zigzag-top': + case 'zigzag-bottom': + case 'zigzag-grow-top': + case 'zigzag-grow-bottom': + case 'zigzag-drop-top': + case 'zigzag-drop-bottom': + iv.addBlocks(); + + var totalBlocks = (iv.options.blockCols * iv.options.blockRows), + timeDelay = 0, + blockToArr = new Array(), + blocks = $('.iview-block', iv.slider); + + for (var rows = 0; rows < iv.options.blockRows; rows++) { + var odd = (rows % 2), + start = (rows * iv.options.blockCols), + end = ((rows + 1) * iv.options.blockCols); + if (odd == 1) { + for (var columns = end - 1; columns >= start; columns--) { + blockToArr.push($(blocks[columns])); + } + } else { + for (var columns = start; columns < end; columns++) { + blockToArr.push($(blocks[columns])); + } + } + } + + if (fx == 'zigzag-bottom' || fx == 'zigzag-grow-bottom' || fx == 'zigzag-drop-bottom') blockToArr.reverse(); + + // Run animation + blocks.each(function (i) { + var block = $(blockToArr[i]), + h = block.height(), + w = block.width(), + top = block.css('top'); + + if (fx == 'zigzag-grow-top' || fx == 'zigzag-grow-bottom') block.width(0).height(0); + else if (fx == 'zigzag-drop-top' || fx == 'zigzag-drop-bottom') block.css({ + top: '-=50' + }); + + setTimeout(function () { + if (fx == 'zigzag-grow-top' || fx == 'zigzag-grow-bottom') block.animate({ + opacity: '1', + height: h, + width: w + }, iv.options.animationSpeed, iv.defs.easing, function () { + if (i == totalBlocks - 1) iv.transitionEnd(iv); + }); + else if (fx == 'zigzag-drop-top' || fx == 'zigzag-drop-bottom') block.animate({ + top: top, + opacity: '1' + }, iv.options.animationSpeed, iv.defs.easing, function () { + if (i == totalBlocks - 1) iv.transitionEnd(iv); + }); + else block.animate({ + opacity: '1' + }, (iv.options.animationSpeed * 2), 'easeInOutExpo', function () { + if (i == totalBlocks - 1) iv.transitionEnd(iv); + }); + }, (100 + timeDelay)); + timeDelay += 20; + }); + break; + case 'block-fade': + case 'block-fade-reverse': + case 'block-expand': + case 'block-expand-reverse': + iv.addBlocks(); + + var totalBlocks = (iv.options.blockCols * iv.options.blockRows), + i = 0, + timeDelay = 0; + + // Split blocks into array + var rowIndex = 0; + var colIndex = 0; + var blockToArr = new Array(); + blockToArr[rowIndex] = new Array(); + var blocks = $('.iview-block', iv.slider); + if (fx == 'block-fade-reverse' || fx == 'block-expand-reverse') { + blocks = $('.iview-block', iv.slider).reverse(); + } + blocks.each(function () { + blockToArr[rowIndex][colIndex] = $(this); + colIndex++; + if (colIndex == iv.options.blockCols) { + rowIndex++; + colIndex = 0; + blockToArr[rowIndex] = new Array(); + } + }); + + // Run animation + for (var columns = 0; columns < (iv.options.blockCols * 2); columns++) { + var Col = columns; + for (var rows = 0; rows < iv.options.blockRows; rows++) { + if (Col >= 0 && Col < iv.options.blockCols) { + (function () { + var block = $(blockToArr[rows][Col]); + var w = block.width(); + var h = block.height(); + if (fx == 'block-expand' || fx == 'block-expand-reverse') { + block.width(0).height(0); + } + + setTimeout(function () { + block.animate({ + opacity: '1', + width: w, + height: h + }, iv.options.animationSpeed / 1.3, iv.defs.easing, function () { + if (i == totalBlocks - 1) iv.transitionEnd(iv); + i++; + }); + }, (100 + timeDelay)); + + })(); + } + Col--; + } + timeDelay += 100; + } + break; + case 'block-random': + case 'block-expand-random': + case 'block-drop-random': + iv.addBlocks(); + + var totalBlocks = (iv.options.blockCols * iv.options.blockRows), + timeDelay = 0; + + var blocks = iv.shuffle($('.iview-block', iv.slider)); + blocks.each(function (i) { + var block = $(this), + h = block.height(), + w = block.width(), + top = block.css('top'); + if (fx == 'block-expand-random') block.width(0).height(0); + if (fx == 'block-drop-random') block.css({ + top: '-=50' + }); + + setTimeout(function () { + block.animate({ + top: top, + opacity: '1', + height: h, + width: w + }, iv.options.animationSpeed, iv.defs.easing, function () { + if (i == totalBlocks - 1) iv.transitionEnd(iv); + }); + }, (100 + timeDelay)); + + timeDelay += 20; + }); + break; + case 'slide-in-right': + case 'slide-in-left': + case 'fade': + default: + opts = { + strips: 1 + }; + iv.addStrips(false, opts); + + var strip = $('.iview-strip:first', iv.slider); + strip.css({ + 'height': '100%', + 'width': iv.defs.width + }); + if (fx == 'slide-in-right') strip.css({ + 'height': '100%', + 'width': iv.defs.width, + 'left': iv.defs.width + 'px', + 'right': '' + }); + else if (fx == 'slide-in-left') strip.css({ + 'left': '-' + iv.defs.width + 'px' + }); + + strip.animate({ + left: '0px', + opacity: 1 + }, (iv.options.animationSpeed * 2), iv.defs.easing, function () { + iv.transitionEnd(iv); + }); + break; + } + }, + + // Shuffle an array + shuffle: function (oldArray) { + var newArray = oldArray.slice(); + var len = newArray.length; + var i = len; + while (i--) { + var p = parseInt(Math.random() * len); + var t = newArray[i]; + newArray[i] = newArray[p]; + newArray[p] = t; + } + return newArray; + }, + + // Timer interval caller + timerCall: function (iv) { + iv.processTimer(); + if (iv.pieDegree >= 360) { + iv.cleanTimer(); + iv.goTo(false); + } + }, + + //Set the timer function + setTimer: function () { + var iv = this; + iv.timer = setInterval(function () { + iv.timerCall(iv); + }, (iv.defs.time / 120)); + }, + + //Clean the timer function + cleanTimer: function () { + var iv = this; + clearInterval(iv.timer); + iv.timer = null; + }, + + + // goTo function + goTo: function (action) { + var iv = this; + //Trigger the onLastSlide callback + if (iv.defs && (iv.defs.slide == iv.defs.total - 1)) { + iv.options.onLastSlide.call(this); + } + + iv.cleanTimer(); + + iv.iviewTimer.animate({ + opacity: 0 + }); + + //Trigger the onBeforeChange callback + iv.options.onBeforeChange.call(this); + + //Set current background before change + if (!action) { + iv.slider.css('background', 'url("' + iv.defs.image.data('iview:image') + '") no-repeat'); + } else { + if (action == 'prev' || action == 'next') { + iv.slider.css('background', 'url("' + iv.defs.image.data('iview:image') + '") no-repeat'); + } + } + iv.defs.slide++; + + //Trigger the onSlideShowEnd callback + if (iv.defs.slide == iv.defs.total) { + iv.defs.slide = 0; + iv.options.onSlideShowEnd.call(this); + } + if (iv.defs.slide < 0) iv.defs.slide = (iv.defs.total - 1); + + //Set iv.defs.image + iv.defs.image = iv.slides.eq(iv.defs.slide); + + //Set active links + if (iv.options.controlNav) { + $('.iview-controlNav a.iview-control', iv.sliderContent).removeClass('active'); + $('.iview-controlNav a.iview-control:eq(' + iv.defs.slide + ')', iv.sliderContent).addClass('active'); + } + + var fx = iv.options.fx; + + //Generate random transition + if (iv.options.fx.toLowerCase() == 'random') { + var transitions = new Array('left-curtain', 'right-curtain', 'top-curtain', 'bottom-curtain', 'strip-down-right', 'strip-down-left', 'strip-up-right', 'strip-up-left', 'strip-up-down', 'strip-up-down-left', 'strip-left-right', 'strip-left-right-down', 'slide-in-right', 'slide-in-left', 'slide-in-up', 'slide-in-down', 'fade', 'block-random', 'block-fade', 'block-fade-reverse', 'block-expand', 'block-expand-reverse', 'block-expand-random', 'zigzag-top', 'zigzag-bottom', 'zigzag-grow-top', 'zigzag-grow-bottom', 'zigzag-drop-top', 'zigzag-drop-bottom', 'strip-left-fade', 'strip-right-fade', 'strip-top-fade', 'strip-bottom-fade', 'block-drop-random'); + fx = transitions[Math.floor(Math.random() * (transitions.length + 1))]; + if (fx == undefined) fx = 'fade'; + fx = $.trim(fx.toLowerCase()); + } + + //Run random transition from specified set (eg: effect:'strip-left-fade,right-curtain') + if (iv.options.fx.indexOf(',') != -1) { + var transitions = iv.options.fx.split(','); + fx = transitions[Math.floor(Math.random() * (transitions.length))]; + if (fx == undefined) fx = 'fade'; + fx = $.trim(fx.toLowerCase()); + } + + //Custom transition as defined by "data-iview:transition" attribute + if (iv.defs.image.data('iview:transition')) { + var transitions = iv.defs.image.data('iview:transition').split(','); + fx = transitions[Math.floor(Math.random() * (transitions.length))]; + fx = $.trim(fx.toLowerCase()); + } + + //Set slide easing + iv.defs.easing = (iv.defs.image.data('iview:easing')) ? iv.defs.image.data('iview:easing') : iv.options.easing; + + //Start Transition + iv.defs.lock = true; + iv.runTransition(fx); + }, + + playSlider: function () { + var iv = this; + if (iv.timer == null && iv.defs.paused) { + iv.iviewTimer.removeClass('paused').attr('title', iv.options.pauseLabel); + iv.setTimer(); + iv.defs.paused = false; + + //Trigger the onPlay callback + iv.options.onPlay.call(this); + } + }, + + stopSlider: function () { + var iv = this; + iv.iviewTimer.addClass('paused').attr('title', iv.options.playLabel); + iv.cleanTimer(); + iv.defs.paused = true; + + //Trigger the onPause callback + iv.options.onPause.call(this); + }, + + //Set Timer Position function + setTimerPosition: function(){ + var iv = this, + position = iv.options.timerPosition.toLowerCase().split('-'); + for (var i = 0; i < position.length; i++) { + if (position[i] == 'top') { + iv.iviewTimer.css({ + top: iv.options.timerY + 'px', + bottom: '' + }); + } else if (position[i] == 'middle') { + iv.iviewTimer.css({ + top: (iv.options.timerY + (iv.defs.height / 2) - (iv.options.timerDiameter / 2)) + 'px', + bottom: '' + }); + } else if (position[i] == 'bottom') { + iv.iviewTimer.css({ + bottom: iv.options.timerY + 'px', + top: '' + }); + } else if (position[i] == 'left') { + iv.iviewTimer.css({ + left: iv.options.timerX + 'px', + right: '' + }); + } else if (position[i] == 'center') { + iv.iviewTimer.css({ + left: (iv.options.timerX + (iv.defs.width / 2) - (iv.options.timerDiameter / 2)) + 'px', + right: '' + }); + } else if (position[i] == 'right') { + iv.iviewTimer.css({ + right: iv.options.timerX + 'px', + left: '' + }); + } + } + }, + + disableSelection: function (target) { + if (typeof target.onselectstart != "undefined") target.onselectstart = function () { + return false; + }; + else if (typeof target.style.MozUserSelect != "undefined") target.style.MozUserSelect = "none"; + else if (typeof target.style.webkitUserSelect != "undefined") target.style.webkitUserSelect = "none"; + else if (typeof target.style.userSelect != "undefined") target.style.userSelect = "none"; + else target.onmousedown = function () { + return false; + }; + target.unselectable = "on"; + }, + + //touch + isTouch: function () { + return !!('ontouchstart' in window); + } + }; + + //Image Preloader Function + var ImagePreload = function (p_aImages, p_pfnPercent, p_pfnFinished) { + this.m_pfnPercent = p_pfnPercent; + this.m_pfnFinished = p_pfnFinished; + this.m_nLoaded = 0; + this.m_nProcessed = 0; + this.m_aImages = new Array; + this.m_nICount = p_aImages.length; + for (var i = 0; i < p_aImages.length; i++) this.Preload(p_aImages[i]) + }; + + ImagePreload.prototype = { + Preload: function (p_oImage) { + var oImage = new Image; + this.m_aImages.push(oImage); + oImage.onload = ImagePreload.prototype.OnLoad; + oImage.onerror = ImagePreload.prototype.OnError; + oImage.onabort = ImagePreload.prototype.OnAbort; + oImage.oImagePreload = this; + oImage.bLoaded = false; + oImage.source = p_oImage; + oImage.src = p_oImage + }, + OnComplete: function () { + this.m_nProcessed++; + if (this.m_nProcessed == this.m_nICount) this.m_pfnFinished(); + else this.m_pfnPercent(Math.round((this.m_nProcessed / this.m_nICount) * 10)) + }, + OnLoad: function () { + this.bLoaded = true; + this.oImagePreload.m_nLoaded++; + this.oImagePreload.OnComplete() + }, + OnError: function () { + this.bError = true; + this.oImagePreload.OnComplete() + }, + OnAbort: function () { + this.bAbort = true; + this.oImagePreload.OnComplete() + } + } + + + + // Begin the iView plugin + $.fn.iView = function (options) { + + // Default options. Play carefully. + options = jQuery.extend({ + fx: 'random', + easing: 'easeOutQuad', + strips: 20, + blockCols: 10, + blockRows: 5, + animationSpeed: 500, + pauseTime: 5000, + startSlide: 0, + directionNav: true, + directionNavHoverOpacity: 0.6, + controlNav: false, + controlNavNextPrev: true, + controlNavHoverOpacity: 0.6, + controlNavThumbs: false, + controlNavTooltip: true, + captionSpeed: 500, + captionEasing: 'easeInOutSine', + captionOpacity: 1, + autoAdvance: true, + keyboardNav: true, + touchNav: true, + pauseOnHover: false, + nextLabel: "Next", + previousLabel: "Previous", + playLabel: "Play", + pauseLabel: "Pause", + closeLabel: "Close", + randomStart: false, + timer: 'Pie', + timerBg: '#000', + timerColor: '#EEE', + timerOpacity: 0.5, + timerDiameter: 30, + timerPadding: 4, + timerStroke: 3, + timerBarStroke: 1, + timerBarStrokeColor: '#EEE', + timerBarStrokeStyle: 'solid', + timerPosition: 'top-right', + timerX: 10, + timerY: 10, + tooltipX: 5, + tooltipY: -5, + onBeforeChange: function () {}, + onAfterChange: function () {}, + onAfterLoad: function () {}, + onLastSlide: function () {}, + onSlideShowEnd: function () {}, + onPause: function () {}, + onPlay: function () {} + }, options); + + $(this).each(function () { + var el = $(this); + new iView(el, options); + }); + + }; + + $.fn.reverse = [].reverse; + + var elems = $([]), + jq_resize = $.resize = $.extend($.resize, {}), + timeout_id, str_setTimeout = "setTimeout", + str_resize = "resize", + str_data = str_resize + "-special-event", + str_delay = "delay", + str_throttle = "throttleWindow"; + jq_resize[str_delay] = 250; + jq_resize[str_throttle] = true; + $.event.special[str_resize] = { + setup: function () { + if (!jq_resize[str_throttle] && this[str_setTimeout]) { + return false + } + var elem = $(this); + elems = elems.add(elem); + $.data(this, str_data, { + w: elem.width(), + h: elem.height() + }); + if (elems.length === 1) { + loopy() + } + }, + teardown: function () { + if (!jq_resize[str_throttle] && this[str_setTimeout]) { + return false + } + var elem = $(this); + elems = elems.not(elem); + elem.removeData(str_data); + if (!elems.length) { + clearTimeout(timeout_id) + } + }, + add: function (handleObj) { + if (!jq_resize[str_throttle] && this[str_setTimeout]) { + return false + } + var old_handler; + + function new_handler(e, w, h) { + var elem = $(this), + data = $.data(this, str_data); + data.w = w !== undefined ? w : elem.width(); + data.h = h !== undefined ? h : elem.height(); + old_handler.apply(this, arguments) + } + if ($.isFunction(handleObj)) { + old_handler = handleObj; + return new_handler + } else { + old_handler = handleObj.handler; + handleObj.handler = new_handler + } + } + }; + + function loopy() { + timeout_id = window[str_setTimeout](function () { + elems.each(function () { + var elem = $(this), + width = elem.width(), + height = elem.height(), + data = $.data(this, str_data); + if (width !== data.w || height !== data.h) { + elem.trigger(str_resize, [data.w = width, data.h = height]) + } + }); + loopy() + }, jq_resize[str_delay]) + } + + + var supportTouch = !! ('ontouchstart' in window), + touchStartEvent = supportTouch ? "touchstart" : "mousedown", + touchStopEvent = supportTouch ? "touchend" : "mouseup", + touchMoveEvent = supportTouch ? "touchmove" : "mousemove"; + // also handles swipeleft, swiperight + $.event.special.swipe = { + scrollSupressionThreshold: 10, // More than this horizontal displacement, and we will suppress scrolling. + + durationThreshold: 1000, // More time than this, and it isn't a swipe. + + horizontalDistanceThreshold: 30, // Swipe horizontal displacement must be more than this. + + verticalDistanceThreshold: 75, // Swipe vertical displacement must be less than this. + + setup: function () { + var thisObject = this, + $this = $(thisObject); + + $this.bind(touchStartEvent, function (event) { + var data = event.originalEvent.touches ? event.originalEvent.touches[0] : event, + start = { + time: (new Date()).getTime(), + coords: [data.pageX, data.pageY], + origin: $(event.target) + }, + stop; + + function moveHandler(event) { + + if (!start) { + return; + } + + var data = event.originalEvent.touches ? event.originalEvent.touches[0] : event; + + stop = { + time: (new Date()).getTime(), + coords: [data.pageX, data.pageY] + }; + + // prevent scrolling + if (Math.abs(start.coords[0] - stop.coords[0]) > $.event.special.swipe.scrollSupressionThreshold) { + event.preventDefault(); + } + } + + $this.bind(touchMoveEvent, moveHandler).one(touchStopEvent, function (event) { + $this.unbind(touchMoveEvent, moveHandler); + + if (start && stop) { + if (stop.time - start.time < $.event.special.swipe.durationThreshold && Math.abs(start.coords[0] - stop.coords[0]) > $.event.special.swipe.horizontalDistanceThreshold && Math.abs(start.coords[1] - stop.coords[1]) < $.event.special.swipe.verticalDistanceThreshold) { + + start.origin.trigger("swipe").trigger(start.coords[0] > stop.coords[0] ? "swipeleft" : "swiperight"); + } + } + start = stop = undefined; + }); + }); + } + }; + + + $.each({ + swipeleft: "swipe", + swiperight: "swipe" + }, function (event, sourceEvent) { + + $.event.special[event] = { + setup: function () { + $(this).bind(sourceEvent, $.noop); + } + }; + }); + +})(jQuery, this); \ No newline at end of file diff --git a/js/iview.min.js b/js/iview.min.js new file mode 100644 index 0000000..411c604 --- /dev/null +++ b/js/iview.min.js @@ -0,0 +1,66 @@ +/** + * jQuery iView Slider v2.0 + * + * @version: 2.0.1 - August 17, 2012 + * + * @author: Hemn Chawroka + * hemn@iprodev.com + * http://iprodev.com/ + * + */ +(function(d,v,q){function y(){z=v[s](function(){o.each(function(){var a=d(this),b=a.width(),c=a.height(),f=d.data(this,u);if(b!==f.w||c!==f.h)a.trigger(w,[f.w=b,f.h=c])});y()},p[A])}var B=function(a,b){var c=this;c.options=b;c.sliderContent=a;c.sliderInner=c.sliderContent.html();c.sliderContent.html("
"+c.sliderInner+"
");c.slider=d(".iviewSlider",c.sliderContent);c.slider.css("position","relative");c.defs={slide:0,total:0,image:"",images:[],width:c.sliderContent.width(), +height:c.sliderContent.height(),timer:b.timer.toLowerCase(),lock:!1,paused:b.autoAdvance?!1:!0,time:b.pauseTime,easing:b.easing};c.disableSelection(c.slider[0]);c.slides=c.slider.children();c.slides.each(function(){var a=d(this);c.defs.images.push(a.data("iview:image"));a.data("iview:thumbnail")&&c.defs.images.push(a.data("iview:thumbnail"));a.css("display","none");if("video"==a.data("iview:type")){var f=a.children().eq(0),e=d('
˟
');a.append(e);f.appendTo(d("div.iview-video-container",e));e.css({width:c.defs.width,height:c.defs.height,top:"-"+c.defs.height+"px"}).hide();a.addClass("iview-video").css({cursor:"pointer"})}c.defs.total++}).css({width:c.defs.width,height:c.defs.height});c.sliderContent.append('
');var f=d("#iview-preloader",c.sliderContent),e=d("div",f);f.css({top:c.defs.height/2-f.height()/2+"px",left:c.defs.width/2-f.width()/2+"px"}); +c.sliderContent.append('
');c.iviewTimer=d("#iview-timer",c.sliderContent);c.iviewTimer.hide();d(".iview-caption",c.slider).each(function(){var a=d(this);a.html('
'+a.html()+"
")});b.startSlide=b.randomStart?Math.floor(Math.random()*c.defs.total):b.startSlide;b.startSlide=0=c.defs.total?c.defs.total-1:b.startSlide;c.defs.slide=b.startSlide;c.defs.image=c.slides.eq(c.defs.slide);c.defs.time=c.defs.image.data("iview:pausetime")? +c.defs.image.data("iview:pausetime"):b.pauseTime;c.defs.easing=c.defs.image.data("iview:easing")?c.defs.image.data("iview:easing"):b.easing;c.pieDegree=0;var g=b.timerPadding,k=b.timerDiameter,h=b.timerStroke;if(1'+a.options.previousLabel+''+a.options.nextLabel+""),d(".iview-directionNav",a.sliderContent).css({opacity:a.options.directionNavHoverOpacity}), +a.sliderContent.hover(function(){d(".iview-directionNav",a.sliderContent).stop().animate({opacity:1},300)},function(){d(".iview-directionNav",a.sliderContent).stop().animate({opacity:a.options.directionNavHoverOpacity},300)}),d("a.iview-prevNav",a.sliderContent).live("click",function(){if(a.defs.lock)return false;a.cleanTimer();a.defs.slide=a.defs.slide-2;a.goTo("prev")}),d("a.iview-nextNav",a.sliderContent).live("click",function(){if(a.defs.lock)return false;a.cleanTimer();a.goTo("next")}));if(a.options.controlNav){var b= +'
',c="";!a.options.directionNav&&a.options.controlNavNextPrev&&(b+=''+a.options.previousLabel+"");for(var b=b+'
    ',f=0;f";a.options.controlNavThumbs?(e=e.data("iview:thumbnail")?e.data("iview:thumbnail"):e.data("iview:image"),b+=''):(e=e.data("iview:thumbnail")?e.data("iview:thumbnail"): +e.data("iview:image"),b+=''+(f+1)+"",a.options.controlNavTooltip&&(c+='
    '));b+=""}b+="
";!a.options.directionNav&&a.options.controlNavNextPrev&&(b+=''+a.options.nextLabel+"");b+="
";!a.options.controlNavThumbs&&a.options.controlNavTooltip&&(b+='
'+c+"
"); +a.sliderContent.append(b);d(".iview-controlNav a.iview-control:eq("+a.defs.slide+")",a.sliderContent).addClass("active");d("a.iview-controlPrevNav",a.sliderContent).live("click",function(){if(a.defs.lock)return false;a.cleanTimer();a.defs.slide=a.defs.slide-2;a.goTo("prev")});d("a.iview-controlNextNav",a.sliderContent).live("click",function(){if(a.defs.lock)return false;a.cleanTimer();a.goTo("next")});d(".iview-controlNav a.iview-control",a.sliderContent).live("click",function(){if(a.defs.lock||d(this).hasClass("active"))return false; +a.cleanTimer();a.slider.css("background",'url("'+a.defs.image.data("iview:image")+'") no-repeat');a.defs.slide=d(this).attr("rel")-1;a.goTo("control")});d(".iview-controlNav",a.sliderContent).css({opacity:a.options.controlNavHoverOpacity});a.sliderContent.hover(function(){d(".iview-controlNav",a.sliderContent).stop().animate({opacity:1},300);a.sliderContent.addClass("iview-hover")},function(){d(".iview-controlNav",a.sliderContent).stop().animate({opacity:a.options.controlNavHoverOpacity},300);a.sliderContent.removeClass("iview-hover")}); +var g=null;d(".iview-controlNav a.iview-control",a.sliderContent).hover(function(){var b=d(this),c=b.attr("rel"),f=d("#iview-tooltip",a.sliderContent),e=d("div.holder",f),l=b.offset().left-a.sliderContent.offset().left-f.outerWidth()/2+a.options.tooltipX,b=b.offset().top-a.sliderContent.offset().top-f.outerHeight()+a.options.tooltipY,n=d("div[rel="+c+"]");scrollLeft=c*n.width();f.stop().animate({left:l,top:b,opacity:1},300);f.not(":visible")&&f.fadeIn(300);e.stop().animate({scrollLeft:scrollLeft}, +300);clearTimeout(g)},function(){var b=d("#iview-tooltip",a.sliderContent);g=setTimeout(function(){b.animate({opacity:0},300,function(){b.hide()})},200)})}a.sliderContent.bind("mouseover.iView mousemove.iView",function(){a.options.pauseOnHover&&!a.defs.paused&&a.cleanTimer();a.sliderContent.addClass("iview-hover")}).bind("mouseout.iView",function(){a.options.pauseOnHover&&(!a.defs.paused&&a.timer==null&&a.pieDegree<=359&&a.options.autoAdvance)&&a.setTimer();a.sliderContent.removeClass("iview-hover")})}, +setCaption:function(){var a=this,b=a.slides.eq(a.defs.slide),c=0;d(".iview-caption",b).each(function(){var b=d(this),e=b.data("transition")?d.trim(b.data("transition").toLowerCase()):"fade",g=b.data("speed")?b.data("speed"):a.options.captionSpeed,k=b.data("easing")?b.data("easing"):a.options.captionEasing,h="undefined"!=b.data("x")?b.data("x"):"center",i="undefined"!=b.data("y")?b.data("y"):"center",j=b.data("width")?b.data("width"):b.width(),l=b.data("height")?b.data("height"):b.height(),n=b.outerWidth(), +o=b.outerHeight();"center"==h&&(h=a.defs.width/2-n/2);"center"==i&&(i=a.defs.height/2-o/2);var m=d(".caption-contain",b);b.css({opacity:0});m.css({opacity:0,position:"relative",width:j,height:l});switch(e){case "wipedown":b.css({top:i-l,left:h});m.css({top:l+3*l,left:0});break;case "wipeup":b.css({top:i+l,left:h});m.css({top:l-3*l,left:0});break;case "wiperight":b.css({top:i,left:h-j});m.css({top:0,left:j+2*j});break;case "wipeleft":b.css({top:i,left:h+j});m.css({top:0,left:j-2*j});break;case "fade":b.css({top:i, +left:h});m.css({top:0,left:0});break;case "expanddown":b.css({top:i,left:h,height:0});m.css({top:l+3*l,left:0});break;case "expandup":b.css({top:i+l,left:h,height:0});m.css({top:l-3*l,left:0});break;case "expandright":b.css({top:i,left:h,width:0});m.css({top:0,left:j+2*j});break;case "expandleft":b.css({top:i,left:h+j,width:0}),m.css({top:0,left:j-2*j})}setTimeout(function(){b.animate({opacity:a.options.captionOpacity,top:i,left:h,width:j,height:l},g,k,function(){})},c);setTimeout(function(){m.animate({opacity:a.options.captionOpacity, +top:0,left:0},g,k)},c+100);c+=250})},processTimer:function(){if("360bar"==this.defs.timer){var a=0==this.pieDegree?0:this.pieDegree+0.9;this.timerPath.attr({arc:[a,this.R]})}else"pie"==this.defs.timer?(a=0==this.pieDegree?0:this.pieDegree+0.9,this.pieTimer.attr({segment:[a,this.R]})):this.barTimer.css({width:100*(this.pieDegree/360)+"%"});this.pieDegree+=3},transitionEnd:function(a){a.options.onAfterChange.call(this);a.defs.lock=!1;a.slides.css("display","none");a.slides.eq(a.defs.slide).show();a.slider.css("background", +'url("'+a.defs.image.data("iview:image")+'") no-repeat');d(".iview-strip, .iview-block",a.slider).remove();a.defs.time=a.defs.image.data("iview:pausetime")?a.defs.image.data("iview:pausetime"):a.options.pauseTime;a.iviewTimer.animate({opacity:a.options.timerOpacity});a.pieDegree=0;a.processTimer();a.setCaption(a.options);null==a.timer&&!a.defs.paused&&(a.timer=setInterval(function(){a.timerCall(a)},a.defs.time/120))},addStrips:function(a,b){for(var b=b?b:this.options,c=0;c').css({width:f,height:e,top:k,left:h,background:'url("'+this.defs.image.data("iview:image")+'") no-repeat '+g,opacity:0});this.slider.append(g)}},addBlocks:function(){for(var a=Math.round(this.slider.width()/ +this.options.blockCols),b=Math.round(this.slider.height()/this.options.blockRows),c=0;c').css({width:a+"px",height:b+"px",top:c*b+"px",left:f*a+"px",background:'url("'+this.defs.image.data("iview:image")+'") no-repeat '+e,opacity:0});this.slider.append(e)}},runTransition:function(a){var b=this;switch(a){case "strip-up-right":case "strip-up-left":b.addStrips(); +var c=0,f=0,e=d(".iview-strip",b.slider);"strip-up-left"==a&&(e=d(".iview-strip",b.slider).reverse());e.each(function(){var a=d(this);a.css({top:"",bottom:"0px"});setTimeout(function(){a.animate({height:"100%",opacity:"1.0"},b.options.animationSpeed,b.defs.easing,function(){f==b.options.strips-1&&b.transitionEnd(b);f++})},100+c);c+=50});break;case "strip-down":case "strip-down-right":case "strip-down-left":b.addStrips();var f=c=0,e=d(".iview-strip",b.slider);"strip-down-left"==a&&(e=d(".iview-strip", +b.slider).reverse());e.each(function(){var a=d(this);a.css({bottom:"",top:"0px"});setTimeout(function(){a.animate({height:"100%",opacity:"1.0"},b.options.animationSpeed,b.defs.easing,function(){f==b.options.strips-1&&b.transitionEnd(b);f++})},100+c);c+=50});break;case "strip-left-right":case "strip-left-right-up":case "strip-left-right-down":b.addStrips(!0);var g=f=c=0,e=d(".iview-strip",b.slider);"strip-left-right-down"==a&&(e=d(".iview-strip",b.slider).reverse());e.each(function(){var a=d(this); +0==f?(a.css({right:"",left:"0px"}),f++):(a.css({left:"",right:"0px"}),f=0);setTimeout(function(){a.animate({width:"100%",opacity:"1.0"},b.options.animationSpeed,b.defs.easing,function(){g==b.options.strips-1&&b.transitionEnd(b);g++})},100+c);c+=50});break;case "strip-up-down":case "strip-up-down-right":case "strip-up-down-left":b.addStrips();g=f=c=0;e=d(".iview-strip",b.slider);"strip-up-down-left"==a&&(e=d(".iview-strip",b.slider).reverse());e.each(function(){var a=d(this);0==f?(a.css({bottom:"", +top:"0px"}),f++):(a.css({top:"",bottom:"0px"}),f=0);setTimeout(function(){a.animate({height:"100%",opacity:"1.0"},b.options.animationSpeed,b.defs.easing,function(){g==b.options.strips-1&&b.transitionEnd(b);g++})},100+c);c+=50});break;case "left-curtain":case "right-curtain":case "top-curtain":case "bottom-curtain":"left-curtain"==a||"right-curtain"==a?b.addStrips():b.addStrips(!0);f=c=0;e=d(".iview-strip",b.slider);if("right-curtain"==a||"bottom-curtain"==a)e=d(".iview-strip",b.slider).reverse(); +e.each(function(){var e=d(this),g=e.width(),h=e.height();"left-curtain"==a||"right-curtain"==a?e.css({top:"0px",height:"100%",width:"0px"}):e.css({left:"0px",height:"0px",width:"100%"});setTimeout(function(){"left-curtain"==a||"right-curtain"==a?e.animate({width:g,opacity:"1.0"},b.options.animationSpeed,b.defs.easing,function(){f==b.options.strips-1&&b.transitionEnd(b);f++}):e.animate({height:h,opacity:"1.0"},b.options.animationSpeed,b.defs.easing,function(){f==b.options.strips-1&&b.transitionEnd(b); +f++})},100+c);c+=50});break;case "strip-up-right":case "strip-up-left":b.addStrips();f=c=0;e=d(".iview-strip",b.slider);"strip-up-left"==a&&(e=d(".iview-strip",b.slider).reverse());e.each(function(){var a=d(this);a.css({bottom:"0px"});setTimeout(function(){a.animate({height:"100%",opacity:"1.0"},b.options.animationSpeed,b.defs.easing,function(){f==b.options.strips-1&&b.transitionEnd(b);f++})},100+c);c+=50});break;case "strip-left-fade":case "strip-right-fade":case "strip-top-fade":case "strip-bottom-fade":"strip-left-fade"== +a||"strip-right-fade"==a?b.addStrips():b.addStrips(!0);f=c=0;e=d(".iview-strip",b.slider);if("strip-right-fade"==a||"strip-bottom-fade"==a)e=d(".iview-strip",b.slider).reverse();e.each(function(){var e=d(this),g=e.width(),h=e.height();"strip-left-fade"==a||"strip-right-fade"==a?e.css({top:"0px",height:"100%",width:g}):e.css({left:"0px",height:h,width:"100%"});setTimeout(function(){e.animate({opacity:"1.0"},1.7*b.options.animationSpeed,b.defs.easing,function(){f==b.options.strips-1&&b.transitionEnd(b); +f++})},100+c);c+=35});break;case "slide-in-up":case "slide-in-down":opts={strips:1};b.addStrips(!1,opts);var e=d(".iview-strip:first",b.slider),k=0,k="slide-in-up"==a?"-"+b.defs.height+"px":b.defs.height+"px";e.css({top:k,height:"100%",width:b.defs.width});e.animate({top:"0px",opacity:1},2*b.options.animationSpeed,b.defs.easing,function(){b.transitionEnd(b)});break;case "zigzag-top":case "zigzag-bottom":case "zigzag-grow-top":case "zigzag-grow-bottom":case "zigzag-drop-top":case "zigzag-drop-bottom":b.addBlocks(); +for(var h=b.options.blockCols*b.options.blockRows,c=0,i=[],e=d(".iview-block",b.slider),j=0;j=k;n--)i.push(d(e[n]));else for(n=k;nthis.defs.slide&&(this.defs.slide=this.defs.total-1);this.defs.image=this.slides.eq(this.defs.slide);this.options.controlNav&&(d(".iview-controlNav a.iview-control",this.sliderContent).removeClass("active"),d(".iview-controlNav a.iview-control:eq("+this.defs.slide+")",this.sliderContent).addClass("active"));a=this.options.fx;"random"==this.options.fx.toLowerCase()&&(a="left-curtain right-curtain top-curtain bottom-curtain strip-down-right strip-down-left strip-up-right strip-up-left strip-up-down strip-up-down-left strip-left-right strip-left-right-down slide-in-right slide-in-left slide-in-up slide-in-down fade block-random block-fade block-fade-reverse block-expand block-expand-reverse block-expand-random zigzag-top zigzag-bottom zigzag-grow-top zigzag-grow-bottom zigzag-drop-top zigzag-drop-bottom strip-left-fade strip-right-fade strip-top-fade strip-bottom-fade block-drop-random".split(" "), +a=a[Math.floor(Math.random()*(a.length+1))],a==q&&(a="fade"),a=d.trim(a.toLowerCase()));-1!=this.options.fx.indexOf(",")&&(a=this.options.fx.split(","),a=a[Math.floor(Math.random()*a.length)],a==q&&(a="fade"),a=d.trim(a.toLowerCase()));this.defs.image.data("iview:transition")&&(a=this.defs.image.data("iview:transition").split(","),a=a[Math.floor(Math.random()*a.length)],a=d.trim(a.toLowerCase()));this.defs.easing=this.defs.image.data("iview:easing")?this.defs.image.data("iview:easing"):this.options.easing; +this.defs.lock=!0;this.runTransition(a)},playSlider:function(){null==this.timer&&this.defs.paused&&(this.iviewTimer.removeClass("paused").attr("title",this.options.pauseLabel),this.setTimer(),this.defs.paused=!1,this.options.onPlay.call(this))},stopSlider:function(){this.iviewTimer.addClass("paused").attr("title",this.options.playLabel);this.cleanTimer();this.defs.paused=!0;this.options.onPause.call(this)},setTimerPosition:function(){for(var a=this.options.timerPosition.toLowerCase().split("-"),b= +0;bd.event.special.swipe.scrollSupressionThreshold&&a.preventDefault()}}var f=b.originalEvent.touches? +b.originalEvent.touches[0]:b,e={time:(new Date).getTime(),coords:[f.pageX,f.pageY],origin:d(b.target)},g;a.bind(C,c).one(F,function(){a.unbind(C,c);e&&g&&g.time-e.timed.event.special.swipe.horizontalDistanceThreshold&&Math.abs(e.coords[1]-g.coords[1])g.coords[0]?"swipeleft":"swiperight");e=g=q})})}};d.each({swipeleft:"swipe", +swiperight:"swipe"},function(a,b){d.event.special[a]={setup:function(){d(this).bind(b,d.noop)}}})})(jQuery,this); \ No newline at end of file diff --git a/js/iview.pack.js b/js/iview.pack.js new file mode 100644 index 0000000..b3bddd7 --- /dev/null +++ b/js/iview.pack.js @@ -0,0 +1,13 @@ +/** + * jQuery iView Slider v2.0 + * + * @version: 2.0.1 - August 17, 2012 + * + * @author: Hemn Chawroka + * hemn@iprodev.com + * http://iprodev.com/ + * + */ +var a=['(H(d,v,q){H y(){z=v[s](H(){o.1n(H(){N a=d(8),b=a.L(),c=a.Q(),f=d.U(8,u);13(b!==f.w||c!==f.h)a.2u(w,[f.w=b,f.h=c])});y()},p[A])}N B=H(a,b){N c=8;c.J=b;c.T=a;c.3R=c.T.3a();c.T.3a(""+c.3R+"");c.V=d(".46",c.T);c.V.K("4a","4b");c.G={Y:0,1y:0,12:"",2X:[],L:c.T.L(),Q:c.T.Q(),1g:b.1g.2e(),1t:!1,1A:b.2V?!1:!0,1T:b.3e,19:b.19};c.4q(c.V[0]);c.1L=c.V.4r();c.1L.1n(H(){N a=d(8);c.G.2X.2x(a.U("I:12"));a.U("I:2t")&&c.G.2X.2x(a.U("I:2t"));a.K("3f","2a");13("1I"==a.U("I:69")){N f=a.4r().1K(0),e=d(\'B\');a.2h(e);f.65(d("X.I-1I-3j",e));e.K({L:c.G.L,Q:c.G.Q,P:"-"+c.G.Q+"15"}).2P();a.2b("I-1I").K({5Q:"5J"})}c.G.1y++}).K({L:c.G.L,Q:c.G.Q});c.T.2h(\'\');N f=d("#I-4T",c.T),e=d("X",f);f.K({P:c.G.Q/2-f.Q()/2+"15",O:c.G.L/2-f.L()/2+"15"});c.T.2h(\'\');c.1e=d("#I-1g",c.T);c.1e.2P();d(".I-2q",c.V).1n(H(){N a=d(8);a.3a(\'\'+a.3a()+"")});b.1Y=b.59?17.33(17.1r()*c.G.1y):b.1Y;b.1Y=0=c.G.1y?c.G.1y-1:b.1Y;c.G.Y=b.1Y;c.G.12=c.1L.1K(c.G.Y);c.G.1T=c.G.12.U("I:31")?c.G.12.U("I:31"):b.3e;c.G.19=c.G.12.U("I:19")?c.G.12.U("I:19"):b.19;c.1O=0;N g=b.5n,k=b.2Q,h=b.3r;13(1\'+a.J.2F+\'\'+a.J.2G+""),d(".I-23",a.T).K({Z:a.J.3F}),a.T.2g(H(){d(".I-23",a.T).22().14({Z:1},1W)},H(){d(".I-23",a.T).22().14({Z:a.J.3F},1W)}),d("a.I-3W",a.T).2j("25",H(){13(a.G.1t)1d 1D;a.1m();a.G.Y=a.G.Y-2;a.1w("2l")}),d("a.I-3V",a.T).2j("25",H(){13(a.G.1t)1d 1D;a.1m();a.1w("2d")}));13(a.J.1F){N b=\'\',c="";!a.J.23&&a.J.3I&&(b+=\'\'+a.J.2F+"");1z(N b=b+\'<5h>\',f=0;f";a.J.3N?(e=e.U("I:2t")?e.U("I:2t"):e.U("I:12"),b+=\'<3Q 2i="\'+e+\'" />\'):(e=e.U("I:2t")?e.U("I:2t"):e.U("I:12"),b+=\'\'+(f+1)+"",a.J.3L&&(c+=\'<3Q 2i="\'+e+\'" />\'));b+=""}b+="";!a.J.23&&a.J.3I&&(b+=\'\'+a.J.2G+"");b+="";!a.J.3N&&a.J.3L&&(b+=\'\'+c+"");a.T.2h(b);d(".I-1F a.I-1S:1K("+a.G.Y+")",a.T).2b("2w");d("a.I-3T",a.T).2j("25",H(){13(a.G.1t)1d 1D;a.1m();a.G.Y=a.G.Y-2;a.1w("2l")});d("a.I-3S",a.T).2j("25",H(){13(a.G.1t)1d 1D;a.1m();a.1w("2d")});d(".I-1F a.I-1S",a.T).2j("25",H(){13(a.G.1t||d(8).2p("2w"))1d 1D;a.1m();a.V.K("1M",\'26("\'+a.G.12.U("I:12")+\'") 27-28\');a.G.Y=d(8).1u("2m")-1;a.1w("1S")});d(".I-1F",a.T).K({Z:a.J.3D});a.T.2g(H(){d(".I-1F",a.T).22().14({Z:1},1W);a.T.2b("I-2g")},H(){d(".I-1F",a.T).22().14({Z:a.J.3D},1W);a.T.2D("I-2g")});N g=2n;d(".I-1F a.I-1S",a.T).2g(H(){N b=d(8),c=b.1u("2m"),f=d("#I-3J",a.T),e=d("X.3U",f),l=b.34().O-a.T.34().O-f.3X()/2+a.J.3Y,b=b.34().P-a.T.34().P-f.3Z()+a.J.40,n=d("X[2m="+c+"]");3s=c*n.L();f.22().14({O:l,P:b,Z:1},1W);f.42(":6B")&&f.6A(1W);e.22().14({3s:3s},1W);45(g)},H(){N b=d("#I-3J",a.T);g=1x(H(){b.14({Z:0},1W,H(){b.2P()})},6y)})}a.T.1v("6x.1C 49.1C",H(){a.J.3p&&!a.G.1A&&a.1m();a.T.2b("I-2g")}).1v("6v.1C",H(){a.J.3p&&(!a.G.1A&&a.1g==2n&&a.1O<=4P&&a.J.2V)&&a.32();a.T.2D("I-2g")})},3H:H(){N a=8,b=a.1L.1K(a.G.Y),c=0;d(".I-2q",b).1n(H(){N b=d(8),e=b.U("2U")?d.2T(b.U("2U").2e()):"1b",g=b.U("4f")?b.U("4f"):a.J.4g,k=b.U("19")?b.U("19"):a.J.4h,h="2r"!=b.U("x")?b.U("x"):"2v",i="2r"!=b.U("y")?b.U("y"):"2v",j=b.U("L")?b.U("L"):b.L(),l=b.U("Q")?b.U("Q"):b.Q(),n=b.3X(),o=b.3Z();"2v"==h&&(h=a.G.L/2-n/2);"2v"==i&&(i=a.G.Q/2-o/2);N m=d(".2q-55",b);b.K({Z:0});m.K({Z:0,4a:"4b",L:j,Q:l});4l(e){W"6r":b.K({P:i-l,O:h});m.K({P:l+3*l,O:0});1h;W"6p":b.K({P:i+l,O:h});m.K({P:l-3*l,O:0});1h;W"6n":b.K({P:i,O:h-j});m.K({P:0,O:j+2*j});1h;W"6k":b.K({P:i,O:h+j});m.K({P:0,O:j-2*j});1h;W"1b":b.K({P:i,O:h});m.K({P:0,O:0});1h;W"6h":b.K({P:i,O:h,Q:0});m.K({P:l+3*l,O:0});1h;W"6g":b.K({P:i+l,O:h,Q:0});m.K({P:l-3*l,O:0});1h;W"6a":b.K({P:i,O:h,L:0});m.K({P:0,O:j+2*j});1h;W"68":b.K({P:i,O:h+j,L:0}),m.K({P:0,O:j-2*j})}1x(H(){b.14({Z:a.J.3x,P:i,O:h,L:j,Q:l},g,k,H(){})},c);1x(H(){m.14({Z:a.J.3x,P:0,O:0},g,k)},c+1a);c+=4w})},3q:H(){13("3z"==8.G.1g){N a=0==8.1O?0:8.1O+0.9;8.4R.1u({3E:[a,8.R]})}4x"4X"==8.G.1g?(a=0==8.1O?0:8.1O+0.9,8.4Q.1u({4Y:[a,8.R]})):8.3G.K({L:1a*(8.1O/2B)+"%"});8.1O+=3},1o:H(a){a.J.4z.29(8);a.G.1t=!1;a.1L.K("3f","2a");a.1L.1K(a.G.Y).2o();a.V.K("1M",\'26("\'+a.G.12.U("I:12")+\'") 27-28\');d(".I-S, .I-18",a.V).4H();a.G.1T=a.G.12.U("I:31")?a.G.12.U("I:31"):a.J.3e;a.1e.14({Z:a.J.2L});a.1O=0;a.3q();a.3H(a.J);2n==a.1g&&!a.G.1A&&(a.1g=4B(H(){a.3m(a)},a.G.1T/4C))},1G:H(a,b){1z(N b=b?b:8.J,c=0;c\').K({L:f,Q:e,P:k,O:h,1M:\'26("\'+8.G.12.U("I:12")+\'") 27-28 \'+g,Z:0});8.V.2h(g)}},2J:H(){1z(N a=17.2f(8.V.L()/8.J.1B),b=17.2f(8.V.Q()/8.J.21),c=0;c<8.J.21;c++)1z(N f=0;f<8.J.1B;f++){N e="-"+(a+f*a-a)+"15 -"+(b+c*b-b)+"15";f==8.J.1B-1&&8.V.L();e=d(\'\').K({L:a+"15",Q:b+"15",P:c*b+"15",O:f*a+"15",1M:\'26("\'+8.G.12.U("I:12")+\'") 27-28 \'+e,Z:0});8.V.2h(e)}},4J:H(a){N b=8;4l(a){W"S-1j-11":W"S-1j-O":b.1G();N c=0,f=0,e=d(".I-S",b.V);"S-1j-O"==a&&(e=d(".I-S",b.V).1k());e.1n(H(){N a=d(8);a.K({P:"",16:"1f"});1x(H(){a.14({Q:"1a%",Z:"1.0"},b.J.1q,b.G.19,H(){f==b.J.1s-1&&b.1o(b);f++})},1a+c);c+=50});1h;W"S-1l":W"S-1l-11":W"S-1l-O":b.1G();N f=c=0,e=d(".I-S",b.V);"S-1l-O"==a&&(e=d(".I-S",b.V).1k());e.1n(H(){N a=d(8);a.K({16:"",P:"1f"});1x(H(){a.14({Q:"1a%",Z:"1.0"},b.J.1q,b.G.19,H(){f==b.J.1s-1&&b.1o(b);f++})},1a+c);c+=50});1h;W"S-O-11":W"S-O-11-1j":W"S-O-11-1l":b.1G(!0);N g=f=c=0,e=d(".I-S",b.V);"S-O-11-1l"==a&&(e=d(".I-S",b.V).1k());e.1n(H(){N a=d(8);0==f?(a.K({11:"",O:"1f"}),f++):(a.K({O:"",11:"1f"}),f=0);1x(H(){a.14({L:"1a%",Z:"1.0"},b.J.1q,b.G.19,H(){g==b.J.1s-1&&b.1o(b);g++})},1a+c);c+=50});1h;W"S-1j-1l":W"S-1j-1l-11":W"S-1j-1l-O":b.1G();g=f=c=0;e=d(".I-S",b.V);"S-1j-1l-O"==a&&(e=d(".I-S",b.V).1k());e.1n(H(){N a=d(8);0==f?(a.K({16:"",P:"1f"}),f++):(a.K({P:"",16:"1f"}),f=0);1x(H(){a.14({Q:"1a%",Z:"1.0"},b.J.1q,b.G.19,H(){g==b.J.1s-1&&b.1o(b);g++})},1a+c);c+=50});1h;W"O-1p":W"11-1p":W"P-1p":W"16-1p":"O-1p"==a||"11-1p"==a?b.1G():b.1G(!0);f=c=0;e=d(".I-S",b.V);13("11-1p"==a||"16-1p"==a)e=d(".I-S",b.V).1k();e.1n(H(){N e=d(8),g=e.L(),h=e.Q();"O-1p"==a||"11-1p"==a?e.K({P:"1f",Q:"1a%",L:"1f"}):e.K({O:"1f",Q:"1f",L:"1a%"});1x(H(){"O-1p"==a||"11-1p"==a?e.14({L:g,Z:"1.0"},b.J.1q,b.G.19,H(){f==b.J.1s-1&&b.1o(b);f++}):e.14({Q:h,Z:"1.0"},b.J.1q,b.G.19,H(){f==b.J.1s-1&&b.1o(b);f++})},1a+c);c+=50});1h;W"S-1j-11":W"S-1j-O":b.1G();f=c=0;e=d(".I-S",b.V);"S-1j-O"==a&&(e=d(".I-S",b.V).1k());e.1n(H(){N a=d(8);a.K({16:"1f"});1x(H(){a.14({Q:"1a%",Z:"1.0"},b.J.1q,b.G.19,H(){f==b.J.1s-1&&b.1o(b);f++})},1a+c);c+=50});1h;W"S-O-1b":W"S-11-1b":W"S-P-1b":W"S-16-1b":"S-O-1b"==a||"S-11-1b"==a?b.1G():b.1G(!0);f=c=0;e=d(".I-S",b.V);13("S-11-1b"==a||"S-16-1b"==a)e=d(".I-S",b.V).1k();e.1n(H(){N e=d(8),g=e.L(),h=e.Q();"S-O-1b"==a||"S-11-1b"==a?e.K({P:"1f",Q:"1a%",L:g}):e.K({O:"1f",Q:h,L:"1a%"});1x(H(){e.14({Z:"1.0"},1.7*b.J.1q,b.G.19,H(){f==b.J.1s-1&&b.1o(b);f++})},1a+c);c+=35});1h;W"Y-1H-1j":W"Y-1H-1l":2Z={1s:1};b.1G(!1,2Z);N e=d(".I-S:4W",b.V),k=0,k="Y-1H-1j"==a?"-"+b.G.Q+"15":b.G.Q+"15";e.K({P:k,Q:"1a%",L:b.G.L});e.14({P:"1f",Z:1},2*b.J.1q,b.G.19,H(){b.1o(b)});1h;W"1c-P":W"1c-16":W"1c-1R-P":W"1c-1R-16":W"1c-1E-P":W"1c-1E-16":b.2J();1z(N h=b.J.1B*b.J.21,c=0,i=[],e=d(".I-18",b.V),j=0;j=k;n--)i.2x(d(e[n]));4x 1z(n=k;n8.G.Y&&(8.G.Y=8.G.1y-1);8.G.12=8.1L.1K(8.G.Y);8.J.1F&&(d(".I-1F a.I-1S",8.T).2D("2w"),d(".I-1F a.I-1S:1K("+8.G.Y+")",8.T).2b("2w"));a=8.J.2I;"1r"==8.J.2I.2e()&&(a="O-1p 11-1p P-1p 16-1p S-1l-11 S-1l-O S-1j-11 S-1j-O S-1j-1l S-1j-1l-O S-O-11 S-O-11-1l Y-1H-11 Y-1H-O Y-1H-1j Y-1H-1l 1b 18-1r 18-1b 18-1b-1k 18-1N 18-1N-1k 18-1N-1r 1c-P 1c-16 1c-1R-P 1c-1R-16 1c-1E-P 1c-1E-16 S-O-1b S-11-1b S-P-1b S-16-1b 18-1E-1r".2K(" "),a=a[17.33(17.1r()*(a.1U+1))],a==q&&(a="1b"),a=d.2T(a.2e()));-1!=8.J.2I.5v(",")&&(a=8.J.2I.2K(","),a=a[17.33(17.1r()*a.1U)],a==q&&(a="1b"),a=d.2T(a.2e()));8.G.12.U("I:2U")&&(a=8.G.12.U("I:2U").2K(","),a=a[17.33(17.1r()*a.1U)],a=d.2T(a.2e()));8.G.19=8.G.12.U("I:19")?8.G.12.U("I:19"):8.J.19;8.G.1t=!0;8.4J(a)},3u:H(){2n==8.1g&&8.G.1A&&(8.1e.2D("1A").1u("1V",8.J.3y),8.32(),8.G.1A=!1,8.J.5g.29(8))},3v:H(){8.1e.2b("1A").1u("1V",8.J.3w);8.1m();8.G.1A=!0;8.J.3O.29(8)},3o:H(){1z(N a=8.J.5i.2e().2K("-"),b=0;bd.1X.1Z.24.4o&&a.6D()}}N f=b.2Y.36?b.2Y.36[0]:b,e={1T:(2s 48).47(),1P:[f.44,f.43],2c:d(b.2S)},g;a.1v(C,c).6E(F,H(){a.6F(C,c);e&&g&&g.1T-e.1Td.1X.1Z.24.4m&&17.3C(e.1P[1]-g.1P[1])g.1P[0]?"3K":"3i");e=g=q})})}};d.1n({3K:"24",3i:"24"},H(a,b){d.1X.1Z[a]={3A:H(){d(8).1v(b,d.6G)}}})})(4K,8);', +"|","split","||||||||this||||||||||||||||||||||||||||||||||defs|function|iview|options|css|width||var|left|top|height||strip|sliderContent|data|slider|case|div|slide|opacity||right|image|if|animate|px|bottom|Math|block|easing|100|fade|zigzag|return|iviewTimer|0px|timer|break|class|up|reverse|down|cleanTimer|each|transitionEnd|curtain|animationSpeed|random|strips|lock|attr|bind|goTo|setTimeout|total|for|paused|blockCols|iView|false|drop|controlNav|addStrips|in|video|transform|eq|slides|background|expand|pieDegree|coords|stroke|grow|control|time|length|title|300|event|startSlide|special||blockRows|stop|directionNav|swipe|click|url|no|repeat|call|none|addClass|origin|next|toLowerCase|round|hover|append|src|live|style|prev|rel|null|show|hasClass|caption|undefined|new|thumbnail|trigger|center|active|push|scale|oImagePreload|prototype|360|resize|removeClass|path|previousLabel|nextLabel|180|fx|addBlocks|split|timerOpacity|tW|OnComplete|typeof|hide|timerDiameter|timerColor|target|trim|transition|autoAdvance|timerY|images|originalEvent|opts||pausetime|setTimer|floor|offset||touches||m_nProcessed||html|timerBg|timerX|throttleWindow|pauseTime|display|cos|sin|swiperight|container|close|m_nICount|timerCall|1E3|setTimerPosition|pauseOnHover|processTimer|timerStroke|scrollLeft|imgWidth|playSlider|stopSlider|playLabel|captionOpacity|pauseLabel|360bar|setup|id|abs|controlNavHoverOpacity|arc|directionNavHoverOpacity|barTimer|setCaption|controlNavNextPrev|tooltip|swipeleft|controlNavTooltip|PI|controlNavThumbs|onPause|li|img|sliderInner|controlNextNav|controlPrevNav|holder|nextNav|prevNav|outerWidth|tooltipX|outerHeight|tooltipY|Image|not|pageY|pageX|clearTimeout|iviewSlider|getTime|Date|mousemove|position|relative|easeOutBounce|parents|ms|speed|captionSpeed|captionEasing|moz|webkit|verticalDistanceThreshold|switch|horizontalDistanceThreshold|durationThreshold|scrollSupressionThreshold|play|disableSelection|children|handler|add|closeLabel|pause|250|else|EEE|onAfterChange|keyCode|setInterval|120|500|keyboardNav|onAfterLoad|startSlider|remove|extend|runTransition|jQuery|timerBarStrokeStyle|timerBarStrokeColor|timerBarStroke|fn|359|pieTimer|timerPath|bLoaded|preloader|timerBgPath|OnAbort|first|pie|segment|OnError||OnLoad|Preload|90|shuffle|contain|m_aImages|customAttributes|m_nLoaded|randomStart|onLastSlide|onBeforeChange|onSlideShowEnd|fill|m_pfnFinished|m_pfnPercent|onPlay|ul|timerPosition|ontouchstart|userSelect|bar|onselectstart|timerPadding|MozUserSelect|webkitUserSelect|Raphael|unselectable|on|isTouch|middle|indexOf|linecap|clearInterval|parseInt|slice|default|299|onload|easeInOutExpo|onerror|99|onabort|circle|source|pointer|bError|bAbort|border|padding|float|easeOutQuad|cursor|document|5E3|keyup|easeInOutSine|touchNav|Next|Previous|Play|Pause|Close|Pie|000|onmousedown|solid|appendTo|735|delay|expandleft|type|expandright|teardown|removeData|apply|arguments|isFunction|expandup|expanddown|touchstart|mousedown|wipeleft|touchend|mouseup|wiperight|touchmove|wipeup|previous|wipedown|goSlide|tH|75|mouseout|iframe|mouseover|200|removeAttr|fadeIn|visible|items|preventDefault|one|unbind|noop", +"","fromCharCode","replace","\\w+","\\b","g"],b=eval,d=a[0],e=415,f=a[3][a[2]](a[1]),g=0,h={},g=function(c){return(62>c?a[4]:g(parseInt(c/62)))+(35<(c%=62)?String[a[5]](c+29):c.toString(36))};if(!a[4][a[6]](/^/,String)){for(;e--;)h[g(e)]=f[e]||g(e);f=[function(c){return h[c]}];g=function(){return a[7]};e=1}for(;e--;)f[e]&&(d=d[a[6]](RegExp(a[8]+g(e)+a[8],a[9]),f[e]));b(d); \ No newline at end of file diff --git a/js/jquery-1.7.1.min.js b/js/jquery-1.7.1.min.js new file mode 100644 index 0000000..198b3ff --- /dev/null +++ b/js/jquery-1.7.1.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.1 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"":"")+""),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;g=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
a",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="
"+""+"
",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="
t
",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="
",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")}; +f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&i.push({elem:this,matches:d.slice(e)});for(j=0;j0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
","
"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function() +{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cy(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j)?j:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/js/jquery.easing.js b/js/jquery.easing.js new file mode 100644 index 0000000..e655394 --- /dev/null +++ b/js/jquery.easing.js @@ -0,0 +1,204 @@ +/* + * 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) { + 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. + * + */ \ No newline at end of file diff --git a/js/jquery.fullscreen.js b/js/jquery.fullscreen.js new file mode 100644 index 0000000..71aeec2 --- /dev/null +++ b/js/jquery.fullscreen.js @@ -0,0 +1,81 @@ +/* + Fullscreen background is a small jQuery plugin that allows you to create fullscreen background. + + Author: Gaya Kessler + Date: 04-25-2012 + URL: http://www.gayadesign.com +*/ + +(function ($) { + var parentElement = ""; + var optionsArr = { + selector: "img", + fillOnResize: true, + defaultCss: true + }; + + $.fn.fullscreenBackground = function (options) { + if(options) { + $.extend(optionsArr, options ); + } + + this.each(function () { + parentElement = this; + + if (optionsArr.defaultCss == true) { + $("html,body").css({ + width: "100%", + height: "100%" + }); + + $(parentElement).css({ + height: "100%", + width: "100%", + overflow: "hidden", + position: "fixed", + top: "0px", + left: "0px", + zIndex: 1 + }); + } + + if (optionsArr.fillOnResize == true) { + $(window).resize(function () { + fillBg(optionsArr.selector, parentElement); + }); + } + + fillBg(optionsArr.selector, parentElement); + }); + }; + + function fillBg(selector, parentobj) { + var windowHeight = $(window).height(); + var windowWidth = $(window).width(); + + $(selector, parentobj).each(function () { + var imgHeight = $(this).attr("height"); + var imgWidth = $(this).attr("width"); + + var newWidth = windowWidth; + var newHeight = (windowWidth / imgWidth) * imgHeight; + var topMargin = ((newHeight - windowHeight) / 2) * -1; + var leftMargin = 0; + + if (newHeight < windowHeight) { + var newWidth = (windowHeight / imgHeight) * imgWidth; + var newHeight = windowHeight; + var topMargin = 0; + var leftMargin = ((newWidth - windowWidth) / 2) * -1; + } + + $(this).css({ + height: newHeight + "px", + width: newWidth + "px", + marginLeft: leftMargin + "px", + marginTop: topMargin + "px", + display: "block" + }); + }); + } +})(jQuery); \ No newline at end of file diff --git a/js/raphael-min.js b/js/raphael-min.js new file mode 100644 index 0000000..d30dbad --- /dev/null +++ b/js/raphael-min.js @@ -0,0 +1,10 @@ +// ┌────────────────────────────────────────────────────────────────────┐ \\ +// │ Raphaël 2.1.0 - JavaScript Vector Library │ \\ +// ├────────────────────────────────────────────────────────────────────┤ \\ +// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) │ \\ +// │ Copyright © 2008-2012 Sencha Labs (http://sencha.com) │ \\ +// ├────────────────────────────────────────────────────────────────────┤ \\ +// │ Licensed under the MIT (http://raphaeljs.com/license.html) license.│ \\ +// └────────────────────────────────────────────────────────────────────┘ \\ + +(function(a){var b="0.3.4",c="hasOwnProperty",d=/[\.\/]/,e="*",f=function(){},g=function(a,b){return a-b},h,i,j={n:{}},k=function(a,b){var c=j,d=i,e=Array.prototype.slice.call(arguments,2),f=k.listeners(a),l=0,m=!1,n,o=[],p={},q=[],r=h,s=[];h=a,i=0;for(var t=0,u=f.length;tf*b.top){e=b.percents[y],p=b.percents[y-1]||0,t=t/b.top*(e-p),o=b.percents[y+1],j=b.anim[e];break}f&&d.attr(b.anim[b.percents[y]])}if(!!j){if(!k){for(var A in j)if(j[g](A))if(U[g](A)||d.paper.customAttributes[g](A)){u[A]=d.attr(A),u[A]==null&&(u[A]=T[A]),v[A]=j[A];switch(U[A]){case C:w[A]=(v[A]-u[A])/t;break;case"colour":u[A]=a.getRGB(u[A]);var B=a.getRGB(v[A]);w[A]={r:(B.r-u[A].r)/t,g:(B.g-u[A].g)/t,b:(B.b-u[A].b)/t};break;case"path":var D=bR(u[A],v[A]),E=D[1];u[A]=D[0],w[A]=[];for(y=0,z=u[A].length;yd)return d;while(cf?c=e:d=e,e=(d-c)/2+c}return e}function n(a,b){var c=o(a,b);return((l*c+k)*c+j)*c}function m(a){return((i*a+h)*a+g)*a}var g=3*b,h=3*(d-b)-g,i=1-g-h,j=3*c,k=3*(e-c)-j,l=1-j-k;return n(a,1/(200*f))}function cq(){return this.x+q+this.y+q+this.width+" × "+this.height}function cp(){return this.x+q+this.y}function cb(a,b,c,d,e,f){a!=null?(this.a=+a,this.b=+b,this.c=+c,this.d=+d,this.e=+e,this.f=+f):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function bH(b,c,d){b=a._path2curve(b),c=a._path2curve(c);var e,f,g,h,i,j,k,l,m,n,o=d?0:[];for(var p=0,q=b.length;p=0&&y<=1&&A>=0&&A<=1&&(d?n++:n.push({x:x.x,y:x.y,t1:y,t2:A}))}}return n}function bF(a,b){return bG(a,b,1)}function bE(a,b){return bG(a,b)}function bD(a,b,c,d,e,f,g,h){if(!(x(a,c)x(e,g)||x(b,d)x(f,h))){var i=(a*d-b*c)*(e-g)-(a-c)*(e*h-f*g),j=(a*d-b*c)*(f-h)-(b-d)*(e*h-f*g),k=(a-c)*(f-h)-(b-d)*(e-g);if(!k)return;var l=i/k,m=j/k,n=+l.toFixed(2),o=+m.toFixed(2);if(n<+y(a,c).toFixed(2)||n>+x(a,c).toFixed(2)||n<+y(e,g).toFixed(2)||n>+x(e,g).toFixed(2)||o<+y(b,d).toFixed(2)||o>+x(b,d).toFixed(2)||o<+y(f,h).toFixed(2)||o>+x(f,h).toFixed(2))return;return{x:l,y:m}}}function bC(a,b,c,d,e,f,g,h,i){if(!(i<0||bB(a,b,c,d,e,f,g,h)n)k/=2,l+=(m1?1:i<0?0:i;var j=i/2,k=12,l=[-0.1252,.1252,-0.3678,.3678,-0.5873,.5873,-0.7699,.7699,-0.9041,.9041,-0.9816,.9816],m=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],n=0;for(var o=0;od;d+=2){var f=[{x:+a[d-2],y:+a[d-1]},{x:+a[d],y:+a[d+1]},{x:+a[d+2],y:+a[d+3]},{x:+a[d+4],y:+a[d+5]}];b?d?e-4==d?f[3]={x:+a[0],y:+a[1]}:e-2==d&&(f[2]={x:+a[0],y:+a[1]},f[3]={x:+a[2],y:+a[3]}):f[0]={x:+a[e-2],y:+a[e-1]}:e-4==d?f[3]=f[2]:d||(f[0]={x:+a[d],y:+a[d+1]}),c.push(["C",(-f[0].x+6*f[1].x+f[2].x)/6,(-f[0].y+6*f[1].y+f[2].y)/6,(f[1].x+6*f[2].x-f[3].x)/6,(f[1].y+6*f[2].y-f[3].y)/6,f[2].x,f[2].y])}return c}function bx(){return this.hex}function bv(a,b,c){function d(){var e=Array.prototype.slice.call(arguments,0),f=e.join("␀"),h=d.cache=d.cache||{},i=d.count=d.count||[];if(h[g](f)){bu(i,f);return c?c(h[f]):h[f]}i.length>=1e3&&delete h[i.shift()],i.push(f),h[f]=a[m](b,e);return c?c(h[f]):h[f]}return d}function bu(a,b){for(var c=0,d=a.length;c',bl=bk.firstChild,bl.style.behavior="url(#default#VML)";if(!bl||typeof bl.adj!="object")return a.type=p;bk=null}a.svg=!(a.vml=a.type=="VML"),a._Paper=j,a.fn=k=j.prototype=a.prototype,a._id=0,a._oid=0,a.is=function(a,b){b=v.call(b);if(b=="finite")return!M[g](+a);if(b=="array")return a instanceof Array;return b=="null"&&a===null||b==typeof a&&a!==null||b=="object"&&a===Object(a)||b=="array"&&Array.isArray&&Array.isArray(a)||H.call(a).slice(8,-1).toLowerCase()==b},a.angle=function(b,c,d,e,f,g){if(f==null){var h=b-d,i=c-e;if(!h&&!i)return 0;return(180+w.atan2(-i,-h)*180/B+360)%360}return a.angle(b,c,f,g)-a.angle(d,e,f,g)},a.rad=function(a){return a%360*B/180},a.deg=function(a){return a*180/B%360},a.snapTo=function(b,c,d){d=a.is(d,"finite")?d:10;if(a.is(b,E)){var e=b.length;while(e--)if(z(b[e]-c)<=d)return b[e]}else{b=+b;var f=c%b;if(fb-d)return c-f+b}return c};var bn=a.createUUID=function(a,b){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,b).toUpperCase()}}(/[xy]/g,function(a){var b=w.random()*16|0,c=a=="x"?b:b&3|8;return c.toString(16)});a.setWindow=function(b){eve("raphael.setWindow",a,h.win,b),h.win=b,h.doc=h.win.document,a._engine.initWin&&a._engine.initWin(h.win)};var bo=function(b){if(a.vml){var c=/^\s+|\s+$/g,d;try{var e=new ActiveXObject("htmlfile");e.write(""),e.close(),d=e.body}catch(f){d=createPopup().document.body}var g=d.createTextRange();bo=bv(function(a){try{d.style.color=r(a).replace(c,p);var b=g.queryCommandValue("ForeColor");b=(b&255)<<16|b&65280|(b&16711680)>>>16;return"#"+("000000"+b.toString(16)).slice(-6)}catch(e){return"none"}})}else{var i=h.doc.createElement("i");i.title="Raphaël Colour Picker",i.style.display="none",h.doc.body.appendChild(i),bo=bv(function(a){i.style.color=a;return h.doc.defaultView.getComputedStyle(i,p).getPropertyValue("color")})}return bo(b)},bp=function(){return"hsb("+[this.h,this.s,this.b]+")"},bq=function(){return"hsl("+[this.h,this.s,this.l]+")"},br=function(){return this.hex},bs=function(b,c,d){c==null&&a.is(b,"object")&&"r"in b&&"g"in b&&"b"in b&&(d=b.b,c=b.g,b=b.r);if(c==null&&a.is(b,D)){var e=a.getRGB(b);b=e.r,c=e.g,d=e.b}if(b>1||c>1||d>1)b/=255,c/=255,d/=255;return[b,c,d]},bt=function(b,c,d,e){b*=255,c*=255,d*=255;var f={r:b,g:c,b:d,hex:a.rgb(b,c,d),toString:br};a.is(e,"finite")&&(f.opacity=e);return f};a.color=function(b){var c;a.is(b,"object")&&"h"in b&&"s"in b&&"b"in b?(c=a.hsb2rgb(b),b.r=c.r,b.g=c.g,b.b=c.b,b.hex=c.hex):a.is(b,"object")&&"h"in b&&"s"in b&&"l"in b?(c=a.hsl2rgb(b),b.r=c.r,b.g=c.g,b.b=c.b,b.hex=c.hex):(a.is(b,"string")&&(b=a.getRGB(b)),a.is(b,"object")&&"r"in b&&"g"in b&&"b"in b?(c=a.rgb2hsl(b),b.h=c.h,b.s=c.s,b.l=c.l,c=a.rgb2hsb(b),b.v=c.b):(b={hex:"none"},b.r=b.g=b.b=b.h=b.s=b.v=b.l=-1)),b.toString=br;return b},a.hsb2rgb=function(a,b,c,d){this.is(a,"object")&&"h"in a&&"s"in a&&"b"in a&&(c=a.b,b=a.s,a=a.h,d=a.o),a*=360;var e,f,g,h,i;a=a%360/60,i=c*b,h=i*(1-z(a%2-1)),e=f=g=c-i,a=~~a,e+=[i,h,0,0,h,i][a],f+=[h,i,i,h,0,0][a],g+=[0,0,h,i,i,h][a];return bt(e,f,g,d)},a.hsl2rgb=function(a,b,c,d){this.is(a,"object")&&"h"in a&&"s"in a&&"l"in a&&(c=a.l,b=a.s,a=a.h);if(a>1||b>1||c>1)a/=360,b/=100,c/=100;a*=360;var e,f,g,h,i;a=a%360/60,i=2*b*(c<.5?c:1-c),h=i*(1-z(a%2-1)),e=f=g=c-i/2,a=~~a,e+=[i,h,0,0,h,i][a],f+=[h,i,i,h,0,0][a],g+=[0,0,h,i,i,h][a];return bt(e,f,g,d)},a.rgb2hsb=function(a,b,c){c=bs(a,b,c),a=c[0],b=c[1],c=c[2];var d,e,f,g;f=x(a,b,c),g=f-y(a,b,c),d=g==0?null:f==a?(b-c)/g:f==b?(c-a)/g+2:(a-b)/g+4,d=(d+360)%6*60/360,e=g==0?0:g/f;return{h:d,s:e,b:f,toString:bp}},a.rgb2hsl=function(a,b,c){c=bs(a,b,c),a=c[0],b=c[1],c=c[2];var d,e,f,g,h,i;g=x(a,b,c),h=y(a,b,c),i=g-h,d=i==0?null:g==a?(b-c)/i:g==b?(c-a)/i+2:(a-b)/i+4,d=(d+360)%6*60/360,f=(g+h)/2,e=i==0?0:f<.5?i/(2*f):i/(2-2*f);return{h:d,s:e,l:f,toString:bq}},a._path2string=function(){return this.join(",").replace(Y,"$1")};var bw=a._preload=function(a,b){var c=h.doc.createElement("img");c.style.cssText="position:absolute;left:-9999em;top:-9999em",c.onload=function(){b.call(this),this.onload=null,h.doc.body.removeChild(this)},c.onerror=function(){h.doc.body.removeChild(this)},h.doc.body.appendChild(c),c.src=a};a.getRGB=bv(function(b){if(!b||!!((b=r(b)).indexOf("-")+1))return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:bx};if(b=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:bx};!X[g](b.toLowerCase().substring(0,2))&&b.charAt()!="#"&&(b=bo(b));var c,d,e,f,h,i,j,k=b.match(L);if(k){k[2]&&(f=R(k[2].substring(5),16),e=R(k[2].substring(3,5),16),d=R(k[2].substring(1,3),16)),k[3]&&(f=R((i=k[3].charAt(3))+i,16),e=R((i=k[3].charAt(2))+i,16),d=R((i=k[3].charAt(1))+i,16)),k[4]&&(j=k[4][s](W),d=Q(j[0]),j[0].slice(-1)=="%"&&(d*=2.55),e=Q(j[1]),j[1].slice(-1)=="%"&&(e*=2.55),f=Q(j[2]),j[2].slice(-1)=="%"&&(f*=2.55),k[1].toLowerCase().slice(0,4)=="rgba"&&(h=Q(j[3])),j[3]&&j[3].slice(-1)=="%"&&(h/=100));if(k[5]){j=k[5][s](W),d=Q(j[0]),j[0].slice(-1)=="%"&&(d*=2.55),e=Q(j[1]),j[1].slice(-1)=="%"&&(e*=2.55),f=Q(j[2]),j[2].slice(-1)=="%"&&(f*=2.55),(j[0].slice(-3)=="deg"||j[0].slice(-1)=="°")&&(d/=360),k[1].toLowerCase().slice(0,4)=="hsba"&&(h=Q(j[3])),j[3]&&j[3].slice(-1)=="%"&&(h/=100);return a.hsb2rgb(d,e,f,h)}if(k[6]){j=k[6][s](W),d=Q(j[0]),j[0].slice(-1)=="%"&&(d*=2.55),e=Q(j[1]),j[1].slice(-1)=="%"&&(e*=2.55),f=Q(j[2]),j[2].slice(-1)=="%"&&(f*=2.55),(j[0].slice(-3)=="deg"||j[0].slice(-1)=="°")&&(d/=360),k[1].toLowerCase().slice(0,4)=="hsla"&&(h=Q(j[3])),j[3]&&j[3].slice(-1)=="%"&&(h/=100);return a.hsl2rgb(d,e,f,h)}k={r:d,g:e,b:f,toString:bx},k.hex="#"+(16777216|f|e<<8|d<<16).toString(16).slice(1),a.is(h,"finite")&&(k.opacity=h);return k}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:bx}},a),a.hsb=bv(function(b,c,d){return a.hsb2rgb(b,c,d).hex}),a.hsl=bv(function(b,c,d){return a.hsl2rgb(b,c,d).hex}),a.rgb=bv(function(a,b,c){return"#"+(16777216|c|b<<8|a<<16).toString(16).slice(1)}),a.getColor=function(a){var b=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||.75},c=this.hsb2rgb(b.h,b.s,b.b);b.h+=.075,b.h>1&&(b.h=0,b.s-=.2,b.s<=0&&(this.getColor.start={h:0,s:1,b:b.b}));return c.hex},a.getColor.reset=function(){delete this.start},a.parsePathString=function(b){if(!b)return null;var c=bz(b);if(c.arr)return bJ(c.arr);var d={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},e=[];a.is(b,E)&&a.is(b[0],E)&&(e=bJ(b)),e.length||r(b).replace(Z,function(a,b,c){var f=[],g=b.toLowerCase();c.replace(_,function(a,b){b&&f.push(+b)}),g=="m"&&f.length>2&&(e.push([b][n](f.splice(0,2))),g="l",b=b=="m"?"l":"L");if(g=="r")e.push([b][n](f));else while(f.length>=d[g]){e.push([b][n](f.splice(0,d[g])));if(!d[g])break}}),e.toString=a._path2string,c.arr=bJ(e);return e},a.parseTransformString=bv(function(b){if(!b)return null;var c={r:3,s:4,t:2,m:6},d=[];a.is(b,E)&&a.is(b[0],E)&&(d=bJ(b)),d.length||r(b).replace($,function(a,b,c){var e=[],f=v.call(b);c.replace(_,function(a,b){b&&e.push(+b)}),d.push([b][n](e))}),d.toString=a._path2string;return d});var bz=function(a){var b=bz.ps=bz.ps||{};b[a]?b[a].sleep=100:b[a]={sleep:100},setTimeout(function(){for(var c in b)b[g](c)&&c!=a&&(b[c].sleep--,!b[c].sleep&&delete b[c])});return b[a]};a.findDotsAtSegment=function(a,b,c,d,e,f,g,h,i){var j=1-i,k=A(j,3),l=A(j,2),m=i*i,n=m*i,o=k*a+l*3*i*c+j*3*i*i*e+n*g,p=k*b+l*3*i*d+j*3*i*i*f+n*h,q=a+2*i*(c-a)+m*(e-2*c+a),r=b+2*i*(d-b)+m*(f-2*d+b),s=c+2*i*(e-c)+m*(g-2*e+c),t=d+2*i*(f-d)+m*(h-2*f+d),u=j*a+i*c,v=j*b+i*d,x=j*e+i*g,y=j*f+i*h,z=90-w.atan2(q-s,r-t)*180/B;(q>s||r=a.x&&b<=a.x2&&c>=a.y&&c<=a.y2},a.isBBoxIntersect=function(b,c){var d=a.isPointInsideBBox;return d(c,b.x,b.y)||d(c,b.x2,b.y)||d(c,b.x,b.y2)||d(c,b.x2,b.y2)||d(b,c.x,c.y)||d(b,c.x2,c.y)||d(b,c.x,c.y2)||d(b,c.x2,c.y2)||(b.xc.x||c.xb.x)&&(b.yc.y||c.yb.y)},a.pathIntersection=function(a,b){return bH(a,b)},a.pathIntersectionNumber=function(a,b){return bH(a,b,1)},a.isPointInsidePath=function(b,c,d){var e=a.pathBBox(b);return a.isPointInsideBBox(e,c,d)&&bH(b,[["M",c,d],["H",e.x2+10]],1)%2==1},a._removedFactory=function(a){return function(){eve("raphael.log",null,"Raphaël: you are calling to method “"+a+"” of removed object",a)}};var bI=a.pathBBox=function(a){var b=bz(a);if(b.bbox)return b.bbox;if(!a)return{x:0,y:0,width:0,height:0,x2:0,y2:0};a=bR(a);var c=0,d=0,e=[],f=[],g;for(var h=0,i=a.length;h1&&(v=w.sqrt(v),c=v*c,d=v*d);var x=c*c,y=d*d,A=(f==g?-1:1)*w.sqrt(z((x*y-x*u*u-y*t*t)/(x*u*u+y*t*t))),C=A*c*u/d+(a+h)/2,D=A*-d*t/c+(b+i)/2,E=w.asin(((b-D)/d).toFixed(9)),F=w.asin(((i-D)/d).toFixed(9));E=aF&&(E=E-B*2),!g&&F>E&&(F=F-B*2)}else E=j[0],F=j[1],C=j[2],D=j[3];var G=F-E;if(z(G)>k){var H=F,I=h,J=i;F=E+k*(g&&F>E?1:-1),h=C+c*w.cos(F),i=D+d*w.sin(F),m=bO(h,i,c,d,e,0,g,I,J,[F,H,C,D])}G=F-E;var K=w.cos(E),L=w.sin(E),M=w.cos(F),N=w.sin(F),O=w.tan(G/4),P=4/3*c*O,Q=4/3*d*O,R=[a,b],S=[a+P*L,b-Q*K],T=[h+P*N,i-Q*M],U=[h,i];S[0]=2*R[0]-S[0],S[1]=2*R[1]-S[1];if(j)return[S,T,U][n](m);m=[S,T,U][n](m).join()[s](",");var V=[];for(var W=0,X=m.length;W"1e12"&&(l=.5),z(n)>"1e12"&&(n=.5),l>0&&l<1&&(q=bP(a,b,c,d,e,f,g,h,l),p.push(q.x),o.push(q.y)),n>0&&n<1&&(q=bP(a,b,c,d,e,f,g,h,n),p.push(q.x),o.push(q.y)),i=f-2*d+b-(h-2*f+d),j=2*(d-b)-2*(f-d),k=b-d,l=(-j+w.sqrt(j*j-4*i*k))/2/i,n=(-j-w.sqrt(j*j-4*i*k))/2/i,z(l)>"1e12"&&(l=.5),z(n)>"1e12"&&(n=.5),l>0&&l<1&&(q=bP(a,b,c,d,e,f,g,h,l),p.push(q.x),o.push(q.y)),n>0&&n<1&&(q=bP(a,b,c,d,e,f,g,h,n),p.push(q.x),o.push(q.y));return{min:{x:y[m](0,p),y:y[m](0,o)},max:{x:x[m](0,p),y:x[m](0,o)}}}),bR=a._path2curve=bv(function(a,b){var c=!b&&bz(a);if(!b&&c.curve)return bJ(c.curve);var d=bL(a),e=b&&bL(b),f={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},g={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=function(a,b){var c,d;if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];!(a[0]in{T:1,Q:1})&&(b.qx=b.qy=null);switch(a[0]){case"M":b.X=a[1],b.Y=a[2];break;case"A":a=["C"][n](bO[m](0,[b.x,b.y][n](a.slice(1))));break;case"S":c=b.x+(b.x-(b.bx||b.x)),d=b.y+(b.y-(b.by||b.y)),a=["C",c,d][n](a.slice(1));break;case"T":b.qx=b.x+(b.x-(b.qx||b.x)),b.qy=b.y+(b.y-(b.qy||b.y)),a=["C"][n](bN(b.x,b.y,b.qx,b.qy,a[1],a[2]));break;case"Q":b.qx=a[1],b.qy=a[2],a=["C"][n](bN(b.x,b.y,a[1],a[2],a[3],a[4]));break;case"L":a=["C"][n](bM(b.x,b.y,a[1],a[2]));break;case"H":a=["C"][n](bM(b.x,b.y,a[1],b.y));break;case"V":a=["C"][n](bM(b.x,b.y,b.x,a[1]));break;case"Z":a=["C"][n](bM(b.x,b.y,b.X,b.Y))}return a},i=function(a,b){if(a[b].length>7){a[b].shift();var c=a[b];while(c.length)a.splice(b++,0,["C"][n](c.splice(0,6)));a.splice(b,1),l=x(d.length,e&&e.length||0)}},j=function(a,b,c,f,g){a&&b&&a[g][0]=="M"&&b[g][0]!="M"&&(b.splice(g,0,["M",f.x,f.y]),c.bx=0,c.by=0,c.x=a[g][1],c.y=a[g][2],l=x(d.length,e&&e.length||0))};for(var k=0,l=x(d.length,e&&e.length||0);ke){if(c&&!l.start){m=cs(g,h,i[1],i[2],i[3],i[4],i[5],i[6],e-n),k+=["C"+m.start.x,m.start.y,m.m.x,m.m.y,m.x,m.y];if(f)return k;l.start=k,k=["M"+m.x,m.y+"C"+m.n.x,m.n.y,m.end.x,m.end.y,i[5],i[6]].join(),n+=j,g=+i[5],h=+i[6];continue}if(!b&&!c){m=cs(g,h,i[1],i[2],i[3],i[4],i[5],i[6],e-n);return{x:m.x,y:m.y,alpha:m.alpha}}}n+=j,g=+i[5],h=+i[6]}k+=i.shift()+i}l.end=k,m=b?n:c?l:a.findDotsAtSegment(g,h,i[0],i[1],i[2],i[3],i[4],i[5],1),m.alpha&&(m={x:m.x,y:m.y,alpha:m.alpha});return m}},cu=ct(1),cv=ct(),cw=ct(0,1);a.getTotalLength=cu,a.getPointAtLength=cv,a.getSubpath=function(a,b,c){if(this.getTotalLength(a)-c<1e-6)return cw(a,b).end;var d=cw(a,c,1);return b?cw(d,b).end:d},cl.getTotalLength=function(){if(this.type=="path"){if(this.node.getTotalLength)return this.node.getTotalLength();return cu(this.attrs.path)}},cl.getPointAtLength=function(a){if(this.type=="path")return cv(this.attrs.path,a)},cl.getSubpath=function(b,c){if(this.type=="path")return a.getSubpath(this.attrs.path,b,c)};var cx=a.easing_formulas={linear:function(a){return a},"<":function(a){return A(a,1.7)},">":function(a){return A(a,.48)},"<>":function(a){var b=.48-a/1.04,c=w.sqrt(.1734+b*b),d=c-b,e=A(z(d),1/3)*(d<0?-1:1),f=-c-b,g=A(z(f),1/3)*(f<0?-1:1),h=e+g+.5;return(1-h)*3*h*h+h*h*h},backIn:function(a){var b=1.70158;return a*a*((b+1)*a-b)},backOut:function(a){a=a-1;var b=1.70158;return a*a*((b+1)*a+b)+1},elastic:function(a){if(a==!!a)return a;return A(2,-10*a)*w.sin((a-.075)*2*B/.3)+1},bounce:function(a){var b=7.5625,c=2.75,d;a<1/c?d=b*a*a:a<2/c?(a-=1.5/c,d=b*a*a+.75):a<2.5/c?(a-=2.25/c,d=b*a*a+.9375):(a-=2.625/c,d=b*a*a+.984375);return d}};cx.easeIn=cx["ease-in"]=cx["<"],cx.easeOut=cx["ease-out"]=cx[">"],cx.easeInOut=cx["ease-in-out"]=cx["<>"],cx["back-in"]=cx.backIn,cx["back-out"]=cx.backOut;var cy=[],cz=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a,16)},cA=function(){var b=+(new Date),c=0;for(;c1&&!d.next){for(s in k)k[g](s)&&(r[s]=d.totalOrigin[s]);d.el.attr(r),cE(d.anim,d.el,d.anim.percents[0],null,d.totalOrigin,d.repeat-1)}d.next&&!d.stop&&cE(d.anim,d.el,d.next,null,d.totalOrigin,d.repeat)}}a.svg&&m&&m.paper&&m.paper.safari(),cy.length&&cz(cA)},cB=function(a){return a>255?255:a<0?0:a};cl.animateWith=function(b,c,d,e,f,g){var h=this;if(h.removed){g&&g.call(h);return h}var i=d instanceof cD?d:a.animation(d,e,f,g),j,k;cE(i,h,i.percents[0],null,h.attr());for(var l=0,m=cy.length;l.5)*2-1;i(m-.5,2)+i(n-.5,2)>.25&&(n=f.sqrt(.25-i(m-.5,2))*e+.5)&&n!=.5&&(n=n.toFixed(5)-1e-5*e)}return l}),e=e.split(/\s*\-\s*/);if(j=="linear"){var t=e.shift();t=-d(t);if(isNaN(t))return null;var u=[0,0,f.cos(a.rad(t)),f.sin(a.rad(t))],v=1/(g(h(u[2]),h(u[3]))||1);u[2]*=v,u[3]*=v,u[2]<0&&(u[0]=-u[2],u[2]=0),u[3]<0&&(u[1]=-u[3],u[3]=0)}var w=a._parseDots(e);if(!w)return null;k=k.replace(/[\(\)\s,\xb0#]/g,"_"),b.gradient&&k!=b.gradient.id&&(p.defs.removeChild(b.gradient),delete b.gradient);if(!b.gradient){s=q(j+"Gradient",{id:k}),b.gradient=s,q(s,j=="radial"?{fx:m,fy:n}:{x1:u[0],y1:u[1],x2:u[2],y2:u[3],gradientTransform:b.matrix.invert()}),p.defs.appendChild(s);for(var x=0,y=w.length;x1?G.opacity/100:G.opacity});case"stroke":G=a.getRGB(p),i.setAttribute(o,G.hex),o=="stroke"&&G[b]("opacity")&&q(i,{"stroke-opacity":G.opacity>1?G.opacity/100:G.opacity}),o=="stroke"&&d._.arrows&&("startString"in d._.arrows&&t(d,d._.arrows.startString),"endString"in d._.arrows&&t(d,d._.arrows.endString,1));break;case"gradient":(d.type=="circle"||d.type=="ellipse"||c(p).charAt()!="r")&&r(d,p);break;case"opacity":k.gradient&&!k[b]("stroke-opacity")&&q(i,{"stroke-opacity":p>1?p/100:p});case"fill-opacity":if(k.gradient){H=a._g.doc.getElementById(i.getAttribute("fill").replace(/^url\(#|\)$/g,l)),H&&(I=H.getElementsByTagName("stop"),q(I[I.length-1],{"stop-opacity":p}));break};default:o=="font-size"&&(p=e(p,10)+"px");var J=o.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()});i.style[J]=p,d._.dirty=1,i.setAttribute(o,p)}}y(d,f),i.style.visibility=m},x=1.2,y=function(d,f){if(d.type=="text"&&!!(f[b]("text")||f[b]("font")||f[b]("font-size")||f[b]("x")||f[b]("y"))){var g=d.attrs,h=d.node,i=h.firstChild?e(a._g.doc.defaultView.getComputedStyle(h.firstChild,l).getPropertyValue("font-size"),10):10;if(f[b]("text")){g.text=f.text;while(h.firstChild)h.removeChild(h.firstChild);var j=c(f.text).split("\n"),k=[],m;for(var n=0,o=j.length;n"));var $=X.getBoundingClientRect();t.W=m.w=($.right-$.left)/Y,t.H=m.h=($.bottom-$.top)/Y,t.X=m.x,t.Y=m.y+t.H/2,("x"in i||"y"in i)&&(t.path.v=a.format("m{0},{1}l{2},{1}",f(m.x*u),f(m.y*u),f(m.x*u)+1));var _=["x","y","text","font","font-family","font-weight","font-style","font-size"];for(var ba=0,bb=_.length;ba.25&&(c=e.sqrt(.25-i(b-.5,2))*((c>.5)*2-1)+.5),m=b+n+c);return o}),f=f.split(/\s*\-\s*/);if(l=="linear"){var p=f.shift();p=-d(p);if(isNaN(p))return null}var q=a._parseDots(f);if(!q)return null;b=b.shape||b.node;if(q.length){b.removeChild(g),g.on=!0,g.method="none",g.color=q[0].color,g.color2=q[q.length-1].color;var r=[];for(var s=0,t=q.length;s')}}catch(c){F=function(a){return b.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},a._engine.initWin(a._g.win),a._engine.create=function(){var b=a._getContainer.apply(0,arguments),c=b.container,d=b.height,e,f=b.width,g=b.x,h=b.y;if(!c)throw new Error("VML container not found.");var i=new a._Paper,j=i.canvas=a._g.doc.createElement("div"),k=j.style;g=g||0,h=h||0,f=f||512,d=d||342,i.width=f,i.height=d,f==+f&&(f+="px"),d==+d&&(d+="px"),i.coordsize=u*1e3+n+u*1e3,i.coordorigin="0 0",i.span=a._g.doc.createElement("span"),i.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",j.appendChild(i.span),k.cssText=a.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",f,d),c==1?(a._g.doc.body.appendChild(j),k.left=g+"px",k.top=h+"px",k.position="absolute"):c.firstChild?c.insertBefore(j,c.firstChild):c.appendChild(j),i.renderfix=function(){};return i},a.prototype.clear=function(){a.eve("raphael.clear",this),this.canvas.innerHTML=o,this.span=a._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},a.prototype.remove=function(){a.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas);for(var b in this)this[b]=typeof this[b]=="function"?a._removedFactory(b):null;return!0};var G=a.st;for(var H in E)E[b](H)&&!G[b](H)&&(G[H]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(H))}(window.Raphael) \ No newline at end of file diff --git a/photos/photo1.jpg b/photos/photo1.jpg new file mode 100644 index 0000000..bcd690a Binary files /dev/null and b/photos/photo1.jpg differ diff --git a/photos/photo10.jpg b/photos/photo10.jpg new file mode 100644 index 0000000..ef3f544 Binary files /dev/null and b/photos/photo10.jpg differ diff --git a/photos/photo11.jpg b/photos/photo11.jpg new file mode 100644 index 0000000..314fc85 Binary files /dev/null and b/photos/photo11.jpg differ diff --git a/photos/photo11_thumb.jpg b/photos/photo11_thumb.jpg new file mode 100644 index 0000000..314fc85 Binary files /dev/null and b/photos/photo11_thumb.jpg differ diff --git a/photos/photo12.jpg b/photos/photo12.jpg new file mode 100644 index 0000000..d7e247e Binary files /dev/null and b/photos/photo12.jpg differ diff --git a/photos/photo12_thumb.jpg b/photos/photo12_thumb.jpg new file mode 100644 index 0000000..d7e247e Binary files /dev/null and b/photos/photo12_thumb.jpg differ diff --git a/photos/photo13.jpg b/photos/photo13.jpg new file mode 100644 index 0000000..9d176cc Binary files /dev/null and b/photos/photo13.jpg differ diff --git a/photos/photo13_thumb.jpg b/photos/photo13_thumb.jpg new file mode 100644 index 0000000..9d176cc Binary files /dev/null and b/photos/photo13_thumb.jpg differ diff --git a/photos/photo14.jpg b/photos/photo14.jpg new file mode 100644 index 0000000..a64cf24 Binary files /dev/null and b/photos/photo14.jpg differ diff --git a/photos/photo14_thumb.jpg b/photos/photo14_thumb.jpg new file mode 100644 index 0000000..a64cf24 Binary files /dev/null and b/photos/photo14_thumb.jpg differ diff --git a/photos/photo2.jpg b/photos/photo2.jpg new file mode 100644 index 0000000..4759373 Binary files /dev/null and b/photos/photo2.jpg differ diff --git a/photos/photo3.jpg b/photos/photo3.jpg new file mode 100644 index 0000000..347f018 Binary files /dev/null and b/photos/photo3.jpg differ diff --git a/photos/photo4.jpg b/photos/photo4.jpg new file mode 100644 index 0000000..c4eadd2 Binary files /dev/null and b/photos/photo4.jpg differ diff --git a/photos/photo7.jpg b/photos/photo7.jpg new file mode 100644 index 0000000..d7e247e Binary files /dev/null and b/photos/photo7.jpg differ diff --git a/photos/photo9.jpg b/photos/photo9.jpg new file mode 100644 index 0000000..e3ecc22 Binary files /dev/null and b/photos/photo9.jpg differ diff --git a/photos/video.jpg b/photos/video.jpg new file mode 100644 index 0000000..b197710 Binary files /dev/null and b/photos/video.jpg differ diff --git a/photos/video.png b/photos/video.png new file mode 100644 index 0000000..3531620 Binary files /dev/null and b/photos/video.png differ diff --git a/reglas.ESENSERIO.txt b/reglas.ESENSERIO.txt deleted file mode 100644 index a77d9b1..0000000 --- a/reglas.ESENSERIO.txt +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - -REGLAS DE CODIFICACIÓN EN CSS - -1. Todos los atributos en orden alfabético -2. Orden de estilos: - *. pre-render - 1. etiquetas - 2. IDs - 3. Clases -3. Orden alfabético todos los estilos -4. Identar y hacer código LINDO \ No newline at end of file diff --git a/res/css/style.css b/res/css/style.css new file mode 100644 index 0000000..c5a8a0a --- /dev/null +++ b/res/css/style.css @@ -0,0 +1,120 @@ +@import url("normalize.css") screen; +@import url("animation.css") screen; + +/* Common */ +html, body { + background:#eaeaea url(../img/bg.png) repeat; + min-width:960px; + margin:0; + padding:0; + color:#E6E6E6; +} + +.content h1 { + font-size:48px; + color:#E6E6E6; + text-align:center; + padding:60px 0 30px; +} + +/* LAYOUT */ +.container { + margin:0 auto; + overflow:hidden; + width: 100%; + display: inline-block; +} + +/* CONTENT SLIDER */ +#content-slider { + width:100%; + height:360px; + margin:10px auto 0; +} +/* SLIDER */ +#slider { + background:#000; + border:5px solid #eaeaea; + box-shadow:1px 1px 5px rgba(0,0,0,0.7); + width: 98%; + margin:40px auto 0; + overflow:visible; + position:relative; +} +#mask { + overflow:hidden; + height: 323px; +} +#slider ul { + margin:0; + padding:0; + position:relative; +} +#slider li { + width: 100%; + position:absolute; + top: -325px; + list-style:none; +} + +#slider li.firstanimation { + -moz-animation:cycle 25s linear infinite; + -webkit-animation:cycle 25s linear infinite; +} +#slider li.secondanimation { + -moz-animation:cycletwo 25s linear infinite; + -webkit-animation:cycletwo 25s linear infinite; +} +#slider li.thirdanimation { + -moz-animation:cyclethree 25s linear infinite; + -webkit-animation:cyclethree 25s linear infinite; +} +#slider li.fourthanimation { + -moz-animation:cyclefour 25s linear infinite; + -webkit-animation:cyclefour 25s linear infinite; +} +#slider li.fifthanimation { + -moz-animation:cyclefive 25s linear infinite; + -webkit-animation:cyclefive 25s linear infinite; +} + +#slider .tooltip { + background: rgba(255, 255, 255, 0.4); + width:300px; + height:100px; + position:relative; + bottom: 130px; + left:-320px; + -moz-transition:all 0.3s ease-in-out; + -webkit-transition:all 0.3s ease-in-out; +} +#slider .tooltip h1 { + color:#575757; + font-size:24px; + font-weight:300; + line-height:60px; + padding:0 0 0 20px; +} +#slider li#first:hover .tooltip, +#slider li#second:hover .tooltip, +#slider li#third:hover .tooltip, +#slider li#fourth:hover .tooltip, +#slider li#fifth:hover .tooltip { + left:0px; +} +#slider:hover li, +#slider:hover .progress-bar { + -moz-animation-play-state:paused; + -webkit-animation-play-state:paused; +} + +/* PROGRESS BAR */ +.progress-bar { + position:relative; + top:-5px; + width:680px; + height:5px; + background:#000; + -moz-animation:fullexpand 25s ease-out infinite; + -webkit-animation:fullexpand 25s ease-out infinite; +} diff --git a/responsive.css b/responsive.css index d13bc8c..652952a 100644 --- a/responsive.css +++ b/responsive.css @@ -1,41 +1,228 @@ +/*Y, ahora. ¡tan tan tan!... R-e-s-p-o-n-s-i-v-e ¡DESIGN!*/ +/*Cuando el viewport(la parte visible de la página) Sea mayor a 768px:*/ @media screen and (min-width: 768px) { + /*Que el margin del body sea 0*/ body { margin: 0 auto; - max-width: 1200px; + } - #bienvenida + /*Que aparezca la bienvenida que desaparecimos por la línea 222*/ + #grupo { display: block; - border-bottom: 1px solid #CCC; + + } + #grupo #bienvenida + { + display: block; + margin-top: 2em; float: right; margin-right: 2%; + /*Y ocupe el 25% del viewport*/ width: 25%; + + } + #post_texto + { + font-size: 1.1em; + width: 65%; + } + #post_texto h1 + { + font-size: 2em; } - #bienvenida h2 + /*Explicando cómo se deberán ver algunas cosas...*/ + #grupo #bienvenida #actividad { - color: #434343; + display: inline-block; + border-bottom: 1.3px solid #CCC; + + + } - #bienvenida #mensaje_registro, - #bienvenida #registro + + #grupo #bienvenida #actividad #b_actividad { + background: #DE5659; + border-radius: 1px; + color: white; + display: block; + font-size: 1.2em; + padding: 0.5em 0; text-align: center; + text-decoration: none; } - #bienvenida #mensaje_registro + #grupo #bienvenida #actividad .notificacion { - font-size: 0.8em; + border-bottom: 1.3px solid #CCC; + color:#b3b3b3; + + } + #grupo #bienvenida #actividad .notificacion .actividad_mensaje + { + + display: block; + float: right; + vertical-align: middle; + width: 75% + } + #grupo #bienvenida #actividad .notificacion .comentarios_item + { + background: #de5659; + border-radius: 4px; + color: white; + display: block; + float: left; + margin-right: 2em; + padding: 4px; + position: relative; + text-decoration: none; + vertical-align: middle; + } + #grupo #bienvenida #actividad .notificacion .comentarios_item:after + { + border-left: 5px solid transparent; + border-right: 5px solid transparent; + border-top: 5px solid #de5659; + content: ""; + left :25px; + position: absolute; + top:100%; + } + #grupo #bienvenida #registro #b_registro + { + background: #06bbe1; + border-radius: 1px; + color: white; + display: block; + font-size: 1.2em; + padding: 0.5em 0; + text-align: center; + text-decoration: none; + box-shadow: 1px 3px 0.3px #D4D4D4; + } + #grupo #bienvenida p + { + display: block; + + width: 100%; + } + #grupo #bienvenida #autor_nombre + { + display: block; + float: left; + font-size: 1.2em; + width: 60%; + vertical-align: top; + } + #grupo #bienvenida #autor_nombre span + { + color: #A2A2A2; + display: block; + float: left; + font-size: 0.7em; + font-weight: normal; + width: 60%; + vertical-align: top; } - #bienvenida #registro + #grupo #bienvenida #avatar_autor { - background: #22BCE0; + border: 2px #4C4C4C solid; + border-radius: 2px; + display: inline-block; + float: left; + width: 50px; + height: 50px; + margin:0 0.5em 0.2em 0; + } + #grupo #bienvenida #seguir + { + background: #06bbe1; + border-radius: 3px; color: white; display: block; + float: right; font-size: 1.2em; padding: 0.5em 0; + text-align: center; + text-decoration: none; + box-shadow: 1px 3px 0.3px #D4D4D4; + width: 38%; + vertical-align: top; } - #contenido + #grupo #bienvenida #mensaje { + color: #A2A2A2; + display: inline-block; + float: left; + text-align: left; + text-decoration: none; + width: 100%; + } + #grupo #bienvenida #registro #mensaje_registro + { + font-size: 0.8em; + color: #b3b3b3; + text-align:center; + font-style: italic; + + } + /*Litando el ancho del contenido al 70% del viewport*/ + #contenido + { + display: block; width: 70%; } -} \ No newline at end of file + #contenido_100 + { + display: block; + width: 100% + } + + #contenido #item_resaltado + { + display: block; + } + /*Hacer que la imagen grande ocupe el 100%(de su contenedor).*/ + #contenido #item_resaltado + { + width: 100%; + } + +} +@media screen and (min-width: 900px) +{} +/*Ahora. Si la resolución llega a ser menor a 475px:*/ +@media screen and (max-width: 475px) +{ + /*El botón de publicar deje de flotar a la derecha, para que no se quiebre, y comienze a ser otro botón común del nav*/ + +nav ul li{ + display: block; + margin-left: auto; + margin-right: auto; +} + +} +/*Si la resolución llegase a bajar de 350px:*/ +@media screen and (max-width: 350px) +{ + /*El título del header dejará de mostrarse*/ + #titulo_header + { + display: none; + } + /*Y la fecha de publicación y la opción de guardar item de los artículos desaparecerá D: (Obviamente en ningún momento debería llegar a esa resolución)*/ + .datos_item .guardar_item, + .datos_item .fecha_item + { + display: none; + } + + +} +/*¡Y ya! :D*/ +/*Cualquier duda la puedes comentar, y yo u otra persona te la responderá +*/ diff --git a/responsive2.css b/responsive2.css new file mode 100644 index 0000000..0c13ce4 --- /dev/null +++ b/responsive2.css @@ -0,0 +1,249 @@ +/*Y, ahora. ¡tan tan tan!... R-e-s-p-o-n-s-i-v-e ¡DESIGN!*/ +/*Cuando el viewport(la parte visible de la página) Sea mayor a 768px:*/ +@media screen and (min-width: 900px) +{ + /*Que el margin del body sea 0*/ + body + { + margin: 0 auto; + + } + /*Que aparezca la bienvenida que desaparecimos por la línea 222*/ + #grupo + { + display: block; + + } + #grupo #bienvenida + { + display: block; + margin-top: 2em; + float: right; + margin-right: 2%; + /*Y ocupe el 25% del viewport*/ + width: 25%; + + } + #post_texto + { + font-size: 1.1em; + width: 65%; + } + #post_texto h1 + { + font-size: 2em; + } + /*Explicando cómo se deberán ver algunas cosas...*/ + #grupo #bienvenida #actividad + { + display: inline-block; + border-bottom: 1.3px solid #CCC; + + + + } + + #grupo #bienvenida #actividad #b_actividad + { + background: #DE5659; + border-radius: 1px; + color: white; + display: block; + font-size: 1.2em; + padding: 0.5em 0; + text-align: center; + text-decoration: none; + } + #grupo #bienvenida #actividad #b_comentarios + { + background: #A2A2A2; + border-radius: 1px; + color: white; + display: block; + font-size: 1.2em; + padding: 0.5em 0; + margin-top: 3em; + text-align: center; + text-decoration: none; + } + #grupo #bienvenida #actividad .notificacion + { + border-bottom: 1.3px solid #CCC; + color:#b3b3b3; + + } + #grupo #bienvenida #actividad .notificacion .actividad_mensaje + { + + display: block; + float: right; + vertical-align: middle; + width: 75% + } + #grupo #bienvenida #actividad .notificacion .comentarios_item + { + background: #de5659; + border-radius: 4px; + color: white; + display: block; + float: left; + margin-right: 2em; + padding: 4px; + position: relative; + text-decoration: none; + vertical-align: middle; + } + #grupo #bienvenida #actividad .notificacion figure img + { + border: 1px #4C4C4C solid; + border-radius: 2px; + display: inline-block; + float: left; + width: 45px; + height: auto; + margin:0 0.5em 0.2em 0; + } + #grupo #bienvenida #actividad .notificacion .comentarios_item:after + { + border-left: 5px solid transparent; + border-right: 5px solid transparent; + border-top: 5px solid #de5659; + content: ""; + left :25px; + position: absolute; + top:100%; + } + #grupo #bienvenida #registro #b_registro + { + background: #06bbe1; + border-radius: 1px; + color: white; + display: block; + font-size: 1.2em; + padding: 0.5em 0; + text-align: center; + text-decoration: none; + box-shadow: 1px 3px 0.3px #D4D4D4; + } + #grupo #bienvenida p + { + display: block; + + width: 100%; + } + #grupo #bienvenida #autor_nombre + { + display: block; + float: left; + font-size: 1.2em; + width: 60%; + vertical-align: top; + } + #grupo #bienvenida #autor_nombre span + { + color: #A2A2A2; + display: block; + float: left; + font-size: 0.7em; + font-weight: normal; + width: 60%; + vertical-align: top; + } + #grupo #bienvenida #avatar_autor + { + border: 2px #4C4C4C solid; + border-radius: 2px; + display: inline-block; + float: left; + width: 50px; + height: 50px; + margin:0 0.5em 0.2em 0; + } + #grupo #bienvenida #seguir + { + background: #06bbe1; + border-radius: 3px; + color: white; + display: block; + float: right; + font-size: 1.2em; + padding: 0.5em 0; + text-align: center; + text-decoration: none; + box-shadow: 1px 3px 0.3px #D4D4D4; + width: 38%; + vertical-align: top; + } + #grupo #bienvenida #mensaje + { + color: #A2A2A2; + display: inline-block; + float: left; + text-align: left; + text-decoration: none; + width: 100%; + } + #grupo #bienvenida #registro #mensaje_registro + { + font-size: 0.8em; + color: #b3b3b3; + text-align:center; + font-style: italic; + + } + /*Limitando el ancho del contenido al 70% del viewport*/ + #contenido + { + display: block; + width: 70%; + } + #contenido_100 + { + display: block; + width: 100% + } + + #contenido #item_resaltado + { + display: block; + } + /*Hacer que la imagen grande ocupe el 100%(de su contenedor).*/ + #contenido #item_resaltado + { + width: 100%; + } + +} + +/*Ahora. Si la resolución llega a ser menor a 475px:*/ +@media screen and (max-width: 475px) +{ + /*El botón de publicar deje de flotar a la derecha, para que no se quiebre, y comienze a ser otro botón común del nav*/ + +nav ul li{ + display: block; + margin-left: auto; + margin-right: auto; +} + +} +/*Si la resolución llegase a bajar de 350px:*/ +@media screen and (max-width: 350px) +{ + /*El título del header dejará de mostrarse*/ + #titulo_header + { + display: none; + } + /*Y la fecha de publicación y la opción de guardar item de los artículos desaparecerá D: (Obviamente en ningún momento debería llegar a esa resolución)*/ + .datos_item .guardar_item, + .datos_item .fecha_item + { + display: none; + } + + +} +/*¡Y ya! :D*/ +/*Cualquier duda la puedes comentar, y yo u otra persona te la responderá +*/ diff --git a/usuarios/avatar_1.jpg b/usuarios/avatar_1.jpg new file mode 100644 index 0000000..4f1013a Binary files /dev/null and b/usuarios/avatar_1.jpg differ diff --git a/usuarios/avatar_2.jpg b/usuarios/avatar_2.jpg new file mode 100644 index 0000000..97b7964 Binary files /dev/null and b/usuarios/avatar_2.jpg differ diff --git a/usuarios/avatar_3.jpeg b/usuarios/avatar_3.jpeg new file mode 100644 index 0000000..f80796f Binary files /dev/null and b/usuarios/avatar_3.jpeg differ diff --git a/usuarios/avatar_4.jpeg b/usuarios/avatar_4.jpeg new file mode 100644 index 0000000..2c4f7a7 Binary files /dev/null and b/usuarios/avatar_4.jpeg differ diff --git a/usuarios/avatar_5.jpg b/usuarios/avatar_5.jpg new file mode 100644 index 0000000..631c3c2 Binary files /dev/null and b/usuarios/avatar_5.jpg differ diff --git a/usuarios/avatar_6.jpeg b/usuarios/avatar_6.jpeg new file mode 100644 index 0000000..b0b2cd4 Binary files /dev/null and b/usuarios/avatar_6.jpeg differ