Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1045420
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
Thu, Jun 26, 6:24 AM
Size
785 B
Mime Type
text/plain
Expires
Sat, Jun 28, 6:24 AM (4 h, 29 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