TerraME / publish

GNU General Public License v3.0
4 stars 9 forks source link

Report:addVideo() #229

Open pedro-andrade-inpe opened 4 years ago

pedro-andrade-inpe commented 4 years ago

Implement Report:addVideo():

Report:addVideo{
    width=560,
    height=315,
    url = "https://www.youtube.com/embed/_O4TXbfYPng"
}

It will produce the following code:

"<center><iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/_O4TXbfYPng\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe></center>"
CristianoAugustoChico commented 4 years ago

The new function was created and tested.