Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <p id="trust"><a id="PS" href="nouscab.php#FP">Site s&eacute;curis&eacute;</a>
<br />
<a id="GB" href="nouscab.php#FP">Satisfait ou rembours&eacute;</a></p>


<ul id="menuhaut">
<li><a href="b.php?a=A1AL&amp;r=pxet&amp;c=CGV">CGV et FAQ</a>
<ul><li><a href="b.php?a=A1AL&amp;r=pxet&amp;c=CGV">Conditions de vente (13 rubriques)</a></li>
<li><a id="FP" href="nouscab.php#FP">Quels sont les frais de port ?</a></li>
<li><a id="PR" href="nouscab.php#PR">Avez-vous une boutique o&ugrave; retirer les produits ?</a></li>
<li><a id="DV" href="nouscab.php#DV">Pouvez-vous envoyer un devis ?</a></li>
<li><a href="b.php?a=A1AL&amp;r=pxet&amp;c=CGV#MA">Acceptez-vous les mandats administratifs ?</a></li>
</ul></li><li><a href="b.php?a=A1AL&amp;r=pxet&amp;c=NCT">Contact<span> et Forum</span></a><ul><li><a href="b.php?a=A1AL&amp;r=pxet&amp;c=NCT">Envoyer un mail</a></li><li><a href="/bb/index.php?a=A1AL&amp;r=pxet">Forum technique</a></li>
<li><a id="OS" href="nouscab.php#QS">Coordonn&eacute;es compl&egrave;tes</a></li>
<li><a href="b.php?a=A1AL&amp;c=Par">Partenaires</a></li></ul></li></ul>


<div id="recherche">
<div class="list">
<img id="1261X420" src="im/pr/1261G.jpg" width="110" height="89" alt="" /><ul>
<li class="tit"><input type="checkbox" name="fich&#091;&#093;" value="1261" /><a class="cat" href="b.php?a=A9L3et-cA9-aut-bma&amp;c=Voi&amp;h=1261">Cordon RJ45 Cat6a, UTP, surmoul&eacute;</a></li>
<li class="des">Ce c&acirc;ble droit de cat&eacute;gorie 6a est de norme U&nbsp;/ UTP (UTP), c&#039;est-&agrave;-dire non blind&eacute;.</li>
<li class="comp">Value |<i> 70 versions de 0,5 &agrave; 20&nbsp;m</i> | de 2,40 &agrave; 24,86&nbsp;&euro;&nbsp;TTC</li>
</ul></div>

<div class="list"><img id="659X120" src="im/pr/659G.jpg" width="110" height="108" alt="" /><ul>
<li class="tit"><input type="checkbox" name="fich&#091;&#093;" value="659" /><a class="cat" href="b.php?a=A9L3et-cA9-aut-bma&amp;c=Voi&amp;h=659">Cordon RJ45 Cat6a, UTP, surmoul&eacute;, avec d&eacute;vidoir</a></li>
<li class="des">Ce c&acirc;ble droit de cat&eacute;gorie 6a est de norme U&nbsp;/ UTP (UTP), c&#039;est-&agrave;-dire non blind&eacute;. Il est combin&eacute; &agrave; une sorte de d&eacute;vidoir (DeskPatch) permettant de bien ranger la longueur de c&acirc;ble en surplus.</li>
<li class="comp">PatchSee |<i> 5,00&nbsp;m </i>|<i> 4 versions | Prix HT : 4,74&nbsp;&euro;</i> | 5,69&nbsp;&euro;&nbsp;TTC | <i class="trv"><a href="nouscab.php#OR">Origine</a> France</i> | <i class="trv">Note&nbsp;</i>: <i class="trv">5</i> - <i class="trv">1 avis</i></li>
</ul></div>

<div class="list"><img id="740X700" src="im/pr/740G.jpg" width="110" height="80" alt="" /><ul>
<li class="tit"><input type="checkbox" name="fich&#091;&#093;" value="740" /><a class="cat" href="b.php?a=A9L3et-cA9-aut-bma&amp;c=Voi&amp;h=740">Cordon RJ45 Cat6a, UTP, surmoul&eacute;, sans halog&egrave;ne, Component Level</a></li>
<li class="des">Ce c&acirc;ble droit de Cat&eacute;gorie 6 est &agrave; gaine LSZH (Low Smoke Zero Halog&egrave;ne). Il est de norme U&nbsp;/ UTP (UTP), c&#039;est-&agrave;-dire non blind&eacute;. Fiche Snagless c&#039;est-&agrave;-dire que le clip de fixation est prot&eacute;g&eacute; par une languette souple.</li>
<li class="comp">Roline |<i> 124 versions de 0,3 &agrave; 20&nbsp;m</i> | de 4,21 &agrave; 25,81&nbsp;&euro;&nbsp;TTC | <i class="trv"><a href="nouscab.php#OR">Origine</a> France</i> | <i class="trv">Note&nbsp;</i>: <i class="trv">4,8</i> - <i class="trv">5 avis</i></li>
</ul></div>
</div>

<ul id="ba">
<li><a id="LI" href="nouscab.php#LI" class="adp">Aide</a></li>
</ul>
              
            
!

CSS

              
                
              
            
!

JS

              
                document.getElementById('recherche').addEventListener('click', function(e){
	if(e.target.nodeName === 'IMG') {
  	const idImg = e.target.id.split('X');
    const id = idImg[0];
    const height = idImg[1];

    /*
    window.open(`popup.php?nom=${id}G.jpg`,'',`scrollbars=yes,resizable=yes,width=420,height=${height}`);
*/
    
// Pour IE

const win=window.open(
	"popup.php?nom="+id+"G.jpg",
	"", "scrollbars=yes,resizable=yes,width=420,height="+height
);
    
  }
});

const liens = document.querySelectorAll('#trust a, #ba a');

for(let i=0;i<liens.length;i++){
	if(liens[i].id) {
		liens[i].addEventListener("click",function(e){
			const win=window.open(
				"nouscab.php#"+this.id,
				"", 
				"scrollbars=yes,resizable=yes,width=420,height=420"
			);
			
e.preventDefault();			
			
		})
	}
}


const a = document.querySelectorAll('#menuhaut a');

for(let i=0; i < a.length; i++)
(a[i].addEventListener('click', function(e){
 
  var parent = this.parentNode.parentNode.querySelector('#menuhaut');
 
 if(this.id){
  		const win=window.open(
				"nouscab.php#"+this.id,
				"", 
				"scrollbars=yes,resizable=yes,width=420,height=420"
			);	
 
   e.preventDefault();
   
   }
  
}))


const orig = document.querySelectorAll('div.list i.trv > a');

for(let i=0; i < orig.length; i++)
{
orig[i].addEventListener ('click', function (e)
{
const win=window.open (
"nouscab.php#OR",
                "",
                "scrollbars=yes,resizable=yes,width=420,height=420"
            );

e.preventDefault();
}
);

}

              
            
!
999px

Console