<router-link :to="-1">
<a @click="$router.go(-1)">back</a>
method() {
this.$router.go(-1)
}
setTimeout(() => {
!function(t,i,e,s){...}(jQuery,window,document);
}, 2000)
``
, когда текст будет как одно целое $.fancybox.open({
src: '.success',
type: 'inline'
});
function shuffle(array) {
var currentIndex = array.length, temporaryValue, randomIndex;
while (0 !== currentIndex) {
randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex -= 1;
temporaryValue = array[currentIndex];
array[currentIndex] = array[randomIndex];
array[randomIndex] = temporaryValue;
}
return array;
}
.babelrc
добавить плагин transform-object-rest-spread
{
"presets": [
[
"env",
{
"modules": false,
"targets": {
"browsers": ["last 2 versions", "ie >= 10"]
}
}
]
],
"plugins": ["transform-object-rest-spread"],
"comments": false
}
window.onload = () => {
const h2 = document.querySelectorAll('h2');
[...h2].map(item => {
item.addEventListener('mousemove', e => {
e.target.style.color = 'yellow';
});
item.addEventListener('mouseout', e => {
e.target.style.color = 'red';
});
});
}