浏览代码

Added some comments to javascript

Mike Greene 6 月之前
父节点
当前提交
6933c79c90
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      README.md

+ 7 - 7
README.md

@@ -137,7 +137,7 @@ for (var i = 0; i < cards.length; i++) {
     if (price<sellThreshold[cardVal.toString()]){
         cards.item(i).style.setProperty('Display','None');
     }
-}
+} //filter Player Page for salable cards
 ```
 
 
@@ -176,7 +176,7 @@ for (var i = 0; i < cards.length; i++) {
     }catch(err){stock=0;}}else{
         stock=0;
     }
-}
+} //Player page show number cards for sale
 ```
 
 #### Market Page
@@ -234,7 +234,7 @@ for (var i = 0; i < cards.length; i++) {
     if (clist[cardNum].status == 'CRYSTAL'){
         cards.item(i).style.setProperty('Display','None');
     }
-};
+} //filter Market for needed cards
 ```
 
 ##### javascript to filter Market for uncrystalized cards
@@ -268,7 +268,7 @@ for (var i = 0; i < cards.length; i++) {
     if (clist[cardNum].toString().includes('CRYSTAL')){
         cards.item(i).style.setProperty('Display','None');
     }
-}
+} //filter Market for uncrystalized cards
 ```
 
 ##### javascript to filter Market for good value cards
@@ -290,10 +290,10 @@ for (var i = 0; i < cards.length; i++) {
         qty.setAttribute("align", "center");
         innerCard.appendChild(qty);
         }
-    if (cardPPG < 2){
+    if (cardPPG < 2.5){
         cards.item(i).style.setProperty('Display','None');
     }
-}
+} //filter Market for good value cards
 ```
 
 #### Market Selling Page
@@ -353,7 +353,7 @@ for (var i = 0; i < cards.length; i++) {
     if (clist[cardNum] < sellThreshold[cardVal.toString()]){
         //cards.item(i).style.setProperty('Display','None');
     }
-}
+} //Market page show overbid cards for sale
 ```