Closed ioanalazar42 closed 4 years ago
The popup will contain four html div elements
dataWindow
bttnDiv
ytDataDiv
twitterDataDiv
prepareYTPosts(marker)
prepareTwitterPosts(marker)
setContent()
UniqueWindowHandler
prepareYTPosts
createIframeById
getVideosNode
prepareTwitterPosts
getTrends
createTrendElement
Frontend changes
The popup will contain four html div elements
dataWindow
and nested in it:bttnDiv
) - with the two buttons for YouTube and TwitterytDataDiv
) - where YouTube data will be saved once a popup is opentwitterDataDiv
) - where Twitter data will be saved once a popup is openWhen user clicks on a marker
dataWindow
is created andbttnDiv
is appended to itytDataDiv
andtwitterDataDiv
are initializedprepareYTPosts(marker)
is called toytDataDiv
ytDataDiv
is appended todataWindow
prepareTwitterPosts(marker)
is called totwitterDataDiv
(to be displayed if user clicks on Twitter button)Change popup content when user clicks on YouTube/Twitter buttons
dataWindow
(reinitalize it)ytDataDiv
ortwitterDataDiv
(which contain the saved data)setContent()
to display the data(This behavior is controlled by the class
UniqueWindowHandler
)Other changes
prepareYTPosts
,createIframeById
,getVideosNode
prepareTwitterPosts
,getTrends
,createTrendElement