Video section


How to insert own video? It's simple. Only you need to insert video link by vimeo into the file main.js. You can also change settings video. All information you find in the file.

Video link

...
var video = {
	videoUrl : 'http://www.vimeo.com/50297768',
	endpoint : 'http://www.vimeo.com/api/oembed.json',
	callback : 'video.embedVideo',
	url : '',
	
	videoInit: function() {
		var width = $('.video-section').width();
		this.url = this.endpoint + '?url=' + encodeURIComponent(this.videoUrl) + '&callback=' + this.callback + '&width='+width+'&byline=false&portrait=false&title=false';
	},
			
	embedVideo: function(video) {
		document.getElementById('embed').innerHTML = unescape(video.html);
	},
			
	init : function() {
		if($('#video-section').length === 0)
			return false;
		this.videoInit();
		var js = document.createElement('script');
		js.setAttribute('type', 'text/javascript');
		js.setAttribute('src', this.url);
		document.getElementsByTagName('head').item(0).appendChild(js);
	}

};

...