Permalink
Browse files

Data-column to describe column id

  • Loading branch information...
1 parent 2196ee1 commit 3864bc8c0954f17882ba2af491a54ff9a05736a0 @vorg vorg committed Nov 17, 2011
Showing with 13 additions and 11 deletions.
  1. +2 −0 js/clusters.js
  2. +11 −11 surveyvisualization.html
View
2 js/clusters.js
@@ -16,6 +16,8 @@ Clusters.prototype.showDetails = function(caseData) {
var value = Number(field.text());
if (isNaN(value)) value = 0;
+ console.log(field.attr("data-column"));
+
field.html(
"<div class='value'>"+value+"</div>" +
"<div class='bar'>" +
View
22 surveyvisualization.html
@@ -50,27 +50,27 @@
<dt>Institution perspective</dt>
<dd>{{=impact-institutionorganisationperspective}}</dd>
<dt>Audience involvment</dt>
- <dd class="number">{{=audienceinvolvment}}</dd>
+ <dd class="number" data-column="audienceinvolvment">{{=audienceinvolvment}}</dd>
<dt>Audience engagement</dt>
- <dd class="number">{{=audienceengagement}}</dd>
+ <dd class="number" data-column="audienceengagement">{{=audienceengagement}}</dd>
<dt>Audience percpetion</dt>
- <dd class="number">{{=audienceperception}}</dd>
+ <dd class="number" data-column="audienceperception">{{=audienceperception}}</dd>
<dt>Exhibition elements</dt>
- <dd class="number">{{=exhibitionelements}}</dd>
+ <dd class="number" data-column="exhibitionelements">{{=exhibitionelements}}</dd>
<dt>Technology metaphor</dt>
- <dd class="number">{{=technologymetaphor}}</dd>
+ <dd class="number" data-column="technologymetaphor">{{=technologymetaphor}}</dd>
<dt>Technology context</dt>
- <dd class="number">{{=technologycontext}}</dd>
+ <dd class="number" data-column="technologycontext">{{=technologycontext}}</dd>
<dt>Identity construction</dt>
- <dd class="number">{{=identityconstruction}}</dd>
+ <dd class="number" data-column="identityconstruction">{{=identityconstruction}}</dd>
<dt>Representation</dt>
- <dd class="number">{{=representation}}</dd>
+ <dd class="number" data-column="representation">{{=representation}}</dd>
<dt>Historical perspective</dt>
- <dd class="number">{{=historicalperspective}}</dd>
+ <dd class="number" data-column="historicalperspective">{{=historicalperspective}}</dd>
<dt>Stance</dt>
- <dd class="number">{{=stance}}</dd>
+ <dd class="number" data-column="stance">{{=stance}}</dd>
<dt>Multinationalism</dt>
- <dd class="number">{{=multinationalism}}</dd>
+ <dd class="number" data-column="multinationalism">{{=multinationalism}}</dd>
<dt>Affiliation</dt>
<dd>{{=affiliation}}</dd>
</dl>

0 comments on commit 3864bc8

Please sign in to comment.