added more preview pages and more templates
This commit is contained in:
+261
File diff suppressed because one or more lines are too long
+6
File diff suppressed because one or more lines are too long
+2225
File diff suppressed because it is too large
Load Diff
+8
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
HTML5 Shiv v3.6.2pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
||||
*/
|
||||
(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();
|
||||
a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}</style>";
|
||||
c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||
|
||||
"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",version:"3.6.2pre",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment();
|
||||
for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document);
|
||||
+2
File diff suppressed because one or more lines are too long
+15
File diff suppressed because one or more lines are too long
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*
|
||||
* Uses the built in easing capabilities added In jQuery 1.1
|
||||
* to offer multiple easing options
|
||||
*
|
||||
* TERMS OF USE - jQuery Easing
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2008 George McGinley Smith
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
// t: current time, b: begInnIng value, c: change In value, d: duration
|
||||
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
||||
|
||||
jQuery.extend( jQuery.easing,
|
||||
{
|
||||
def: 'easeOutQuad',
|
||||
swing: function (x, t, b, c, d) {
|
||||
//alert(jQuery.easing.default);
|
||||
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
||||
},
|
||||
easeInQuad: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t + b;
|
||||
},
|
||||
easeOutQuad: function (x, t, b, c, d) {
|
||||
return -c *(t/=d)*(t-2) + b;
|
||||
},
|
||||
easeInOutQuad: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t + b;
|
||||
return -c/2 * ((--t)*(t-2) - 1) + b;
|
||||
},
|
||||
easeInCubic: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t + b;
|
||||
},
|
||||
easeOutCubic: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t + 1) + b;
|
||||
},
|
||||
easeInOutCubic: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t + 2) + b;
|
||||
},
|
||||
easeInQuart: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t + b;
|
||||
},
|
||||
easeOutQuart: function (x, t, b, c, d) {
|
||||
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
||||
},
|
||||
easeInOutQuart: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
||||
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
||||
},
|
||||
easeInQuint: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t*t + b;
|
||||
},
|
||||
easeOutQuint: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
||||
},
|
||||
easeInOutQuint: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
||||
},
|
||||
easeInSine: function (x, t, b, c, d) {
|
||||
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
||||
},
|
||||
easeOutSine: function (x, t, b, c, d) {
|
||||
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
||||
},
|
||||
easeInOutSine: function (x, t, b, c, d) {
|
||||
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
||||
},
|
||||
easeInExpo: function (x, t, b, c, d) {
|
||||
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
||||
},
|
||||
easeOutExpo: function (x, t, b, c, d) {
|
||||
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
||||
},
|
||||
easeInOutExpo: function (x, t, b, c, d) {
|
||||
if (t==0) return b;
|
||||
if (t==d) return b+c;
|
||||
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
||||
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
||||
},
|
||||
easeInCirc: function (x, t, b, c, d) {
|
||||
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
||||
},
|
||||
easeOutCirc: function (x, t, b, c, d) {
|
||||
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
||||
},
|
||||
easeInOutCirc: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
||||
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
||||
},
|
||||
easeInElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
},
|
||||
easeOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
||||
},
|
||||
easeInOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
||||
},
|
||||
easeInBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*(t/=d)*t*((s+1)*t - s) + b;
|
||||
},
|
||||
easeOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
||||
},
|
||||
easeInOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
||||
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
||||
},
|
||||
easeInBounce: function (x, t, b, c, d) {
|
||||
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
||||
},
|
||||
easeOutBounce: function (x, t, b, c, d) {
|
||||
if ((t/=d) < (1/2.75)) {
|
||||
return c*(7.5625*t*t) + b;
|
||||
} else if (t < (2/2.75)) {
|
||||
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
||||
} else if (t < (2.5/2.75)) {
|
||||
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
||||
} else {
|
||||
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
||||
}
|
||||
},
|
||||
easeInOutBounce: function (x, t, b, c, d) {
|
||||
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
||||
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
*
|
||||
* TERMS OF USE - EASING EQUATIONS
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2001 Robert Penner
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
@@ -0,0 +1,47 @@
|
||||
/*parsed HTML*/
|
||||
$(function(){
|
||||
$(".maxheight").each(function(){
|
||||
$(this).contents().wrapAll("<div class='box_inner'></div>");
|
||||
})
|
||||
$(".maxheight2").each(function(){
|
||||
$(this).contents().wrapAll("<div class='box_inner'></div>");
|
||||
})
|
||||
$(".maxheight3").each(function(){
|
||||
$(this).contents().wrapAll("<div class='box_inner'></div>");
|
||||
})
|
||||
|
||||
|
||||
})
|
||||
/*add event*/
|
||||
$(window).bind("resize", height_handler).bind("load", height_handler)
|
||||
function height_handler(){
|
||||
if($(window).width()>465){
|
||||
$(".maxheight").equalHeights();
|
||||
}else{
|
||||
$(".maxheight").equalHeights();
|
||||
}
|
||||
if($(window).width()>740){
|
||||
$(".maxheight2").equalHeights();
|
||||
}else{
|
||||
$(".maxheight2").equalHeights();
|
||||
}
|
||||
if($(window).width()>740){
|
||||
$(".maxheight3").equalHeights();
|
||||
}else{
|
||||
$(".maxheight3").equalHeights();
|
||||
}
|
||||
|
||||
}
|
||||
/*glob function*/
|
||||
(function($){
|
||||
$.fn.equalHeights=function(minHeight,maxHeight){
|
||||
tallest=(minHeight)?minHeight:0;
|
||||
this.each(function(){
|
||||
if($(">.box_inner", this).outerHeight()>tallest){
|
||||
tallest=$(">.box_inner", this).outerHeight()
|
||||
}
|
||||
});
|
||||
if((maxHeight)&&tallest>maxHeight) tallest=maxHeight;
|
||||
return this.each(function(){$(this).height(tallest)})
|
||||
}
|
||||
})(jQuery)
|
||||
+5
File diff suppressed because one or more lines are too long
+10
File diff suppressed because one or more lines are too long
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
* jQuery Mobile Menu
|
||||
* Turn unordered list menu into dropdown select menu
|
||||
* version 1.0(31-OCT-2011)
|
||||
*
|
||||
* Built on top of the jQuery library
|
||||
* http://jquery.com
|
||||
*
|
||||
* Documentation
|
||||
* http://github.com/mambows/mobilemenu
|
||||
*/
|
||||
(function($){
|
||||
$.fn.mobileMenu = function(options) {
|
||||
|
||||
var defaults = {
|
||||
defaultText: 'Navigate to...',
|
||||
className: 'select-menu',
|
||||
subMenuClass: 'sub-menu',
|
||||
subMenuDash: '–'
|
||||
},
|
||||
settings = $.extend( defaults, options ),
|
||||
el = $(this);
|
||||
|
||||
this.each(function(){
|
||||
// ad class to submenu list
|
||||
el.find('ul').addClass(settings.subMenuClass);
|
||||
|
||||
// Create base menu
|
||||
$('<select />',{
|
||||
'class' : settings.className
|
||||
}).insertAfter( el );
|
||||
|
||||
// Create default option
|
||||
$('<option />', {
|
||||
"value" : '#',
|
||||
"text" : settings.defaultText
|
||||
}).appendTo( '.' + settings.className );
|
||||
|
||||
// Create select option from menu
|
||||
el.find('a,.separator').each(function(){
|
||||
var $this = $(this),
|
||||
optText = $this.text(),
|
||||
optSub = $this.parents( '.' + settings.subMenuClass ),
|
||||
len = optSub.length,
|
||||
dash;
|
||||
|
||||
// if menu has sub menu
|
||||
if( $this.parents('ul').hasClass( settings.subMenuClass ) ) {
|
||||
dash = Array( len+1 ).join( settings.subMenuDash );
|
||||
optText = dash + optText;
|
||||
}
|
||||
if($this.is('span')){
|
||||
// Now build menu and append it
|
||||
$('<optgroup />', {
|
||||
"label" : optText,
|
||||
}).appendTo( '.' + settings.className );
|
||||
}
|
||||
else{
|
||||
// Now build menu and append it
|
||||
$('<option />', {
|
||||
"value" : this.href,
|
||||
"html" : optText,
|
||||
"selected" : (this.href == window.location.href)
|
||||
}).appendTo( '.' + settings.className );
|
||||
}
|
||||
|
||||
}); // End el.find('a').each
|
||||
|
||||
// Change event on select element
|
||||
$('.' + settings.className).change(function(){
|
||||
var locations = $(this).val();
|
||||
if( locations !== '#' ) {
|
||||
window.location.href = $(this).val();
|
||||
}
|
||||
});
|
||||
$('.select-menu').show();
|
||||
|
||||
}); // End this.each
|
||||
|
||||
return this;
|
||||
};
|
||||
})(jQuery);
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
|
||||
* Licensed under the MIT License (LICENSE.txt).
|
||||
*
|
||||
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
|
||||
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
|
||||
* Thanks to: Seamus Leahy for adding deltaX and deltaY
|
||||
*
|
||||
* Version: 3.0.6
|
||||
*
|
||||
* Requires: 1.2.2+
|
||||
*/
|
||||
(function(a){function d(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(e=c.wheelDelta/120),c.detail&&(e=-c.detail/3),h=e,c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS&&(h=0,g=-1*e),c.wheelDeltaY!==undefined&&(h=c.wheelDeltaY/120),c.wheelDeltaX!==undefined&&(g=-1*c.wheelDeltaX/120),d.unshift(b,e,g,h),(a.event.dispatch||a.event.handle).apply(this,d)}var b=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var c=b.length;c;)a.event.fixHooks[b[--c]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=b.length;a;)this.addEventListener(b[--a],d,!1);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var a=b.length;a;)this.removeEventListener(b[--a],d,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery)
|
||||
+1
File diff suppressed because one or more lines are too long
+68
@@ -0,0 +1,68 @@
|
||||
(function($){
|
||||
$.fn.UItoTop = function(options) {
|
||||
|
||||
var defaults = {
|
||||
text: '',
|
||||
min: 200,
|
||||
scrollSpeed: 800,
|
||||
containerID: 'toTop',
|
||||
containerHoverID: 'toTopHover',
|
||||
easingType: 'linear',
|
||||
min_width:parseInt($('body').css("min-width"),10),
|
||||
main_width:parseInt($('body').css("min-width"),10)/2
|
||||
|
||||
};
|
||||
|
||||
var settings = $.extend(defaults, options);
|
||||
var containerIDhash = '#' + settings.containerID;
|
||||
var containerHoverIDHash = '#'+settings.containerHoverID;
|
||||
|
||||
$('body footer .top-box').append('<a href="#" id="'+settings.containerID+'">'+settings.text+'</a>');
|
||||
|
||||
var button_width = parseInt($(containerIDhash).css("width"))+90
|
||||
var button_width_1 = parseInt($(containerIDhash).css("width"))+20
|
||||
var max_width = defaults.min_width+button_width;
|
||||
var margin_right_1 = -(defaults.main_width+button_width_1)
|
||||
var margin_right_2 = -(defaults.main_width-20)
|
||||
|
||||
function top(){
|
||||
if(($(window).width()<=max_width)&&($(window).width()>=defaults.min_width))$(containerIDhash).stop().animate({marginRight:margin_right_2,right:'50%'})
|
||||
else if($(window).width()<=defaults.min_width)$(containerIDhash).stop().css({marginRight:0,right:10})
|
||||
else $(containerIDhash).stop().animate({marginRight:margin_right_1,right:'50%'})
|
||||
}
|
||||
top()
|
||||
$(containerIDhash).hide().click(function(){
|
||||
$('html, body').stop().animate({scrollTop:0}, settings.scrollSpeed, settings.easingType);
|
||||
$('#'+settings.containerHoverID, this).stop().animate({'opacity': 0 }, settings.inDelay, settings.easingType);
|
||||
return false;
|
||||
})
|
||||
|
||||
.prepend('<span id="'+settings.containerHoverID+'"></span>')
|
||||
.hover(function() {
|
||||
$(containerHoverIDHash, this).stop().animate({
|
||||
'opacity': 1
|
||||
}, 600, 'linear');
|
||||
}, function() {
|
||||
$(containerHoverIDHash, this).stop().animate({
|
||||
'opacity': 0
|
||||
}, 700, 'linear');
|
||||
});
|
||||
|
||||
$(window).scroll(function() {
|
||||
var sd = $(window).scrollTop();
|
||||
if(typeof document.body.style.maxHeight === "undefined") {
|
||||
$(containerIDhash).css({
|
||||
'position': 'absolute',
|
||||
'top': $(window).scrollTop() + $(window).height() - 50
|
||||
});
|
||||
}
|
||||
if ( sd > settings.min )
|
||||
$(containerIDhash).css({display: 'block'});
|
||||
else
|
||||
$(containerIDhash).css({display: 'none'});
|
||||
});
|
||||
$(window).resize(function(){top()})
|
||||
};
|
||||
})(jQuery);
|
||||
|
||||
$(window).load(function(){$().UItoTop({easingType: 'easeOutQuart'});})
|
||||
+260
@@ -0,0 +1,260 @@
|
||||
/*
|
||||
* jQuery Superfish Menu Plugin - v1.7.4
|
||||
* Copyright (c) 2013 Joel Birch
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*/
|
||||
|
||||
;(function ($) {
|
||||
"use strict";
|
||||
|
||||
var methods = (function () {
|
||||
// private properties and methods go here
|
||||
var c = {
|
||||
bcClass: 'sf-breadcrumb',
|
||||
menuClass: 'sf-js-enabled',
|
||||
anchorClass: 'sf-with-ul',
|
||||
menuArrowClass: 'sf-arrows'
|
||||
},
|
||||
ios = (function () {
|
||||
var ios = /iPhone|iPad|iPod/i.test(navigator.userAgent);
|
||||
if (ios) {
|
||||
// iOS clicks only bubble as far as body children
|
||||
$(window).load(function () {
|
||||
$('body').children().on('click', $.noop);
|
||||
});
|
||||
}
|
||||
return ios;
|
||||
})(),
|
||||
wp7 = (function () {
|
||||
var style = document.documentElement.style;
|
||||
return ('behavior' in style && 'fill' in style && /iemobile/i.test(navigator.userAgent));
|
||||
})(),
|
||||
toggleMenuClasses = function ($menu, o) {
|
||||
var classes = c.menuClass;
|
||||
if (o.cssArrows) {
|
||||
classes += ' ' + c.menuArrowClass;
|
||||
}
|
||||
$menu.toggleClass(classes);
|
||||
},
|
||||
setPathToCurrent = function ($menu, o) {
|
||||
return $menu.find('li.' + o.pathClass).slice(0, o.pathLevels)
|
||||
.addClass(o.hoverClass + ' ' + c.bcClass)
|
||||
.filter(function () {
|
||||
return ($(this).children(o.popUpSelector).hide().show().length);
|
||||
}).removeClass(o.pathClass);
|
||||
},
|
||||
toggleAnchorClass = function ($li) {
|
||||
$li.children('a').toggleClass(c.anchorClass);
|
||||
},
|
||||
toggleTouchAction = function ($menu) {
|
||||
var touchAction = $menu.css('ms-touch-action');
|
||||
touchAction = (touchAction === 'pan-y') ? 'auto' : 'pan-y';
|
||||
$menu.css('ms-touch-action', touchAction);
|
||||
},
|
||||
applyHandlers = function ($menu, o) {
|
||||
var targets = 'li:has(' + o.popUpSelector + ')';
|
||||
if ($.fn.hoverIntent && !o.disableHI) {
|
||||
$menu.hoverIntent(over, out, targets);
|
||||
}
|
||||
else {
|
||||
$menu
|
||||
.on('mouseenter.superfish', targets, over)
|
||||
.on('mouseleave.superfish', targets, out);
|
||||
}
|
||||
var touchevent = 'MSPointerDown.superfish';
|
||||
if (!ios) {
|
||||
touchevent += ' touchend.superfish';
|
||||
}
|
||||
if (wp7) {
|
||||
touchevent += ' mousedown.superfish';
|
||||
}
|
||||
$menu
|
||||
.on('focusin.superfish', 'li', over)
|
||||
.on('focusout.superfish', 'li', out)
|
||||
.on(touchevent, 'a', o, touchHandler);
|
||||
},
|
||||
touchHandler = function (e) {
|
||||
var $this = $(this),
|
||||
$ul = $this.siblings(e.data.popUpSelector);
|
||||
|
||||
if ($ul.length > 0 && $ul.is(':hidden')) {
|
||||
$this.one('click.superfish', false);
|
||||
if (e.type === 'MSPointerDown') {
|
||||
$this.trigger('focus');
|
||||
} else {
|
||||
$.proxy(over, $this.parent('li'))();
|
||||
}
|
||||
}
|
||||
},
|
||||
over = function () {
|
||||
var $this = $(this),
|
||||
o = getOptions($this);
|
||||
clearTimeout(o.sfTimer);
|
||||
$this.siblings().superfish('hide').end().superfish('show');
|
||||
},
|
||||
out = function () {
|
||||
var $this = $(this),
|
||||
o = getOptions($this);
|
||||
if (ios) {
|
||||
$.proxy(close, $this, o)();
|
||||
}
|
||||
else {
|
||||
clearTimeout(o.sfTimer);
|
||||
o.sfTimer = setTimeout($.proxy(close, $this, o), o.delay);
|
||||
}
|
||||
},
|
||||
close = function (o) {
|
||||
o.retainPath = ($.inArray(this[0], o.$path) > -1);
|
||||
this.superfish('hide');
|
||||
|
||||
if (!this.parents('.' + o.hoverClass).length) {
|
||||
o.onIdle.call(getMenu(this));
|
||||
if (o.$path.length) {
|
||||
$.proxy(over, o.$path)();
|
||||
}
|
||||
}
|
||||
},
|
||||
getMenu = function ($el) {
|
||||
return $el.closest('.' + c.menuClass);
|
||||
},
|
||||
getOptions = function ($el) {
|
||||
return getMenu($el).data('sf-options');
|
||||
};
|
||||
|
||||
return {
|
||||
// public methods
|
||||
hide: function (instant) {
|
||||
if (this.length) {
|
||||
var $this = this,
|
||||
o = getOptions($this);
|
||||
if (!o) {
|
||||
return this;
|
||||
}
|
||||
var not = (o.retainPath === true) ? o.$path : '',
|
||||
$ul = $this.find('li.' + o.hoverClass).add(this).not(not).removeClass(o.hoverClass).children(o.popUpSelector),
|
||||
speed = o.speedOut;
|
||||
|
||||
if (instant) {
|
||||
$ul.show();
|
||||
speed = 0;
|
||||
}
|
||||
o.retainPath = false;
|
||||
o.onBeforeHide.call($ul);
|
||||
$ul.stop(true, true).animate(o.animationOut, speed, function () {
|
||||
var $this = $(this);
|
||||
o.onHide.call($this);
|
||||
});
|
||||
}
|
||||
return this;
|
||||
},
|
||||
show: function () {
|
||||
var o = getOptions(this);
|
||||
if (!o) {
|
||||
return this;
|
||||
}
|
||||
var $this = this.addClass(o.hoverClass),
|
||||
$ul = $this.children(o.popUpSelector);
|
||||
|
||||
o.onBeforeShow.call($ul);
|
||||
$ul.stop(true, true).animate(o.animation, o.speed, function () {
|
||||
o.onShow.call($ul);
|
||||
});
|
||||
return this;
|
||||
},
|
||||
destroy: function () {
|
||||
return this.each(function () {
|
||||
var $this = $(this),
|
||||
o = $this.data('sf-options'),
|
||||
$hasPopUp;
|
||||
if (!o) {
|
||||
return false;
|
||||
}
|
||||
$hasPopUp = $this.find(o.popUpSelector).parent('li');
|
||||
clearTimeout(o.sfTimer);
|
||||
toggleMenuClasses($this, o);
|
||||
toggleAnchorClass($hasPopUp);
|
||||
toggleTouchAction($this);
|
||||
// remove event handlers
|
||||
$this.off('.superfish').off('.hoverIntent');
|
||||
// clear animation's inline display style
|
||||
$hasPopUp.children(o.popUpSelector).attr('style', function (i, style) {
|
||||
return style.replace(/display[^;]+;?/g, '');
|
||||
});
|
||||
// reset 'current' path classes
|
||||
o.$path.removeClass(o.hoverClass + ' ' + c.bcClass).addClass(o.pathClass);
|
||||
$this.find('.' + o.hoverClass).removeClass(o.hoverClass);
|
||||
o.onDestroy.call($this);
|
||||
$this.removeData('sf-options');
|
||||
});
|
||||
},
|
||||
init: function (op) {
|
||||
return this.each(function () {
|
||||
var $this = $(this);
|
||||
if ($this.data('sf-options')) {
|
||||
return false;
|
||||
}
|
||||
var o = $.extend({}, $.fn.superfish.defaults, op),
|
||||
$hasPopUp = $this.find(o.popUpSelector).parent('li');
|
||||
o.$path = setPathToCurrent($this, o);
|
||||
|
||||
$this.data('sf-options', o);
|
||||
|
||||
toggleMenuClasses($this, o);
|
||||
toggleAnchorClass($hasPopUp);
|
||||
toggleTouchAction($this);
|
||||
applyHandlers($this, o);
|
||||
|
||||
$hasPopUp.not('.' + c.bcClass).superfish('hide', true);
|
||||
|
||||
o.onInit.call(this);
|
||||
});
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
||||
$.fn.superfish = function (method, args) {
|
||||
if (methods[method]) {
|
||||
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
||||
}
|
||||
else if (typeof method === 'object' || ! method) {
|
||||
return methods.init.apply(this, arguments);
|
||||
}
|
||||
else {
|
||||
return $.error('Method ' + method + ' does not exist on jQuery.fn.superfish');
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.superfish.defaults = {
|
||||
popUpSelector: 'ul,.sf-mega', // within menu context
|
||||
hoverClass: 'sfHover',
|
||||
pathClass: 'overrideThisToUse',
|
||||
pathLevels: 1,
|
||||
delay: 800,
|
||||
animation: {height: 'show'},
|
||||
animationOut: {height: 'hide'},
|
||||
speed: 'normal',
|
||||
speedOut: 'fast',
|
||||
cssArrows: true,
|
||||
disableHI: false,
|
||||
onInit: $.noop,
|
||||
onBeforeShow: $.noop,
|
||||
onShow: $.noop,
|
||||
onBeforeHide: $.noop,
|
||||
onHide: $.noop,
|
||||
onIdle: $.noop,
|
||||
onDestroy: $.noop
|
||||
};
|
||||
|
||||
// soon to be deprecated
|
||||
$.fn.extend({
|
||||
hideSuperfishUl: methods.hide,
|
||||
showSuperfishUl: methods.show
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
$(function(){
|
||||
$('.sf-menu').superfish()
|
||||
})
|
||||
@@ -0,0 +1,61 @@
|
||||
|
||||
|
||||
//year sccript
|
||||
|
||||
var currentYear = (new Date).getFullYear();
|
||||
$(document).ready(function() {
|
||||
$("#copyright-year").text( (new Date).getFullYear() );
|
||||
});
|
||||
|
||||
|
||||
jQuery(function(){
|
||||
jQuery('.sf-menu').mobileMenu();
|
||||
})
|
||||
$(function(){
|
||||
// IPad/IPhone
|
||||
var viewportmeta = document.querySelector && document.querySelector('meta[name="viewport"]'),
|
||||
ua = navigator.userAgent,
|
||||
|
||||
gestureStart = function () {
|
||||
viewportmeta.content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0";
|
||||
},
|
||||
|
||||
scaleFix = function () {
|
||||
if (viewportmeta && /iPhone|iPad/.test(ua) && !/Opera Mini/.test(ua)) {
|
||||
viewportmeta.content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
|
||||
document.addEventListener("gesturestart", gestureStart, false);
|
||||
}
|
||||
};
|
||||
scaleFix();
|
||||
|
||||
// Menu Android
|
||||
if(window.orientation!=undefined){
|
||||
var regM = /ipod|ipad|iphone/gi,
|
||||
result = ua.match(regM)
|
||||
if(!result) {
|
||||
$('.sf-menu li').each(function(){
|
||||
|
||||
if($(">ul", this)[0]){
|
||||
$(">a", this).toggle(
|
||||
function(){
|
||||
return false;
|
||||
},
|
||||
function(){
|
||||
window.location.href = $(this).attr("href");
|
||||
}
|
||||
);
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
/* ------ fi fixed position on Android -----*/
|
||||
var ua=navigator.userAgent.toLocaleLowerCase(),
|
||||
regV = /ipod|ipad|iphone/gi,
|
||||
result = ua.match(regV),
|
||||
userScale="";
|
||||
if(!result){
|
||||
userScale=",user-scalable=0"
|
||||
}
|
||||
document.write('<meta name="viewport" content="width=device-width,initial-scale=1.0'+userScale+'">')
|
||||
/*--------------*/
|
||||
@@ -0,0 +1,235 @@
|
||||
/**
|
||||
* @name jQuery touchTouch plugin
|
||||
* @author Martin Angelov
|
||||
* @version 1.0
|
||||
* @url http://tutorialzine.com/2012/04/mobile-touch-gallery/
|
||||
* @license MIT License
|
||||
*/
|
||||
|
||||
(function(){
|
||||
|
||||
/* Private variables */
|
||||
|
||||
var overlay = $('<div id="galleryOverlay">'),
|
||||
slider = $('<div id="gallerySlider">'),
|
||||
prevArrow = $('<a id="prevArrow"></a>'),
|
||||
nextArrow = $('<a id="nextArrow"></a>'),
|
||||
overlayVisible = false;
|
||||
|
||||
|
||||
/* Creating the plugin */
|
||||
|
||||
$.fn.touchTouch = function(){
|
||||
|
||||
var placeholders = $([]),
|
||||
index = 0,
|
||||
items = this;
|
||||
|
||||
// Appending the markup to the page
|
||||
overlay.hide().appendTo('body');
|
||||
slider.appendTo(overlay);
|
||||
|
||||
// Creating a placeholder for each image
|
||||
items.each(function(){
|
||||
placeholders = placeholders.add($('<div class="placeholder">'));
|
||||
});
|
||||
|
||||
// Hide the gallery if the background is touched / clicked
|
||||
slider.append(placeholders).on('click',function(e){
|
||||
if(!$(e.target).is('img')){
|
||||
hideOverlay();
|
||||
}
|
||||
});
|
||||
|
||||
// Listen for touch events on the body and check if they
|
||||
// originated in #gallerySlider img - the images in the slider.
|
||||
$('body').on('touchstart', '#gallerySlider img', function(e){
|
||||
|
||||
var touch = e.originalEvent,
|
||||
startX = touch.changedTouches[0].pageX;
|
||||
|
||||
slider.on('touchmove',function(e){
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
touch = e.originalEvent.touches[0] ||
|
||||
e.originalEvent.changedTouches[0];
|
||||
|
||||
if(touch.pageX - startX > 10){
|
||||
slider.off('touchmove');
|
||||
showPrevious();
|
||||
}
|
||||
else if (touch.pageX - startX < -10){
|
||||
slider.off('touchmove');
|
||||
showNext();
|
||||
}
|
||||
});
|
||||
|
||||
// Return false to prevent image
|
||||
// highlighting on Android
|
||||
return false;
|
||||
|
||||
}).on('touchend',function(){
|
||||
slider.off('touchmove');
|
||||
});
|
||||
|
||||
// Listening for clicks on the thumbnails
|
||||
|
||||
items.on('click', function(e){
|
||||
e.preventDefault();
|
||||
|
||||
// Find the position of this image
|
||||
// in the collection
|
||||
|
||||
index = items.index(this);
|
||||
showOverlay(index);
|
||||
showImage(index);
|
||||
|
||||
// Preload the next image
|
||||
preload(index+1);
|
||||
|
||||
// Preload the previous
|
||||
preload(index-1);
|
||||
|
||||
});
|
||||
|
||||
// If the browser does not have support
|
||||
// for touch, display the arrows
|
||||
if ( !("ontouchstart" in window) ){
|
||||
overlay.append(prevArrow).append(nextArrow);
|
||||
|
||||
prevArrow.click(function(e){
|
||||
e.preventDefault();
|
||||
showPrevious();
|
||||
});
|
||||
|
||||
nextArrow.click(function(e){
|
||||
e.preventDefault();
|
||||
showNext();
|
||||
});
|
||||
}
|
||||
|
||||
// Listen for arrow keys
|
||||
$(window).bind('keydown', function(e){
|
||||
|
||||
if (e.keyCode == 37){
|
||||
showPrevious();
|
||||
}
|
||||
else if (e.keyCode==39){
|
||||
showNext();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
/* Private functions */
|
||||
|
||||
|
||||
function showOverlay(index){
|
||||
|
||||
// If the overlay is already shown, exit
|
||||
if (overlayVisible){
|
||||
return false;
|
||||
}
|
||||
|
||||
// Show the overlay
|
||||
overlay.show();
|
||||
|
||||
setTimeout(function(){
|
||||
// Trigger the opacity CSS transition
|
||||
overlay.addClass('visible');
|
||||
}, 100);
|
||||
|
||||
// Move the slider to the correct image
|
||||
offsetSlider(index);
|
||||
|
||||
// Raise the visible flag
|
||||
overlayVisible = true;
|
||||
}
|
||||
|
||||
function hideOverlay(){
|
||||
// If the overlay is not shown, exit
|
||||
if(!overlayVisible){
|
||||
return false;
|
||||
}
|
||||
|
||||
// Hide the overlay
|
||||
overlay.hide().removeClass('visible');
|
||||
overlayVisible = false;
|
||||
}
|
||||
|
||||
function offsetSlider(index){
|
||||
// This will trigger a smooth css transition
|
||||
slider.css('left',(-index*100)+'%');
|
||||
}
|
||||
|
||||
// Preload an image by its index in the items array
|
||||
function preload(index){
|
||||
setTimeout(function(){
|
||||
showImage(index);
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
// Show image in the slider
|
||||
function showImage(index){
|
||||
|
||||
// If the index is outside the bonds of the array
|
||||
if(index < 0 || index >= items.length){
|
||||
return false;
|
||||
}
|
||||
|
||||
// Call the load function with the href attribute of the item
|
||||
loadImage(items.eq(index).attr('href'), function(){
|
||||
placeholders.eq(index).html(this);
|
||||
});
|
||||
}
|
||||
|
||||
// Load the image and execute a callback function.
|
||||
// Returns a jQuery object
|
||||
|
||||
function loadImage(src, callback){
|
||||
var img = $('<img>').on('load', function(){
|
||||
callback.call(img);
|
||||
});
|
||||
|
||||
img.attr('src',src);
|
||||
}
|
||||
|
||||
function showNext(){
|
||||
|
||||
// If this is not the last image
|
||||
if(index+1 < items.length){
|
||||
index++;
|
||||
offsetSlider(index);
|
||||
preload(index+1);
|
||||
}
|
||||
else{
|
||||
// Trigger the spring animation
|
||||
|
||||
slider.addClass('rightSpring');
|
||||
setTimeout(function(){
|
||||
slider.removeClass('rightSpring');
|
||||
},500);
|
||||
}
|
||||
}
|
||||
|
||||
function showPrevious(){
|
||||
|
||||
// If this is not the first image
|
||||
if(index>0){
|
||||
index--;
|
||||
offsetSlider(index);
|
||||
preload(index-1);
|
||||
}
|
||||
else{
|
||||
// Trigger the spring animation
|
||||
|
||||
slider.addClass('leftSpring');
|
||||
setTimeout(function(){
|
||||
slider.removeClass('leftSpring');
|
||||
},500);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user