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
/* ============================================== | |
Name function | |
============================================== */ | |
if($("form").length){ | |
$('form').submit(function(e) { | |
e.preventDefault(); |
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
/* -------------------------------------------- | |
basic float grid | |
-------------------------------------------- */ | |
.row { | |
margin-left: -15px; | |
margin-right: -15px; | |
} | |
.row::before, |
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
.replace(/[^0-9]/g, ''); | |
exapmle | |
var val = $(this).prop("value").replace(/[^0-9]/g, ''); | |
/** | |
** Input Number | |
**/ | |
inputNumber: function(){ |
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 | |
$(window).on("scroll", function(){ | |
if ($(this).scrollTop() > 100) { | |
$('.btn_scrollup').fadeIn(); | |
} else { | |
$('.btn_scrollup').fadeOut(); | |
} | |
}); |
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
<!-- | |
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: { |
OlderNewer