Changeset 16787 for extensions/stripped_black_bloc/local_head.tpl
- Timestamp:
- Jul 16, 2012, 6:15:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped_black_bloc/local_head.tpl
r13920 r16787 1 1 {if ($BODY_ID=='theCategoryPage')} 2 2 {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} 5 5 #theHeader a, .titrePage a, .footer_login a, .navigationBar a { 6 6 color: {/literal}{if $stripped_black_bloc.color_main}#{$stripped_black_bloc.color_main}{/if}{literal}; … … 34 34 min-height: inherit; 35 35 } 36 {/literal}{/if}{literal} 36 {/literal}{/if} 37 {/html_style} 37 38 38 </style> 39 {footer_script load="async"} 40 {literal} 41 jQuery(window).bind("rvtsUp", function() { 42 jQuery('#rvtsUp').remove(); 43 }); 44 {/literal} 45 {/footer_script} 46 47 {html_head} 48 {literal} 39 49 <script type="text/javascript"> 40 /**41 * jQuery Cookie plugin42 *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.php46 * http://www.gnu.org/licenses/gpl.html47 *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 IE70 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 };81 50 82 51 // MASONRY … … 91 60 }); 92 61 } 62 function FadeSC() { 63 jQuery(".bloc a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75); }); 64 jQuery(".bloc_big a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75); }); 65 } 66 jQuery(window).bind("RVTS_loaded", FadeSC); 93 67 94 68 95 69 jQuery(document).ready(function(jQuery){ 70 jQuery('#rvtsUp').remove(); 96 71 97 72 // fade onmouseover 98 73 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 100 76 // sidemenu managment 101 77 var sidemenu = jQuery.cookie('side-menu');
Note: See TracChangeset
for help on using the changeset viewer.