Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save FinalDestiny/5710047b23afc80705c00a21dc10cb80 to your computer and use it in GitHub Desktop.
Save FinalDestiny/5710047b23afc80705c00a21dc10cb80 to your computer and use it in GitHub Desktop.
<script>
jQuery( document ).ready(function() {
jQuery(window).scroll(function(){
var winHeight = jQuery(this).height();
var fixMenuheight = jQuery('.fix-menu').height();
var thePos = winHeight - fixMenuheight - 1;
if (jQuery(this).scrollTop() > thePos) {
jQuery('#main-header').addClass('active');
} else {
jQuery('#main-header').removeClass('active');
}
});
});
</script>
<script type="text/javascript">
(function($) {
$(document).ready(function() {
window.et_pb_circle_counter_init = function($the_counter, animate) {
if ( 0 === $the_counter.width() ) {
return;
}
$the_counter.easyPieChart({
animate: {
duration: 1800,
enabled: true
},
size: 0 !== $the_counter.width() ? $the_counter.width() : 10,
barColor: $the_counter.data( 'bar-bg-color' ),
trackColor: $the_counter.data( 'color' ) || '#000000',
trackAlpha: $the_counter.data( 'alpha' ) || '0.1',
scaleColor: false,
lineWidth: 10,
onStart: function() {
$(this.el).find('.percent p').css({ 'visibility' : 'visible' });
},
onStep: function(from, to, percent) {
$(this.el).find('.percent-value').text( Math.round( parseInt( percent ) ) );
},
onStop: function(from, to) {
$(this.el).find('.percent-value').text( $(this.el).data('number-value') );
}
});
}
$et_pb_circle_counter = $( '.et_pb_circle_counter' );
if ( $et_pb_circle_counter.length) {
$( '.et_pb_circle_counter' ).each(function(){
window.et_pb_circle_counter_init($(this));
});
}
});
})(jQuery)
</script>
<script type="text/javascript">
jQuery( document ).ready(function() {
jQuery(".et_social_count_label").text("Seguidores");
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment