Skip to content

Instantly share code, notes, and snippets.

View ginirsss's full-sized avatar

Gino Farías Milla ginirsss

View GitHub Profile
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
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;
}
};
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');
@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();
$(function(){
var shrinkHeader = 400;
$(window).scroll(function() {
var scroll = getCurrentScroll();
if ( scroll == shrinkHeader ) {
$('.flechita').fadeIn("slow");
}
else {
$('.flechita').fadeOut("slow");
}
<?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)) {
@ginirsss
ginirsss / Fade-on-Scroll.markdown
Created May 19, 2014 21:37
A Pen by foleyatwork.
@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>