Something went wrong. Try again.
Youtube like application been developed for my MCA semester 6 Main project
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137<!DOCTYPE html><html>
<head> <% include ../partials/header %></head>
<body> <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container-fluid"> <% include ../partials/nav %> </div> </nav> <div class="col-sm-3 col-md-2 sidebar"> <div class="drop-navigation drop-navigation"> <% include ../partials/sidebar %> </div> </div> <% let userid = videoData.user_id; let videoId = videoData.video_id; let videoTitle = videoData.video_name; let videoDesc = videoData.video_description; let videoSrc = "/public/media/"+userid+"/"+videoData.video_upload_path; let videoUploadedOn = videoData.video_uploadedon; let videoCount = videoData.video_views; let months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; let splitDate = videoUploadedOn.split(",")[0]; let getDateparams = splitDate.split("/"); let getDate = getDateparams[1]; let monthInName = months[getDateparams[0]]; let getFullYear = getDateparams[2]; let finalString = monthInName+" "+getDate+","+ getFullYear; %>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <div class="show-top-grids"> <div class="col-sm-12 single-left"> <div class="song">
<div class="video-grid"> <video width="920px" height="480px" controls> <source src=<%=videoSrc %> type="video/mp4"> Your browser does not support the video tag. </video> </div> </div> <div class="published"> <div class="load_more"> <ul id="myList"> <li style="display: list-item;"> <h3> <%= videoTitle %> </h3> <h4 style="display:block; margin:5px 0;font-size:13px;"> <%= videoCount %> Views</h4> <h4>Published on <%= finalString %> </h4> <p> <%= videoDesc %> </p> </li>
</ul> </div> </div> <div class="all-comments"> <div class="all-comments-info"> <% if (v_message.length > 0) { %> <div class="alert alert-info alert-dismissible"> <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> <b> <%= v_message %></b> </div> <% } else { } %>
<a href="#">All Comments (<%= commentData.length %>)</a> <div class="box"> <form method="POST" action="/commentsProcess"> <input type="text" name="comment_name" placeholder="Name" required=" "> <input type="text" name="comment_email" placeholder="Email" required=" "> <input type="text" name="comment_phone" placeholder="Phone" required=" "> <textarea name="comments" placeholder="Message" required=" "></textarea> <input type="hidden" name="video_id" value=<%=videoId %> /> <input type="submit" value="Post Comment"> <div class="clearfix"> </div> </form> </div>
</div> <div class="media-grids">
<% if(commentData && commentData.length > 0){ %> <% commentData.forEach(function(item){ %> <% console.log(item); %> <div class="media"> <h5> <%= item.name; %> </h5> <div class="media-left">
</div> <div class="media-body"> <p> <%= item.comments; %> </p> </div> </div> <% }) %> <% } else { %> <div class="media"> <h5>No Comments </h5> </div> <% } %>
</div> </div> </div>
<!---300x250--->
<div class="clearfix"> </div> </div> <!-- footer --> <div class="footer"> <% include ../partials/footer %> </div>
<!-- //footer --> </div></body>
</html>