Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,699 members, 7,820,443 topics. Date: Tuesday, 07 May 2024 at 02:52 PM

Phainix's Posts

Nairaland Forum / Phainix's Profile / Phainix's Posts

(1) (of 1 pages)

Programming / Re: After 10days Of Coding With Html, Css And Javascript Forum4africa Is Ready by phainix: 7:12pm On Sep 08, 2017
Hi AfricaNigerian, nice work you have up there, for your first trial you didn't do quite so bad, i'm sure a lot of people have said this but you need to work on your colour scheme, stick to one shade of red, and use different variations of the same shade so it doesn't look funny. You could also try asking your friends if they think your colours look nice because its always good to have extra eyes on something

"The <font> tag is not supported in HTML5. Use CSS instead. The <font> tag specifies the font face, font size, and color of text."
lots of the tags you used aren't supported by html5, so i'll advice you to go through tutorials that adhere to html5 standards check out https://www.w3schools.com

Furthermore Fonts are a very big issue in web design so please try to use good fonts check out [url]fonts.google.com[/url] for amazing free fonts, you can just use a cdn: by cdn i mean content delivery network and your site will look a lot better,

<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">

add this to the head tag and use this in css

font-family: 'Roboto', sans-serif;


Also instead of using <br/> to create new lines its better to set your css style as
display: block
this automatically makes it stay on a single line and any text or image after it has to start from the next line

There are lots of things for you change but most important of all is to get familiar with bootstrap. https://v4-alpha.getbootstrap.com/
Check out the tutorial it helps you build simple, beautiful and responsive sites, so you wouldn't have to build the desktop version and mobile version separately.
Programming / Re: Please Someone Should Help Me With This Code. by phainix: 6:46pm On Sep 08, 2017
laxrt:
next time wrap your code with a [code ]your code [/code ] so that it preserves the indentation

1) there should be a '+' between 'correct' and 'of' in the part
test.innerHTML = "<h2>You got "+correct" of "+questions.length+" questions correct</h2>"


2) its getElementsByName , note the 's' after Element

3) Ever heard of the javascript console

I hope you were able to resolve your issue with this comment because listed here are all your errors, here is a corrected version


<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
div#test{ border:#000 1px solid; padding:10px 40px 40px 40px; }
</style>
<script>
var pos = 0, test, test_status, question, choice, choices, chA, chB, chC, correct = 0;
var questions = [
["What is 10 + 4?", "12", "14", "16", "B" ],
["What is 20 - 9?", "7", "13", "11", "C" ],
["What is 7 x 3?", "21", "24", "25", "A" ],
["What is 8 / 2?", "10", "2", "4", "C" ]
];
function _(x){
return document.getElementById(x);
}
function renderQuestion(){
test = _("test"wink;
if(pos >=questions.length){
test.innerHTML = "<h2>You got "+correct+" of "+questions.length+" questions correct</h2>";
_("test_status"wink.innerHTML = "Test completed";
pos = 0;
correct = 0;
return false;
}
_("test_status"wink.innerHTML = "Question "+(pos+1)+" of "+questions.length;
question = questions[pos][0];
chA = questions[pos][1];
chB = questions[pos][2];
chC = questions[pos][3];
test.innerHTML = "<h3>"+question+"</h3>";
test.innerHTML += "<input type='radio' name='choices' value='A'> "+chA+"<br>";
test.innerHTML += "<input type='radio' name='choices' value='B'> "+chB+"<br>";
test.innerHTML += "<input type='radio' name='choices' value='C'> "+chC+"<br><br>";
test.innerHTML += "<button onclick='checkAnswer()'>Submit Answer</button>";
}
function checkAnswer(){
choices = document.getElementsByName("choices"wink;
for(var i=0; i<choices.length; i++){
if(choices[i].checked){
choice = choices[i].value;
}
}
if(choice == questions[pos][4]){
correct++;
}
pos++;
renderQuestion();
}
window.addEventListener("load", renderQuestion, false);
</script>
</head>
<body>
<h2 id="test_status"></h2>
<div id="test"></div>
</body>

</html>

2 Likes

Programming / Re: I Promise You, You Haven't Seen Anything More Hilarious by phainix: 9:21am On Aug 28, 2017
**shakes head** the things programmers do in the name of validation. God bless javascript
Programming / Re: How Best Can I Read DOM Of External Pages? by phainix: 9:17am On Aug 28, 2017
Hi Desyner, im not sure what you want to achieve but with php you can use 'file_get_contents', it'll fetch all the html code on the page and you can probably do your sorting from there

echo file_get_contents('https://www.google.com.ng');
Programming / Re: Coder's Hub - Connecting Like Minded Developers by phainix: 1:41pm On Aug 24, 2017
http://verboselogging.com/2010/11/16/how-to-be-a-successful-software-engineer
How To Be a Successful Software Engineer

https://blog.bloc.io/7-traits-of-effective-software-engineers/
7 Traits of Effective Software Engineers
If you’re considering a career as a software engineer, then you may have heard how difficult it is to learn. But the right mindset can give you a significant advantage when learning and working in the industry. Software ...
Programming / Re: Coder's Hub - Connecting Like Minded Developers by phainix: 1:39pm On Aug 24, 2017
https://www.freelancer.com/community/articles/why-do-programming-languages-have-weird-names?utm_campaign=20170824weirdol&utm_medium=email&utm_source=&ft_prog=MEE&ft_prog_id=850016504
Why Do Programming Languages Have Weird Names?
A good number of the programming languages have logical names (acronyms) that tell you what you can achieve with it. For example, CSS means Cascading Style Sheet, HTML means HyperText Markup Language, and so on. At other times, the name can...

https://www.freelancer.com/community/articles/11-steps-to-becoming-the-developer-that-every-business-wants?utm_campaign=20170824weirdol&utm_medium=email&utm_source=&ft_prog=MEE&ft_prog_id=850016510
11 Steps To Becoming The Developer That Every Business Wants
Being good at coding lets you envisage a successful career in the future, but have you ever thought whether that makes you successful as a developer?...

https://www.freelancer.com/community/articles/37-free-udemy-courses-on-various-topics?utm_campaign=20170824weirdol&utm_medium=email&utm_source=&ft_prog=MEE&ft_prog_id=850016516
37 Free Udemy Courses On Various Topics
Everybody knows there is always room to improve. If you want to stay on top of your game, you’ll have to keep up with the newest programming or leadership skills to help you achieve this. The strain of competition...

https://www.freelancer.com/community/articles/6-no-brainer-seo-tips-for-total-beginners?utm_campaign=20170824weirdol&utm_medium=email&utm_source=readnow&ft_prog=MEE&ft_prog_id=850016523
6 No-Brainer SEO Tips For Total Beginners
In a tech survey, one of the researchers mentioned that over 100 websites are uploaded on the internet every minute. It’s possible because as the earth makes a slight move on its axis, the human population is putting their brains at work on how to use t...
Programming / Re: Coder's Hub - Connecting Like Minded Developers by phainix: 1:49pm On Aug 02, 2017
A Few Interesting Reads
[url]http://www.kdnuggets.com/2017/07/6-reasons-python-suddenly-super-popular.html [/url]
6 Reasons why python is suddenly popular
Python is an older language than you might think, this first version was released in 1991. A lot has changed since, and Python is lauded for its versatility amongst its users. But what makes Python special?

https://www.nytimes.com/2017/07/29/opinion/sunday/artificial-intelligence-is-stuck-heres-how-to-move-it-forward.html?_r=0
Artificial Intelligence Is Stuck. Here’s How to Move It Forward.
With AI dominating the media, we may soon come to realize that there is still a long way to go. How do we move AI research forward? A large international cooperation such as CERN may be the solution.

https://m.phillydevshop.com/apples-refusal-to-support-progressive-web-apps-is-a-serious-detriment-to-future-of-the-web-e81b2be29676
Apple’s refusal to support Progressive Web Apps is a detriment to future of the web
Progressive Web Applications (PWAs) are one of the most exciting and innovative things happening in web development right now. PWA’s enable…
Greg Blass
Programming / Re: Coder's Hub - Connecting Like Minded Developers by phainix: 4:49pm On Jul 26, 2017
For the PHP Laravel Enthusiasts
Laravel Nigeria Meetup [Lagos] is happening July 29.

Theme: Building World Class Applications
When: Saturday, July 29, 2017 12:00 PM
Where: Andela Nigeria Office
235 Ikorodu Road, beside Mutual Insurance before Obaniroko, Lagos (map)

The Laravel Nigeria meetup will focus on how you can build world class applications in the real world using the Laravel PHP framework. Invite all you can to join in with us as we make history again and build for the future.
There will be a lot of games and a lot of refreshments. Not only code speak. Lets all come together and bring the fire! �������

Please register at : https://www.meetup.com/Laravel-Nigeria/events/240522436/?a=socialmedia

1 Like

Programming / Re: Coder's Hub - Connecting Like Minded Developers by phainix: 4:45pm On Jul 26, 2017
In the spirit of sharing info,
The Google Developers Group (GDG) Lagos Conference is happening this Friday, 28th of July. Come join experts as they take you through their projects, favourite stacks, libraries and tools and how they use them and why you should too.

For more details, see the full listing:
https://www.meetup.com/gdg-lagos/events/241974032/

When: Friday, July 28, 2017 10:00 AM

Where: The Zone
Plot 9, Block A, Gbagada Industrial Scheme, Beside UPS Gbagada
Lagos

Please Register at: https://www.eventbrite.com/e/gdglagos-developer-conference-tickets-36401066570
Programming / Coder's Hub - Connecting Like Minded Developers by phainix: 4:37pm On Jul 26, 2017
Coder's Hub - Connecting like minded developers

This hub is born out of the need to improve communication in the coding ecosystem, lots of technical developments are going on in Nigeria and the world at large and the average programmer might have little or no information about it.
This platform aims to discuss trending topics in tech, new programming languages, boiler plates, online resources, tech meet-ups and a host of other topics. And of course we'll thrash out the never ending debates on the best programming practices and hopefully enlighten a budding developer somewhere...

"The problem isn't lack of information, but rather how and where to source for it"

(1) (of 1 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 45
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.