Skip to content

Commit

Permalink
Merge pull request #26 from DealerDirect/fix
Browse files Browse the repository at this point in the history
Fixes some minor issues caused by previous PR.
  • Loading branch information
Potherca committed Mar 9, 2017
2 parents ab585aa + 77438e6 commit 7c502d8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 32 deletions.
38 changes: 12 additions & 26 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
2. Javascript Zoom
3. Breadcrumbs
4. Helper Classes
5. Print Styles
5. Table of Content
6. Print Styles
*/

/********( CSS Introduction )**************************************************/
Expand Down Expand Up @@ -59,6 +60,16 @@ ol.breadcrumbs {
display: none;
}

/*=======( Table of Content )================================================*/
/*/ Using numbers instead of bullets for listing /*/
#table-of-contents + ul {
list-style: decimal;
}

#table-of-contents + ul ul {
list-style: upper-roman;
}

/*=======( Print Styles )=====================================================*/
@media print {
.banner,
Expand All @@ -72,28 +83,3 @@ ol.breadcrumbs {
}

/********( EOF )***************************************************************/

/*=======( Table of Content )================================================*/
/*/ Adding 'Contents' headline to the TOC /*/
#table-of-contents
#markdown-toc::before {
content: "Contents";
font-weight: bold;
}

/*/ Using numbers instead of bullets for listing /*/
#table-of-contents + ul {
list-style: decimal;
}

#table-of-contents + ul ul {
list-style: upper-roman;
}


#markdown-toc {
border: 1px solid #aaa;
display: inline-block;
list-style: decimal;
padding: 1.5em;
}
14 changes: 8 additions & 6 deletions assets/js/protocols-estimating-developer-pain-criteria.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

'use strict';

var g_aCriteria = [], g_oPoints;

function addEventHandler(p_sSubject, p_oPoints, p_oCriteria, p_iCriteriaIndex) {
var sOpposite;

Expand Down Expand Up @@ -64,11 +66,11 @@
oCriteria[sKey] = $(p_oCellElement);
});

aCriteria.push(oCriteria);
g_aCriteria.push(oCriteria);
}

function main (p_sTableSelector) {
var aCriteria = [], oPoints, $Help, $Score, $Table;
var $Help, $Score, $Table;

$Table = $(p_sTableSelector);

Expand All @@ -86,11 +88,11 @@
$Score.insertBefore($Table.parent());
$Help.insertAfter($Score);

oPoints = {'lower': 10 / aCriteria.length, 'upper': 100 / aCriteria.length};
g_oPoints = {'lower': 10 / g_aCriteria.length, 'upper': 100 / g_aCriteria.length};

$.each(aCriteria, function (p_iCriteriaIndex, p_oCriteria) {
addEventHandler('lower', oPoints, p_oCriteria, p_iCriteriaIndex);
addEventHandler('upper', oPoints, p_oCriteria, p_iCriteriaIndex);
$.each(g_aCriteria, function (p_iCriteriaIndex, p_oCriteria) {
addEventHandler('lower', g_oPoints, p_oCriteria, p_iCriteriaIndex);
addEventHandler('upper', g_oPoints, p_oCriteria, p_iCriteriaIndex);

});
}
Expand Down
8 changes: 8 additions & 0 deletions quotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ This will be displayed thus:
## Quotes

<!--
Comment used in the .gitkeep files:
- > _“Without requirements or design, programming is the art of adding bugs to an empty text file.”_
> ~ Louis Srygley
-->

### Definitions

- > _“If anyone wants to know what the definition of 'dope' means, it's: 'Definition of Public Enemy.'”_
Expand Down

0 comments on commit 7c502d8

Please sign in to comment.