1jQuery(document).ready(function() { 2 3 jQuery(".sliding_item").click(function() 4 { 5 if ( jQuery(".loader_container").hasClass("hidden") ) { 6 if ( jQuery(this).attr('rel') != '' ) { 7 var slider_id = "#" + jQuery(this).attr('rel'); 8 jQuery(".slide_content").addClass("hidden"); 9 jQuery(slider_id).removeClass("hidden"); 10 jQuery(slider_id).addClass("current_slide_row"); 11 jQuery(this).addClass("current_sliding_item"); 12 } 13 jQuery(this).find(".sliding_arrow").slideDown("fast").removeClass("hidden"); 14 jQuery(".loader_container").slideToggle("fast").removeClass("hidden"); 15 16 17 }else{ 18 var slider_id = "#" + jQuery(this).attr('rel'); 19 if ( slider_id != '' && jQuery(slider_id).hasClass("current_slide_row") ) { 20 jQuery(".loader_container").slideToggle("fast").addClass("hidden"); 21 if ( jQuery(this).attr('rel') != '' ) { 22 var slider_id = "#" + jQuery(this).attr('rel'); 23 jQuery(this).find(".sliding_arrow").slideUp("fast").addClass("hidden"); 24 jQuery(slider_id).addClass("hidden"); 25 jQuery(slider_id).removeClass("current_slide_row"); 26 } 27 }else{ 28 29 jQuery(".current_slide_row").addClass("hidden").removeClass("current_slide_row"); 30 jQuery(".current_sliding_item > .sliding_arrow").addClass("hidden"); 31 jQuery(".loader_container").slideToggle("fast").addClass("hidden"); 32 var slider_id = jQuery(this).attr('rel'); 33 jQuery("#"+ slider_id).removeClass("hidden"); 34 jQuery("#"+ slider_id).addClass("current_slide_row"); 35 jQuery(this).addClass("current_sliding_item"); 36 jQuery(this).find(".sliding_arrow").slideDown("fast").removeClass("hidden"); 37 jQuery(".loader_container").slideToggle("fast").removeClass("hidden"); 38 39 40 41 } 42 } 43 }); 44 45 46 var belowheader = jQuery('#below_header').offset().top ; 47 if (jQuery('#below_header').hasClass('headerissticky')) { 48 jQuery(window).scroll(function(){ 49 fixedheader(); 50 }); 51 jQuery(window).load(function(){ 52 fixedheader(); 53 }); 54 function fixedheader(){ 55 var scrolling = jQuery(window).scrollTop(); 56 if(scrolling > belowheader){ 57 jQuery('.top_header').stop().addClass('fixed_header'); 58 jQuery('.below_header').stop().addClass('fixed_header'); 59 jQuery('body').stop().addClass('sticked'); 60 }else if(scrolling < belowheader){ 61 jQuery('.top_header').removeClass('fixed_header'); 62 jQuery('.below_header').removeClass('fixed_header'); 63 jQuery('body').removeClass('sticked'); 64 } 65 } 66 } 67 68 jQuery('.gototop').click(function(){ 69 jQuery('html, body').animate({scrollTop: '0px'}, 800); 70 return false; 71 }); 72}); 73 74 75jQuery(document).ready(function() { 76 77 78 jQuery('.galleryslider').flexslider({ 79 animation: "fade", 80 directionNav: true, 81 controlNav: false, 82 slideshow: false, 83 pauseOnHover: true, 84 }); 85 86 87 88 // portfolio icon hoever effect 89 jQuery(".portfolio_item").hover( 90 function() 91 { 92 jQuery(this).find(".he-view").addClass("he-view-show"); 93 // jQuery(".center-bar a").addClass("elasticInUp"); 94 jQuery(this).find(".goup").addClass("elasticInUp"); 95 jQuery(this).find(".godown").addClass("elasticInDown"); 96 jQuery(this).find(".he-view .bg").addClass("fadeIn"); 97 98 99 },function() 100 { 101 jQuery(this).find(".he-view").removeClass("he-view-show"); 102 // jQuery(".center-bar a").removeClass("elasticInUp"); 103 jQuery(this).find(".goup").removeClass("elasticInUp"); 104 jQuery(this).find(".godown").removeClass("elasticInDown"); 105 jQuery(this).find(".he-view .bg").removeClass("fadeIn"); 106 }); 107 108 jQuery('.mobile_menu_select').bind('change', function () { 109 var url = jQuery(this).val(); 110 if (url) { 111 window.location = url; 112 } 113 return false; 114 }); 115 116 jQuery("a.prettyPhoto").prettyPhoto(); 117 118 jQuery(".prettyPhotolink").click(function() { 119 var thisgal = jQuery(this).attr('rel'); 120 jQuery("a.prettyPhoto." + thisgal + ":first").click() 121 }); 122 123 //tooltip(); 124 jQuery('.ttip , .tooltip-n').tipsy({fade: true, gravity: 's'}); 125 jQuery('.tooldown, .tooltip-s').tipsy({fade: true, gravity: 'n'}); 126 127 jQuery('.tooltip-nw').tipsy({fade: true, gravity: 'nw'}); 128 jQuery('.tooltip-ne').tipsy({fade: true, gravity: 'ne'}); 129 jQuery('.tooltip-w').tipsy({fade: true, gravity: 'w'}); 130 jQuery('.tooltip-e').tipsy({fade: true, gravity: 'e'}); 131 jQuery('.tooltip-sw').tipsy({fade: true, gravity: 'w'}); 132 jQuery('.tooltip-se').tipsy({fade: true, gravity: 'e'}); 133 134 135 jQuery(".video_fit_container").fitVids(); 136 137 138 139 140}); 141 142 143// tipsy, version 1.0.0a 144// (c) 2008-2010 jason frame [[email protected]] 145// released under the MIT license 146(function(a){function b(a,b){return typeof a=="function"?a.call(b):a}function c(a){while(a=a.parentNode){if(a==document)return true}return false}function d(b,c){this.$element=a(b);this.options=c;this.enabled=true;this.fixTitle()}d.prototype={show:function(){var c=this.getTitle();if(c&&this.enabled){var d=this.tip();d.find(".tipsy-inner")[this.options.html?"html":"text"](c);d[0].className="tipsy";d.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var e=a.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight});
146var f=d[0].offsetWidth,g=d[0].offsetHeight,h=b(this.options.gravity,this.$element[0]);var i;switch(h.charAt(0)){case"n":i={top:e.top+e.height+this.options.offset,left:e.left+e.width/2-f/2};break;case"s":i={top:e.top-g-this.options.offset,left:e.left+e.width/2-f/2};break;case"e":i={top:e.top+e.height/2-g/2,left:e.left-f-this.options.offset};break;case"w":i={top:e.top+e.height/2-g/2,left:e.left+e.width+this.options.offset};break}if(h.length==2){if(h.charAt(1)=="w"){i.left=e.left+e.width/2-15}else{i.left=e.left+e.width/2-f+15}}d.css(i).addClass("tipsy-"+h);d.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+h.charAt(0);if(this.options.className){d.addClass(b(this.options.className,this.$element[0]))}if(this.options.fade){d.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity})}else{d.css({visibility:"visible",opacity:this.options.opacity})}}},hide:function(){if(this.options.fade){this.tip().stop().fadeOut(function(){a(this).remove()})}else{this.tip().remove()}},fixTitle:function(){var a=this.$element;if(a.attr("title")||typeof a.attr("original-title")!="string"){a.attr("original-title",a.attr("title")||"").removeAttr("title")}},getTitle:function(){var a,b=this.$element,c=this.options;this.fixTitle();var a,c=this.options;if(typeof c.title=="string"){a=b.attr(c.title=="title"?"original-title":c.title)}else if(typeof c.title=="function"){a=c.title.call(b[0])}a=(""+a).replace(/(^\s*|\s*$)/,"");return a||c.fallback},tip:function(){if(!this.$tip){this.$tip=a('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>');this.$tip.data("tipsy-pointee",this.$element[0])}return this.$tip},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null}},enable:function(){this.enabled=true},disable:function(){this.enabled=false},toggleEnabled:function(){this.enabled=!this.enabled}};a.fn.tipsy=function(b){function e(c){var e=a.data(c,"tipsy");if(!e){e=new d(c,a.fn.tipsy.elementOptions(c,b));a.data(c,"tipsy",e)}return e}function f(){var a=e(this);a.hoverState="in";if(b.delayIn==0){a.show()}else{a.fixTitle();setTimeout(function(){if(a.hoverState=="in")a.show()},b.delayIn)}}function g(){var a=e(this);a.hoverState="out";if(b.delayOut==0){a.hide()}else{setTimeout(function(){if(a.hoverState=="out")a.hide()},b.delayOut)}}if(b===true){return this.data("tipsy")}else if(typeof b=="string"){var c=this.data("tipsy");if(c)c[b]();return this}b=a.extend({},a.fn.tipsy.defaults,b);if(!b.live)this.each(function(){e(this)});if(b.trigger!="manual"){var h=b.live?"live":"bind",i=b.trigger=="hover"?"mouseenter":"focus",j=b.trigger=="hover"?"mouseleave":"blur";this[h](i,f)[h](j,g)}return this};a.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:false,fallback:"",gravity:"n",html:false,live:false,offset:0,opacity:.8,title:"title",trigger:"hover"};a.fn.tipsy.revalidate=function(){a(".tipsy").each(function(){var b=a.data(this,"tipsy-pointee");if(!b||!c(b)){a(this).remove()}})};a.fn.tipsy.elementOptions=function(b,c){return a.metadata?a.extend({},c,a(b).metadata()):c};a.fn.tipsy.autoNS=function(){return a(this).offset().top>a(document).scrollTop()+a(window).height()/2?"s":"n"};a.fn.tipsy.autoWE=function(){return a(this).offset().left>a(document).scrollLeft()+a(window).width()/2?"e":"w"};a.fn.tipsy.autoBounds=function(b,c){return function(){var d={ns:c[0],ew:c.length>1?c[1]:false},e=a(document).scrollTop()+b,f=a(document).scrollLeft()+b,g=a(this);if(g.offset().top<e)d.ns="n";if(g.offset().left<f)d.ew="w";if(a(window).width()+a(document).scrollLeft()-g.offset().left<b)d.ew="e";if(a(window).height()+a(document).scrollTop()-g.offset().top<b)d.ns="s";return d.ns+(d.ew?d.ew:"")}}})(jQuery); 147 148 149 jQuery(window).load(function() { 150 151 var $container = jQuery('#portfolio_container'); 152 153 $container.isotope({ 154 itemSelector : '.portfolio_element' 155 }); 156 157 158 var $optionSets = jQuery('#portfolio_filter_options .option-set'), 159 $optionLinks = $optionSets.find('a'); 160 161 $optionLinks.click(function(){ 162 var $this = jQuery(this); 163 // don't proceed if already selected 164 if ( $this.closest('li').hasClass('active') ) { 165 return false;
166 } 167 var $optionSet = $this.parents('.option-set'); 168 $optionLinks.closest('li').removeClass('active'); 169 $this.closest('li').addClass('active'); 170 171 // make option object dynamically, i.e. { filter: '.my-filter-class' } 172 var options = {}, 173 key = $optionSet.attr('data-option-key'), 174 value = $this.attr('data-option-value'); 175 // parse 'false' as false boolean 176 value = value === 'false' ? false : value; 177 options[ key ] = value; 178 if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) { 179 // changes in layout modes need extra logic 180 changeLayoutMode( $this, options ) 181 } else { 182 // otherwise, apply new options 183 $container.isotope( options ); 184 } 185 186 return false; 187 }); 188 }); 189 190 191/* 192 * Project: Twitter Bootstrap Hover Dropdown 193 * Author: Cameron Spear 194 * Contributors: Mattia Larentis 195 * 196 * Dependencies?: Twitter Bootstrap's Dropdown plugin 197 * 198 * A simple plugin to enable twitter bootstrap dropdowns to active on hover and provide a nice user experience. 199 * 200 * No license, do what you want. I'd love credit or a shoutout, though. 201 * 202 * http://cameronspear.com/blog/twitter-bootstrap-dropdown-on-hover-plugin/ 203 */ 204;(function($, window, undefined) { 205 // outside the scope of the jQuery plugin to 206 // keep track of all dropdowns 207 var $allDropdowns = $(); 208 209 // if instantlyCloseOthers is true, then it will instantly 210 // shut other nav items when a new one is hovered over 211 $.fn.dropdownHover = function(options) { 212 213 // the element we really care about 214 // is the dropdown-toggle's parent 215 $allDropdowns = $allDropdowns.add(this.parent()); 216 217 return this.each(function() { 218 var $this = $(this).parent(), 219 defaults = { 220 delay: 500, 221 instantlyCloseOthers: true 222 }, 223 data = { 224 delay: $(this).data('delay'), 225 instantlyCloseOthers: $(this).data('close-others') 226 }, 227 settings = $.extend(true, {}, defaults, options, data), 228 timeout; 229 230 //// Return Menu Height to its original state 231 //$this.children('.dropdown-menu').css({ height: 'auto' }); 232 //// Get original height 233 //var ulDropMenuHeight = $this.children('.dropdown-menu').height(); 234 //// Return Height to Zero state 235 //$this.children('.dropdown-menu').css({ height: "0", overflow: "hidden" }); 236 237 $this.hover(function () { 238 239 //// Fix issues in responsive mode 240 //// Return Menu Height to its original state 241 //$this.children('.dropdown-menu').css({ height: 'auto' }); 242 //// Get original height 243 //var ulDropMenuHeight = $this.children('.dropdown-menu').height(); 244 //// Return Height to Zero state 245 //$this.children('.dropdown-menu').css({ height: "0", overflow: "hidden" }); 246 247 if (settings.instantlyCloseOthers === true) { 248 $allDropdowns.removeClass('open'); 249 $allDropdowns.children('.dropdown-menu').slideUp(50); 250 //$allDropdowns.children('.dropdown-menu').css({ display: "none", overflow: "hidden" }); 251 //$allDropdowns.children('.dropdown-menu').stop().animate({ height: '0' }, { queue: false, duration: 50, easing: 'jswing' }); 252 } 253 254 window.clearTimeout(timeout); 255 256 $('> .dropdown-menu', this).slideDown(0); 257 $(this).addClass('open'); 258 259 //$(this).children('.dropdown-menu').css({ display: "block", overflow: "hidden" }); 260 //$(this).children('.dropdown-menu').stop().animate({ height: ulDropMenuHeight + "px" }, { queue: false, duration: 50, easing: 'jswing' }); 261 262 }, function() { 263 timeout = window.setTimeout(function() { 264 $this.removeClass('open'); 265 266 $this.children('.dropdown-menu').slideUp(0); 267 268 //$this.children('.dropdown-menu').css({ display: "none", overflow: "hidden" }); 269 //$this.children('.dropdown-menu').stop().animate({ height: '0' }, { queue: false, duration: 50, easing: 'jswing' }); 270 271 }, settings.delay); 272 }); 273 274 $this.children('.dropdown-menu').find('.dropdown-submenu').hover(function () { 275 $(this).parent().css({ overflow: "visible" }); 276 277 }); 278 }); 279 }; 280 281 // apply dropdownHover to all elements with the data-hover="dropdown" attribute 282 $(document).ready(function() { 283 $('[data-hover="dropdown"]').dropdownHover(); 284 }); 285})(jQuery, this);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.