I could really use some assistance with this. I created a YouTube example, which can be viewed in this PLNKR LINK: http://plnkr.co/edit/44EQKSjP3Gl566wczKL6?p=preview
In my folder named embed
, I have files titled p9zdCra9gCE
and QrMOu4GU3uU
, as shown below:
<div class="ytid" data-str="p9zdCra9gCE">video 1</div>
<div class="ytid" data-str="QrMOu4GU3uU">video 2</div>
I am wondering if there is a way to automatically display any new files like p9zdCra9gCE.html
or QrMOu4GU3uU.html
that are added to the embed
folder on the index page. It should appear alongside other video buttons like this:
<div class="ytid" data-str="p9zdCra9gCE">video 1</div>
<div class="ytid" data-str="QrMOu4GU3uU">video 2</div>
<div class="ytid" data-str="AnotherFile">video 3</div>
<div class="ytid" data-str="AnotherFile">video 4</div>
<div class="ytid" data-str="AnotherFile">video 5</div>
Any suggestions on how to achieve this?