From f9172736cf04921e949fa14f656fc843da196756 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 10 Jun 2014 13:11:47 -0400 Subject: [PATCH] Adding the libraries for videos working on grid for videos output --- Toolkit/Page.php | 2 + Toolkit/Videos/libjs/videos.js | 17 +- .../Videos/templates/webPageDecorator.html | 8 +- fancybox/blank.gif | Bin 0 -> 43 bytes fancybox/fancybox_loading.gif | Bin 0 -> 3866 bytes fancybox/fancybox_overlay.png | Bin 0 -> 1003 bytes fancybox/fancybox_sprite.png | Bin 0 -> 1362 bytes fancybox/helpers/fancybox_buttons.png | Bin 0 -> 1080 bytes fancybox/helpers/jquery.fancybox-buttons.css | 96 + fancybox/helpers/jquery.fancybox-buttons.js | 121 + fancybox/helpers/jquery.fancybox-media.js | 196 ++ fancybox/helpers/jquery.fancybox-thumbs.css | 54 + fancybox/helpers/jquery.fancybox-thumbs.js | 162 ++ fancybox/jquery.fancybox.css | 249 +++ fancybox/jquery.fancybox.js | 1983 +++++++++++++++++ fancybox/jquery.fancybox.pack.js | 45 + static/29.phtml | 6 + templates/template.html | 2 +- 18 files changed, 2934 insertions(+), 7 deletions(-) create mode 100755 fancybox/blank.gif create mode 100755 fancybox/fancybox_loading.gif create mode 100755 fancybox/fancybox_overlay.png create mode 100755 fancybox/fancybox_sprite.png create mode 100755 fancybox/helpers/fancybox_buttons.png create mode 100755 fancybox/helpers/jquery.fancybox-buttons.css create mode 100755 fancybox/helpers/jquery.fancybox-buttons.js create mode 100755 fancybox/helpers/jquery.fancybox-media.js create mode 100755 fancybox/helpers/jquery.fancybox-thumbs.css create mode 100755 fancybox/helpers/jquery.fancybox-thumbs.js create mode 100755 fancybox/jquery.fancybox.css create mode 100755 fancybox/jquery.fancybox.js create mode 100755 fancybox/jquery.fancybox.pack.js create mode 100644 static/29.phtml 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 @@ -