This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var result=-10000; | |
function recur(index,sum,stair){ | |
/*global result <-- python shit baby*/ | |
if((index == (stair.length-1) || index == (stair.length-2)) && (result< sum)) | |
result = sum; | |
if(index+1 < stair.length) | |
recur(index+1, sum + stair[index+1],stair); | |
if(index+2 < stair.length) | |
recur(index+2, sum + stair[index+2],stair); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
/*variables*/ | |
var stair = [], routes = [], retours = [], sommes = [], result = false; | |
/*functions*/ | |
function recur(index,parc){ | |
if(index == (stair.length-1) || index == (stair.length-2) ){ | |
retours.push(parc); | |
} | |
if(index+1 < stair.length){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="js/jquery.js"></script> | |
<script type="text/javascript" src="js/jquery.chocolat.js"></script> | |
<link rel="stylesheet" href="css/chocolat.css" type="text/css" media="screen" charset="utf-8"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="series/1.jpg" rel="Titre de la série" title="Légende de l'image 1"><img width="100" src="series/mini/1.jpg" /></a> | |
<a href="series/2.jpg" title="Légende de l'image 2"><img width="100" src="series/mini/2.jpg" /></a> | |
<a href="series/3.jpg" title="Légende de l'image 3"><img width="100" src="series/mini/3.jpg"/></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$('selector').Chocolat({ | |
displayAsALink: true, | |
linkImages : true | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$('#demo a').Chocolat(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p id="demo"> | |
<a href="series/gouttes/1.jpg" rel="Title photoset" title="Caption image 1"><img src="series/gouttes/mini/1.jpg" width="100"></a> | |
<a href="series/gouttes/2.jpg" title="Caption image 2"><img src="series/gouttes/mini/2.jpg" width="100"></a> | |
<a href="series/gouttes/3.jpg" title="Caption image 3"><img src="series/gouttes/mini/3.jpg" width="100"></a> | |
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul id="linksContainer"></ul> | |
<p id="demoA"> | |
<a href="series/inerte/1.jpg" rel="Title photoset 1" title="Caption image 1"></a> | |
<a href="series/inerte/2.jpg" title="Caption image 2"></a> | |
<a href="series/inerte/3.jpg" title="Caption image 3"></a> | |
</p> | |
<p id="demoB"> | |
<a href="series/gouttes/1.jpg" rel="Title photoset 2" title="Caption image 1"></a> | |
<a href="series/gouttes/2.jpg" title="Caption image 2"></a> | |
<a href="series/gouttes/3.jpg" title="Caption image 3"></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$('#demoA a').Chocolat({displayAsALink : true, | |
linksContainer : 'linksContainer', | |
overlayColor:'#000', | |
leftImg:'images/leftw.gif', | |
rightImg:'images/rightw.gif', | |
closeImg:'images/closew.gif' | |
}); | |
$('#demoB a').Chocolat({displayAsALink : true, linksContainer : 'linksContainer'}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$('#demoA a').Chocolat({ | |
displayAsALink : true, | |
linksContainer : 'linksContainer', | |
overlayColor : '#000', | |
leftImg : 'images/leftw.gif', | |
rightImg : 'images/rightw.gif', | |
closeImg : 'images/closew.gif' | |
}); | |
$('#demoB a').Chocolat({ |
OlderNewer