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"> | |
<meta name="description" content="Sample HTML5 Layout"> | |
<meta name="keywords" content="keyword 1, keyword 2, keyword 3"> | |
<meta name="author" content="Beatriz Sopeña Merino"> | |
<meta name="copyright" content="" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
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 BrowserDetection() { | |
var browser; | |
if ((navigator.userAgent.indexOf("MSIE") != -1) || (!!document.documentMode == true)) { | |
browser = "IE"; | |
} else if (navigator.userAgent.indexOf("Edge") != -1) { | |
browser = "Edge"; | |
} else if (navigator.userAgent.indexOf("Chrome") != -1) { | |
browser = "Chrome"; | |
} else if (navigator.userAgent.indexOf("Firefox") != -1) { |
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.addEventListener("click", function (e) { | |
e.preventDefault(); | |
console.dir(e.target); | |
}); |
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 () { | |
// open popup | |
$(".popup__button-open").on("click", function () { | |
var $this = $(this), | |
$thisPopUp = $this.closest(".swiper-slide").find('.popup'); | |
$thisPopUp.clone().appendTo(".global-locations").addClass("is-view"); | |
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 validation(num) { | |
if (num == "undefined" || num == null || num == "") { | |
console.log("Inserta un número."); | |
return 0; | |
} else { | |
if (isNaN(num) && num !== "") { | |
console.log("Ups... " + "'" + + num + "'" + " no es un número."); | |
return 1; | |
} else { | |
if (num % 1 == 0) { |
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
if(window.history.replaceState){ | |
window.history.replaceState(null, null, window.location.href); | |
} |
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 svgMe | |
* @description Version with Vanilla Javascript ES5 | |
* Converts an `<img>` tag, with a `.svg` extention and a class `svgMe`, into a `<svg>` tag. | |
* @return {object} Return the file svg | |
*/ | |
function svgMe() { | |
console.info( | |
"%cSvgMe__javascriptES5", | |
"padding: 0.2rem 0.5rem; background-color: rgb(17, 176, 200); color: #fff;" |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Mi primer Service worker</title> | |
</head> |
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
FOLDERS & FILES | |
--------------------------- | |
-> Entrar dentro de un directorio | |
cd <nameFolder> | |
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
// ABSTRACTS - MIXINS | |
// variables-root | |
// ================================================= | |
// Creation of the mixin: root-prop | |
@mixin root-prop($prop: null, $value: null) { | |
@if ($prop and $value) { | |
#{$prop}: $value; |
OlderNewer