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> | |
<a href="#cfd" @click="updateLink()"> | |
</template> | |
<script> | |
export default { | |
methods: { | |
updateLink: function() { | |
var href = event.currentTarget.getAttribute('href'); | |
history.pushState("", "", "cfd_products"+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
$('textarea').on('input', function () { | |
$(".js-countChar").fadeIn(); | |
}); | |
$('textarea').on('input', updateCount); | |
function updateCount() { | |
var cs = [150 - $(this).val().length]; | |
$('#characters').text(cs); | |
} |
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
.selector::-webkit-scrollbar { | |
width: 5px; | |
} | |
.selector::-webkit-scrollbar-track { | |
-webkit-box-shadow: transparent; | |
} | |
.selector::-webkit-scrollbar-thumb { | |
border-radius: 10px; | |
background: #40c4e8; | |
-webkit-box-shadow: none; |
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
<input | |
type="text" | |
placeholder="enter your text" | |
onfocus="this.placeholder = ''" | |
onblur="this.placeholder = 'enter your text'" /> |
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
$('#list').change(function() { | |
if ($(this).val() === '2') { | |
// Do something for option "b" | |
} | |
}); |
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
$('#price_per_item, #price_per_item2').length) { | |
$('#price_per_item, #price_per_item2').mask('000 000 000,00₴', {reverse: true} | |
); | |
}); |
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
$("input[id=pickAgeStart]").on('keyup click change', function () { | |
$('.ageStart').html($(this).val()); | |
}); |
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
$('#banner_link').inputmask("url", { | |
mask: "https://www.*{1,20}[.*{1,20}]", | |
greedy: false, | |
clearMaskOnLostFocus: false, | |
clearIncomplete: false, | |
definitions: { | |
'*': { | |
validator: "[0-9A-Za-z!#$%&'*+/=?^_`{|}~\-]", | |
cardinality: 1, | |
casing: "lower" |
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
$('.js-checkWeb').click(function () { | |
if ($('#banner_link').val() === '') { //check if value is empty | |
$('#banner_link').val('your message here').css('color', 'red'); | |
} | |
}); |
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
$('.js-startBannerCamp').click(function () { | |
window.location.href = "/advert/"; //insert yor link here | |
}); |
NewerOlder