@@ -3,6 +3,7 @@ from django.conf import settings | |||
def template_settings(request): | |||
return { | |||
'site_name': settings.SITE_NAME, | |||
'SITE_NAME': settings.SITE_NAME, | |||
'API_LIMIT_PER_PAGE': settings.API_LIMIT_PER_PAGE, | |||
} | |||
@@ -21,10 +21,14 @@ USE_I18N = True | |||
USE_L10N = True | |||
USE_TZ = True | |||
MEDIA_ROOT = os.path.join(SITE_ROOT, 'media/') | |||
MEDIA_URL = '/media/' | |||
STATIC_ROOT = os.path.join(SITE_ROOT, 'static/') | |||
STATIC_URL = '/static/' | |||
MEDIA_ROOT = os.path.join(SITE_ROOT, 'media') | |||
STATIC_ROOT = os.path.join(SITE_ROOT, 'static') | |||
TEMPLATE_DIRS = [os.path.join(SITE_ROOT, 'pinry/templates')] | |||
STATICFILES_DIRS = [os.path.join(SITE_ROOT, 'pinry/static')] | |||
STATICFILES_FINDERS = ( | |||
'django.contrib.staticfiles.finders.FileSystemFinder', | |||
@@ -43,16 +47,21 @@ MIDDLEWARE_CLASSES = ( | |||
'pinry.core.middleware.Public', | |||
) | |||
TEMPLATE_CONTEXT_PROCESSORS = ( | |||
"django.contrib.auth.context_processors.auth", | |||
"django.core.context_processors.debug", | |||
"django.core.context_processors.i18n", | |||
"django.core.context_processors.media", | |||
"django.core.context_processors.static", | |||
"django.core.context_processors.request", | |||
"django.contrib.messages.context_processors.messages", | |||
"pinry.core.context_processors.template_settings", | |||
'django.contrib.auth.context_processors.auth', | |||
'django.core.context_processors.debug', | |||
'django.core.context_processors.i18n', | |||
'django.core.context_processors.media', | |||
'django.core.context_processors.static', | |||
'django.core.context_processors.request', | |||
'django.contrib.messages.context_processors.messages', | |||
'pinry.core.context_processors.template_settings', | |||
) | |||
AUTHENTICATION_BACKENDS = ( | |||
'pinry.core.auth.backends.CombinedAuthBackend', | |||
'django.contrib.auth.backends.ModelBackend', | |||
) | |||
COMPRESS_CSS_FILTERS = ['compressor.filters.cssmin.CSSMinFilter'] | |||
ROOT_URLCONF = 'pinry.urls' | |||
LOGIN_REDIRECT_URL = '/' | |||
@@ -65,6 +74,7 @@ MESSAGE_TAGS = { | |||
} | |||
API_LIMIT_PER_PAGE = 30 | |||
INSTALLED_APPS = ( | |||
'django.contrib.auth', | |||
'django.contrib.contenttypes', | |||
@@ -74,10 +84,7 @@ INSTALLED_APPS = ( | |||
'south', | |||
'compressor', | |||
'taggit', | |||
'pinry.vendor', | |||
'pinry.core', | |||
'pinry.pins', | |||
'pinry.api', | |||
) | |||
AUTHENTICATION_BACKENDS = ('pinry.core.auth.backends.CombinedAuthBackend', 'django.contrib.auth.backends.ModelBackend',) |
@@ -87,7 +87,7 @@ $(window).load(function() { | |||
}); | |||
// Up our offset, it's currently defined as 30 in our settings | |||
offset += 30; | |||
offset += apiLimitPerPage; | |||
}); | |||
} | |||
@@ -1,25 +1,21 @@ | |||
{% spaceless %} | |||
{% load new_pin %} | |||
{% load compress %} | |||
{% load compress new_pin %} | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<title>{{ site_name }} - {% block title %}{% endblock %}</title> | |||
<title>{{ SITE_NAME }} - {% block title %}{% endblock %}</title> | |||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Monoton"> | |||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.0/css/bootstrap.min.css"> | |||
{% compress css %} | |||
<link rel="stylesheet" href="/static/vendor/bootstrap/2.0.3/css/bootstrap.css"> | |||
<link rel="stylesheet" href="/static/vendor/fancybox/2.0.6/jquery.fancybox.css"> | |||
<link rel="stylesheet" href="/static/core/css/pinry.css"> | |||
<link rel="stylesheet" href="{{ STATIC_URL }}css/pinry.css"> | |||
{% endcompress %} | |||
</head> | |||
<body> | |||
<div class="navbar navbar-fixed-top"> | |||
<div class="navbar-inner"> | |||
<a href="{% url 'core:home' %}" class="brand pull-left">{{ site_name }}</a> | |||
<a href="{% url 'core:home' %}" class="brand pull-left">{{ SITE_NAME }}</a> | |||
<div class="tags pull-left"></div> | |||
@@ -50,18 +46,18 @@ | |||
{% block templates %}{% endblock %} | |||
{% compress js inline %} | |||
<script> | |||
var currentUser = "{{ user.username }}"; | |||
</script> | |||
<script> | |||
var apiLimitPerPage = {{ API_LIMIT_PER_PAGE }}, | |||
currentUser = "{{ user.username }}"; | |||
</script> | |||
{% endcompress %} | |||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |||
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script> | |||
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.min.js"></script> | |||
{% compress js %} | |||
<script src="/static/vendor/bootstrap/2.0.3/js/bootstrap.js"></script> | |||
<script src="/static/vendor/handlebars/1.0.0/handlebars.js"></script> | |||
<script src="/static/core/js/pinry.js"></script> | |||
<script src="/static/core/js/messages.js"></script> | |||
<script src="{{ STATIC_URL }}js/pinry.js"></script> | |||
<script src="{{ STATIC_URL }}js/messages.js"></script> | |||
{% endcompress %} | |||
</body> | |||
</html> |
@@ -7,7 +7,7 @@ | |||
<div class="container spinner"> | |||
<div class="row"> | |||
<div class="span12" align="center"> | |||
<img src="/static/core/img/loader.gif" alt="Loader"> | |||
<img src="{{ STATIC_URL }}img/loader.gif" alt="Loader"> | |||
</div> | |||
</div> | |||
</div> |
@@ -1,808 +0,0 @@ | |||
/*! | |||
* Bootstrap Responsive v2.0.3 | |||
* | |||
* Copyright 2012 Twitter, Inc | |||
* Licensed under the Apache License v2.0 | |||
* http://www.apache.org/licenses/LICENSE-2.0 | |||
* | |||
* Designed and built with all the love in the world @twitter by @mdo and @fat. | |||
*/ | |||
.clearfix { | |||
*zoom: 1; | |||
} | |||
.clearfix:before, | |||
.clearfix:after { | |||
display: table; | |||
content: ""; | |||
} | |||
.clearfix:after { | |||
clear: both; | |||
} | |||
.hide-text { | |||
font: 0/0 a; | |||
color: transparent; | |||
text-shadow: none; | |||
background-color: transparent; | |||
border: 0; | |||
} | |||
.input-block-level { | |||
display: block; | |||
width: 100%; | |||
min-height: 28px; | |||
-webkit-box-sizing: border-box; | |||
-moz-box-sizing: border-box; | |||
-ms-box-sizing: border-box; | |||
box-sizing: border-box; | |||
} | |||
.hidden { | |||
display: none; | |||
visibility: hidden; | |||
} | |||
.visible-phone { | |||
display: none !important; | |||
} | |||
.visible-tablet { | |||
display: none !important; | |||
} | |||
.hidden-desktop { | |||
display: none !important; | |||
} | |||
@media (max-width: 767px) { | |||
.visible-phone { | |||
display: inherit !important; | |||
} | |||
.hidden-phone { | |||
display: none !important; | |||
} | |||
.hidden-desktop { | |||
display: inherit !important; | |||
} | |||
.visible-desktop { | |||
display: none !important; | |||
} | |||
} | |||
@media (min-width: 768px) and (max-width: 979px) { | |||
.visible-tablet { | |||
display: inherit !important; | |||
} | |||
.hidden-tablet { | |||
display: none !important; | |||
} | |||
.hidden-desktop { | |||
display: inherit !important; | |||
} | |||
.visible-desktop { | |||
display: none !important ; | |||
} | |||
} | |||
@media (max-width: 480px) { | |||
.nav-collapse { | |||
-webkit-transform: translate3d(0, 0, 0); | |||
} | |||
.page-header h1 small { | |||
display: block; | |||
line-height: 18px; | |||
} | |||
input[type="checkbox"], | |||
input[type="radio"] { | |||
border: 1px solid #ccc; | |||
} | |||
.form-horizontal .control-group > label { | |||
float: none; | |||
width: auto; | |||
padding-top: 0; | |||
text-align: left; | |||
} | |||
.form-horizontal .controls { | |||
margin-left: 0; | |||
} | |||
.form-horizontal .control-list { | |||
padding-top: 0; | |||
} | |||
.form-horizontal .form-actions { | |||
padding-right: 10px; | |||
padding-left: 10px; | |||
} | |||
.modal { | |||
position: absolute; | |||
top: 10px; | |||
right: 10px; | |||
left: 10px; | |||
width: auto; | |||
margin: 0; | |||
} | |||
.modal.fade.in { | |||
top: auto; | |||
} | |||
.modal-header .close { | |||
padding: 10px; | |||
margin: -10px; | |||
} | |||
.carousel-caption { | |||
position: static; | |||
} | |||
} | |||
@media (max-width: 767px) { | |||
body { | |||
padding-right: 20px; | |||
padding-left: 20px; | |||
} | |||
.navbar-fixed-top, | |||
.navbar-fixed-bottom { | |||
margin-right: -20px; | |||
margin-left: -20px; | |||
} | |||
.container-fluid { | |||
padding: 0; | |||
} | |||
.dl-horizontal dt { | |||
float: none; | |||
width: auto; | |||
clear: none; | |||
text-align: left; | |||
} | |||
.dl-horizontal dd { | |||
margin-left: 0; | |||
} | |||
.container { | |||
width: auto; | |||
} | |||
.row-fluid { | |||
width: 100%; | |||
} | |||
.row, | |||
.thumbnails { | |||
margin-left: 0; | |||
} | |||
[class*="span"], | |||
.row-fluid [class*="span"] { | |||
display: block; | |||
float: none; | |||
width: auto; | |||
margin-left: 0; | |||
} | |||
.input-large, | |||
.input-xlarge, | |||
.input-xxlarge, | |||
input[class*="span"], | |||
select[class*="span"], | |||
textarea[class*="span"], | |||
.uneditable-input { | |||
display: block; | |||
width: 100%; | |||
min-height: 28px; | |||
-webkit-box-sizing: border-box; | |||
-moz-box-sizing: border-box; | |||
-ms-box-sizing: border-box; | |||
box-sizing: border-box; | |||
} | |||
.input-prepend input, | |||
.input-append input, | |||
.input-prepend input[class*="span"], | |||
.input-append input[class*="span"] { | |||
display: inline-block; | |||
width: auto; | |||
} | |||
} | |||
@media (min-width: 768px) and (max-width: 979px) { | |||
.row { | |||
margin-left: -20px; | |||
*zoom: 1; | |||
} | |||
.row:before, | |||
.row:after { | |||
display: table; | |||
content: ""; | |||
} | |||
.row:after { | |||
clear: both; | |||
} | |||
[class*="span"] { | |||
float: left; | |||
margin-left: 20px; | |||
} | |||
.container, | |||
.navbar-fixed-top .container, | |||
.navbar-fixed-bottom .container { | |||
width: 724px; | |||
} | |||
.span12 { | |||
width: 724px; | |||
} | |||
.span11 { | |||
width: 662px; | |||
} | |||
.span10 { | |||
width: 600px; | |||
} | |||
.span9 { | |||
width: 538px; | |||
} | |||
.span8 { | |||
width: 476px; | |||
} | |||
.span7 { | |||
width: 414px; | |||
} | |||
.span6 { | |||
width: 352px; | |||
} | |||
.span5 { | |||
width: 290px; | |||
} | |||
.span4 { | |||
width: 228px; | |||
} | |||
.span3 { | |||
width: 166px; | |||
} | |||
.span2 { | |||
width: 104px; | |||
} | |||
.span1 { | |||
width: 42px; | |||
} | |||
.offset12 { | |||
margin-left: 764px; | |||
} | |||
.offset11 { | |||
margin-left: 702px; | |||
} | |||
.offset10 { | |||
margin-left: 640px; | |||
} | |||
.offset9 { | |||
margin-left: 578px; | |||
} | |||
.offset8 { | |||
margin-left: 516px; | |||
} | |||
.offset7 { | |||
margin-left: 454px; | |||
} | |||
.offset6 { | |||
margin-left: 392px; | |||
} | |||
.offset5 { | |||
margin-left: 330px; | |||
} | |||
.offset4 { | |||
margin-left: 268px; | |||
} | |||
.offset3 { | |||
margin-left: 206px; | |||
} | |||
.offset2 { | |||
margin-left: 144px; | |||
} | |||
.offset1 { | |||
margin-left: 82px; | |||
} | |||
.row-fluid { | |||
width: 100%; | |||
*zoom: 1; | |||
} | |||
.row-fluid:before, | |||
.row-fluid:after { | |||
display: table; | |||
content: ""; | |||
} | |||
.row-fluid:after { | |||
clear: both; | |||
} | |||
.row-fluid [class*="span"] { | |||
display: block; | |||
float: left; | |||
width: 100%; | |||
min-height: 28px; | |||
margin-left: 2.762430939%; | |||
*margin-left: 2.709239449638298%; | |||
-webkit-box-sizing: border-box; | |||
-moz-box-sizing: border-box; | |||
-ms-box-sizing: border-box; | |||
box-sizing: border-box; | |||
} | |||
.row-fluid [class*="span"]:first-child { | |||
margin-left: 0; | |||
} | |||
.row-fluid .span12 { | |||
width: 99.999999993%; | |||
*width: 99.9468085036383%; | |||
} | |||
.row-fluid .span11 { | |||
width: 91.436464082%; | |||
*width: 91.38327259263829%; | |||
} | |||
.row-fluid .span10 { | |||
width: 82.87292817100001%; | |||
*width: 82.8197366816383%; | |||
} | |||
.row-fluid .span9 { | |||
width: 74.30939226%; | |||
*width: 74.25620077063829%; | |||
} | |||
.row-fluid .span8 { | |||
width: 65.74585634900001%; | |||
*width: 65.6926648596383%; | |||
} | |||
.row-fluid .span7 { | |||
width: 57.182320438000005%; | |||
*width: 57.129128948638304%; | |||
} | |||
.row-fluid .span6 { | |||
width: 48.618784527%; | |||
*width: 48.5655930376383%; | |||
} | |||
.row-fluid .span5 { | |||
width: 40.055248616%; | |||
*width: 40.0020571266383%; | |||
} | |||
.row-fluid .span4 { | |||
width: 31.491712705%; | |||
*width: 31.4385212156383%; | |||
} | |||
.row-fluid .span3 { | |||
width: 22.928176794%; | |||
*width: 22.874985304638297%; | |||
} | |||
.row-fluid .span2 { | |||
width: 14.364640883%; | |||
*width: 14.311449393638298%; | |||
} | |||
.row-fluid .span1 { | |||
width: 5.801104972%; | |||
*width: 5.747913482638298%; | |||
} | |||
input, | |||
textarea, | |||
.uneditable-input { | |||
margin-left: 0; | |||
} | |||
input.span12, | |||
textarea.span12, | |||
.uneditable-input.span12 { | |||
width: 714px; | |||
} | |||
input.span11, | |||
textarea.span11, | |||
.uneditable-input.span11 { | |||
width: 652px; | |||
} | |||
input.span10, | |||
textarea.span10, | |||
.uneditable-input.span10 { | |||
width: 590px; | |||
} | |||
input.span9, | |||
textarea.span9, | |||
.uneditable-input.span9 { | |||
width: 528px; | |||
} | |||
input.span8, | |||
textarea.span8, | |||
.uneditable-input.span8 { | |||
width: 466px; | |||
} | |||
input.span7, | |||
textarea.span7, | |||
.uneditable-input.span7 { | |||
width: 404px; | |||
} | |||
input.span6, | |||
textarea.span6, | |||
.uneditable-input.span6 { | |||
width: 342px; | |||
} | |||
input.span5, | |||
textarea.span5, | |||
.uneditable-input.span5 { | |||
width: 280px; | |||
} | |||
input.span4, | |||
textarea.span4, | |||
.uneditable-input.span4 { | |||
width: 218px; | |||
} | |||
input.span3, | |||
textarea.span3, | |||
.uneditable-input.span3 { | |||
width: 156px; | |||
} | |||
input.span2, | |||
textarea.span2, | |||
.uneditable-input.span2 { | |||
width: 94px; | |||
} | |||
input.span1, | |||
textarea.span1, | |||
.uneditable-input.span1 { | |||
width: 32px; | |||
} | |||
} | |||
@media (min-width: 1200px) { | |||
.row { | |||
margin-left: -30px; | |||
*zoom: 1; | |||
} | |||
.row:before, | |||
.row:after { | |||
display: table; | |||
content: ""; | |||
} | |||
.row:after { | |||
clear: both; | |||
} | |||
[class*="span"] { | |||
float: left; | |||
margin-left: 30px; | |||
} | |||
.container, | |||
.navbar-fixed-top .container, | |||
.navbar-fixed-bottom .container { | |||
width: 1170px; | |||
} | |||
.span12 { | |||
width: 1170px; | |||
} | |||
.span11 { | |||
width: 1070px; | |||
} | |||
.span10 { | |||
width: 970px; | |||
} | |||
.span9 { | |||
width: 870px; | |||
} | |||
.span8 { | |||
width: 770px; | |||
} | |||
.span7 { | |||
width: 670px; | |||
} | |||
.span6 { | |||
width: 570px; | |||
} | |||
.span5 { | |||
width: 470px; | |||
} | |||
.span4 { | |||
width: 370px; | |||
} | |||
.span3 { | |||
width: 270px; | |||
} | |||
.span2 { | |||
width: 170px; | |||
} | |||
.span1 { | |||
width: 70px; | |||
} | |||
.offset12 { | |||
margin-left: 1230px; | |||
} | |||
.offset11 { | |||
margin-left: 1130px; | |||
} | |||
.offset10 { | |||
margin-left: 1030px; | |||
} | |||
.offset9 { | |||
margin-left: 930px; | |||
} | |||
.offset8 { | |||
margin-left: 830px; | |||
} | |||
.offset7 { | |||
margin-left: 730px; | |||
} | |||
.offset6 { | |||
margin-left: 630px; | |||
} | |||
.offset5 { | |||
margin-left: 530px; | |||
} | |||
.offset4 { | |||
margin-left: 430px; | |||
} | |||
.offset3 { | |||
margin-left: 330px; | |||
} | |||
.offset2 { | |||
margin-left: 230px; | |||
} | |||
.offset1 { | |||
margin-left: 130px; | |||
} | |||
.row-fluid { | |||
width: 100%; | |||
*zoom: 1; | |||
} | |||
.row-fluid:before, | |||
.row-fluid:after { | |||
display: table; | |||
content: ""; | |||
} | |||
.row-fluid:after { | |||
clear: both; | |||
} | |||
.row-fluid [class*="span"] { | |||
display: block; | |||
float: left; | |||
width: 100%; | |||
min-height: 28px; | |||
margin-left: 2.564102564%; | |||
*margin-left: 2.510911074638298%; | |||
-webkit-box-sizing: border-box; | |||
-moz-box-sizing: border-box; | |||
-ms-box-sizing: border-box; | |||
box-sizing: border-box; | |||
} | |||
.row-fluid [class*="span"]:first-child { | |||
margin-left: 0; | |||
} | |||
.row-fluid .span12 { | |||
width: 100%; | |||
*width: 99.94680851063829%; | |||
} | |||
.row-fluid .span11 { | |||
width: 91.45299145300001%; | |||
*width: 91.3997999636383%; | |||
} | |||
.row-fluid .span10 { | |||
width: 82.905982906%; | |||
*width: 82.8527914166383%; | |||
} | |||
.row-fluid .span9 { | |||
width: 74.358974359%; | |||
*width: 74.30578286963829%; | |||
} | |||
.row-fluid .span8 { | |||
width: 65.81196581200001%; | |||
*width: 65.7587743226383%; | |||
} | |||
.row-fluid .span7 { | |||
width: 57.264957265%; | |||
*width: 57.2117657756383%; | |||
} | |||
.row-fluid .span6 { | |||
width: 48.717948718%; | |||
*width: 48.6647572286383%; | |||
} | |||
.row-fluid .span5 { | |||
width: 40.170940171000005%; | |||
*width: 40.117748681638304%; | |||
} | |||
.row-fluid .span4 { | |||
width: 31.623931624%; | |||
*width: 31.5707401346383%; | |||
} | |||
.row-fluid .span3 { | |||
width: 23.076923077%; | |||
*width: 23.0237315876383%; | |||
} | |||
.row-fluid .span2 { | |||
width: 14.529914530000001%; | |||
*width: 14.4767230406383%; | |||
} | |||
.row-fluid .span1 { | |||
width: 5.982905983%; | |||
*width: 5.929714493638298%; | |||
} | |||
input, | |||
textarea, | |||
.uneditable-input { | |||
margin-left: 0; | |||
} | |||
input.span12, | |||
textarea.span12, | |||
.uneditable-input.span12 { | |||
width: 1160px; | |||
} | |||
input.span11, | |||
textarea.span11, | |||
.uneditable-input.span11 { | |||
width: 1060px; | |||
} | |||
input.span10, | |||
textarea.span10, | |||
.uneditable-input.span10 { | |||
width: 960px; | |||
} | |||
input.span9, | |||
textarea.span9, | |||
.uneditable-input.span9 { | |||
width: 860px; | |||
} | |||
input.span8, | |||
textarea.span8, | |||
.uneditable-input.span8 { | |||
width: 760px; | |||
} | |||
input.span7, | |||
textarea.span7, | |||
.uneditable-input.span7 { | |||
width: 660px; | |||
} | |||
input.span6, | |||
textarea.span6, | |||
.uneditable-input.span6 { | |||
width: 560px; | |||
} | |||
input.span5, | |||
textarea.span5, | |||
.uneditable-input.span5 { | |||
width: 460px; | |||
} | |||
input.span4, | |||
textarea.span4, | |||
.uneditable-input.span4 { | |||
width: 360px; | |||
} | |||
input.span3, | |||
textarea.span3, | |||
.uneditable-input.span3 { | |||
width: 260px; | |||
} | |||
input.span2, | |||
textarea.span2, | |||
.uneditable-input.span2 { | |||
width: 160px; | |||
} | |||
input.span1, | |||
textarea.span1, | |||
.uneditable-input.span1 { | |||
width: 60px; | |||
} | |||
.thumbnails { | |||
margin-left: -30px; | |||
} | |||
.thumbnails > li { | |||
margin-left: 30px; | |||
} | |||
.row-fluid .thumbnails { | |||
margin-left: 0; | |||
} | |||
} | |||
@media (max-width: 979px) { | |||
body { | |||
padding-top: 0; | |||
} | |||
.navbar-fixed-top { | |||
position: static; | |||
margin-bottom: 18px; | |||
} | |||
.navbar-fixed-top .navbar-inner { | |||
padding: 5px; | |||
} | |||
.navbar .container { | |||
width: auto; | |||
padding: 0; | |||
} | |||
.navbar .brand { | |||
padding-right: 10px; | |||
padding-left: 10px; | |||
margin: 0 0 0 -5px; | |||
} | |||
.nav-collapse { | |||
clear: both; | |||
} | |||
.nav-collapse .nav { | |||
float: none; | |||
margin: 0 0 9px; | |||
} | |||
.nav-collapse .nav > li { | |||
float: none; | |||
} | |||
.nav-collapse .nav > li > a { | |||
margin-bottom: 2px; | |||
} | |||
.nav-collapse .nav > .divider-vertical { | |||
display: none; | |||
} | |||
.nav-collapse .nav .nav-header { | |||
color: #999999; | |||
text-shadow: none; | |||
} | |||
.nav-collapse .nav > li > a, | |||
.nav-collapse .dropdown-menu a { | |||
padding: 6px 15px; | |||
font-weight: bold; | |||
color: #999999; | |||
-webkit-border-radius: 3px; | |||
-moz-border-radius: 3px; | |||
border-radius: 3px; | |||
} | |||
.nav-collapse .btn { | |||
padding: 4px 10px 4px; | |||
font-weight: normal; | |||
-webkit-border-radius: 4px; | |||
-moz-border-radius: 4px; | |||
border-radius: 4px; | |||
} | |||
.nav-collapse .dropdown-menu li + li a { | |||
margin-bottom: 2px; | |||
} | |||
.nav-collapse .nav > li > a:hover, | |||
.nav-collapse .dropdown-menu a:hover { | |||
background-color: #222222; | |||
} | |||
.nav-collapse.in .btn-group { | |||
padding: 0; | |||
margin-top: 5px; | |||
} | |||
.nav-collapse .dropdown-menu { | |||
position: static; | |||
top: auto; | |||
left: auto; | |||
display: block; | |||
float: none; | |||
max-width: none; | |||
padding: 0; | |||
margin: 0 15px; | |||
background-color: transparent; | |||
border: none; | |||
-webkit-border-radius: 0; | |||
-moz-border-radius: 0; | |||
border-radius: 0; | |||
-webkit-box-shadow: none; | |||
-moz-box-shadow: none; | |||
box-shadow: none; | |||
} | |||
.nav-collapse .dropdown-menu:before, | |||
.nav-collapse .dropdown-menu:after { | |||
display: none; | |||
} | |||
.nav-collapse .dropdown-menu .divider { | |||
display: none; | |||
} | |||
.nav-collapse .navbar-form, | |||
.nav-collapse .navbar-search { | |||
float: none; | |||
padding: 9px 15px; | |||
margin: 9px 0; | |||
border-top: 1px solid #222222; | |||
border-bottom: 1px solid #222222; | |||
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); | |||
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); | |||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); | |||
} | |||
.navbar .nav-collapse .nav.pull-right { | |||
float: none; | |||
margin-left: 0; | |||
} | |||
.nav-collapse, | |||
.nav-collapse.collapse { | |||
height: 0; | |||
overflow: hidden; | |||
} | |||
.navbar .btn-navbar { | |||
display: block; | |||
} | |||
.navbar-static .navbar-inner { | |||
padding-right: 10px; | |||
padding-left: 10px; | |||
} | |||
} | |||
@media (min-width: 980px) { | |||
.nav-collapse.collapse { | |||
height: auto !important; | |||
overflow: visible !important; | |||
} | |||
} |
@@ -1,85 +0,0 @@ | |||
#fancybox-buttons { | |||
position: fixed; | |||
left: 0; | |||
width: 100%; | |||
z-index: 8050; | |||
} | |||
#fancybox-buttons.top { | |||
top: 10px; | |||
} | |||
#fancybox-buttons.bottom { | |||
bottom: 10px; | |||
} | |||
#fancybox-buttons ul { | |||
display: block; | |||
width: 170px; | |||
height: 30px; | |||
margin: 0 auto; | |||
padding: 0; | |||
list-style: none; | |||
background: #111; | |||
-webkit-box-shadow: 0 1px 3px #000,0 0 0 1px rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,255,255,.05); | |||
-moz-box-shadow: 0 1px 3px #000,0 0 0 1px rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,255,255,.05); | |||
background: #111 -webkit-gradient(linear,0% 0%,0% 100%,from(rgba(255,255,255,.2)),color-stop(.5,rgba(255,255,255,.15)),color-stop(.5,rgba(255,255,255,.1)),to(rgba(255,255,255,.15))); | |||
background: #111 -moz-linear-gradient(top,rgba(255,255,255,.2) 0%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.1) 50%,rgba(255,255,255,.15) 100%); | |||
border-radius: 3px; | |||
} | |||
#fancybox-buttons ul li { | |||
float: left; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
#fancybox-buttons a { | |||
display: block; | |||
width: 30px; | |||
height: 30px; | |||
text-indent: -9999px; | |||
background-image: url('fancybox_buttons.png'); | |||
background-repeat: no-repeat; | |||
outline: none; | |||
} | |||
#fancybox-buttons a.btnPrev { | |||
width: 32px; | |||
background-position: 6px 0; | |||
} | |||
#fancybox-buttons a.btnNext { | |||
background-position: -33px 0; | |||
border-right: 1px solid #3e3e3e; | |||
} | |||
#fancybox-buttons a.btnPlay { | |||
background-position: 0 -30px; | |||
} | |||
#fancybox-buttons a.btnPlayOn { | |||
background-position: -30px -30px; | |||
} | |||
#fancybox-buttons a.btnToggle { | |||
background-position: 3px -60px; | |||
border-left: 1px solid #111; | |||
border-right: 1px solid #3e3e3e; | |||
width: 35px | |||
} | |||
#fancybox-buttons a.btnToggleOn { | |||
background-position: -27px -60px; | |||
} | |||
#fancybox-buttons a.btnClose { | |||
border-left: 1px solid #111; | |||
width: 38px; | |||
background-position: -57px 0px; | |||
} | |||
#fancybox-buttons a.btnDisabled { | |||
opacity : 0.5; | |||
cursor: default; | |||
} |
@@ -1,115 +0,0 @@ | |||
/*! | |||
* Buttons helper for fancyBox | |||
* version: 1.0.2 | |||
* @requires fancyBox v2.0 or later | |||
* | |||
* Usage: | |||
* $(".fancybox").fancybox({ | |||
* buttons: { | |||
* position : 'top' | |||
* } | |||
* }); | |||
* | |||
* Options: | |||
* tpl - HTML template | |||
* position - 'top' or 'bottom' | |||
* | |||
*/ | |||
(function ($) { | |||
//Shortcut for fancyBox object | |||
var F = $.fancybox; | |||
//Add helper object | |||
F.helpers.buttons = { | |||
tpl: '<div id="fancybox-buttons"><ul><li><a class="btnPrev" title="Previous" href="javascript:;"></a></li><li><a class="btnPlay" title="Start slideshow" href="javascript:;"></a></li><li><a class="btnNext" title="Next" href="javascript:;"></a></li><li><a class="btnToggle" title="Toggle size" href="javascript:;"></a></li><li><a class="btnClose" title="Close" href="javascript:jQuery.fancybox.close();"></a></li></ul></div>', | |||
list: null, | |||
buttons: {}, | |||
update: function () { | |||
var toggle = this.buttons.toggle.removeClass('btnDisabled btnToggleOn'); | |||
//Size toggle button | |||
if (F.current.canShrink) { | |||
toggle.addClass('btnToggleOn'); | |||
} else if (!F.current.canExpand) { | |||
toggle.addClass('btnDisabled'); | |||
} | |||
}, | |||
beforeLoad: function (opts) { | |||
//Remove self if gallery do not have at least two items | |||
if (F.group.length < 2) { | |||
F.coming.helpers.buttons = false; | |||
F.coming.closeBtn = true; | |||
return; | |||
} | |||
//Increase top margin to give space for buttons | |||
F.coming.margin[ opts.position === 'bottom' ? 2 : 0 ] += 30; | |||
}, | |||
onPlayStart: function () { | |||
if (this.list) { | |||
this.buttons.play.attr('title', 'Pause slideshow').addClass('btnPlayOn'); | |||
} | |||
}, | |||
onPlayEnd: function () { | |||
if (this.list) { | |||
this.buttons.play.attr('title', 'Start slideshow').removeClass('btnPlayOn'); | |||
} | |||
}, | |||
afterShow: function (opts) { | |||
var buttons; | |||
if (!this.list) { | |||
this.list = $(opts.tpl || this.tpl).addClass(opts.position || 'top').appendTo('body'); | |||
this.buttons = { | |||
prev : this.list.find('.btnPrev').click( F.prev ), | |||
next : this.list.find('.btnNext').click( F.next ), | |||
play : this.list.find('.btnPlay').click( F.play ), | |||
toggle : this.list.find('.btnToggle').click( F.toggle ) | |||
} | |||
} | |||
buttons = this.buttons; | |||
//Prev | |||
if (F.current.index > 0 || F.current.loop) { | |||
buttons.prev.removeClass('btnDisabled'); | |||
} else { | |||
buttons.prev.addClass('btnDisabled'); | |||
} | |||
//Next / Play | |||
if (F.current.loop || F.current.index < F.group.length - 1) { | |||
buttons.next.removeClass('btnDisabled'); | |||
buttons.play.removeClass('btnDisabled'); | |||
} else { | |||
buttons.next.addClass('btnDisabled'); | |||
buttons.play.addClass('btnDisabled'); | |||
} | |||
this.update(); | |||
}, | |||
onUpdate: function () { | |||
this.update(); | |||
}, | |||
beforeClose: function () { | |||
if (this.list) { | |||
this.list.remove(); | |||
} | |||
this.list = null; | |||
this.buttons = {}; | |||
} | |||
}; | |||
}(jQuery)); |
@@ -1,85 +0,0 @@ | |||
/*! | |||
* Media helper for fancyBox | |||
* version: 1.0.0 | |||
* @requires fancyBox v2.0 or later | |||
* | |||
* Usage: | |||
* $(".fancybox").fancybox({ | |||
* media: {} | |||
* }); | |||
* | |||
* Supports: | |||
* Youtube | |||
* http://www.youtube.com/watch?v=opj24KnzrWo | |||
* http://youtu.be/opj24KnzrWo | |||
* Vimeo | |||
* http://vimeo.com/25634903 | |||
* Metacafe | |||
* http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/ | |||
* http://www.metacafe.com/watch/7635964/ | |||
* Dailymotion | |||
* http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people | |||
* Twitvid | |||
* http://twitvid.com/QY7MD | |||
* Twitpic | |||
* http://twitpic.com/7p93st | |||
* http://instagr.am/p/IejkuUGxQn/ | |||
* http://instagram.com/p/IejkuUGxQn/ | |||
* Google maps | |||
* http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17 | |||
* http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16 | |||
* http://maps.google.com/?ll=48.859463,2.292626&spn=0.000965,0.002642&t=m&z=19&layer=c&cbll=48.859524,2.292532&panoid=YJ0lq28OOy3VT2IqIuVY0g&cbp=12,151.58,,0,-15.56 | |||
*/ | |||
(function ($) { | |||
//Shortcut for fancyBox object | |||
var F = $.fancybox; | |||
//Add helper object | |||
F.helpers.media = { | |||
beforeLoad : function(opts, obj) { | |||
var href = obj.href || '', | |||
type = false, | |||
rez; | |||
if ((rez = href.match(/(youtube\.com|youtu\.be)\/(v\/|u\/|embed\/|watch\?v=)?([^#\&\?]*).*/i))) { | |||
href = '//www.youtube.com/embed/' + rez[3] + '?autoplay=1&autohide=1&fs=1&rel=0&enablejsapi=1'; | |||
type = 'iframe'; | |||
} else if ((rez = href.match(/vimeo.com\/(\d+)\/?(.*)/))) { | |||
href = '//player.vimeo.com/video/' + rez[1] + '?hd=1&autoplay=1&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1'; | |||
type = 'iframe'; | |||
} else if ((rez = href.match(/metacafe.com\/watch\/(\d+)\/?(.*)/))) { | |||
href = '//www.metacafe.com/fplayer/' + rez[1] + '/.swf?playerVars=autoPlay=yes'; | |||
type = 'swf'; | |||
} else if ((rez = href.match(/dailymotion.com\/video\/(.*)\/?(.*)/))) { | |||
href = '//www.dailymotion.com/swf/video/' + rez[1] + '?additionalInfos=0&autoStart=1'; | |||
type = 'swf'; | |||
} else if ((rez = href.match(/twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i))) { | |||
href = '//www.twitvid.com/embed.php?autoplay=0&guid=' + rez[1]; | |||
type = 'iframe'; | |||
} else if ((rez = href.match(/twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i))) { | |||
href = '//twitpic.com/show/full/' + rez[1]; | |||
type = 'image'; | |||
} else if ((rez = href.match(/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i))) { | |||
href = '//' + rez[1] + '/p/' + rez[2] + '/media/?size=l'; | |||
type = 'image'; | |||
} else if ((rez = href.match(/maps\.google\.com\/(\?ll=|maps\/?\?q=)(.*)/i))) { | |||
href = '//maps.google.com/' + rez[1] + '' + rez[2] + '&output=' + (rez[2].indexOf('layer=c') ? 'svembed' : 'embed'); | |||
type = 'iframe'; | |||
} | |||
if (type) { | |||
obj.href = href; | |||
obj.type = type; | |||
} | |||
} | |||
} | |||
}(jQuery)); |
@@ -1,54 +0,0 @@ | |||
#fancybox-thumbs { | |||
position: fixed; | |||
left: 0; | |||
width: 100%; | |||
overflow: hidden; | |||
z-index: 8050; | |||
} | |||
#fancybox-thumbs.bottom { | |||
bottom: 2px; | |||
} | |||
#fancybox-thumbs.top { | |||
top: 2px; | |||
} | |||
#fancybox-thumbs ul { | |||
position: relative; | |||
list-style: none; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
#fancybox-thumbs ul li { | |||
float: left; | |||
padding: 1px; | |||
opacity: 0.5; | |||
} | |||
#fancybox-thumbs ul li.active { | |||
opacity: 0.75; | |||
padding: 0; | |||
border: 1px solid #fff; | |||
} | |||
#fancybox-thumbs ul li:hover { | |||
opacity: 1; | |||
} | |||
#fancybox-thumbs ul li a { | |||
display: block; | |||
position: relative; | |||
overflow: hidden; | |||
border: 1px solid #222; | |||
background: #111; | |||
outline: none; | |||
} | |||
#fancybox-thumbs ul li img { | |||
display: block; | |||
position: relative; | |||
border: 0; | |||
padding: 0; | |||
} |
@@ -1,157 +0,0 @@ | |||
/*! | |||
* Thumbnail helper for fancyBox | |||
* version: 1.0.4 | |||
* @requires fancyBox v2.0 or later | |||
* | |||
* Usage: | |||
* $(".fancybox").fancybox({ | |||
* thumbs: { | |||
* width : 50, | |||
* height : 50 | |||
* } | |||
* }); | |||
* | |||
* Options: | |||
* width - thumbnail width | |||
* height - thumbnail height | |||
* source - function to obtain the URL of the thumbnail image | |||
* position - 'top' or 'bottom' | |||
* | |||
*/ | |||
(function ($) { | |||
//Shortcut for fancyBox object | |||
var F = $.fancybox; | |||
//Add helper object | |||
F.helpers.thumbs = { | |||
wrap: null, | |||
list: null, | |||
width: 0, | |||
//Default function to obtain the URL of the thumbnail image | |||
source: function (el) { | |||
var img; | |||
if ($.type(el) === 'string') { | |||
return el; | |||
} | |||
img = $(el).find('img'); | |||
return img.length ? img.attr('src') : el.href; | |||
}, | |||
init: function (opts) { | |||
var that = this, | |||
list, | |||
thumbWidth = opts.width || 50, | |||
thumbHeight = opts.height || 50, | |||
thumbSource = opts.source || this.source; | |||
//Build list structure | |||
list = ''; | |||
for (var n = 0; n < F.group.length; n++) { | |||
list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>'; | |||
} | |||
this.wrap = $('<div id="fancybox-thumbs"></div>').addClass(opts.position || 'bottom').appendTo('body'); | |||
this.list = $('<ul>' + list + '</ul>').appendTo(this.wrap); | |||
//Load each thumbnail | |||
$.each(F.group, function (i) { | |||
$("<img />").load(function () { | |||
var width = this.width, | |||
height = this.height, | |||
widthRatio, heightRatio, parent; | |||
if (!that.list || !width || !height) { | |||
return; | |||
} | |||
//Calculate thumbnail width/height and center it | |||
widthRatio = width / thumbWidth; | |||
heightRatio = height / thumbHeight; | |||
parent = that.list.children().eq(i).find('a'); | |||
if (widthRatio >= 1 && heightRatio >= 1) { | |||
if (widthRatio > heightRatio) { | |||
width = Math.floor(width / heightRatio); | |||
height = thumbHeight; | |||
} else { | |||
width = thumbWidth; | |||
height = Math.floor(height / widthRatio); | |||
} | |||
} | |||
$(this).css({ | |||
width: width, | |||
height: height, | |||
top: Math.floor(thumbHeight / 2 - height / 2), | |||
left: Math.floor(thumbWidth / 2 - width / 2) | |||
}); | |||
parent.width(thumbWidth).height(thumbHeight); | |||
$(this).hide().appendTo(parent).fadeIn(300); | |||
}).attr('src', thumbSource( F.group[ i ] )); | |||
}); | |||
//Set initial width | |||
this.width = this.list.children().eq(0).outerWidth(true); | |||
this.list.width(this.width * (F.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (F.current.index * this.width + this.width * 0.5))); | |||
}, | |||
//Center list | |||
update: function (opts) { | |||
if (this.list) { | |||
this.list.stop(true).animate({ | |||
'left': Math.floor($(window).width() * 0.5 - (F.current.index * this.width + this.width * 0.5)) | |||
}, 150); | |||
} | |||
}, | |||
beforeLoad: function (opts) { | |||
//Remove self if gallery do not have at least two items | |||
if (F.group.length < 2) { | |||
F.coming.helpers.thumbs = false; | |||
return; | |||
} | |||
//Increase bottom margin to give space for thumbs | |||
F.coming.margin[ opts.position === 'top' ? 0 : 2 ] = opts.height + 30; | |||
}, | |||
afterShow: function (opts) { | |||
//Check if exists and create or update list | |||
if (this.list) { | |||
this.update(opts); | |||
} else { | |||
this.init(opts); | |||
} | |||
//Set active element | |||
this.list.children().removeClass('active').eq(F.current.index).addClass('active'); | |||
}, | |||
onUpdate: function () { | |||
this.update(); | |||
}, | |||
beforeClose: function () { | |||
if (this.wrap) { | |||
this.wrap.remove(); | |||
} | |||
this.wrap = null; | |||
this.list = null; | |||
this.width = 0; | |||
} | |||
} | |||
}(jQuery)); |
@@ -1,234 +0,0 @@ | |||
/*! fancyBox v2.0.6 fancyapps.com | fancyapps.com/fancybox/#license */ | |||
.fancybox-tmp iframe, .fancybox-tmp object { | |||
vertical-align: top; | |||
padding: 0; | |||
margin: 0; | |||
} | |||
.fancybox-wrap { | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
z-index: 8020; | |||
} | |||
.fancybox-skin { | |||
position: relative; | |||
padding: 0; | |||
margin: 0; | |||
background: #f9f9f9; | |||
color: #444; | |||
text-shadow: none; | |||
-webkit-border-radius: 4px; | |||
-moz-border-radius: 4px; | |||
border-radius: 4px; | |||
} | |||
.fancybox-opened { | |||
z-index: 8030; | |||
} | |||
.fancybox-opened .fancybox-skin { | |||
-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); | |||
-moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); | |||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); | |||
} | |||
.fancybox-outer, .fancybox-inner { | |||
padding: 0; | |||
margin: 0; | |||
position: relative; | |||
outline: none; | |||
} | |||
.fancybox-inner { | |||
overflow: hidden; | |||
} | |||
.fancybox-type-iframe .fancybox-inner { | |||
-webkit-overflow-scrolling: touch; | |||
} | |||
.fancybox-error { | |||
color: #444; | |||
font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; | |||
margin: 0; | |||
padding: 10px; | |||
} | |||
.fancybox-image, .fancybox-iframe { | |||
display: block; | |||
width: 100%; | |||
height: 100%; | |||
border: 0; | |||
padding: 0; | |||
margin: 0; | |||
vertical-align: top; | |||
} | |||
.fancybox-image { | |||
max-width: 100%; | |||
max-height: 100%; | |||
} | |||
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { | |||
background-image: url('/static/vendor/fancybox/2.0.6/fancybox_sprite.png'); | |||
} | |||
#fancybox-loading { | |||
position: fixed; | |||
top: 50%; | |||
left: 50%; | |||
margin-top: -22px; | |||
margin-left: -22px; | |||
background-position: 0 -108px; | |||
opacity: 0.8; | |||
cursor: pointer; | |||
z-index: 8020; | |||
} | |||
#fancybox-loading div { | |||
width: 44px; | |||
height: 44px; | |||
background: url('/static/vendor/fancybox/2.0.6/fancybox_loading.gif') center center no-repeat; | |||
} | |||
.fancybox-close { | |||
position: absolute; | |||
top: -18px; | |||
right: -18px; | |||
width: 36px; | |||
height: 36px; | |||
cursor: pointer; | |||
z-index: 8040; | |||
} | |||
.fancybox-nav { | |||
position: absolute; | |||
top: 0; | |||
width: 40%; | |||
height: 100%; | |||
cursor: pointer; | |||
background: transparent url('/static/vendor/fancybox/2.0.6/blank.gif'); /* helps IE */ | |||
-webkit-tap-highlight-color: rgba(0,0,0,0); | |||
z-index: 8040; | |||
} | |||
.fancybox-prev { | |||
left: 0; | |||
} | |||
.fancybox-next { | |||
right: 0; | |||
} | |||
.fancybox-nav span { | |||
position: absolute; | |||
top: 50%; | |||
width: 36px; | |||
height: 34px; | |||
margin-top: -18px; | |||
cursor: pointer; | |||
z-index: 8040; | |||
visibility: hidden; | |||
} | |||
.fancybox-prev span { | |||
left: 20px; | |||
background-position: 0 -36px; | |||
} | |||
.fancybox-next span { | |||
right: 20px; | |||
background-position: 0 -72px; | |||
} | |||
.fancybox-nav:hover span { | |||
visibility: visible; | |||
} | |||
.fancybox-tmp { | |||
position: absolute; | |||
top: -9999px; | |||
left: -9999px; | |||
padding: 0; | |||
overflow: visible; | |||
visibility: hidden; | |||
} | |||
/* Overlay helper */ | |||
#fancybox-overlay { | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
overflow: hidden; | |||
display: none; | |||
z-index: 8010; | |||
background: #000; | |||
} | |||
#fancybox-overlay.overlay-fixed { | |||
position: fixed; | |||
bottom: 0; | |||
right: 0; | |||
} | |||
/* Title helper */ | |||
.fancybox-title { | |||
visibility: hidden; | |||
font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; | |||
position: relative; | |||
text-shadow: none; | |||
z-index: 8050; | |||
} | |||
.fancybox-opened .fancybox-title { | |||
visibility: visible; | |||
} | |||
.fancybox-title-float-wrap { | |||
position: absolute; | |||
bottom: 0; | |||
right: 50%; | |||
margin-bottom: -35px; | |||
z-index: 8030; | |||
text-align: center; | |||
} | |||
.fancybox-title-float-wrap .child { | |||
display: inline-block; | |||
margin-right: -100%; | |||
padding: 2px 20px; | |||
background: transparent; /* Fallback for web browsers that doesn't support RGBa */ | |||
background: rgba(0, 0, 0, 0.8); | |||
-webkit-border-radius: 15px; | |||
-moz-border-radius: 15px; | |||
border-radius: 15px; | |||
text-shadow: 0 1px 2px #222; | |||
color: #FFF; | |||
font-weight: bold; | |||
line-height: 24px; | |||
white-space: nowrap; | |||
} | |||
.fancybox-title-outside-wrap { | |||
position: relative; | |||
margin-top: 10px; | |||
color: #fff; | |||
} | |||
.fancybox-title-inside-wrap { | |||
margin-top: 10px; | |||
} | |||
.fancybox-title-over-wrap { | |||
position: absolute; | |||
bottom: 0; | |||
left: 0; | |||
color: #fff; | |||
padding: 10px; | |||
background: #000; | |||
background: rgba(0, 0, 0, .8); | |||
} |
@@ -1,35 +0,0 @@ | |||
/*! fancyBox v2.0.6 fancyapps.com | fancyapps.com/fancybox/#license */ | |||
(function(s,l,d,t){var m=d(s),q=d(l),a=d.fancybox=function(){a.open.apply(this,arguments)},u=!1,k=l.createTouch!==t,o=function(a){return"string"===d.type(a)},n=function(b,c){c&&o(b)&&0<b.indexOf("%")&&(b=a.getViewport()[c]/100*parseInt(b,10));return Math.round(b)+"px"};d.extend(a,{version:"2.0.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:!0,autoResize:!k,autoCenter:!k,fitToView:!0,aspectRatio:!1,topRatio:0.5,fixed:!1,scrolling:"auto", | |||
wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},keys:{next:[13,32,34,39,40],prev:[8,33,37,38],close:[27]},tpl:{wrap:'<div class="fancybox-wrap"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe class="fancybox-iframe" name="fancybox-frame{rnd}" frameborder="0" hspace="0"'+ | |||
(d.browser.msie?' allowtransparency="true"':"")+"></iframe>",swf:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{href}" /><embed src="{href}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="100%" height="100%" wmode="transparent"></embed></object>',error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>', | |||
closeBtn:'<div title="Close" class="fancybox-item fancybox-close"></div>',next:'<a title="Next" class="fancybox-nav fancybox-next"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev"><span></span></a>'},openEffect:"fade",openSpeed:300,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:300,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:300,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic", | |||
prevSpeed:300,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:{speedIn:0,speedOut:300,opacity:0.8,css:{cursor:"pointer"},closeClick:!0},title:{type:"float"}}},group:{},opts:{},coming:null,current:null,isOpen:!1,isOpened:!1,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(b,c){a.close(!0);b&&!d.isArray(b)&&(b=b instanceof d?d(b).get():[b]);a.isActive=!0;a.opts=d.extend(!0,{},a.defaults,c);d.isPlainObject(c)&&c.keys!==t&&(a.opts.keys=c.keys? | |||
d.extend({},a.defaults.keys,c.keys):!1);a.group=b;a._start(a.opts.index||0)},cancel:function(){a.coming&&!1===a.trigger("onCancel")||(a.coming=null,a.hideLoading(),a.ajaxLoad&&a.ajaxLoad.abort(),a.ajaxLoad=null,a.imgPreload&&(a.imgPreload.onload=a.imgPreload.onabort=a.imgPreload.onerror=null))},close:function(b){a.cancel();a.current&&!1!==a.trigger("beforeClose")&&(a.unbindEvents(),!a.isOpen||b&&!0===b[0]?(d(".fancybox-wrap").stop().trigger("onReset").remove(),a._afterZoomOut()):(a.isOpen=a.isOpened= | |||
!1,d(".fancybox-item, .fancybox-nav").remove(),a.wrap.stop(!0).removeClass("fancybox-opened"),a.inner.css("overflow","hidden"),a.transitions[a.current.closeMethod]()))},play:function(b){var c=function(){clearTimeout(a.player.timer)},e=function(){c();a.current&&a.player.isActive&&(a.player.timer=setTimeout(a.next,a.current.playSpeed))},f=function(){c();d("body").unbind(".player");a.player.isActive=!1;a.trigger("onPlayEnd")};if(a.player.isActive||b&&!1===b[0])f();else if(a.current&&(a.current.loop|| | |||
a.current.index<a.group.length-1))a.player.isActive=!0,d("body").bind({"afterShow.player onUpdate.player":e,"onCancel.player beforeClose.player":f,"beforeLoad.player":c}),e(),a.trigger("onPlayStart")},next:function(){a.current&&a.jumpto(a.current.index+1)},prev:function(){a.current&&a.jumpto(a.current.index-1)},jumpto:function(b){a.current&&(b=parseInt(b,10),1<a.group.length&&a.current.loop&&(b>=a.group.length?b=0:0>b&&(b=a.group.length-1)),a.group[b]!==t&&(a.cancel(),a._start(b)))},reposition:function(b, | |||
c){var e;a.isOpen&&(e=a._getPosition(c),b&&"scroll"===b.type?(delete e.position,a.wrap.stop(!0,!0).animate(e,200)):a.wrap.css(e))},update:function(b){a.isOpen&&(u||setTimeout(function(){var c=a.current,e=!b||b&&"orientationchange"===b.type;if(u&&(u=!1,c)){if(!b||"scroll"!==b.type||e)c.autoSize&&"iframe"!==c.type&&(a.inner.height("auto"),c.height=a.inner.height()),(c.autoResize||e)&&a._setDimension(),c.canGrow&&"iframe"!==c.type&&a.inner.height("auto");(c.autoCenter||e)&&a.reposition(b);a.trigger("onUpdate")}}, | |||
200),u=!0)},toggle:function(){a.isOpen&&(a.current.fitToView=!a.current.fitToView,a.update())},hideLoading:function(){q.unbind("keypress.fb");d("#fancybox-loading").remove()},showLoading:function(){a.hideLoading();q.bind("keypress.fb",function(b){27===b.keyCode&&(b.preventDefault(),a.cancel())});d('<div id="fancybox-loading"><div></div></div>').click(a.cancel).appendTo("body")},getViewport:function(){return{x:m.scrollLeft(),y:m.scrollTop(),w:k&&s.innerWidth?s.innerWidth:m.width(),h:k&&s.innerHeight? | |||
s.innerHeight:m.height()}},unbindEvents:function(){a.wrap&&a.wrap.unbind(".fb");q.unbind(".fb");m.unbind(".fb")},bindEvents:function(){var b=a.current,c=b.keys;b&&(m.bind("resize.fb orientationchange.fb"+(b.autoCenter&&!b.fixed?" scroll.fb":""),a.update),c&&q.bind("keydown.fb",function(b){var f;f=b.target||b.srcElement;if(!b.ctrlKey&&!b.altKey&&!b.shiftKey&&!b.metaKey&&(!f||!f.type&&!d(f).is("[contenteditable]")))f=b.keyCode,-1<d.inArray(f,c.close)?(a.close(),b.preventDefault()):-1<d.inArray(f,c.next)? | |||
(a.next(),b.preventDefault()):-1<d.inArray(f,c.prev)&&(a.prev(),b.preventDefault())}),d.fn.mousewheel&&b.mouseWheel&&1<a.group.length&&a.wrap.bind("mousewheel.fb",function(b,c){var d=b.target||null;if(0!==c&&(!d||0===d.clientHeight||d.scrollHeight===d.clientHeight&&d.scrollWidth===d.clientWidth))b.preventDefault(),a[0<c?"prev":"next"]()}))},trigger:function(b,c){var e,f=c||a[-1<d.inArray(b,["onCancel","beforeLoad","afterLoad"])?"coming":"current"];if(f){d.isFunction(f[b])&&(e=f[b].apply(f,Array.prototype.slice.call(arguments, | |||
1)));if(!1===e)return!1;f.helpers&&d.each(f.helpers,function(c,e){if(e&&d.isPlainObject(a.helpers[c])&&d.isFunction(a.helpers[c][b]))a.helpers[c][b](e,f)});d.event.trigger(b+".fb")}},isImage:function(a){return o(a)&&a.match(/\.(jpe?g|gif|png|bmp)((\?|#).*)?$/i)},isSWF:function(a){return o(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(b){var c={},e=a.group[b]||null,f,g,i;if(e&&(e.nodeType||e instanceof d))f=!0,d.metadata&&(c=d(e).metadata());c=d.extend(!0,{},a.opts,{index:b,element:e},d.isPlainObject(e)? | |||
e:c);d.each(["href","title","content","type"],function(b,g){c[g]=a.opts[g]||f&&d(e).attr(g)||c[g]||null});"number"===typeof c.margin&&(c.margin=[c.margin,c.margin,c.margin,c.margin]);c.modal&&d.extend(!0,c,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{css:{cursor:"auto"},closeClick:!1}}});a.coming=c;if(!1===a.trigger("beforeLoad"))a.coming=null;else{g=c.type;b=c.href||e;g||(f&&(g=d(e).data("fancybox-type"),g||(g=(g=e.className.match(/fancybox\.(\w+)/))? | |||
g[1]:null)),!g&&o(b)&&(a.isImage(b)?g="image":a.isSWF(b)?g="swf":b.match(/^#/)&&(g="inline")),g||(g=f?"inline":"html"),c.type=g);if("inline"===g||"html"===g){if(c.content||(c.content="inline"===g?d(o(b)?b.replace(/.*(?=#[^\s]+$)/,""):b):e),!c.content||!c.content.length)g=null}else b||(g=null);"ajax"===g&&o(b)&&(i=b.split(/\s+/,2),b=i.shift(),c.selector=i.shift());c.href=b;c.group=a.group;c.isDom=f;switch(g){case "image":a._loadImage();break;case "ajax":a._loadAjax();break;case "inline":case "iframe":case "swf":case "html":a._afterLoad(); | |||
break;default:a._error("type")}}},_error:function(b){a.hideLoading();d.extend(a.coming,{type:"html",autoSize:!0,minWidth:0,minHeight:0,padding:15,hasError:b,content:a.coming.tpl.error});a._afterLoad()},_loadImage:function(){var b=a.imgPreload=new Image;b.onload=function(){this.onload=this.onerror=null;a.coming.width=this.width;a.coming.height=this.height;a._afterLoad()};b.onerror=function(){this.onload=this.onerror=null;a._error("image")};b.src=a.coming.href;(b.complete===t||!b.complete)&&a.showLoading()}, | |||
_loadAjax:function(){a.showLoading();a.ajaxLoad=d.ajax(d.extend({},a.coming.ajax,{url:a.coming.href,error:function(b,c){a.coming&&"abort"!==c?a._error("ajax",b):a.hideLoading()},success:function(b,c){"success"===c&&(a.coming.content=b,a._afterLoad())}}))},_preloadImages:function(){var b=a.group,c=a.current,e=b.length,f,g,i,h=Math.min(c.preload,e-1);if(c.preload&&!(2>b.length))for(i=1;i<=h;i+=1)if(f=b[(c.index+i)%e],g=f.href||d(f).attr("href")||f,"image"===f.type||a.isImage(g))(new Image).src=g},_afterLoad:function(){a.hideLoading(); | |||
!a.coming||!1===a.trigger("afterLoad",a.current)?a.coming=!1:(a.isOpened?(d(".fancybox-item, .fancybox-nav").remove(),a.wrap.stop(!0).removeClass("fancybox-opened"),a.inner.css("overflow","hidden"),a.transitions[a.current.prevMethod]()):(d(".fancybox-wrap").stop().trigger("onReset").remove(),a.trigger("afterClose")),a.unbindEvents(),a.isOpen=!1,a.current=a.coming,a.wrap=d(a.current.tpl.wrap).addClass("fancybox-"+(k?"mobile":"desktop")+" fancybox-type-"+a.current.type+" fancybox-tmp "+a.current.wrapCSS).appendTo("body"), | |||
a.skin=d(".fancybox-skin",a.wrap).css("padding",n(a.current.padding)),a.outer=d(".fancybox-outer",a.wrap),a.inner=d(".fancybox-inner",a.wrap),a._setContent())},_setContent:function(){var b=a.current,c=b.content,e=b.type,f=b.minWidth,g=b.minHeight,i=b.maxWidth,h=b.maxHeight;switch(e){case "inline":case "ajax":case "html":b.selector?c=d("<div>").html(c).find(b.selector):c instanceof d&&(c.parent().hasClass("fancybox-inner")&&c.parents(".fancybox-wrap").unbind("onReset"),c=c.show().detach(),d(a.wrap).bind("onReset", | |||
function(){c.appendTo("body").hide()}));b.autoSize&&(f=d('<div class="fancybox-wrap '+a.current.wrapCSS+' fancybox-tmp"></div>').appendTo("body").css({minWidth:n(f,"w"),minHeight:n(g,"h"),maxWidth:n(i,"w"),maxHeight:n(h,"h")}).append(c),b.width=f.width(),b.height=f.height(),f.width(a.current.width),f.height()>b.height&&(f.width(b.width+1),b.width=f.width(),b.height=f.height()),c=f.contents().detach(),f.remove());break;case "image":c=b.tpl.image.replace("{href}",b.href);b.aspectRatio=!0;break;case "swf":c= | |||
b.tpl.swf.replace(/\{width\}/g,b.width).replace(/\{height\}/g,b.height).replace(/\{href\}/g,b.href);break;case "iframe":c=d(b.tpl.iframe.replace("{rnd}",(new Date).getTime())).attr("scrolling",b.scrolling).attr("src",b.href),b.scrolling=k?"scroll":"auto"}if("image"===e||"swf"===e)b.autoSize=!1,b.scrolling="visible";"iframe"===e&&b.autoSize?(a.showLoading(),a._setDimension(),a.inner.css("overflow",b.scrolling),c.bind({onCancel:function(){d(this).unbind();a._afterZoomOut()},load:function(){a.hideLoading(); | |||
try{this.contentWindow.document.location&&(a.current.height=d(this).contents().find("body").height())}catch(b){a.current.autoSize=!1}a[a.isOpen?"_afterZoomIn":"_beforeShow"]()}}).appendTo(a.inner)):(a.inner.append(c),a._beforeShow())},_beforeShow:function(){a.coming=null;a.trigger("beforeShow");a._setDimension();a.wrap.hide().removeClass("fancybox-tmp");a.bindEvents();a._preloadImages();a.transitions[a.isOpened?a.current.nextMethod:a.current.openMethod]()},_setDimension:function(){var b=a.wrap,c= | |||
a.inner,e=a.current,f=a.getViewport(),g=e.margin,i=2*e.padding,h=e.width,j=e.height,r=e.maxWidth+i,k=e.maxHeight+i,l=e.minWidth+i,m=e.minHeight+i,p;f.w-=g[1]+g[3];f.h-=g[0]+g[2];o(h)&&0<h.indexOf("%")&&(h=(f.w-i)*parseFloat(h)/100);o(j)&&0<j.indexOf("%")&&(j=(f.h-i)*parseFloat(j)/100);g=h/j;h+=i;j+=i;e.fitToView&&(r=Math.min(f.w,r),k=Math.min(f.h,k));if(e.aspectRatio){if(h>r&&(h=r,j=(h-i)/g+i),j>k&&(j=k,h=(j-i)*g+i),h<l&&(h=l,j=(h-i)/g+i),j<m)j=m,h=(j-i)*g+i}else h=Math.max(l,Math.min(h,r)),j=Math.max(m, | |||
Math.min(j,k));h=Math.round(h);j=Math.round(j);d(b.add(c)).width("auto").height("auto");c.width(h-i).height(j-i);b.width(h);p=b.height();if(h>r||p>k)for(;(h>r||p>k)&&h>l&&p>m;)j-=10,e.aspectRatio?(h=Math.round((j-i)*g+i),h<l&&(h=l,j=(h-i)/g+i)):h-=10,c.width(h-i).height(j-i),b.width(h),p=b.height();e.dim={width:n(h),height:n(p)};e.canGrow=e.autoSize&&j>m&&j<k;e.canShrink=!1;e.canExpand=!1;if(h-i<e.width||j-i<e.height)e.canExpand=!0;else if((h>f.w||p>f.h)&&h>l&&j>m)e.canShrink=!0;a.innerSpace=p-i- | |||
c.height()},_getPosition:function(b){var c=a.current,e=a.getViewport(),f=c.margin,d=a.wrap.width()+f[1]+f[3],i=a.wrap.height()+f[0]+f[2],h={position:"absolute",top:f[0]+e.y,left:f[3]+e.x};c.autoCenter&&c.fixed&&!b&&i<=e.h&&d<=e.w&&(h={position:"fixed",top:f[0],left:f[3]});h.top=n(Math.max(h.top,h.top+(e.h-i)*c.topRatio));h.left=n(Math.max(h.left,h.left+0.5*(e.w-d)));return h},_afterZoomIn:function(){var b=a.current,c=b?b.scrolling:"no";if(b&&(a.isOpen=a.isOpened=!0,a.wrap.addClass("fancybox-opened"), | |||
a.inner.css("overflow","yes"===c?"scroll":"no"===c?"hidden":c),a.trigger("afterShow"),a.update(),(b.closeClick||b.nextClick)&&a.inner.css("cursor","pointer").bind("click.fb",function(c){if(!d(c.target).is("a")&&!d(c.target).parent().is("a"))a[b.closeClick?"close":"next"]()}),b.closeBtn&&d(b.tpl.closeBtn).appendTo(a.skin).bind("click.fb",a.close),b.arrows&&1<a.group.length&&((b.loop||0<b.index)&&d(b.tpl.prev).appendTo(a.outer).bind("click.fb",a.prev),(b.loop||b.index<a.group.length-1)&&d(b.tpl.next).appendTo(a.outer).bind("click.fb", | |||
a.next)),a.opts.autoPlay&&!a.player.isActive))a.opts.autoPlay=!1,a.play()},_afterZoomOut:function(){var b=a.current;a.wrap.trigger("onReset").remove();d.extend(a,{group:{},opts:{},current:null,isActive:!1,isOpened:!1,isOpen:!1,wrap:null,skin:null,outer:null,inner:null});a.trigger("afterClose",b)}});a.transitions={getOrigPosition:function(){var b=a.current,c=b.element,e=b.padding,f=d(b.orig),g={},i=50,h=50;!f.length&&b.isDom&&d(c).is(":visible")&&(f=d(c).find("img:first"),f.length||(f=d(c)));f.length? | |||
(g=f.offset(),f.is("img")&&(i=f.outerWidth(),h=f.outerHeight())):(b=a.getViewport(),g.top=b.y+0.5*(b.h-h),g.left=b.x+0.5*(b.w-i));return g={top:n(g.top-e),left:n(g.left-e),width:n(i+2*e),height:n(h+2*e)}},step:function(b,c){var e=c.prop,d,g;if("width"===e||"height"===e)d=Math.ceil(b-2*a.current.padding),"height"===e&&(g=(b-c.start)/(c.end-c.start),c.start>c.end&&(g=1-g),d-=a.innerSpace*g),a.inner[e](d)},zoomIn:function(){var b=a.wrap,c=a.current,e=c.openEffect,f="elastic"===e,g=d.extend({},c.dim, | |||
a._getPosition(f)),i=d.extend({opacity:1},g);delete i.position;f?(g=this.getOrigPosition(),c.openOpacity&&(g.opacity=0),a.outer.add(a.inner).width("auto").height("auto")):"fade"===e&&(g.opacity=0);b.css(g).show().animate(i,{duration:"none"===e?0:c.openSpeed,easing:c.openEasing,step:f?this.step:null,complete:a._afterZoomIn})},zoomOut:function(){var b=a.wrap,c=a.current,d=c.openEffect,f="elastic"===d,g={opacity:0};f&&("fixed"===b.css("position")&&b.css(a._getPosition(!0)),g=this.getOrigPosition(),c.closeOpacity&& | |||
(g.opacity=0));b.animate(g,{duration:"none"===d?0:c.closeSpeed,easing:c.closeEasing,step:f?this.step:null,complete:a._afterZoomOut})},changeIn:function(){var b=a.wrap,c=a.current,d=c.nextEffect,f="elastic"===d,g=a._getPosition(f),i={opacity:1};g.opacity=0;f&&(g.top=n(parseInt(g.top,10)-200),i.top="+=200px");b.css(g).show().animate(i,{duration:"none"===d?0:c.nextSpeed,easing:c.nextEasing,complete:a._afterZoomIn})},changeOut:function(){var b=a.wrap,c=a.current,e=c.prevEffect,f={opacity:0};b.removeClass("fancybox-opened"); | |||
"elastic"===e&&(f.top="+=200px");b.animate(f,{duration:"none"===e?0:c.prevSpeed,easing:c.prevEasing,complete:function(){d(this).trigger("onReset").remove()}})}};a.helpers.overlay={overlay:null,update:function(){var a,c;this.overlay.width("100%").height("100%");d.browser.msie||k?(a=Math.max(l.documentElement.scrollWidth,l.body.scrollWidth),c=Math.max(l.documentElement.offsetWidth,l.body.offsetWidth),a=a<c?m.width():a):a=q.width();this.overlay.width(a).height(q.height())},beforeShow:function(b){this.overlay|| | |||
(b=d.extend(!0,{},a.defaults.helpers.overlay,b),this.overlay=d('<div id="fancybox-overlay"></div>').css(b.css).appendTo("body"),b.closeClick&&this.overlay.bind("click.fb",a.close),a.current.fixed&&!k?this.overlay.addClass("overlay-fixed"):(this.update(),this.onUpdate=function(){this.update()}),this.overlay.fadeTo(b.speedIn,b.opacity))},afterClose:function(a){this.overlay&&this.overlay.fadeOut(a.speedOut||0,function(){d(this).remove()});this.overlay=null}};a.helpers.title={beforeShow:function(b){var c; | |||
if(c=a.current.title)c=d('<div class="fancybox-title fancybox-title-'+b.type+'-wrap">'+c+"</div>").appendTo("body"),"float"===b.type&&(c.width(c.width()),c.wrapInner('<span class="child"></span>'),a.current.margin[2]+=Math.abs(parseInt(c.css("margin-bottom"),10))),c.appendTo("over"===b.type?a.inner:"outside"===b.type?a.wrap:a.skin)}};d.fn.fancybox=function(b){var c=d(this),e=this.selector||"",f,g=function(g){var h=this,j=f,k;!g.ctrlKey&&!g.altKey&&!g.shiftKey&&!g.metaKey&&!d(h).is(".fancybox-wrap")&& | |||
(g.preventDefault(),g=b.groupAttr||"data-fancybox-group",k=d(h).attr(g),k||(g="rel",k=h[g]),k&&""!==k&&"nofollow"!==k&&(h=e.length?d(e):c,h=h.filter("["+g+'="'+k+'"]'),j=h.index(this)),b.index=j,a.open(h,b))},b=b||{};f=b.index||0;e?q.undelegate(e,"click.fb-start").delegate(e,"click.fb-start",g):c.unbind("click.fb-start").bind("click.fb-start",g);return this};d(l).ready(function(){a.defaults.fixed=d.support.fixedPosition||!(d.browser.msie&&6>=d.browser.version)&&!k})})(window,document,jQuery); |