1this.screenshotPreview = function(){ 2 3 xOffset = 10; 4 yOffset = 30; 5 6 $("a.screenshot").hover(function(e){ 7 this.t = this.title; 8 this.title = ""; 9 var c = (this.t != "") ? "<br/>" + this.t : ""; 10 $("body").append("<p id='screenshot'><img src='"+ this.rel +"' alt='url preview' />"+ c +"</p>"); 11 $("#screenshot") 12 .css("top",(e.pageY - xOffset) + "px") 13 .css("left",(e.pageX + yOffset) + "px") 14 .fadeIn("fast"); 15 }, 16 function(){ 17 this.title = this.t; 18 $("#screenshot").remove(); 19 }); 20 $("a.screenshot").mousemove(function(e){ 21 $("#screenshot") 22 .css("top",(e.pageY - xOffset) + "px") 23 .css("left",(e.pageX + yOffset) + "px"); 24 }); 25}; 26 27 28jQuery(function() { 29 "use strict"; 30 var opts = { 31 lines: 7, // The number of lines to draw 32 length: 9, // The length of each line 33 width: 2, // The line thickness 34 radius: 0, // The radius of the inner circle 35 corners: 1.0, // Corner roundness (0..1) 36 rotate: 0, // The rotation offset 37 color: '#797979', // #rgb or #rrggbb 38 speed: 1, // Rounds per second 39 trail: 67, // Afterglow percentage 40 shadow: false, // Whether to render a shadow 41 hwaccel: false, // Whether to use hardware acceleration 42 className: 'spinner', // The CSS class to assign to the spinner 43 zIndex: 2e9, // The z-index (defaults to 2000000000) 44 top: 'auto', // Top position relative to parent in px 45 left: 'auto' // Left position relative to parent in px 46 }; 47 48 var target1 = document.getElementById('work-slider'); 49 var spinner1 = new Spinner(opts).spin(target1); 50}); 51jQuery(window).load(function($){ 52 jQuery('.fourths, .slider-content').imagesLoaded(function(){ 53 jQuery('.work-slider').attr('style', 'display:none'); 54 jQuery('.fourths, .slider-content').attr('style', 'opacity:1'); 55 }); 56}) 57 58 59this.screenshotPreview = function($){ 60 61 xOffset = 10; 62 yOffset = 30; 63 64 jQuery("a.screenshot").hover(function(e){ 65 this.t = this.title; 66 this.title = ""; 67 var c = (this.t != "") ? "<br/>" + this.t : ""; 68 jQuery("body").append("<p id='screenshot'><img src='"+ this.rel +"' alt='url preview' />"+ c +"</p>"); 69 jQuery("#screenshot") 70 .css("top",(e.pageY - xOffset) + "px") 71 .css("left",(e.pageX + yOffset) + "px") 72 .fadeIn("fast"); 73 }, 74 function(){ 75 this.title = this.t; 76 jQuery("#screenshot").remove(); 77 }); 78 jQuery("a.screenshot").mousemove(function(e){ 79 jQuery("#screenshot") 80 .css("top",(e.pageY - xOffset) + "px") 81 .css("left",(e.pageX + yOffset) + "px"); 82 }); 83}; 84jQuery(document).ready(function($){ 85 86 var navbar = $('.navbar'); 87 var navbarHeight = $('.navbar').height() - 2; 88 $('.fake-navbar').height(navbarHeight); 89 90 //hover slika 91 92 var logoHeight = $('#container .navbar .brand').height(); 93 94 if($(window).width() > 980){ 95 $('.nav-collapse.collapse').height(logoHeight); 96 } 97 98 screenshotPreview(); 99 100 101 jQuery('.middle-content-left .block:last').attr('style', 'padding: 0; margin: 0; border: none;'); 102 //footer 103 jQuery('.footer-widgets .span3 .text-widget p:last').attr('style', 'margin: 0;'); 104 jQuery('.blogroll-widget ul li:last').attr('style', 'border: none; margin: 0; padding: 0;'); 105 jQuery('.twitter-widget ul li:last').attr('style', 'border: none; margin: 0; padding: 0;'); 106 jQuery('.pages-widget ul li:last').attr('style', 'border: none; margin: 0; padding: 0;'); 107 jQuery('.recent-posts-widget ul li:last').attr('style', 'border: none; margin: 0; padding: 0;'); 108 jQuery('.recent-comments-widget ul li:last').attr('style', 'border: none; margin: 0; padding: 0;'); 109 $('.footer-widgets .span3').each(function( index ) { 110 jQuery(" .block:last",this).attr('style', 'background: none;'); 111 }); 112 //comment 113 jQuery('#comments .media-list .media:last').attr('style', 'margin: 0;'); 114 // sidebar 115 jQuery('.categories-widget-sidebar ul li:last').attr('style', 'border: none; margin: 0; padding: 0;');
116 jQuery('.twitter-widget-sidebar ul li:last').attr('style', 'border: none; margin: 0; padding: 0;'); 117 jQuery('.recent-post-widget-sidebar ul li:last').attr('style', 'border: none; margin: 0; padding: 0;'); 118 jQuery('.recent-comments-widget-sidebar ul li:last').attr('style', 'border: none; margin: 0; padding: 0;'); 119 120 121 //fancybox 122 jQuery('.fancybox').fancybox(); 123 124 // Gallery Video 125 jQuery(".youtube").click(function() { 126 $.fancybox({ 127 'padding' : 0, 128 'autoScale' : false, 129 'transitionIn': 'elastic', 130 'transitionOut' : 'elastic', 131 'title' : this.title, 132 'width' : 680, 133 'height' : 495, 134 'href': this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'), 135 'type': 'swf', 136 'swf': { 137 'wmode': 'transparent', 138 'allowfullscreen': 'true' 139 } 140 }); 141 return false; 142 }); 143 144 jQuery(".vimeo").click(function() { 145 jQuery.fancybox({ 146 'padding': 0, 147 'autoScale': false, 148 'transitionIn': 'elastic', 149 'transitionOut' : 'elastic', 150 'title': this.title, 151 'width': 520, 152 'height': 300, 153 'href': this.href.replace(new RegExp("([0-9])","i"),'moogaloop.swf?clip_id=$1'), 154 'type': 'swf' 155 }); 156 return false; 157 }); 158 159 160 // slider home 161 var Page = (function() { 162 163 var $navArrows = jQuery( '#nav-arrows' ), 164 $nav = jQuery( '#nav-dots > span' ), 165 slitslider = jQuery( '#slider' ).slitslider( { 166 onBeforeChange : function( slide, pos ) { 167 168 $nav.removeClass( 'nav-dot-current' ); 169 $nav.eq( pos ).addClass( 'nav-dot-current' ); 170 171 } 172 } ), 173 174 init = function() { 175 176 initEvents(); 177 178 }, 179 initEvents = function() { 180 181 // add navigation events 182 $navArrows.children( ':last' ).on( 'click', function() { 183 184 slitslider.next(); 185 return false; 186 187 } ); 188 189 $navArrows.children( ':first' ).on( 'click', function() { 190 191 slitslider.previous(); 192 return false; 193 194 } ); 195 196 $nav.each( function( i ) { 197 198 jQuery( this ).on( 'click', function( event ) { 199 200 var $dot = $( this ); 201 202 if( !slitslider.isActive() ) { 203 204 $nav.removeClass( 'nav-dot-current' ); 205 $dot.addClass( 'nav-dot-current' ); 206 207 } 208 209 slitslider.jump( i + 1 ); 210 return false; 211 212 } ); 213 214 } ); 215 216 }; 217 218 return { init : init }; 219 220 })(); 221 222 Page.init(); 223 224 //Opening search bar 225 var searchBar = $('.search-big'); 226 var openSearch = $('.search-header button'); 227 228 openSearch.click(function(){ 229 searchBar.show(); 230 }); 231 232 // Closing search bar 233 var closeSearch = $('.search-big .close-search'); 234 235 closeSearch.click(function(){ 236 searchBar.hide(); 237 }); 238 239 // Resizable header on scroll 240 if (navbar.hasClass('fixed')) { 241 if(jQuery(window).width() > 980){ 242 $(function(){ 243 $('.navbar-inner').data('size','big'); 244 }); 245 246 $(window).scroll(function(){ 247 if($(document).scrollTop() > 30) 248 { 249 if($('.navbar-inner').data('size') == 'big') 250 { 251 $('.navbar-inner').data('size','small'); 252 $('.navbar-inner').stop().animate({ 253 padding:'10px', height:'40px' 254 },150); 255 $('.navbar .brand img').stop().animate({ 256 height:'37px' 257 },150); 258 $('.navbar .brand').stop().animate({ 259 margin:'2px 0 0 0' 260 },1); 261 $('.collapse').stop().animate({ 262 height:'40px' 263 },1); 264 } 265 } 266 else 267 { 268 if($('.navbar-inner').data('size') == 'small') 269 { 270 $('.navbar-inner').data('size','big'); 271 $('.navbar-inner').stop().animate({ 272 padding:'25px 0', height:'100%' 273 },150); 274 $('.navbar .brand img').stop().animate({ 275 height:'100%' 276 },150); 277 $('.navbar .brand').stop().animate({ 278 margin:'0' 279 },1); 280 var navbarHeight = $('.brand').height(); 281 $('.collapse').stop().animate({ 282 height:(navbarHeight) 283 },1); 284 } 285 } 286 }); 287 } 288} 289 290 291 //tab home 292 $('#myTab-home a').click(function (e) { 293 e.preventDefault(); 294 $(this).tab('show'); 295 }); 296 297 $('#myTab-single-event a').click(function (e) { 298 e.preventDefault(); 299 $(this).tab('show'); 300 }); 301 302 303 304// Flexslider comments 305 306var sliderWidth = jQuery('.flexslider-7').width(); 307var itemWidthCalc = (sliderWidth); 308 309 jQuery('.flexslider-7').flexslider({ 310 animation: "slide", 311 animationLoop: false, 312 itemWidth: itemWidthCalc, 313 controlNav: true, 314 directionNav: false, 315 slideshow: false, 316 move: 1, 317 smoothHeight: true, 318 minItems: 1 319 }); 320 321// Flexslider comments 322 323var sliderWidth = jQuery('.flexslider-8').width(); 324var itemWidthCalc = (sliderWidth); 325 326 jQuery('.flexslider-8').flexslider({ 327 animation: "slide", 328 animationLoop: false, 329 itemWidth: itemWidthCalc, 330 controlNav: true, 331 directionNav: false, 332 slideshow: false, 333 move: 1, 334 smoothHeight: true, 335 minItems: 1 336 }); 337 338 339 340}); 341 342 /*Header Cart*/ 343 jQuery('.tk-header-cart-holder ').hover( function(){ 344 jQuery('.widget_shopping_cart').css('display', 'block'); 345 }, 346 function(){ 347 jQuery('.widget_shopping_cart').css('display', 'none'); 348 }); 349 350 351 // Flexslider check grid size on resize event 352 jQuery(window).resize(function() { 353 354 var sliderWidth = jQuery('.flexslider-8').width(); 355 var itemWidthCalc = (sliderWidth); 356 357 jQuery('.flexslider-8').flexslider({ 358 animation: "slide", 359 animationLoop: false, 360 itemWidth: itemWidthCalc, 361 controlNav: true, 362 directionNav: false, 363 slideshow: false, 364 move: 1, 365 smoothHeight: true, 366 minItems: 1 367 }); 368 369}); 370 371jQuery(window).resize(function() { 372 var logoHeight = jQuery('#container .navbar .brand').height(); 373 if(jQuery(window).width() > 980){ 374 jQuery('.nav-collapse.collapse').height(logoHeight); 375 } 376});
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.