Skip to content

Instantly share code, notes, and snippets.

View ginirsss's full-sized avatar

Gino Farías Milla ginirsss

View GitHub Profile
@ginirsss
ginirsss / A-Pen-by-Jorge-Epuñan.markdown
Created February 6, 2014 16:51
A Pen by Jorge Epuñan.
@ginirsss
ginirsss / SassMeister-input-HTML.html
Created February 18, 2014 19:45
Generated by SassMeister.com.
<p class="message-info">You might want to know this.</p>
<p class="message-error">There might be something wrong.</p>
<p class="message-alert">You should pay attention!</p>
<p class="message-valid">Everything is okay, move on.</p>
@ginirsss
ginirsss / Fade-on-Scroll.markdown
Created May 19, 2014 21:37
A Pen by foleyatwork.
<?php
class WP_HTML_Compression {
protected $compress_css = true;
protected $compress_js = true;
protected $info_comment = true;
protected $remove_comments = true;
protected $html;
public function __construct($html) {
if (!empty($html)) {
$(function(){
var shrinkHeader = 400;
$(window).scroll(function() {
var scroll = getCurrentScroll();
if ( scroll == shrinkHeader ) {
$('.flechita').fadeIn("slow");
}
else {
$('.flechita').fadeOut("slow");
}
@ginirsss
ginirsss / resize.example
Created May 24, 2016 21:17
resize element
$(window).resize(function() {
$(".fondo-completo").width($(window).width() );
$(".fondo-completo").width($(window).width() - 40);
$(".fondo-completo").height($(window).height() );
$(".fondo-completo").height($(window).height() - 40);
}).resize();
window.onload = function (event) {
//window.location.hash = "#diseno-funcional";
if(window.location.hash == '#diseno-funcional') {
// Fragment exists
$("#click-diseno-funcional").trigger('click');
}
if(window.location.hash == '#arquitectura-distribucion') {
// Fragment exists
$("#click-arquitectura-distribucion").trigger('click');
window.onload = function (event) {
switch(window.location.hash) {
case '#diseno-funcional':
$("#click-diseno-funcional").trigger('click');
break;
case '#arquitectura-distribucion':
$("#click-arquitectura-distribucion").trigger('click');
break;
}
};