From 4c2780b87434084147858f4fe69a5a45d6e509c7 Mon Sep 17 00:00:00 2001 From: Jayaram R Pai Date: Thu, 31 Jul 2014 18:13:41 +0530 Subject: added lightbox display for testimonials changes submitted by Priyanka Bhagwat --- css/modal.css | 30 ++++++ images/x.png | Bin 0 -> 1066 bytes js/lightbox_me.js | 234 +++++++++++++++++++++++++++++++++++++++++++ js/modal.js | 26 +++++ templates/page-front.tpl.php | 70 +++++++++---- 5 files changed, 341 insertions(+), 19 deletions(-) create mode 100755 css/modal.css create mode 100644 images/x.png create mode 100755 js/lightbox_me.js create mode 100755 js/modal.js diff --git a/css/modal.css b/css/modal.css new file mode 100755 index 0000000..7bf28cd --- /dev/null +++ b/css/modal.css @@ -0,0 +1,30 @@ +.dialog { + display: none; + width:55%; + height:auto; + padding: 15px; + -moz-border-radius:8px; + -webkit-border-radius:8px; + border-radius:8px; + box-shadow: 1px 1px 4px 1px #888888; + background: #FFF; + font-color:white; +} + +.dialog hr{ + + +} + +.ui-dialog-content, .ui-widget-content { + + width:800px; + background-color:#F0F0F0 ; + font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; + font-size: 62.5%; + font-color:white; + +} + + /*filter:alpha(opacity=70); + opacity:0.7;*/ diff --git a/images/x.png b/images/x.png new file mode 100644 index 0000000..c11f7af Binary files /dev/null and b/images/x.png differ diff --git a/js/lightbox_me.js b/js/lightbox_me.js new file mode 100755 index 0000000..548e8eb --- /dev/null +++ b/js/lightbox_me.js @@ -0,0 +1,234 @@ +/* +* $ lightbox_me +* By: Buck Wilson +* Version : 2.4 +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + + +(function($) { + + $.fn.lightbox_me = function(options) { + + return this.each(function() { + + var + opts = $.extend({}, $.fn.lightbox_me.defaults, options), + $overlay = $(), + $self = $(this), + $iframe = $('