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
floatValidator(event) { | |
const value = event.target.value; | |
const key = event.key; | |
const newValue = value + key; | |
const patternZeroInBeginning = /^0+(\d)/; | |
const patternNumber = /\d/; | |
if ((key !== '.' && !patternNumber.test(key)) || value && key === '.' && value.indexOf('.') > 0) { | |
event.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
// Place your settings in the file "User/Preferences.sublime-settings", which | |
// overrides the settings in here. | |
// | |
// Settings may also be placed in file type specific options files, for | |
// example, in Packages/Python/Python.sublime-settings for python files. | |
{ | |
// Sets the colors used within the text area | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
// Note that the font_face and font_size are overridden in the platform |
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
//html | |
<body> | |
<div class="wrapper"> | |
<div class="top bar"></div> | |
<div class="middle bar"></div> | |
<div class="bottom bar"></div> | |
</div> | |
</body> | |
//css |
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
&:after | |
content: "" | |
display: block | |
height: 1px | |
background-color: #fff | |
position: absolute | |
right: 50% | |
left: 50% | |
bottom: 0 | |
transition: all 300ms |
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
$('a[data-target^="anchor"]').bind('click.smoothscroll', function(){ | |
var target = $(this).attr('href'), | |
bl_top = $(target).offset().top - 70; | |
$('body, html').animate({scrollTop: bl_top}, 700); | |
return false; | |
}); |
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
$("#header").removeClass("default"); | |
$(window).scroll(function(){ | |
if ($(this).scrollTop() > 20) { | |
$("#header").addClass("default").fadeIn('fast'); | |
} else { | |
$("#header").removeClass("default").fadeIn('fast'); | |
}; | |
}); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>uniMail</title> | |
</head> | |
<body> | |
<form> |
NewerOlder