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
$(document).live('click', '#cupon_danet3D', function(event){ | |
var re = /(.*)danet(.*)/g, | |
//url = document.referrer, | |
url = document.location.ancestorOrigins[0], | |
matched = url.match(re); | |
if(matched){ | |
event.preventDefault(); | |
var urlCupon = $('#cupon_danet3D').attr('href'), | |
paramDanet = '?utm_source=Danetiframe&utm_medium=Banner_Cupon&utm_campaign=Imprime_Cupon_Productos'; |
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
/** | |
* For modern browsers | |
* 1. The space content is one way to avoid an Opera bug when the | |
* contenteditable attribute is included anywhere else in the document. | |
* Otherwise it causes space to appear at the top and bottom of elements | |
* that are clearfixed. | |
* 2. The use of `table` rather than `block` is only necessary if using | |
* `:before` to contain the top-margins of child elements. | |
*/ | |
.cf:before, |
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
//Animate to Ancla | |
//scrollToAnchor('top'); | |
function scrollToAnchor(aid){ | |
var aTag = $("a[name='"+ aid +"']"); | |
$('html,body').animate({scrollTop: aTag.offset().top},'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
$('html, body').animate({scrollTop:0}, '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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Untitled</title> | |
<!--[if lt IE 9]> | |
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
</head> | |
<body> |
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
.loading { | |
display: none; | |
position:absolute; | |
width:100%; | |
height:100%; | |
background:#FFFFFF url(../images/loading.gif) 50% 50% no-repeat; | |
left:0px; | |
top:0px; | |
opacity:0.8; | |
filter:alpha(opacity=80); |
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
$(document).ready(function(){ | |
$("p").filter(".intro").css("background-color", "yellow"); | |
}); | |
/* | |
<h1>Welcome to My Homepage</h1> | |
<p>My name is Donald.</p> | |
<p class="intro">I live in Duckburg.</p> | |
<p class="intro">I love Duckburg.</p> |
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 isJSON(str) { | |
try { | |
return (JSON.parse(str) && !!str); | |
} catch (e) { | |
return 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
<style> | |
.page-loader { | |
background: #fff; | |
position: fixed; | |
top: 0; | |
bottom: 0; | |
right: 0; | |
left: 0; | |
z-index: 9998; |
OlderNewer