Jump to content

Hugo.b

Members
  • Posts

    101
  • Joined

  • Last visited

Profile Information

  • First Name
    Hugo
  • Last Name
    Bruneau

Hugo.b's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Ok merci beaucoup pour la piste je regarde. **Je valide, f12 puis f1 puis décocher "Enable CSS source maps"** Merci
  2. Bonjour a tous Je ne trouve pas les fichier scss a modifier. en effet quand je suis sur l'inspecteur d’élément il me dit d'aller dans un répertoire qui n'existe pas sur mon ftp. Mon cache est désactiver et vider sur mon navigateur. Savez-vous ou je peux trouver les fichier a modifier ??. Merci d'avance
  3. Voici le code, ;(function($) { $.fn.rwdImageMaps = function() { var $img = this; var rwdImageMap = function() { $img.each(function() { if (typeof($(this).attr('usemap')) == 'undefined') return; var that = this, $that = $(that); // Since WebKit doesn't know the height until after the image has loaded, perform everything in an onload copy $('<img />').on('load', function() { var attrW = 'width', attrH = 'height', w = $that.attr(attrW), h = $that.attr(attrH); if (!w || !h) { var temp = new Image(); temp.src = $that.attr('src'); if (!w) w = temp.width; if (!h) h = temp.height; } var wPercent = $that.width()/100, hPercent = $that.height()/100, map = $that.attr('usemap').replace('#', ''), c = 'coords'; $('map[name=' + map + ']').find('area').each(function() { var $this = $(this); if (!$this.data©) $this.data(c, $this.attr©); var coords = $this.data©.split(','), coordsPercent = new Array(coords.length); for (var i = 0; i < coordsPercent.length; ++i) { if (i % 2 === 0) coordsPercent = parseInt(((coords/w)*100)*wPercent); else coordsPercent = parseInt(((coords/h)*100)*hPercent); } $this.attr(c, coordsPercent.toString()); }); }).attr('src', $that.attr('src')); }); }; $(window).resize(rwdImageMap).trigger('resize'); return this; }; })(jQuery);
  4. hello I made a a responsive image map i want to put my code in the "home editor" module. My JQUERY file is on my server, however the responsive not work, in google chrome i have faur error : Uncaught TypeError: $input.autocomplete is not a function: blocksearch.js:36 Uncaught TypeError: $(...).uniform is not a function:15-jquery.uniform-modified.js:1076 Uncaught TypeError: Cannot read property 'update' of undefined : 15-jquery.uniform-modified.js:1082 Uncaught TypeError: Cannot read property 'update' of undefined: 15-jquery.uniform-modified.js Here is my jsquery code : ;(function(a){a.fn.rwdImageMaps=function(){var c=this;var b=function(){c.each(function(){if(typeof(a(this).attr("usemap"))=="undefined"){return}var e=this,d=a(e);a("<img />").load(function(){var g="width",m="height",n=d.attr(g),j=d.attr(m);if(!n||!j){var o=new Image();o.src=d.attr("src");if(!n){n=o.width}if(!j){j=o.height[spam-filter]var f=d.width()/100,k=d.height()/100,i=d.attr("usemap").replace("#",""),l="coords";a('map[name='+i+']').find("area").each(function(){var r=a(this);if(!r.data(l)){r.data(l,r.attr(l))}var q=r.data(l).split(","),p=new Array(q.length);for(var h=0;h<p.length;++h){if(h%2===0){p[h]=parseInt(((q[h]/n)*100)*f)}else{p[h]=parseInt(((q[h]/j)*100)*k)[spam-filter]r.attr(l,p.toString())})}).attr("src",d.attr("src"))})};a(window).resize( .trigger("resize");return this[spam-filter])(jQuery); My html code attached Thank you fot your help responsive_map_avd-responsive.html
  5. Bonjour, j'ai fais une image map responsive. Je veux mettre mon code dans le module editeur home. Le fichier jquery et l'image sont sur mon serveur cependant le respOnsive ne passe pas... sur le site ps : le responsive marche quand je test dans un navigateur. fichier jquery : ;(function(a){a.fn.rwdImageMaps=function(){var c=this;var b=function(){c.each(function(){if(typeof(a(this).attr("usemap"))=="undefined"){return}var e=this,d=a(e);a("<img />").load(function(){var g="width",m="height",n=d.attr(g),j=d.attr(m);if(!n||!j){var o=new Image();o.src=d.attr("src");if(!n){n=o.width}if(!j){j=o.height[spam-filter]var f=d.width()/100,k=d.height()/100,i=d.attr("usemap").replace("#",""),l="coords";a('map[name='+i+']').find("area").each(function(){var r=a(this);if(!r.data(l)){r.data(l,r.attr(l))}var q=r.data(l).split(","),p=new Array(q.length);for(var h=0;h<p.length;++h){if(h%2===0){p[h]=parseInt(((q[h]/n)*100)*f)}else{p[h]=parseInt(((q[h]/j)*100)*k)[spam-filter]r.attr(l,p.toString())})}).attr("src",d.attr("src"))})};a(window).resize(.trigger("resize");return this[spam-filter])(jQuery); merci pour votre aide responsive_map_avd-responsive.html
  6. Merci pour votre réponse webconcept76, je test ca
  7. Hello everyone, I want to know how to change my product.tpl file to add a permanent image. Attached photo 1 without changes, and the picture 2 with the end result Thank you for your help. photo 1.bmp photo 2.bmp
  8. Bonjour a tous, Je voudrais savoir comment modifier mon fichier product.tpl ou un autre fichier pour ajouter une image permanente. Ci-joint la photo 1 sans les modifications et sur la photo 2 le résultat final que je souhaite. Merci pour votre aide. photo 1.bmp photo 2.bmp
  9. je ne comprend pas ritopina **************ouuuups *2 *************
  10. Il ne s'agit pas de mon site... je veux juste savoir si les failles de prestashop sont connus et comment faire pour que cela n'arrive pas a mon site
  11. Bonjour je vois de plus en plus de site hacker qui passe sur le site zone-h, par exemple :http://bebiplus.com/js.php Savez-vous les failles, ou ce qu'il faut mettre en place pour les corriger ? Bonne journée Hugo
×
×
  • Create New...