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
::-webkit-input-placeholder { | |
color: #999; | |
} |
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
:-moz-placeholder { | |
color: #999; | |
} |
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
:-ms-input-placeholder { | |
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
:focus::-webkit-input-placeholder{ | |
color:transparent; | |
} |
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
var getItem = function(obj, i) { | |
var key, arr = []; | |
for (key in obj) { | |
arr.push(obj[key]); | |
} | |
return arr[i]; | |
}; |
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
var getRealType = function (o) { | |
return Object.prototype.toString.call(o).match(/\w+/g)[1].toLowerCase(); | |
}; |
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
/** | |
* @author: joseph chapman | |
* @dependencies: sky | |
* @name: validator | |
* @dependencies validator.types and validator.config | |
*/ | |
(function($, window, validator, undefined) { |
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
(function($, window, validator, undefined) { | |
validator.types = { | |
isValidEmail: { | |
validate: function(value) { | |
return '/^$/'.test(value); | |
}, | |
instructions: 'Please enter a valid email address', | |
errorHandler: function() { | |
validate.instructions; |
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
(function ($, window, validator, undefined) { | |
validator.config = { | |
email: 'isValidEmail', | |
name: 'notEmpty' | |
}; | |
}(jQuery, window, (validator || {})); |
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
var arr = ['b', 'f', 'a', 'z', 't']; | |
arr.sort(); | |
// Result | |
a,b,f,t,z |
OlderNewer