This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($){ | |
$(".all-portfolios").isotope({ | |
itemSelector: '.single-portfolio', | |
layoutMode: 'fitRows', | |
}); | |
$('ul.filter li').click(function(){ | |
$("ul.filter li").removeClass("active"); | |
$(this).addClass("active"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_enqueue_scripts', 'jk_masonry' ); | |
function jk_masonry() { | |
wp_enqueue_script( 'jquery-masonry', array( 'jquery' ) ); | |
} | |
/* | |
How to use? | |
$('#container').masonry({ singleMode: true }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// in functions.php | |
add_theme_support( 'post-thumbnails'); | |
/* | |
Wordpress crop an image = 5 size. Sizes are given below | |
thumbnail // Thumbnail (default 150px x 150px max) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> | |
<html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// How to show loading-div after submitting a form with jQuery? | |
$('.formtrigger').click(function() { | |
$('#loading').show(); | |
$('#form').submit(); | |
}); | |
/*When I click the button, the form is submitted, but the loading-div doesn't appear. | |
I tried the line "$('#loading').show();" without binding it on the click-event and it worked. I also tried this code: */ | |
$('.formtrigger').click(function() { | |
alert('blablabla'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example One | |
<script> | |
setTimeout(function() { | |
document.body.style.background = 'red'; | |
}, 3000); | |
window.onload = function() { | |
document.body.style.background = 'green'; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Press Alt-F11, double-click This Workbook, then copy this code into the resulting window (essentially only one line of code!) | |
Sub RemoveHyper() | |
Selection.Hyperlinks.Delete | |
End Sub | |
2. Press Alt-F11 to go back to your spreadsheet, select all the cells with hyperlinks, then do Alt, T, M, M (or Alt-F8) and select the RemoveHyper Macro, then select Run. | |
3. When you're done, if you want to remove the Macro, either save the file as .xlsx, or press Alt-F11 and remove the code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="navbar-collapse collapse"> | |
<ul class="nav navbar-nav"> | |
<li class="active smooth-scroll"><a href="#home">Home</a></li> | |
<li class="smooth-scroll"><a href="#about">About</a></li> | |
<li class="smooth-scroll"><a href="#igredients">Igredients</a></li> | |
<li class="smooth-scroll"><a href="#food-menu">Menu</a></li> | |
<li class="smooth-scroll"><a href="#reviews">Reviews</a></li> | |
<li class="smooth-scroll"><a href="#contact">Reservations</a></li> | |
</ul> | |
</div> |
OlderNewer