This file contains hidden or 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 checkMail(email){ | |
| var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; | |
| if (filter.test(email)) { | |
| return true; | |
| } | |
| return false; | |
| } |
This file contains hidden or 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 embedYoutube(link, ops) { | |
| var o = $.extend({ | |
| width: 480, | |
| height: 320, | |
| params: '' | |
| }, ops); | |
| var id = /\?v\=(\w+)/.exec(link)[1]; | |
This file contains hidden or 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
| $.fn.fadeAll = function (ops) { | |
| var o = $.extend({ | |
| delay: 500, // delay between elements | |
| speed: 500, // animation speed | |
| ease: 'swing' // other require easing plugin | |
| }, ops); | |
| var $el = this; | |
| for (var i=0, d=0, l=$el.length; i<l; i++, d+=o.delay) { | |
| $el.eq(i).delay(d).fadeIn(o.speed, o.ease); | |
| } |
This file contains hidden or 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 isValidDate(value, userFormat) { | |
| // Set default format if format is not provided | |
| userFormat = userFormat || 'mm/dd/yyyy'; | |
| // Find custom delimiter by excluding | |
| // month, day and year characters | |
| var delimiter = /[^mdy]/.exec(userFormat)[0]; | |
| // Create an array with month, day and year |
This file contains hidden or 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
| <p>fkdløfkdsløfkødlslø |
This file contains hidden or 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> | |
| <head> | |
| <meta charset=utf-8> | |
| <title>Test</title> | |
| </head> | |
| <body> | |
| <body> | |
| </html> |