Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7892587
embed.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
942 B
Referenced Files
None
Subscribers
None
embed.js
View Options
(
function
()
{
'use strict'
var
ready
=
function
(
loaded
)
{
if
([
'interactive'
,
'complete'
].
indexOf
(
document
.
readyState
)
!==
-
1
)
{
loaded
()
}
else
{
document
.
addEventListener
(
'DOMContentLoaded'
,
loaded
)
}
}
ready
(
function
()
{
var
iframes
=
[]
window
.
addEventListener
(
'message'
,
function
(
e
)
{
var
data
=
e
.
data
||
{}
if
(
data
.
type
!==
'setHeightPleromaEmbed'
||
!
iframes
[
data
.
id
])
{
return
}
iframes
[
data
.
id
].
height
=
data
.
height
});
[].
forEach
.
call
(
document
.
querySelectorAll
(
'iframe.pleroma-embed'
),
function
(
iframe
)
{
iframe
.
scrolling
=
'no'
iframe
.
style
.
overflow
=
'hidden'
iframes
.
push
(
iframe
)
var
id
=
iframes
.
length
-
1
iframe
.
onload
=
function
()
{
iframe
.
contentWindow
.
postMessage
({
type
:
'setHeightPleromaEmbed'
,
id
:
id
},
'*'
)
}
iframe
.
onload
()
})
})
})()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 2, 4:30 AM (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
480609
Default Alt Text
embed.js (942 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment