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
//** Relative path to files | |
@font-path: 'font/path/'; | |
//** A default mixin to be used for fonts. | |
.fontface(@family, @filename-base, @weight, @style, @svgID){ | |
@font-face { | |
font-family: '@{family}'; | |
src: url('@{font-path}@{filename-base}.eot'); | |
src: url('@{font-path}@{filename-base}.eot?#iefix') format('embedded-opentype'), | |
url('@{font-path}@{filename-base}.woff2') format('woff2'), |
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).on('click', '.accordion', function(){ | |
//Functionality of the accordion here | |
//Google Maps fix | |
google.maps.event.trigger(MYMAP.map, 'resize'); | |
}); |
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($) { | |
var $sync1 = $(".big-images"), | |
$sync2 = $(".thumbs"), | |
flag = false, | |
duration = 300; | |
$sync1.owlCarousel({ | |
items: 1, | |
margin: 10, | |
nav: false, | |
dots: false |
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
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
jQuery("#msgid").html("This is Hello World by JQuery"); | |
}); | |
</script> | |
This is Hello World by HTML |
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
(function($) { | |
$('#toggle').click(function() { | |
$(this).toggleClass('active'); | |
$('#overlay').toggleClass('open'); | |
}); | |
//Jumbotron scroll button click (there is also hide function bellow to hide it after scroll) | |
var height_jumbotron_scroll = $(window).height()/2+100; |
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
nav.navbar { | |
padding: 30px 0; | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 if ( has_post_thumbnail() ) : ?> | |
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> | |
<?php the_post_thumbnail(); ?> | |
</a> | |
<?php endif; ?> |
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
function home_navbar_toggle() { | |
if ($(window).scrollTop() > 100) { | |
$('nav.navbar-home').addClass('nav-scrolled'); | |
} | |
else { | |
$('nav.navbar-home').removeClass('nav-scrolled'); | |
} | |
}; |
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
$transition_link: all 0.3s ease; | |
@mixin link ($link, $visited, $hover, $active) { | |
& { | |
color: $link; | |
transition: $transition_link; | |
&:visited { | |
color: $visited; | |
} | |
&:hover { |
OlderNewer