Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Symro committed Jun 13, 2014
2 parents 26edd5e + cadaf54 commit 51dd8ea
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 36 deletions.
23 changes: 10 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ <h1>03.</h1>
<section id="credits" class="hidden">
<div class="credits">
<h2 class="title_credits">Le projet</h2>
<p class="after_line">The Place Toubib’ est un projet scolaire axé sur la datavizualisation (également appelée "visualisation de données interactives") et conçu par des étudiants d’<a href="hetic.net">HETIC</a>.
<p class="after_line">The Place Toubib’ est un projet scolaire axé sur la datavizualisation (également appelée "visualisation de données interactives") et conçu par des étudiants d’<a href="http://www.hetic.net/">HETIC</a>.
La majorité des données utilisées proviennent du site ecosante.fr et datent de 2013. Certaines sont également issues de l’INSEE et du Conseil National des Médecins, tandis que d’autres ont été calculées directement par nos soins, comme le prix moyen d’une consultation ou le nombre d’habitants pour un praticien.</p>
<h2 class="title_credits">L'équipe</h2>
<ul class="role_credits after_line">
<li><a href="http://www.audreyturquand.fr/" target="_BLANK"><span class="name_credits">Audrey Turquand</span></a> - Chef de projet / UI Designer</li>
<li><a href="http://www.augustinmenou.fr/" target="_BLANK"><span class="name_credits">Augustin Menou</span></a> - UX designer / UI designer</li>
<li><a href="http://www.alexandreguerard.fr/" target="_BLANK"><span class="name_credits">Alexandre Guérard</span></a> - Statisticien / Intégrateur (HTML5, CSS3, jQuery) </li>
<li><a href="#"><span class="name_credits" target="_BLANK">Audrey Chauprade</span></a> - Statisticien / Intégrateur (HTML5, CSS3)</li>
<li><a href="https://www.linkedin.com/in/audreychauprade"><span class="name_credits" target="_BLANK">Audrey Chauprade</span></a> - Statisticien / Intégrateur (HTML5, CSS3)</li>
<li><a href="http://www.florent-grandval.fr/" target="_BLANK"><span class="name_credits">Florent Grandval</span></a> - Développeur (D3.js, C3.js, Backbone, Underscore, jQuery)</li>
<li><a href="http://www.sylvainmroczko.fr/"><span class="name_credits">
Sylvain Mroczko</span></a> - Développeur (D3.js, C3.js, Backbone, Underscore, jQuery)</li>
Sylvain Mroczko</span></a> - Développeur (D3.js, C3.js, Backbone, Underscore, jQuery)</li>
</ul>
<h2 class="title_credits">Nous contacter</h2>
<p class="after_line"><a href="mailto:contact@theplacetoubib.fr">contact@theplacetoubib.fr</a></p>
Expand Down Expand Up @@ -283,7 +283,7 @@ <h5>Provenance des données</h5>
<a href="#">Partager ce résultat</a>
<div class="buttonShare">
<a target="_blank" href="http://www.facebook.com/sharer/sharer.php?s=100&amp;p[url]=http://www.theplacetoubib.fr/&amp;p[images][0]=http://www.theplacetoubib.fr/img/logoSplash.png&amp;p[title]=ThePlaceToubib&amp;p[summary]=Venez découvrir theplacetoubib, une dataviz ayant pour but de mettre en avant les déserts médicaux en France www.theplacetoutbib.fr" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600');return false;"><i class="icon-facebook"></i></a>
<a href="http://bit.ly/1xQk9cI" title="Venez decouvrir les resultats de votre departement @theplacetoutbib" class="tweet" target="_blank"><i class="icon-twitter"></i></a>
<a href="http://bit.ly/1xQk9cI" title="Ou se situe votre departement concernant l'acces aux soins ?@theplacetoutbib " class="tweet" target="_blank"><i class="icon-twitter"></i></a>
<span class="triangle"></span>
</div>
</div>
Expand Down Expand Up @@ -361,16 +361,13 @@ <h1>04.</h1>

<script src="js/app.js"></script>


<script src="//localhost:35729/livereload.js"></script>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
// (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
// function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
// e=o.createElement(i);r=o.getElementsByTagName(i)[0];
// e.src='//www.google-analytics.com/analytics.js';
// r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
// ga('create','UA-51415785-1', 'theplacetoubib.fr');ga('send','pageview');
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-51415785-1', 'theplacetoubib.fr');ga('send','pageview');
</script>
</body>
</html>
62 changes: 39 additions & 23 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ $(document).ready(function() {
.find('.tutoFirstStep').removeClass('hidden').addClass('animated fadeIn').end()
.fadeIn();

console.log("Affichage Tuto ");
// console.log("Affichage Tuto ");
});

App.router.on("route:filtre", function(filtre, dept) {
Expand Down Expand Up @@ -173,7 +173,7 @@ $(document).ready(function() {

// Affiche les infos d'un departement
App.displayInfoDept = function(num_Departement) {
console.log("_-_-_-_-_-_- App.displayInfoDept _-_-_-_-_-_- ");
// console.log("_-_-_-_-_-_- App.displayInfoDept _-_-_-_-_-_- ");
num_Departement = (num_Departement == "2A" || num_Departement == "2B") ? num_Departement : parseInt(num_Departement);

var info_dept = App.getInfo(num_Departement);
Expand Down Expand Up @@ -231,7 +231,7 @@ $(document).ready(function() {

if (parseInt(chiffre_fra) > parseInt(chiffre_dept)) {

console.log('inférieur');
// console.log('inférieur');
$("#chiffreDept h3 img").attr("src", "img/fleche_inf.png");

} else if (parseInt(chiffre_fra) < parseInt(chiffre_dept)) {
Expand Down Expand Up @@ -314,7 +314,7 @@ $(document).ready(function() {

App.checkHash = function() {

//console.log("HASH ACTUEL : " + window.location.hash);
// console.log("HASH ACTUEL : " + window.location.hash);

var hash = window.location.hash;
// analyse du hash actuel
Expand All @@ -331,7 +331,7 @@ $(document).ready(function() {
// > Affichage du filtre et dept de l'URL

if (customRegExp) {
console.log('on a un filtre : ' + customRegExp[1]);
// console.log('on a un filtre : ' + customRegExp[1]);

App.router.navigate("#/filtre/" + customRegExp[1] + "/dept_" + App.dept, {
trigger: true
Expand All @@ -352,7 +352,7 @@ $(document).ready(function() {

if (customRegExp[3]) {

console.log(" on a un depart. : " + customRegExp[3]);
// console.log(" on a un depart. : " + customRegExp[3]);
//App.dept = customRegExp[3];

}
Expand Down Expand Up @@ -1166,7 +1166,11 @@ $(document).ready(function() {
}

})
.on('mouseover', tip.show)
.on('mouseover', function() {
tip.show;
// Analytics
ga('send', 'event', 'graph', 'mouseover', 'barchart');
})
.on('mouseout', tip.hide);

// ajout les triangles sous chaque bar
Expand Down Expand Up @@ -1420,7 +1424,7 @@ $(document).ready(function() {

if (typeof legend === 'undefined') {

console.log("correction buuuuug");
// console.log("correction buuuuug");
// Création du SVG pour la légende
var legend = d3.select("#pieChart .pieChartLegend").append("svg")
.attr('width', 200)
Expand Down Expand Up @@ -1883,7 +1887,7 @@ $(document).ready(function() {


if ($(container).length == 0) {
console.log("/!\ Ce container (" + container + ") n'existe pas dans le DOM..");
// console.log("/!\ Ce container (" + container + ") n'existe pas dans le DOM..");
return false;
}

Expand All @@ -1892,7 +1896,7 @@ $(document).ready(function() {
.outerRadius(110)
.startAngle(0);

console.log(pourcentage);
// console.log(pourcentage);

d3.select(container + " .progressionPourcentage").transition()
.duration(750)
Expand Down Expand Up @@ -1954,7 +1958,7 @@ $(document).ready(function() {
dataNombre = data.length;

if (App.screenWidth < 1600) {
console.log("$(container).width() " + $("#rightSide").width());
// console.log("$(container).width() " + $("#rightSide").width());
height = 300;
cercleWidth = 250;
}
Expand All @@ -1972,7 +1976,7 @@ $(document).ready(function() {
.startAngle(0);

if (App.screenWidth < 1600) {
console.log("SCREEN : < 1600")
// console.log("SCREEN : < 1600")
cercleMarge = (dataNombre > 3) ? 20 : 25;

circleInnerRadius = 55,
Expand Down Expand Up @@ -2087,6 +2091,9 @@ $(document).ready(function() {
.transition().duration(250)
.style("opacity", "1");

// Analytics
ga('send', 'event', 'graph', 'mouseover', 'gaugechartmultiple', i);

})
.on("mouseout", function(d, i) {
var that = d3.select(this);
Expand Down Expand Up @@ -2171,7 +2178,7 @@ $(document).ready(function() {
$(container).show();

if ($(container).length == 0) {
console.log("/!\ Ce container (" + container + ") n'existe pas dans le DOM..");
// console.log("/!\ Ce container (" + container + ") n'existe pas dans le DOM..");
return false;
}
var circleInnerRadius = 65,
Expand All @@ -2182,7 +2189,7 @@ $(document).ready(function() {
cercleWidth = 310; // Diamètre externe du dernier cercle

if (App.screenWidth < 1600) {
console.log("SCREEN : < 1600")
// console.log("SCREEN : < 1600")
cercleMarge = (dataNombre > 3) ? 20 : 25;
circleInnerRadius = 55,
circleOuterRadius = 72;
Expand Down Expand Up @@ -2229,6 +2236,9 @@ $(document).ready(function() {
return nbFinal;
});

// Analytics
ga('send', 'event', 'graph', 'mouseover', 'gaugechartmultiple', i);

});

}
Expand All @@ -2253,7 +2263,7 @@ $(document).ready(function() {
// - 1 number OU string entre 0 et 100 > pourcentage
App.displayLineChart = function(data, dataMin, dataMax) {
$('#chartLine').fadeIn();
console.log(dataMin, dataMax);
// console.log(dataMin, dataMax);
var width = ($("#rightSide").width() - 80);
var height = 400;
var padding = {
Expand All @@ -2272,7 +2282,7 @@ $(document).ready(function() {
height = 300;
}

console.log("LineChart Width : " + width);
// console.log("LineChart Width : " + width);

App.lineChart = c3.generate({
bindto: '#chartLine',
Expand Down Expand Up @@ -2428,6 +2438,8 @@ $(document).ready(function() {
App.router.navigate(url, {
trigger: true
});
// Analytics
ga('send', 'event', 'menu', 'click', 'filtre', App.filtre);
}

});
Expand All @@ -2450,6 +2462,8 @@ $(document).ready(function() {
App.router.navigate(url, {
trigger: true
});
// Analytics
ga('send', 'event', 'menu', 'click', 'filtre', App.filtre);

});

Expand Down Expand Up @@ -2524,13 +2538,12 @@ $(document).ready(function() {

$('body').on("click", ".credits", function(e) {
e.preventDefault();
console.log(e);
// console.log(e);

if (e.target.className == "name_credits") {
window.open(e.target.parentElement.href, '_blank');
// }else if(event.target.is("a")){
// window.open(e.target.href, '_blank');

// window.open(e.target.href, '_blank');
} else {
$(this).parent('#credits').addClass('animated fadeOut').delay(700).queue(function(next) {
$(this).addClass('hidden');
Expand Down Expand Up @@ -2632,7 +2645,7 @@ $(document).ready(function() {

if (screenWidth < 1620) {

console.log('width inférieure a : ' + screenWidth);
// console.log('width inférieure a : ' + screenWidth);
this.params.width = 650;
this.params.height = 800;
this.params.center = {
Expand All @@ -2658,7 +2671,7 @@ $(document).ready(function() {

if (screenWidth < 1380) {

console.log('width inférieure a : ' + screenWidth);
// console.log('width inférieure a : ' + screenWidth);


this.params.width = 580;
Expand Down Expand Up @@ -2845,6 +2858,9 @@ $(document).ready(function() {
});
App.checkHash();
/* _____________ FIN AJOUT FLORENT - A GARDER _____________________________________ */
// Analytics
ga('send', 'event', 'map', 'click', 'dept', App.dept);

},

zoomParis: function() {
Expand Down Expand Up @@ -2873,7 +2889,7 @@ $(document).ready(function() {

rendered: function() {

console.log('map rendered');
// console.log('map rendered');

// var hash = window.location.hash;
// // analyse du hash actuel
Expand All @@ -2892,7 +2908,7 @@ $(document).ready(function() {
},

zoomed: function() {
console.log('Zoom sur paris');
// console.log('Zoom sur paris');
}

});
Expand Down

0 comments on commit 51dd8ea

Please sign in to comment.