0
Code wonât work ok IOS
Hello, I recently got a iPhone and quickly installed SoloLearn. However I noticed that the codes donât really execute. It goes into first frame then it stops. Like if the CSS was non existent. Give me a hand? This is my first IOS device and Iâve only used Android in the past (which Iâm starting to miss lol) well Iâm going to leave the code underneath and please give me any pointers as to how this can work. I havenât been able to edit in 3 days now!!! https://code.sololearn.com/W6rUj6fjbT7l/?ref=app
22 Antworten
+ 4
Hi @Joey
I fixed your code.
Have a look
https://code.sololearn.com/WA78T09DB0PB
Enjoy
+ 4
i will do my best :) i found in sololearn app on ios there are some challenges, for example innerHeight is not working properly unless you set a viewport in the meta tag. btw your code is working fine in safari browser on ipad, try on your phone. i assume your screen is bigger than iphone se. it should be something you need to do differently. i suspect a ~ character might be an issue. try to show/hide sections using javascript.
+ 4
sure, you can mention me. Joey great game! thank you too, your game inspired me to start learning css selectors. it is amazing what you did! hope to see more cool games from you soon. Cheers
+ 4
Joey the small error was caused by href being null. i wrapped href with if (href!=null) and the error is gone. see my updated code. strangely i was only able to see the error in Bluestacks as i donât have an Android phone. đ
+ 4
https://code.sololearn.com/WA78T09DB0PB/?ref=app :) see the modified javascript in the end of your code
+ 4
Thank you, Joey no problem. I am glad that I helped you. You will find that javascript is quite different from 'proper' object-oriented languages, but it has it's own beauty. It is one of the top languages today and keeps growing in popularity. you will learn basics of the language in few days if you decide (Sololearn tutorials, https://www.w3schools.com/) In my case I found that the CSS is quite tricky (I am mostly a C# developer), it was always intriguing me, it looked as a crypto language, like a regular expressions before I learnt how to read them. Now I decided that I want to master the CSS too. @Sololearn is really good place to get inspired, thank you for creating this great resource!!!
+ 4
hey Joey you donât need to post your phone number here, i will send you an email later. cheers
+ 4
the sololearn app just crashed âšď¸ when i was trying to read your comment on my code
+ 3
it works on iphone se, but doesnât work on the ipad.
+ 1
wave rider yes ill try that :) thank you! im using ipad air and iphone 6S only works in ipad safari not iphone 6s safari
+ 1
wave rider omg thank you sooo much!!! ill update it asap! is ot okay if i pit your name in the code? as a âthank youâ?
+ 1
wave rider no worries! i added you to the game on the front page credits. it gives a small error (dont know why) but it still works lol đđ
+ 1
wave rider dude you are a life saver!!! where is the code at? i wanna see it! dang man you make ot look soo ease xD
+ 1
wave rider dude!!! it works and its awesome!! thank youuu!!
honeslty i can really code nothing usefull in JS âšď¸ i only really know allot of CSS and some basic HTML
thank you for your help!
+ 1
wave rider wow thanks! thays awesome, a C developer! i dont know many of you.
well i mostly code for Android (recently wanting to give IOS a try and its a nightmare!)
I create games for the google play store and have a few there.
my languages are
Java (80% to 90%) mastered.
but its getting kinda obselete âšď¸
PHP (70%) mastered. i love ot because i keep all my android games there and even made a small server for one for multy players.
CSS (70%) mastered. CSS is SUPER SIMPLE just basic # and Notes and your page is your playground :)
HTML (10%) My html skills are horrible and i hate them. i only know basic tags and comands and i code the rest in CSS and sadly i have no Java Script skills.
hey if you ever need help with any of those codes let me know. i can give you a hand :)
but again i mostly make Android apps.
contact me if you want
email:
yoelvisguerra@icloud.com
phone:
7865605768
0
well there is no css in the code so technically it is non-existent. but the game itself works fine for me.
0
hinanawi the css is with in the header <Style> im running it all from HTML and no external source (for simplicity sakes)
0
Joey oh in that case that works fine too, the background and the text display properly
0
hinanawi lol okay okay thank you đ guess its just my phone then.
0
wave rider help! i havent been able to update my code since i switched to IOS omg i hate thiss