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
<template> | |
<div class="text-xs-center"> | |
<v-pagination | |
v-model="page" | |
:length="6" | |
></v-pagination> | |
</div> | |
</template> | |
<script> |
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
<template> | |
<v-card class="mx-auto" color="grey lighten-4" max-width="600"> | |
<v-card-title> | |
<v-icon :color="checking ? 'red lighten-2' : 'indigo'" class="mr-5" size="64" @click="takePulse"> | |
mdi-heart-pulse | |
</v-icon> | |
<v-layout column align-start> | |
<div class="caption grey--text text-uppercase"> | |
Heart rate | |
</div> |
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
/* ==== Block Component ==================================== */ | |
.card { | |
} | |
/* ==== Element the depend on block ======================== */ | |
.card__image { | |
} | |
.card__description { |
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
// <ul class="frontend"> | |
// <li>HTML5</li> | |
// <li>CSS3</li> | |
// <li>Bootstrap</li> | |
// <li>JavaScript</li> | |
// <li>jQuery</li> | |
// <li>react.js</li> | |
// </ul> | |
let myList = document.querySelector('.frontend') |
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
const config = [ | |
{ | |
selector: 'body h4', | |
copy: 'We added the following items to basket from your previous visit.', | |
}, | |
{ | |
selector: '.classname .btn--green', | |
copy: 'Thank you', | |
}, | |
{ |
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
var poller = setInterval(function() { | |
if ($('.element_name').length) { | |
console.log("Exists!"); | |
clearInterval(poller); | |
} | |
}, 100); |
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
// How to detect when mouse pointer leaves viewport | |
document.addEventListener("mouseleave", function(e){ | |
if( e.clientY < 0 ) | |
{ | |
alert("Hey don't leave. we have some offer for you"); | |
} | |
}, false); | |
//for more detail- http://qnimate.com/exit-intent-using-javascript |
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
//stateless functional Component ========================================================================================= | |
//without arrow function ************* | |
function Hello(props){ | |
return ( | |
<> | |
<h1>Hello, {props.name}</h1> | |
</> | |
) | |
}; |
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
//stateful class Component ========================================================================================= | |
import React, { Component } from 'react'; | |
class Welcome extends Component { | |
render(){ | |
return <h2>Class Component</h2> | |
} | |
} | |
export default Welcome |
OlderNewer