[gnome3-web] autoplay video when clicked.
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome3-web] autoplay video when clicked.
- Date: Mon, 4 Apr 2011 20:15:11 +0000 (UTC)
commit c0e30e94b5249cfa3db044308ba8105012fbcfa1
Author: Jakub Steiner <jimmac gmail com>
Date: Mon Apr 4 22:04:26 2011 +0200
autoplay video when clicked.
index.html | 5 -----
js/fancyvideo.js | 7 -------
js/gnome3.js | 4 ++++
3 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/index.html b/index.html
index 2419564..f4f81bd 100644
--- a/index.html
+++ b/index.html
@@ -15,7 +15,6 @@
<script src="js/jquery.fancybox.js" type="text/javascript" charset="utf-8"></script>
<script src="js/gnome3.js" type="text/javascript" charset="utf-8"></script>
<script src="js/countdown.js" type="text/javascript" charset="utf-8"></script>
-<script src="js/showvideo.js" type="text/javascript" charset="utf-8"></script>
<script src="js/language.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
@@ -38,10 +37,6 @@
<h1>Introducing the next generation GNOME desktop</h1>
</div>
-<div class="video-splash">
-<iframe width="940" height="405" src="http://www.youtube.com/embed/Ip9Bgjaspjs?html5=1" frameborder="0" allowfullscreen="true"></iframe>
-</div>
-
<p>For GNOME 3, the GNOME Project has started from scratch and created a completely new, modern desktop designed for today's users and technologies. Here are some of the things that you can expect from the new GNOME:</p>
</div>
diff --git a/js/gnome3.js b/js/gnome3.js
index 30ab901..afedc10 100644
--- a/js/gnome3.js
+++ b/js/gnome3.js
@@ -11,4 +11,8 @@ $(document).ready(function () {
'imageScale': true,
'titlePosition': 'over'
});
+ $("#splash").click(function () {
+ $(this).empty()
+ .html("<iframe width='940' height='405' src='http://www.youtube.com/embed/Ip9Bgjaspjs?autoplay=1&html5=1' frameborder='0' allowfullscreen='true'></iframe>");
+ });
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]