<h3><img src="images/logo_twitter.png" alt="Twitter Updates" width="" height="" />
<span> </span></h3>
<a href="#" class="collapse"><span>Collapse</span></a>
- <div id="personaltwitter" class="content"></div>
+ <div id="personaltwitter" class="content"><div class="overlay"></div><div class="inactive"></div></div>
</section>
</div>
<h3><img src="images/logo_flickr.png" alt="Flickr Images" width="" height="" />
<span> </span></h3>
<a href="#" class="collapse"><span>Collapse</span></a>
- <div id="personalflickr" class="content"></div>
+ <div id="personalflickr" class="content"><div class="overlay"></div><div class="inactive"></div></div>
</section>
</div>
<!-- End Column B -->
<section>
<h3><img src="images/logo_twitter.png" alt="Twitter" width="" height="" /></h3>
<a href="#" class="collapse"><span>Collapse</span></a>
- <div id="twitter" class="content"></div>
+ <div id="twitter" class="content"><div class="overlay"></div><div class="inactive"></div></div>
</section>
</div>
<!-- End Column A -->
<h3><img src="images/logo_wiki.png" alt="Wikipedia" width="" height="" /></h3>
<a href="#" class="collapse"><span>Collapse</span></a>
- <div class="content" id="wikidiv">
- </div>
- </section>
- <section>
- <h3><img src="images/logo_google_news.png" alt="Google News" width="" height="" />
- </h3>
- <div id="googlenewsdiv">
- </div>
- </section>
+ <div class="content" id="wikidiv"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+ <section>
+ <h3><img src="images/logo_google_news.png" alt="Google News" width="" height="" />
+ </h3>
+ <div id="googlenewsdiv"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
</div>
<!-- End Column B -->
<h1><span>This video's copyright information</span></h1>
<section>
- <div id="container5">
- Attribution
- </div>
+ <div id="container5"></div>
</section>
</div>
<!-- End Right Contents -->
commandObject = manager.commandObjects[i];
if (commandObject.running && (commandObject.params["in"] > t || commandObject.params["out"] < t)) {
commandObject.running = false;
+
+
+ if (VideoCommand.active[commandObject.params.target] <= 0 || --VideoCommand.active[commandObject.params.target] <= 0) {
+ $("#" + commandObject.params.target + " .inactive").fadeIn(500);
+ }
+
+
commandObject.onOut();
commandObject.removeOverlay();
}
}
if (!commandObject.running && commandObject.params["in"] < t && commandObject.params["out"] > t) {
commandObject.running = true;
- if (typeof commandObject.flash=="undefined") {
+
+ $("#" + commandObject.params.target + " .inactive").hide();
+ VideoCommand.active[commandObject.params.target]++;
+
+ if (commandObject.params.target) {
+ $("#" + commandObject.params.target + " .overlay").show().fadeOut(500);
+ }
+ if (typeof commandObject.flash == "undefined") {
var section = $(commandObject.target).parents('section');
if (!section.hasClass('hover')) {
section.addClass('hover');
}
}
}
-
+
// Checkes for a resourceid and gets all the attributes from that resource
if (this.params.resourceid) {
for (var attributeName in this.videoManager.manifestObjects[this.params.resourceid]) {
this.image.setAttribute('style', 'display:none');
};
}
+
+ if (!VideoCommand.active[this.params.target]) {
+ VideoCommand.active[this.params.target] = 0;
+ }
};
+ VideoCommand.active = {};
VideoCommand.count = 0;
////////////////////////////////////////////////////////////////////////////
margin-bottom: 15px;
}
+.overlay{
+z-index: 9001;
+display: none;
+top: 0px;
+left: 0px;
+opacity: 0.4;
+filter: alpha(opacity=40);
+height: 100%;
+width: 100%;
+background: red;
+position: absolute;
+}
+
+.inactive{
+z-index: 9001;
+display: inline;
+top: 0px;
+left: 0px;
+opacity: 0.4;
+filter: alpha(opacity=40);
+height: 100%;
+width: 100%;
+background: grey;
+position: absolute;
+}
+
section.hover{
-webkit-box-shadow: -1px 1px 1px #bdc7c6;
-moz-box-shadow: -1px 1px 1px #bdc7c6;