[
https://issues.apache.org/jira/browse/CB-12269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15760686#comment-15760686
]
Shazron Abdullah edited comment on CB-12269 at 2/28/17 4:26 AM:
----------------------------------------------------------------
i mean local images here is sample code , can you explain the issue?
{code}
var clicks = 0; //counts how may picks have been made in each turn
var firstchoice; //stores index of first card selected
var secondchoice; //stores index of second card selected
var match = 0; //counts matches made
var moves = 0; // count for the moves
var backg = "images/download.jpg"; //shows back of card when turned over
var imgArray = []; //array to store card images
imgArray[0] = "images/avatar-team.png";
imgArray[1] = "images/Project_Universal_Mario.png";
imgArray[2] = "images/Project_Universal_Mario.png";
imgArray[3] = 'images/crow.jpg';
imgArray[4] = 'images/mr-pink-green.png';
imgArray[5] = 'images/sparrow.jpg';
imgArray[6] = "images/apple.jpg";
imgArray[7] = "images/dot.jpg";
imgArray[8] = "images/Hopper-Cool.png";
imgArray[9] = "images/dot.jpg";
randomize(imgArray);
var customArray = [];
for (i = 0; i < imgArray.length; i++) {
customArray[i] = imgArray[i];
customArray[i+imgArray.length] = imgArray[i];// duplication of
array
}
imgArray = customArray;
//console.log(customArray);
randomize(customArray);
function drawGame(arr){ // draw game with array duplication
var divId = 'memory_board';
var output = '';
x = 0;
for(i = 0; i < arr.length; i++){
output += '<a href="javascript:choose('+i+')"><img
src="../images/download.jpg" width=100px height=100px margin=0 auto border= 1px
solid #fff /></a>';
x++;
if(x == 2){ // drawn boxes
output += '<br />';
x = 0;
}
}
document.getElementById(divId).innerHTML = output;
}
{code}
was (Author: sabayounis):
i mean local images here is sample code , can you explain the issue?
var clicks = 0; //counts how may picks have been made in each turn
var firstchoice; //stores index of first card selected
var secondchoice; //stores index of second card selected
var match = 0; //counts matches made
var moves = 0; // count for the moves
var backg = "images/download.jpg"; //shows back of card when turned over
var imgArray = []; //array to store card images
imgArray[0] = "images/avatar-team.png";
imgArray[1] = "images/Project_Universal_Mario.png";
imgArray[2] = "images/Project_Universal_Mario.png";
imgArray[3] = 'images/crow.jpg';
imgArray[4] = 'images/mr-pink-green.png';
imgArray[5] = 'images/sparrow.jpg';
imgArray[6] = "images/apple.jpg";
imgArray[7] = "images/dot.jpg";
imgArray[8] = "images/Hopper-Cool.png";
imgArray[9] = "images/dot.jpg";
randomize(imgArray);
var customArray = [];
for (i = 0; i < imgArray.length; i++) {
customArray[i] = imgArray[i];
customArray[i+imgArray.length] = imgArray[i];// duplication of
array
}
imgArray = customArray;
//console.log(customArray);
randomize(customArray);
function drawGame(arr){ // draw game with array duplication
var divId = 'memory_board';
var output = '';
x = 0;
for(i = 0; i < arr.length; i++){
output += '<a href="javascript:choose('+i+')"><img
src="../images/download.jpg" width=100px height=100px margin=0 auto border= 1px
solid #fff /></a>';
x++;
if(x == 2){ // drawn boxes
output += '<br />';
x = 0;
}
}
document.getElementById(divId).innerHTML = output;
}
> phonegap images not showing on android kitkat only showing white screen
> ------------------------------------------------------------------------
>
> Key: CB-12269
> URL: https://issues.apache.org/jira/browse/CB-12269
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Reporter: saba
>
> phonegap images not showing on android kitkat only showing white screen
> but showing on android lollipop, on android kitkat button text ect is showing
> properly. i don't understand why images not showing in kitkat version while
> its working properly in lollipop,
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]