Name=Java Script
Description=Java Script Code Snippets
FileTypes=js,html,htm
LanguageID=$0409
Language=Inglés (Estados Unidos)
Name=Headers\File
Shortcut=filehdr
/////////////////////////////////////////////////////////////////////////////
// #%FILENAME%#
//
// Time: #%LONGDATE%# #%TIME24%#
// Author: #@Author@#
// Organization: #@Organization@#
// Description: #@Description@#
/////////////////////////////////////////////////////////////////////////////
Name=Headers\Function
Shortcut=funchdr
/////////////////////////////////////////////////////////////////////////////
// Name: #@Function Name@#
// Description: #@Description@#
//
// Arguments: #@Arguments@#
//
// Return: #@Return Value@#
//
// Author: #@Author@#
// Time: #%LONGDATE%# #%TIME24%#
/////////////////////////////////////////////////////////////////////////////
Name=Headers\Section
Shortcut=sechdr
/////////////////////////////////////////////////////////////////////////////
//
// #@Section Name@#
//
/////////////////////////////////////////////////////////////////////////////
Name=Functions\Function
Shortcut=func
function #@Name@# ( #@Arguments@# )
{
##
}
Name=Sentences\for (...)
Shortcut=for
for (#@Initial Expression@#; #@Stop Condition@#; #@Change Value@#)
{
##
}
Name=Sentences\if (...)
Shortcut=if
if (#@Condition@#)
{
##
}
Name=Sentences\if (...) else
Shortcut=ifelse
if (#@Condition@#)
{
##
}
else
{
}
Name=Sentences\switch (...)
Shortcut=switch
switch (#@Expression@#)
{
#%SELTEXT%#^$
}
Name=Sentences\try catch (...)
Shortcut=try
try
{
##
}
catch (#@Exception to capture@# e)
{
}
Name=Sentences\while (...)
Shortcut=while
while (#@Condition@#)
{
##
}
Name=Others\Browser Information
Shortcut=naver
function BrowserInfo()
{
#%TAB%#alert(this.name);
#%TAB%#alert(this.codename);
#%TAB%#alert(this.version);
#%TAB%#alert(this.platform);
#%TAB%#alert(this.javaEnabled);
}
Name=Others\E-Mail Validation
Shortcut=ismail
//strEmail: e-mail to validate.
function isMail(strEmail)
{
#%TAB%#var emailReg = /^[a-z][a-z-_0-9\.]+@[a-z-_=>0-9\.]+\.[a-z]{2,3}$/i
#%TAB%#return emailReg.test(strEmail);
}
Name=Others\Print Page
Shortcut=printpage
function printPage()
{
#%TAB%#print(document);
}
Name=Others\Resolution Detection
Shortcut=res
function detectRes()
{
#%TAB%#alert(screen.Width + "x" + screen.Height);
}
Name=Others\Message
Shortcut=msg
alert('#@Message to show@#');
Name=Others\Redirect
Shortcut=redir
function redirect(URLStr)
{
#%TAB%#location = URLStr;
}
Name=Others\Status Bar Message
Shortcut=stbar
function setStatusBar(msgStr)
{
#%TAB%#self.status = msgStr;
}
Name=Others\Starter Script
Shortcut=script