Hi there.... Still having issues with this. I know it is possible to disable this effect by altering the code in this Script.js file, but I´m really not sure exactly what to alter. The effect uses the Raphael vector library, but that also controls the nice category slider effect- so I don´t want to completely remove it.
I simply want to remove this slash transformation, but keep all the other effects that this library provides.
If someone could help me with this, I´d be very greatful!!! I can handle changing the CSS backgrounds, but I´m really not sure what to change in this Script.JS file below.
_Would really appreciate some help from you Javascript experts. Thankyou.
/* Swap featured image by vector objects os slashed shape */
$(document).ready(function() {
// Swap featured images with vector objects
$(".img-holder").each(function () {
//$(this).removeClass('ro');
var img = $(this).find("img");
var img_w = img.attr("width");
var img_h = img.attr("height");
var img_h_m = img_h - 30;
var img_src = img.attr("src");
img.css('display' , 'none');
var paper = Raphael(this, img_w, img_h);
// iOS devices can not apply path background image correctly. We are using clipping instead.
if ($.browser.safari){
var p = "M0,30L"+img_w+",0L"+img_w+","+img_h_m+"L0,"+img_h+"L0,30";
var p_img = paper.image(img_src, 0, 0, img_w, img_h);
p_img.attr({
stroke: "none",
"clip-rect": p
});
}
else{
var c = paper.path("M 0 30 L "+img_w+" 0 L "+img_w+" "+img_h_m+" L 0 "+img_h+" L 0 30");
c.attr({
stroke: "none",
fill: "url("+img_src+")"
});
}
});
// Swap HomePage thumbnails with vector objects
$(".slide-h").each(function () {
var img_w = $(this).find("img").attr("width");
var img_h = $(this).find("img").attr("height");
var img_h_m = img_h - 15;
var img_src = $(this).find("img").attr("src");
var paper = Raphael(this, img_w, img_h);
if ($.browser.safari){
var p = "M0,15L"+img_w+",0L"+img_w+","+img_h_m+"L0,"+img_h+"L0,15";
var img = paper.image(img_src, 0, 0, img_w, img_h);
img.attr({
stroke: "none",
"clip-rect": p
});
}
else{
var c = paper.path("M 0 15 L "+img_w+" 0 L "+img_w+" "+img_h_m+" L 0 "+img_h+" L 0 15");
c.attr({
stroke: "none",
fill: "url("+img_src+")"
});
}
});
$("#multicol-gal.one_level_gal .img-holder div.i-am-overlay").append('<span href="#" class="zoom-gal"></span>').each(function () {
var img_w = $(this).parent("div").width();
var img_h = $(this).parent("div").height() + 2;
var img_h_m = img_h - 30;
var paper = Raphael(this, img_w, img_h);
if ($.browser.safari){
var p = "M0,30L"+img_w+",0L"+img_w+","+img_h_m+"L0,"+img_h+"L0,30";
var p_img = paper.image(gal_h, 0, 0, img_w, img_h);
p_img.attr({
stroke: "none",
"clip-rect": p
});
}
else{
var c = paper.path("M 0 30 L "+img_w+" 0 L "+img_w+" "+img_h_m+" L 0 "+img_h+" L 0 30");
c.attr({
stroke: "none",
fill: "url("+gal_h+")"
});
}
});
});
/*****************************************************************************************************************************************************/
//hover effect
$(function() {
$('.fadeThis, a.alignleft:not(.not), a.alignright, a.aligncenter, a.alignnone, .button-h, .gall_std li a').append('').each(function () {
var $span = $('> span.hover', this);
if ($.browser.msie && $.browser.version < 9)
$span.hide();
else
$span.css('opacity', 0);
$(this).hover(function () {
if ($.browser.msie && $.browser.version < 9)
$span.show();
else
$span.stop().fadeTo(500, 1);
}, function () {
if ($.browser.msie && $.browser.version < 9)
$span.hide();
else
$span.stop().fadeTo(500, 0);
});
});
$('.gall_std li a').each(function(){
var im = $(this).find('img');
var im_h = im.height();
var im_w = im.width();
$('span.hover', this).css({
height:im_h,
width:im_w
})
})
});
/******************************************************************************************************************************/
/* Service tooltips: tags, categories, social links, etc. */
$(function() {
$('.ico-l').each(function () {
var $tip = $('> .info-block', this);
var $span = $('> span', this);
if (!$span.length) {
var $span = $('> a', this);
};
=/ attempting to debug this issue, it just hangs on loading so hard to test in browser, advice is find there do_slash is called and try commenting it out see if that does it.
Hi there.... Still having issues with this. I know it is possible to disable this effect by altering the code in this Script.js file, but I´m really not sure exactly what to alter. The effect uses the Raphael vector library, but that also controls the nice category slider effect- so I don´t want to completely remove it.
The pages concerned are http://www.dejavumarbellavintage.com/new-arrivals/ and http://www.dejavumarbellavintage.com/deja-vu-gallery/
I simply want to remove this slash transformation, but keep all the other effects that this library provides.
If someone could help me with this, I´d be very greatful!!! I can handle changing the CSS backgrounds, but I´m really not sure what to change in this Script.JS file below.
_Would really appreciate some help from you Javascript experts. Thankyou.
$(document).ready(function() {
});
/************************************************************************************************************************************************/
/* Hover holder for svg-objects */ $(function() { $('#multicol:not(.portfolio_massonry) .img-holder, #multicol-gal .img-holder').append('
').each(function () { var $span = $('> div.i-am-overlay:not(.highslide-maincontent)', this); if ($.browser.msie && $.browser.version < 9) $span.hide(); else $span.css('opacity', 0); $(this).hover(function () { if ($.browser.msie && $.browser.version < 9) $span.show(); else $span.stop().fadeTo(500, 1); }, function () { if ($.browser.msie && $.browser.version < 9) $span.hide(); else $span.stop().fadeTo(300, 0); }); }); });
/****************************************************************************************************************/ /* Hoovers for svg-objects */ $(function() { // Add rollovers to gallery-posts thumbnails var slideshow_group_counter = 100; $("#multicol:not(.portfolio_massonry) .img-holder:not(.n-s) div.i-am-overlay").append('').each(function () { $('a.detal', this).attr('href', $(this).parent('div').find('a').attr('href'));
});
/*****************************************************************************************************************************************************/ //hover effect $(function() { $('.fadeThis, a.alignleft:not(.not), a.alignright, a.aligncenter, a.alignnone, .button-h, .gall_std li a').append('').each(function () { var $span = $('> span.hover', this); if ($.browser.msie && $.browser.version < 9) $span.hide(); else $span.css('opacity', 0); $(this).hover(function () { if ($.browser.msie && $.browser.version < 9) $span.show(); else $span.stop().fadeTo(500, 1); }, function () { if ($.browser.msie && $.browser.version < 9) $span.hide(); else $span.stop().fadeTo(500, 0); }); }); $('.gall_std li a').each(function(){ var im = $(this).find('img'); var im_h = im.height(); var im_w = im.width(); $('span.hover', this).css({ height:im_h, width:im_w }) }) });
/******************************************************************************************************************************/ /* Service tooltips: tags, categories, social links, etc. */ $(function() { $('.ico-l').each(function () { var $tip = $('> .info-block', this); var $span = $('> span', this); if (!$span.length) { var $span = $('> a', this); };
});
/****************************************************************************************************************/
/* New gallery */ $(function () {
});
/*************************************************************************************************************************************************/ $(document).ready(function(){ Cufon.CSS.ready(function() { var right_s = $('.static #pg_desc2 div, .video #pg_desc2 div').width() - $('.static #pg_desc1 div, .video #pg_desc1 div').width() + 20; var b = 70 + $('.static #pg_desc2 div, .video #pg_desc2 div').height();
});
/****************************************************************************************************************/
//jQuery.noConflict(); jQuery(document).ready(function($){
=/ attempting to debug this issue, it just hangs on loading so hard to test in browser, advice is find there do_slash is called and try commenting it out see if that does it.