From: Steve Sutton Date: Tue, 10 Jun 2014 17:11:47 +0000 (-0400) Subject: Adding the libraries for videos X-Git-Tag: v1.0^2~80^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=f9172736cf04921e949fa14f656fc843da196756;p=web%2FSooLocks.git Adding the libraries for videos working on grid for videos output --- diff --git a/Toolkit/Page.php b/Toolkit/Page.php index 3d3116a..94ae480 100755 --- a/Toolkit/Page.php +++ b/Toolkit/Page.php @@ -145,8 +145,10 @@ class Toolkit_Page // Resources needed for every page. $GLOBALS['styleSheets'] = array(); + $GLOBALS['styleSheets'][] = $this->mediaBaseURL . 'fancybox/jquery.fancybox.css'; // Resources needed for every page. $GLOBALS['topScripts'][] = JQUERY_CDN_JS; + $GLOBALS['bottomScripts'][] = $this->mediaBaseURL . "fancybox/jquery.fancybox.js"; } private function _video() diff --git a/Toolkit/Videos/libjs/videos.js b/Toolkit/Videos/libjs/videos.js index 6080caf..45ca80b 100644 --- a/Toolkit/Videos/libjs/videos.js +++ b/Toolkit/Videos/libjs/videos.js @@ -1,6 +1,8 @@ var GLMColorBox = { init: function() { - $('a.colorbox').colorbox({iframe: true, innerWidth:425, innerHeight:344}); + var width = $(window).width() * .85; + var height = $(window).height() * .8; + //$('a.colorbox').colorbox({iframe: true, innerWidth:width, innerHeight:height}); $('select.posSelect').each(function () { $(this).change(function(){ var id = $(this).attr('rel'); @@ -12,3 +14,16 @@ var GLMColorBox = { }; $(document).ready(GLMColorBox.init); +$(document).ready(function() { + $(".various").fancybox({ + maxWidth : 1200, + maxHeight : 800, + fitToView : false, + width : '100%', + height : '100%', + autoSize : false, + closeClick : false, + openEffect : 'none', + closeEffect : 'none' + }); +}); diff --git a/Toolkit/Videos/templates/webPageDecorator.html b/Toolkit/Videos/templates/webPageDecorator.html index 3b02167..a90f1ff 100644 --- a/Toolkit/Videos/templates/webPageDecorator.html +++ b/Toolkit/Videos/templates/webPageDecorator.html @@ -1,14 +1,12 @@ -