Skip to content

Instantly share code, notes, and snippets.

View zdimaz's full-sized avatar
😄

zdimaz

😄
View GitHub Profile
@zdimaz
zdimaz / script.plugins.js
Created May 12, 2020 08:39
jq ajax form simple
/* ==============================================
Name function
============================================== */
if($("form").length){
$('form').submit(function(e) {
e.preventDefault();
@zdimaz
zdimaz / style.css
Last active February 19, 2021 15:45
css basic grid
/* --------------------------------------------
basic float grid
-------------------------------------------- */
.row {
margin-left: -15px;
margin-right: -15px;
}
.row::before,
@zdimaz
zdimaz / disabled write words to input
Last active July 28, 2021 08:41
disabled write words to input
.replace(/[^0-9]/g, '');
exapmle
var val = $(this).prop("value").replace(/[^0-9]/g, '');
/**
** Input Number
**/
inputNumber: function(){
@zdimaz
zdimaz / js
Last active October 25, 2021 08:27
btn to top scroll
js
$(window).on("scroll", function(){
if ($(this).scrollTop() > 100) {
$('.btn_scrollup').fadeIn();
} else {
$('.btn_scrollup').fadeOut();
}
});
@zdimaz
zdimaz / The Wizard of Oz, 1939
Last active December 21, 2021 11:46
emits vue 3 js
<!--
From the child component, you want to do an "emit".
This tells the parent to run the callback specified
in the child component reference. Psuedo code:
-->
<child>
<button @click="send()">Click Me</button>
methods: {