home: add video
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@177 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
parent
cdf18c750b
commit
157d82eca6
@ -74,8 +74,6 @@
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
setInterval(
|
||||
typing_shell
|
||||
, 200);
|
||||
@ -84,5 +82,17 @@
|
||||
shell = shell + sentence[position];
|
||||
document.getElementById("title-home").innerHTML = shell;
|
||||
}
|
||||
|
||||
|
||||
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
|
||||
if (!isChrome) {
|
||||
document.getElementById('foolChrome').remove();
|
||||
|
||||
// Mute and play
|
||||
var homeVideo = document.getElementById('videoHome');
|
||||
homeVideo.muted = true;
|
||||
homeVideo.play();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
BIN
site/assets/front/hero_video.mp4
Normal file
BIN
site/assets/front/hero_video.mp4
Normal file
Binary file not shown.
BIN
site/assets/style/silence.mp3
Normal file
BIN
site/assets/style/silence.mp3
Normal file
Binary file not shown.
@ -4,9 +4,13 @@ category: nosearch
|
||||
author: A bunch of people
|
||||
title: Home page
|
||||
---
|
||||
<!--<video autoplay muted loop id="videoHome">
|
||||
<source src="assets/style/prew.mp4" type="video/mp4">
|
||||
</video>-->
|
||||
|
||||
|
||||
<iframe id="foolChrome" src="{{ site.baseurl }}/assets/style/silence.mp3" allow="autoplay" style="display:none"></iframe>
|
||||
|
||||
<video autoplay preload="auto" id="videoHome">
|
||||
<source src="assets/front/hero_video.mp4" type="video/mp4">
|
||||
</video>
|
||||
|
||||
<div class="home-tiles">
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: page
|
||||
category-title: fs
|
||||
category-page: FileSystem
|
||||
category-page: fs
|
||||
category-title: FileSystem
|
||||
tags: change directory
|
||||
author: Mirko Ponzio
|
||||
title: cd
|
||||
|
@ -1,5 +1,7 @@
|
||||
---
|
||||
layout: page
|
||||
category-page: fs
|
||||
category-title: FileSystem
|
||||
tags: list file
|
||||
author: Mirko Ponzio
|
||||
title: ls
|
||||
|
@ -1,5 +1,7 @@
|
||||
---
|
||||
layout: page
|
||||
category-page: fs
|
||||
category-title: FileSystem
|
||||
tags: create directory make
|
||||
author: Mirko Ponzio
|
||||
title: mkdir
|
||||
|
Loading…
Reference in New Issue
Block a user