previous

page 26

next
first_card_value() in helpers.js
function first_card_value() {
var v=g_click_card.id;
if (klass(g_click_card)=='temp') {
var i=v-100; var v=g_temp_col[i];
}
return parseInt(v);
}
klass(card) in helpers.js
function klass(card) {
var arr=['main','temp','final'];
var k='';
for (var i=0;i<arr.length;i++) {
if (card.classList.contains(arr[i])) {
k=arr[i];
}
}
return k;
}

more →

previous
next