diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index d967bad9..6a34daf7 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -19,15 +19,12 @@ //= require tracks.js // Stuff in vendor/assets -//= require jquery-ui-1.10.0.custom.min -//= require jquery.ui.touch-punch.min -//= require jquery.blockUI -//= require jquery.cookie -//= require jquery.form -//= require jquery.jeditable.mini -//= require jquery.simulate.drag-sortable -//= require jquery.truncator -//= require niftycube -//= require superfish -//= require supersubs +// require jquery-ui-1.10.0.custom.min +// require jquery.ui.touch-punch.min +// require jquery.blockUI +// require jquery.cookie +// require jquery.form +// require jquery.jeditable.mini +// require jquery.simulate.drag-sortable +// require jquery.truncator //= require swf_fu diff --git a/vendor/assets/javascripts/niftycube.js b/vendor/assets/javascripts/niftycube.js deleted file mode 100644 index 4318297e..00000000 --- a/vendor/assets/javascripts/niftycube.js +++ /dev/null @@ -1,286 +0,0 @@ -/* Nifty Corners Cube - rounded corners with CSS and Javascript -Copyright 2006 Alessandro Fulciniti (a.fulciniti@html.it) - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ - -var niftyOk=(document.getElementById && document.createElement && Array.prototype.push); - -function strFind(str, what){ - return(str.indexOf(what)>=0 ? true : false); -} - -var oldonload=window.onload; -if(typeof(NiftyLoad)!='function') NiftyLoad=function(){}; -if(typeof(oldonload)=='function') - window.onload=function(){oldonload();NiftyLoad()}; -else window.onload=function(){NiftyLoad()}; - -function Nifty(selector,options){ -if(niftyOk==false) return; -var i,v=selector.split(","),h=0; -if(options==undefined) options=""; -if(strFind(options,"fixed-height")) - h=getElementsBySelector(v[0])[0].offsetHeight; -for(i=0;i0;i--) - d.appendChild(CreateStrip(i,side,color,border,btype)); -el.style.paddingBottom=0; -el.appendChild(d); -} - -function CreateStrip(index,side,color,border,btype){ -var x=CreateEl("b"); -x.className=btype+index; -x.style.backgroundColor=color; -x.style.borderColor=border; -if(side=="left"){ - x.style.borderRightWidth="0"; - x.style.marginRight="0"; - } -else if(side=="right"){ - x.style.borderLeftWidth="0"; - x.style.marginLeft="0"; - } -return(x); -} - -function CreateEl(x){ -return(document.createElement(x)); -} - -function FixIE(el){ -if(el.currentStyle!=null && el.currentStyle.hasLayout!=null && el.currentStyle.hasLayout==false) - el.style.display="inline-block"; -} - -function SameHeight(selector,maxh){ -var i,v=selector.split(","),t,j,els=[],gap; -for(i=0;imaxh) maxh=els[i].offsetHeight; - els[i].style.height="auto"; - } -for(i=0;i0){ - t=CreateEl("b");t.className="niftyfill";t.style.height=gap+"px"; - nc=els[i].lastChild; - if(nc.className=="niftycorners") - els[i].insertBefore(t,nc); - else els[i].appendChild(t); - } - } -} - -function getElementsBySelector(selector){ -var i,j,selid="",selclass="",tag=selector,tag2="",v2,k,f,a,s=[],objlist=[],c; -if(strFind(selector,"#")){ //id selector like "tag#id" - if(strFind(selector," ")){ //descendant selector like "tag#id tag" - s=selector.split(" "); - var fs=s[0].split("#"); - if(fs.length==1) return(objlist); - f=document.getElementById(fs[1]); - if(f){ - v=f.getElementsByTagName(s[1]); - for(i=0;i »'), - over = function(e){ - var $$ = $(this), menu = getMenu($$); - if (e.type === 'mouseenter' || e.type==='focusin'){ - $$.children('a').data('follow',true); - } - clearTimeout(menu.sfTimer); - $$.showSuperfishUl().siblings().hideSuperfishUl(); - }, - out = function(e){ - var $$ = $(this), menu = getMenu($$), o = sf.op; - var close = function(){ - o.retainPath=($.inArray($$[0],o.$path)>-1); - $$.hideSuperfishUl(); - if (o.$path.length && $$.parents('li.'+o.hoverClass).length<1){ - o.onIdle.call(); - $.proxy(over,o.$path,e)(); - } - }; - if (e.type !== 'mouseleave' && e.type !== 'focusout'){ - close(); - } else { - clearTimeout(menu.sfTimer); - menu.sfTimer=setTimeout(close,o.delay); - } - if (e.type === 'mouseleave' || e.type === 'focusout'){ - $$.children('a').data('follow',false); - } - }, - getMenu = function($child){ - if ($child.hasClass(c.menuClass)){ - $.error('Superfish requires you to update to a version of hoverIntent that supports event-delegation, such as this one: https://github.com/joeldbirch/onHoverIntent'); - } - var menu = $child.closest('.'+c.menuClass)[0]; - sf.op = sf.o[menu.serial]; - return menu; - }, - applyHandlers = function($menu){ - var targets = 'li:has(ul)'; - if (!sf.op.useClick){ - if ($.fn.hoverIntent && !sf.op.disableHI){ - $menu.hoverIntent(over, out, targets); - } else { - $menu.on('mouseenter', targets, over); - $menu.on('mouseleave', targets, out); - } - } - $menu.on('focusin', targets, over); - $menu.on('focusout', targets, out); - $menu.on('click', 'a', clickHandler); - }, - clickHandler = function(e){ - var $a = $(this); - var $submenu = $a.next('ul'); - var follow = $a.data('follow'); - - if ( $submenu.length && (sf.op.useClick || !follow) ){ - e.preventDefault(); - if ($submenu.is(':visible')){ - $.proxy(out,$(this).parent(),e)(); - } else { - $.proxy(over,$(this).parent(),e)(); - } - } - }, - addArrows = function($li,o){ - if (o.autoArrows) { - $li.children('a').each(function() { - addArrow( $(this) ); - }); - } - }, - addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); }; - - return this.addClass(c.menuClass).each(function() { - var s = this.serial = sf.o.length; - var o = $.extend({},sf.defaults,op); - var $$ = $(this); - var $liHasUl = $$.find('li:has(ul)'); - o.$path = $$.find('li.'+o.pathClass).slice(0,o.pathLevels).each(function(){ - $(this).addClass(o.hoverClass+' '+c.bcClass) - .filter('li:has(ul)').removeClass(o.pathClass); - }); - sf.o[s] = sf.op = o; - - addArrows($liHasUl,o); - applyHandlers($$); - - $liHasUl.not('.'+c.bcClass).hideSuperfishUl(); - - o.onInit.call(this); - - }); - }; - - var sf = $.fn.superfish; - sf.o = []; - sf.op = {}; - - sf.c = { - bcClass : 'sf-breadcrumb', - menuClass : 'sf-js-enabled', - anchorClass : 'sf-with-ul', - arrowClass : 'sf-sub-indicator' - }; - sf.defaults = { - hoverClass : 'sfHover', - pathClass : 'overideThisToUse', - pathLevels : 1, - delay : 800, - animation : {opacity:'show'}, - animationOut: {opacity:'hide'}, - speed : 'normal', - speedOut : 'fast', - autoArrows : true, - disableHI : false, // true disables hoverIntent detection - useClick : false, - onInit : function(){}, // callback functions - onBeforeShow: function(){}, - onShow : function(){}, - onHide : function(){}, - onIdle : function(){} - }; - $.fn.extend({ - hideSuperfishUl : function(){ - var o = sf.op, - not = (o.retainPath===true) ? o.$path : ''; - o.retainPath = false; - var $ul = $('li.'+o.hoverClass,this).add(this).not(not) - .find('>ul').stop().animate(o.animationOut,o.speedOut,function(){ - $ul = $(this); - $ul.css('visibility','hidden').parent().removeClass(o.hoverClass); - o.onHide.call($ul); - }); - return this; - }, - showSuperfishUl : function(){ - var o = sf.op, - $ul = this.addClass(o.hoverClass) - .find('>ul:hidden').css('visibility','visible'); - o.onBeforeShow.call($ul); - $ul.stop().animate(o.animation,o.speed,function(){ - o.onShow.call($ul); - }); - return this; - } - }); - -})(jQuery); diff --git a/vendor/assets/javascripts/supersubs.js b/vendor/assets/javascripts/supersubs.js deleted file mode 100644 index 45221510..00000000 --- a/vendor/assets/javascripts/supersubs.js +++ /dev/null @@ -1,90 +0,0 @@ - -/* - * Supersubs v0.2b - jQuery plugin - * Copyright (c) 2008 Joel Birch - * - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - * - * - * This plugin automatically adjusts submenu widths of suckerfish-style menus to that of - * their longest list item children. If you use this, please expect bugs and report them - * to the jQuery Google Group with the word 'Superfish' in the subject line. - * - */ - -;(function($){ // $ will refer to jQuery within this closure - - $.fn.supersubs = function(options){ - var opts = $.extend({}, $.fn.supersubs.defaults, options); - // return original object to support chaining - return this.each(function() { - // cache selections - var $$ = $(this); - // support metadata - var o = $.meta ? $.extend({}, opts, $$.data()) : opts; - // get the font size of menu. - // .css('fontSize') returns various results cross-browser, so measure an em dash instead - var fontsize = $('').css({ - 'padding' : 0, - 'position' : 'absolute', - 'top' : '-999em', - 'width' : 'auto' - }).appendTo($$).width(); //clientWidth is faster, but was incorrect here - // remove em dash - $('#menu-fontsize').remove(); - // cache all ul elements - $ULs = $$.find('ul'); - // loop through each ul in menu - $ULs.each(function(i) { - // cache this ul - var $ul = $ULs.eq(i); - // get all (li) children of this ul - var $LIs = $ul.children(); - // get all anchor grand-children - var $As = $LIs.children('a'); - // force content to one line and save current float property - var liFloat = $LIs.css('white-space','nowrap').css('float'); - // remove width restrictions and floats so elements remain vertically stacked - var emWidth = $ul.add($LIs).add($As).css({ - 'float' : 'none', - 'width' : 'auto' - }) - // this ul will now be shrink-wrapped to longest li due to position:absolute - // so save its width as ems. Clientwidth is 2 times faster than .width() - thanks Dan Switzer - .end().end()[0].clientWidth / fontsize; - // add more width to ensure lines don't turn over at certain sizes in various browsers - emWidth += o.extraWidth; - // restrict to at least minWidth and at most maxWidth - if (emWidth > o.maxWidth) { emWidth = o.maxWidth; } - else if (emWidth < o.minWidth) { emWidth = o.minWidth; } - emWidth += 'em'; - // set ul to width in ems - $ul.css('width',emWidth); - // restore li floats to avoid IE bugs - // set li width to full width of this ul - // revert white-space to normal - $LIs.css({ - 'float' : liFloat, - 'width' : '100%', - 'white-space' : 'normal' - }) - // update offset position of descendant ul to reflect new width of parent - .each(function(){ - var $childUl = $('>ul',this); - var offsetDirection = $childUl.css('left')!==undefined ? 'left' : 'right'; - $childUl.css(offsetDirection,emWidth); - }); - }); - - }); - }; - // expose defaults - $.fn.supersubs.defaults = { - minWidth : 9, // requires em unit. - maxWidth : 25, // requires em unit. - extraWidth : 0 // extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values - }; - -})(jQuery); // plugin code ends diff --git a/vendor/assets/stylesheets/niftyCorners.css b/vendor/assets/stylesheets/niftyCorners.css deleted file mode 100644 index 6570f60e..00000000 --- a/vendor/assets/stylesheets/niftyCorners.css +++ /dev/null @@ -1,35 +0,0 @@ -/*Nifty Corners Cube CSS by Alessandro Fulciniti -The following classes are added dinamically by javascript, -and their use should be avoided in the markup */ - -b.niftycorners,b.niftyfill{display:block} -b.niftycorners *{display:block;height: 1px;line-height:1px;font-size: 1px; - overflow:hidden;border-style:solid;border-width: 0 1px} -/*normal*/ -b.r1{margin: 0 3px;border-width: 0 2px} -b.r2{margin: 0 2px} -b.r3{margin: 0 1px} -b.r4{height: 2px} -b.rb1{margin: 0 8px;border-width:0 2px} -b.rb2{margin: 0 6px;border-width:0 2px} -b.rb3{margin: 0 5px} -b.rb4{margin: 0 4px} -b.rb5{margin: 0 3px} -b.rb6{margin: 0 2px} -b.rb7{margin: 0 1px;height:2px} -b.rb8{margin: 0;height:2px} -b.rs1{margin: 0 1px} -/*transparent inside*/ -b.t1{border-width: 0 5px} -b.t2{border-width: 0 3px} -b.t3{border-width: 0 2px} -b.t4{height: 2px} -b.tb1{border-width: 0 10px} -b.tb2{border-width: 0 8px} -b.tb3{border-width: 0 6px} -b.tb4{border-width: 0 5px} -b.tb5{border-width: 0 4px} -b.tb6{border-width: 0 3px} -b.tb7{border-width: 0 2px;height:2px} -b.tb8{border-width: 0 1px;height:2px} -b.ts1{border-width: 0 2px} \ No newline at end of file diff --git a/vendor/assets/stylesheets/superfish-navbar.css b/vendor/assets/stylesheets/superfish-navbar.css deleted file mode 100644 index 4c79d551..00000000 --- a/vendor/assets/stylesheets/superfish-navbar.css +++ /dev/null @@ -1,86 +0,0 @@ - -/*** adding the class sf-navbar in addition to sf-menu creates an all-horizontal nav-bar menu ***/ -.sf-navbar { - background: #BDD2FF; - height: 2.5em; - padding-bottom: 2.5em; - position: relative; -} -.sf-navbar ul { - box-shadow: none; -} -.sf-navbar li { - background: #AABDE6; - position: static; -} -.sf-navbar a { - border-top: none; -} -.sf-navbar li ul { - width: 44em; /*IE6 soils itself without this*/ -} -.sf-navbar li li { - background: #BDD2FF; - position: relative; -} -.sf-navbar li li ul { - width: 13em; -} -.sf-navbar li li li { - width: 100%; -} -.sf-navbar ul li { - width: auto; - float: left; -} -.sf-navbar a, .sf-navbar a:visited { - border: none; -} -.sf-navbar li.current { - background: #BDD2FF; -} -.sf-navbar li:hover, -.sf-navbar li.sfHover, -.sf-navbar li li.current, -.sf-navbar a:focus, .sf-navbar a:hover, .sf-navbar a:active { - background: #BDD2FF; -} -.sf-navbar ul li:hover, -.sf-navbar ul li.sfHover, -ul.sf-navbar ul li:hover li, -ul.sf-navbar ul li.sfHover li, -.sf-navbar ul a:focus, .sf-navbar ul a:hover, .sf-navbar ul a:active { - background: #D1DFFF; -} -ul.sf-navbar li li li:hover, -ul.sf-navbar li li li.sfHover, -.sf-navbar li li.current li.current, -.sf-navbar ul li li a:focus, .sf-navbar ul li li a:hover, .sf-navbar ul li li a:active { - background: #E6EEFF; -} -ul.sf-navbar .current ul, -ul.sf-navbar ul li:hover ul, -ul.sf-navbar ul li.sfHover ul { - left: 0; - top: 2.5em; /* match top ul list item height */ -} -ul.sf-navbar .current ul ul { - top: -999em; -} - -.sf-navbar li li.current > a { - font-weight: bold; -} - -/*** point all arrows down ***/ -/* point right for anchors in subs */ -.sf-navbar ul .sf-sub-indicator { background-position: -10px -100px; } -.sf-navbar ul a > .sf-sub-indicator { background-position: 0 -100px; } -/* apply hovers to modern browsers */ -.sf-navbar ul a:focus > .sf-sub-indicator, -.sf-navbar ul a:hover > .sf-sub-indicator, -.sf-navbar ul a:active > .sf-sub-indicator, -.sf-navbar ul li:hover > a > .sf-sub-indicator, -.sf-navbar ul li.sfHover > a > .sf-sub-indicator { - background-position: -10px -100px; /* arrow hovers for modern browsers*/ -} \ No newline at end of file diff --git a/vendor/assets/stylesheets/superfish-vertical.css b/vendor/assets/stylesheets/superfish-vertical.css deleted file mode 100644 index 8025b785..00000000 --- a/vendor/assets/stylesheets/superfish-vertical.css +++ /dev/null @@ -1,23 +0,0 @@ -/*** adding sf-vertical in addition to sf-menu creates a vertical menu ***/ -.sf-vertical, .sf-vertical li { - width: 10em; -} -/* this lacks ul at the start of the selector, so the styles from the main CSS file override it where needed */ -.sf-vertical li:hover ul, -.sf-vertical li.sfHover ul { - left: 10em; /* match ul width */ - top: 0; -} - -/*** alter arrow directions ***/ -.sf-vertical .sf-sub-indicator { background-position: -10px 0; } /* IE6 gets solid image only */ -.sf-vertical a > .sf-sub-indicator { background-position: 0 0; } /* use translucent arrow for modern browsers*/ - -/* hover arrow direction for modern browsers*/ -.sf-vertical a:focus > .sf-sub-indicator, -.sf-vertical a:hover > .sf-sub-indicator, -.sf-vertical a:active > .sf-sub-indicator, -.sf-vertical li:hover > a > .sf-sub-indicator, -.sf-vertical li.sfHover > a > .sf-sub-indicator { - background-position: -10px 0; /* arrow hovers for modern browsers*/ -} \ No newline at end of file diff --git a/vendor/assets/stylesheets/superfish.css b/vendor/assets/stylesheets/superfish.css deleted file mode 100644 index c52fe787..00000000 --- a/vendor/assets/stylesheets/superfish.css +++ /dev/null @@ -1,182 +0,0 @@ - -/*** ESSENTIAL STYLES ***/ -.sf-menu, .sf-menu * { - margin: 0; - padding: 0; - list-style: none; -} -.sf-menu { - line-height: 1.0; -} -.sf-menu ul { - position: absolute; - top: -999em; - width: 10em; /* left offset of submenus need to match (see below) */ -} -.sf-menu ul li { - width: 100%; -} -.sf-menu li:hover { - visibility: inherit; /* fixes IE7 'sticky bug' */ -} -.sf-menu li { - float: left; - position: relative; -} -.sf-menu a { - display: block; - position: relative; -} -.sf-menu li:hover ul, -.sf-menu li.sfHover ul { - left: 0; - top: 2.5em; /* match top ul list item height */ - z-index: 99; -} -ul.sf-menu li:hover li ul, -ul.sf-menu li.sfHover li ul { - top: -999em; -} -ul.sf-menu li li:hover ul, -ul.sf-menu li li.sfHover ul { - left: 10em; /* match ul width */ - top: 0; -} -ul.sf-menu li li:hover li ul, -ul.sf-menu li li.sfHover li ul { - top: -999em; -} -ul.sf-menu li li li:hover ul, -ul.sf-menu li li li.sfHover ul { - left: 10em; /* match ul width */ - top: 0; -} - -/*** TRACKS SKIN ***/ -.sf-menu { - float: left; - margin: 0; - padding-right: 0px; /* 20 */ -} -.sf-menu a { - margin-right: 10px; - text-decoration:none; - line-height: 14px; -} - -.sf-menu a, .sf-menu a:visited, .sf-menu ul li a { /* visited pseudo selector so IE6 applies text colour*/ - font-weight: bold; - margin-left: 10px; - text-decoration: none; - color: #eee; - border-bottom: 4px solid #000; /* make sure there is enough room for the solid */ -} - -.sf-item-menu a, .sf-item-menu a:visited, .sf-item-menu ul li a { - font-weight: normal; - line-height: 10px; - color: #000; - border-bottom: none; -} - -.sf-menu li li, .sf-menu li ul { - margin: 0; - background: #000000; -} - -.sf-item-menu li li, .sf-item-menu li ul { - background: #CCC; -} - -.sf-menu li ul { - margin-top: -18px; - padding: 0 8px 9px 0; - -moz-border-radius-bottomleft: 8px; - -moz-border-radius-bottomright: 8px; - -webkit-border-bottom-right-radius: 8px; - -webkit-border-bottom-left-radius: 8px; -} - -.sf-item-menu li ul { - -moz-border-radius-topleft: 8px; - -moz-border-radius-topright: 8px; - -webkit-border-top-right-radius: 8px; - -webkit-border-top-left-radius: 8px; - border: 2px solid #000; -} - -.sf-menu li ul li, .sf-menu li li { - margin-bottom: 5px; - margin-top: 5px; - font-size: 1em; -} - -.sf-item-menu li ul li, .sf-item-menu li li { - font-size: 0.8em; -} - -.sf-menu li li li { - background: #000000; -} - -.sf-menu li:hover, .sf-menu li.sfHover, -.sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active { - color: #CCC; -} - -.sf-item-menu li:hover, .sf-item-menu li.sfHover, -.sf-item-menu a:focus, .sf-item-menu a:hover, .sf-item-menu a:active { - color: #000; - font-weight: bold; -} - -.sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active { - border-bottom: 4px solid #CCC; - background: transparent; -} - -.sf-item-menu a:focus, .sf-item-menu a:hover, .sf-item-menu a:active { - border-bottom: none; -} - - -/*** arrows **/ -.sf-menu a.sf-with-ul { - padding-right: 2.25em; - min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */ -} -.sf-sub-indicator { - position: absolute; - display: block; - right: .75em; - top: 1.05em; /* IE6 only */ - width: 10px; - height: 10px; - text-indent: -999em; - overflow: hidden; - background: url('../images/arrows-ffffff.png') no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */ -} -a > .sf-sub-indicator { /* give all except IE6 the correct values */ - top: .8em; - background-position: 0 -100px; /* use translucent arrow for modern browsers*/ -} -/* apply hovers to modern browsers */ -a:focus > .sf-sub-indicator, -a:hover > .sf-sub-indicator, -a:active > .sf-sub-indicator, -li:hover > a > .sf-sub-indicator, -li.sfHover > a > .sf-sub-indicator { - background-position: -10px -100px; /* arrow hovers for modern browsers*/ -} - -/* point right for anchors in subs */ -.sf-menu ul .sf-sub-indicator { background-position: -10px 0; } -.sf-menu ul a > .sf-sub-indicator { background-position: 0 0; } -/* apply hovers to modern browsers */ -.sf-menu ul a:focus > .sf-sub-indicator, -.sf-menu ul a:hover > .sf-sub-indicator, -.sf-menu ul a:active > .sf-sub-indicator, -.sf-menu ul li:hover > a > .sf-sub-indicator, -.sf-menu ul li.sfHover > a > .sf-sub-indicator { - background-position: -10px 0; /* arrow hovers for modern browsers*/ -} \ No newline at end of file