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
$(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
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
<!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
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
// ABSTRACTS - MIXINS | |
// variables-root | |
// ================================================= | |
// Creation of the mixin: root-prop | |
@mixin root-prop($prop: null, $value: null) { | |
@if ($prop and $value) { | |
#{$prop}: $value; |
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
*, | |
&:after, | |
&:before { | |
margin: 0; | |
padding: 0; | |
border-box: box-sizing; | |
font-family: sans-serif; | |
} | |
html, body, div, span, applet, object, iframe, |
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 getListClassCss() { | |
let list = []; | |
let selectorsAll = document.querySelectorAll("[class]"); | |
selectorsAll.forEach((event) => { | |
let selectorClassAll = event.getAttribute("class").split(" "); | |
selectorClassAll.forEach( | |
(classCss) => { | |
if (classCss.length > 0 && list.indexOf(classCss) < 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 getClosest | |
* @description Get the parent element with a specific selector | |
* @param {Element} sonElement - Son node | |
* @param {String} parentSelector - Parent selector | |
* @returns {Element|null} | |
*/ | |
function getClosest(sonElement, parentSelector) { | |
// Element.matches() polyfill |
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
<svg data-name="loader-cloud" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 267.6 168"> | |
<title>loader-cloud</title> | |
<linearGradient id="gradient" x1="0%" y1="0%" x2="0%" y2="100%"> | |
<stop offset="0%" stop-color="#3be0ec" /> | |
<stop offset="100%" stop-color="#5eaefd" /> | |
</linearGradient> | |
<path data-name="circle-1" d="M54.77,67.09A50,50,0,1,1,51,67c1.26,0,2.51,0,3.75.14" stroke="url(#gradient)" /> | |
<path data-name="circle-2" d="M110.71,34.41a49.51,49.51,0,1,1-9.08-.84,49.51,49.51,0,0,1,9.08.84" stroke="url(#gradient)" /> | |
<path data-name="circle-3" d="M110.71,34.4a65.45,65.45,0,1,1-8.37,32,65.42,65.42,0,0,1,8.37-32" stroke="url(#gradient)"/> | |
<path data-name="circle-4" d="M233.22,70.65A49.55,49.55,0,1,1,217.12,68a49.53,49.53,0,0,1,16.1,2.67" stroke="url(#gradient)" /> |
OlderNewer