Guest User

Untitled

a guest
Sep 13th, 2021
42
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <head>
  2. <script src="https://cdn.podlove.org/web-player/5.x/embed.js"></script>
  3. </head>
  4.  
  5. <div class="row">
  6.     @foreach (var m in Model.Podcasts)
  7.     {
  8.         <div class="col-xl-12 mb-36">
  9.             @await Html.PartialAsync("_ShowSinglePodcast", m)<!-- custom markup for the podcast player -->
  10.         </div>
  11.         if (m == Model.Podcasts.FirstOrDefault())
  12.             continue;
  13.         <div class="lazyloadEpisode" Episode="@m.Id"></div>
  14.     }
  15.  
  16.     <script>
  17.         podlovePlayer('#podcast_@Model.Podcasts.FirstOrDefault().Id', '/podcast/GetEpisodeModel?eps=@Model.Podcasts.FirstOrDefault().Id').then(function() {
  18.             $('#LoadingIndicatorPodcast_@Model.Podcasts.FirstOrDefault().Id').remove();
  19.  
  20.             $('.lazyloadEpisode').each(function() {
  21.                 var epsId = $(this).attr('Episode');
  22.                 podlovePlayer('#podcast_' + epsId, '/podcast/GetEpisodeModel?eps=' + epsId + '').then(function() { $('#LoadingIndicatorPodcast_' + epsId + '').remove(); });
  23.             });
  24.         });
  25. </script>
  26.    
  27. </div>
RAW Paste Data