Ignore:
Timestamp:
Jul 16, 2012, 6:15:10 PM (9 years ago)
Author:
flop25
Message:

compatible with rv thumb scroller
cookie plugin minified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_black_bloc/local_head.tpl

    r13920 r16787  
    11{if ($BODY_ID=='theCategoryPage')}
    22{combine_script id='jquery.isotope' load='header' require='jquery' path='themes/stripped_black_bloc/js/isotope.js'}
    3 {html_head}{literal}
    4 <style>
     3{combine_script id='jquery.cookie' load='header' require='jquery' path='themes/stripped_black_bloc/js/jquery.ck.min.js'}
     4{html_style}{literal}
    55#theHeader a, .titrePage a, .footer_login a, .navigationBar a {
    66        color: {/literal}{if $stripped_black_bloc.color_main}#{$stripped_black_bloc.color_main}{/if}{literal};
     
    3434        min-height: inherit;
    3535}
    36 {/literal}{/if}{literal}
     36{/literal}{/if}
     37{/html_style}
    3738
    38 </style>
     39{footer_script load="async"}
     40{literal}
     41jQuery(window).bind("rvtsUp", function() {
     42jQuery('#rvtsUp').remove();
     43});
     44{/literal}
     45{/footer_script}
     46
     47{html_head}
     48{literal}
    3949<script type="text/javascript">
    40 /**
    41 * jQuery Cookie plugin
    42 *
    43 * Copyright (c) 2010 Klaus Hartl (stilbuero.de)
    44 * Dual licensed under the MIT and GPL licenses:
    45 * http://www.opensource.org/licenses/mit-license.php
    46 * http://www.gnu.org/licenses/gpl.html
    47 *
    48 */
    49 jQuery.cookie = function (key, value, options) {
    50 
    51     // key and at least value given, set cookie...
    52     if (arguments.length > 1 && String(value) !== "[object Object]") {
    53         options = jQuery.extend({}, options);
    54 
    55         if (value === null || value === undefined) {
    56             options.expires = -1;
    57         }
    58 
    59         if (typeof options.expires === 'number') {
    60             var days = options.expires, t = options.expires = new Date();
    61             t.setDate(t.getDate() + days);
    62         }
    63 
    64         value = String(value);
    65 
    66         return (document.cookie = [
    67             encodeURIComponent(key), '=',
    68             options.raw ? value : encodeURIComponent(value),
    69             options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
    70             options.path ? '; path=' + options.path : '',
    71             options.domain ? '; domain=' + options.domain : '',
    72             options.secure ? '; secure' : ''
    73         ].join(''));
    74     }
    75 
    76     // key and possibly options given, get cookie...
    77     options = value || {};
    78     var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
    79     return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
    80 };
    8150
    8251    // MASONRY
     
    9160        });
    9261}
     62function FadeSC() {
     63jQuery(".bloc a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
     64jQuery(".bloc_big a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
     65}
     66jQuery(window).bind("RVTS_loaded", FadeSC);
    9367
    9468
    9569jQuery(document).ready(function(jQuery){
     70  jQuery('#rvtsUp').remove();
    9671
    9772        // fade onmouseover
    9873        jQuery(".bloc a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
    99 
     74  jQuery(".bloc_big a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
     75 
    10076        // sidemenu managment
    10177        var sidemenu = jQuery.cookie('side-menu');
Note: See TracChangeset for help on using the changeset viewer.