A Pen by foleyatwork on CodePen.
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> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
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
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; | |
} | |
}; |
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
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'); |
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
$(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(); |
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(){ | |
var shrinkHeader = 400; | |
$(window).scroll(function() { | |
var scroll = getCurrentScroll(); | |
if ( scroll == shrinkHeader ) { | |
$('.flechita').fadeIn("slow"); | |
} | |
else { | |
$('.flechita').fadeOut("slow"); | |
} |
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 | |
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)) { |
LESS mixin to position items in circle
A Pen by Jorge Epuñan on CodePen.
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
<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> |
NewerOlder