Template Deals Plazza standard width
- Posted by dimitrakopoulos (9) Offline
The topic has been marked as resolved.
- Posted by andy (759) Offline
Hi Dimitri,
Yes, open file /js/template.js :
delete these lines of code :
11 years 1 month ago #8
by andy
Yes, open file /js/template.js :
delete these lines of code :
// sticky menu when browser scrolled down
jQuery(document).ready(function($){
/* prepend menu icon */
jQuery('#tpwrapper-topmenu').prepend('<div id="menu-icon">Menu</div>');
/* toggle nav */
jQuery("#menu-icon").on("click", function(){
jQuery("#responsivemenu").slideToggle("fast");
jQuery(this).toggleClass("active");
});
});
function moveScroller() {
var a = function() {
var b = jQuery(window).scrollTop();
var d = jQuery("#stickydiv-anchor").offset().top;
var c = jQuery("#stickydiv");
var e = jQuery("#logo");
if (b>d) {
//c.css({position:"fixed",top:"0px", left:"0", width: "100%", background:"#333"})
c.addClass("stick");
e.addClass("stickytop");
} else {
if (b<=d) {
//c.css({position:"relative",top:"", background:"transparent",})
c.removeClass("stick").addClass("regular");
e.removeClass("stickytop").addClass("regular");
}
}
};
jQuery(window).scroll(a);a();
}
jQuery(function() {
moveScroller();
});
The topic has been marked as resolved.
- Posted by dimitrakopoulos (9) Offline
Ok with the sticky menu, works! Thanks,
Also i want to know how disable the compress of css.
Thanks
11 years 1 month ago #9
by dimitrakopoulos
Also i want to know how disable the compress of css.
Thanks
The topic has been marked as resolved.
- Posted by andy (759) Offline
Hi dimitri, please open file css/template.css.php, then delete these lines :
11 years 1 month ago #10
by andy
function compress($buffer) {
/* remove comments */
$buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
/* remove tabs, spaces, new lines, etc. */
$buffer = str_replace(array("\r\n","\r","\n","\t",' ',' ',' '),'',$buffer);
/* remove unnecessary spaces */
$buffer = str_replace('{ ', '{', $buffer);
$buffer = str_replace(' }', '}', $buffer);
$buffer = str_replace('; ', ';', $buffer);
$buffer = str_replace(', ', ',', $buffer);
$buffer = str_replace(' {', '{', $buffer);
$buffer = str_replace('} ', '}', $buffer);
$buffer = str_replace(': ', ':', $buffer);
$buffer = str_replace(' ,', ',', $buffer);
$buffer = str_replace(' ;', ';', $buffer);
$buffer = str_replace(';}', '}', $buffer);
return $buffer;
}
The topic has been marked as resolved.