This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
Ember.Handlebars.registerHelper('component', function (name, options) { | |
var context = (options.contexts && options.contexts.length) ? options.contexts[0] : this; | |
if (options.types[0] === "ID") { | |
name = Ember.Handlebars.get(context, name, options); | |
} | |
var container = options.data.view.container; | |
var fullName = 'component:' + name; | |
var templateFullName = 'template:components/' + name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Based on Batch Convert Script originally by Beterhans | |
# Put all video files need to be converted in a folder! | |
# the name of files must not have " " Space! | |
# Rename the File if contain space | |
# Target dir | |
indir=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.sized-container{ | |
position: relative; | |
} | |
.element-resize{ | |
position: absolute; | |
bottom: 0px; | |
right: 0px; | |
width: 20px; | |
height: 20px; | |
background-color: black; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Put your CSS here */ | |
html, body { | |
margin: 10px; | |
} | |
form{ | |
width: 560px; | |
margin-bottom: 10px; | |
} | |
.ui-slider-horizontal .ui-slider-handle { | |
width: 2px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.full-screen-video-container{ | |
position: absolute; | |
left: 0; | |
right: 0; | |
top: 0; | |
bottom: 0; | |
overflow: hidden; | |
} | |
.full-screen-video-container video{ | |
position: absolute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jQuery event handler in the View | |
didInsertElement: function () { | |
var self = this; | |
this._boundApplyResize = function(){ | |
self.applyResize(); | |
} | |
$(window).on('resize', this._boundApplyResize); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Application.LoadingTransitionMixin = Ember.Mixin.create | |
afterModel: (model, transition) -> | |
previousRoute = @get('router').previousRoute | |
if previousRoute | |
@get('router').previousRoute.cleanUp() | |
cleanUp: -> | |
deferredPromise = new Ember.Deferred() | |
@controller.set('cleanUpPromise', deferredPromise) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fade: (opacity, callback) -> | 10 if (url === this.get('currentView.src')){ | |
11 currentOpacity = @$().css('opacity') | 11 this.get('controller.videoPromise').resolve(); | |
12 return callback() if currentOpacity == opacity | 12 return; | |
13 | 13 } | |
14 @$().css('opacity', opacity) | 14 |