Skip to content

Commit

Permalink
fixed spacing for remaining cases
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewsamuel95 authored Dec 7, 2016
1 parent 6b31d56 commit 6232752
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DealorNoDeal.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ body {
}

p{
font-size: 18pt;
font-size: 17pt;
font-family: 'Droid Sans Mono', monospace;
}

Expand Down
8 changes: 4 additions & 4 deletions DealorNoDeal.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function start(){
}
//remove last index ( which helped initalized the array)
cases.pop();
console.log(cases);
//console.log(cases);
}


Expand Down Expand Up @@ -115,8 +115,8 @@ function myFunction(buttonP){
var theOne;
for(var p=1;p<result.length+1;p++){

theAnswer+=" $"+result[p-1].toFixed(0).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
if(p%3==0)
theAnswer+="&emsp;$"+result[p-1].toFixed(0).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
if(p%2==0)
theAnswer+="<div>";

}
Expand All @@ -135,7 +135,7 @@ function theTurns() {
if(casesRemain==1){
window.location="theResult.html";
}
console.log(casesRemain);
//console.log(casesRemain);
}

function noDeal(){
Expand Down
1 change: 1 addition & 0 deletions theResult.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="DealorNoDeal.css" />
<link rel="icon" href="demo_icon.gif" type="image/gif" sizes="16x16">
<style>
@import url('https://fonts.googleapis.com/css?family=Droid+Sans+Mono|Libre+Franklin|Press+Start+2P|Rubik+Mono+One');
body {
Expand Down

0 comments on commit 6232752

Please sign in to comment.