Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
161 lines (137 sloc) 7.64 KB
Red [
Title: ""
Article: [
Title: {AngularJs Video Gallery}
Source: [
.title: {ReAdABLE Source [(What is the ReAdABLE Human Format?)](}
.text: {[](
demo: [
.title: {Demo}
.text: {Visit: }
.links: [
code-snippet: [
.title: {Source Code}
.text: {The html skeleton was initially created with [mobirise](
before customizing it with angularjs }
.text: {with Json Data and AngularJs Controller : }
.text: {Html and AngularJs ng-repeat}
.links: [
{View index.html source}
{Copy index.html source}
{Download source and assets}
.code/html: {
<!DOCTYPE html>
<html ng-app="MyApp" ng-controller="myCtrl">
<!-- Site made with Mobirise Website Builder v4.6.5, -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="generator" content="Mobirise v4.6.5,">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<meta name="description" content="">
<link rel="stylesheet" href=",400&subset=cyrillic,latin,greek,vietnamese">
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/mobirise/css/style.css">
<link rel="stylesheet" href="assets/dropdown-menu/style.css">
<link rel="stylesheet" href="assets/mobirise/css/mbr-additional.css" type="text/css">
<script src=""></script>
<script src="res/data.js">
// videos = [
// {
// "id": "m40YOZr1nxQ",
// "title": "Let’s Code Real World App Using Purely Functional Techniques",
// "description": "We will create a small, real-world data transformation program that demonstrates how functional techniques address issues such as control flow, type construction, data validation, etc. Through demonstrate-by-example, we'll explore the railway pattern, monadic chaining, disjunctions, applicatives, and currying."
// },
// {
// "id": "US8QG9I1XW0",
// "title": "Functional architecture - The pits of success - Mark Seemann",
// "description": " Instead of deliberate design, functional programming forms pits of success where you naturally fall into the same ‘best practices’ that you have to deliberately work for in object-oriented programming. In this session, you’ll learn about a handful of such ‘best practices’, and how functional programming automatically lead you there, without your explicit effort."
// },
// {
// "id": "E8I19uA-wGY",
// "title": "Functional programming design patterns by Scott Wlaschin",
// "description": "In object-oriented development, we are all familiar with design patterns such as the Strategy pattern and Decorator pattern, and design principles such as SOLID. The functional programming community has design patterns and principles as well."
// }
// ]
var app = angular.module('MyApp', []);
app.controller('myCtrl', function ($scope, $sce, $location, $anchorScroll) {
function Video(id, title, description) {
debugger; = id;
this.url = $sce.trustAsResourceUrl("" + id + "?rel=0&amp;amp;showinfo=0&amp;autoplay=0&amp;loop=0");
this.background = $sce.trustAsResourceUrl("" + id + "?rel=0&amp;amp;showinfo=0&amp;autoplay=0&amp;loop=0");
this.title = title;
this.description = description;
$scope.videos = [];
videos.forEach(function (video, i) {
$scope.videos.push(new Video(, video.title, video.description));
<!-- start video gallery -->
<section ng-repeat="video in videos" id="{{}}">
<section class="mbr-section mbr-section--relative mbr-after-navbar" id="msg-box5-1" data-bg-video="{{video.background}}"
<div class="mbr-overlay" style="opacity: 0.5; background-color: rgb(34, 34, 34);"></div>
<div class="mbr-section__container mbr-section__container--isolated container" style="padding-top: 93px; padding-bottom: 93px;">
<div class="row">
<div class="mbr-box mbr-box--fixed mbr-box--adapted">
<div class="mbr-box__magnet mbr-box__magnet--top-right mbr-section__left col-sm-6 image-size" style="width: 50%;">
<figure class="mbr-figure mbr-figure--adapted mbr-figure--caption-inside-bottom mbr-figure--full-width">
<iframe class="mbr-embedded-video" src="{{video.url}}" width="1280" height="720" frameborder="0" allowfullscreen></iframe>
<div class="mbr-box__magnet mbr-class-mbr-box__magnet--center-left col-sm-6 content-size mbr-section__right">
<div class="mbr-section__container mbr-section__container--middle">
<div class="mbr-header mbr-header--auto-align mbr-header--wysiwyg">
<h3 class="mbr-header__text">{{video.title}}</h3>
<div class="mbr-section__container mbr-section__container--middle">
<div class="mbr-article mbr-article--auto-align mbr-article--wysiwyg">
<!-- end video gallery-->
<script src="assets/web/assets/jquery/jquery.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/smooth-scroll/smooth-scroll.js"></script>
<script src="assets/jquery-mb-ytplayer/jquery.mb.ytplayer.min.js"></script>
<script src="assets/mobirise/js/script.js"></script>
<script src="assets/dropdown-menu/script.js"></script>