Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1044662
smiley.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jun 25, 1:34 PM
Size
785 B
Mime Type
text/plain
Expires
Fri, Jun 27, 1:34 PM (2 h, 2 m)
Engine
blob
Format
Raw Data
Handle
675655
Attached To
rINP In-Portal
smiley.js
View Options
function
AddToText
(
str
)
{
d
=
document
.
getElementById
(
'textbody'
);
d
.
value
=
d
.
value
+
str
;
d
.
focus
();
return
;
}
function
AddTagWithText
(
tag
)
{
str
=
'['
+
tag
+
']'
;
inText
=
window
.
prompt
(
'Enter text to appear inside the tag:'
,
''
);
if
(
inText
!=
null
)
{
str
=
str
+
inText
+
'[/'
+
tag
+
']'
;
AddToText
(
str
);
}
}
function
AddURL
()
{
str
=
'[URL'
;
href
=
window
.
prompt
(
'Enter address to link to:'
,
'http://'
);
if
(
href
!=
null
)
{
str
=
str
+
' href=\"'
+
href
+
'\"]'
;
name
=
window
.
prompt
(
'Text to display for link:'
,
href
);
if
(
name
!=
null
)
{
str
=
str
+
name
+
'[/URL]'
;
AddToText
(
str
);
}
}
}
function
AddList
()
{
str
=
'[UL]\n [*]\n[/UL]'
;
AddToText
(
str
);
}
Event Timeline
Log In to Comment