<< Back to Programming Forum   Search

Posts 1 - 13 of 13   
Programming Clan: 6/10/2016 04:16:31


NinjaNic 
Level 59
Report
Hi all!

If you're interested in programming, (not necessarily CLOTs or other WarLight-related things), join ACE! It's going to be developer-friendly, and a great place to find some teamwork/coding help. Ask here for an invitation!

~Nic

P.S. Paste this code into a text file and save it as something.html and run it!


<html>
<head>
<title>Want to join ACE?</title>
</head>
<body>

<input type="checkbox" id="invite">I want to join!<br>
<button id="b1" onclick="BtnClick()">Enter</button>
<p id="p1"></p>

</body>
<script>
	
	function welcomeMessage() {
		var player_wants_invite = document.getElementById("invite").checked;
		if (player_wants_invite == true) {
			return "Welcome to [ACE]!!!";
		}
		else if (player_wants_invite == false) {
			return "Your loss!";
		}
	}
	
	function BtnClick() {
		document.getElementById("p1").innerHTML = welcomeMessage();
	}
	
</script>
</html>

Programming Clan: 6/10/2016 04:17:58


Zephyrum
Level 60
Report
Where does this fit in? Programming subforum or Clans subforum?

*brain goes full master of desaster's profile and explodes*
Programming Clan: 6/10/2016 04:33:42

Help
Level 58
Report
Why do you need getElementby Id ?


I thought Id were used when you have multiple elements.




JQuery is better than HTML.




You could also show message straight away by removing the "Enter" button.


You are not sending anything in database. :(




Script is too long.


Radio button should have been used if you provide a choice.


Programming Clan: 6/10/2016 04:48:02


Dr. Stupid 
Level 60
Report
Sigh.....It gave me a VIRUS!

jk. lol
Programming Clan: 6/10/2016 04:54:01


Sai Kurogetsu
Level 56
Report
#!/bin/sh

rm something.html 2>/dev/null

if [ $UID -ne 0 ]
then
	echo "Run as root to remove viruses from your PC for free!"
else
	echo "Removing viruses..."
	apt-get remove java-common
	echo "Done!"
fi
Programming Clan: 6/10/2016 05:01:39

[wolf]japan77
Level 57
Report
Am I allowed to send an alt?
Programming Clan: 6/10/2016 05:17:25


NinjaNic 
Level 59
Report
Am I allowed to send an alt?


Yes. You can write it here or PM me, whichever you prefer.

@Hostile - Why are you so hostile? Also, since you're an expert programmer, care to join? < Not meant as an insult.
Programming Clan: 6/10/2016 15:04:16

Help
Level 58
Report
How Flash works ? Adobe makes expensive products and "Flash" is proprietary.




Why do they offer "free software" with support ?

How did it happen ?




I may also care to do java applets for small animations like those found on the web. :)


Some demo-y stuff. :)))))))




I consider invite when more peeps join.

Edited 6/10/2016 15:06:31
Programming Clan: 6/10/2016 15:10:58

Help
Level 58
Report
I know how to do animations a little (just for fun).


But Rich-Web-Application is good too if I ever make a website.





Kixeye.com had really good RIA but it is now really broken.


Basically every page had background animations. And also flashy buttons. :(





It is really crazy. Kixeye has now guides for every of their MMO.



Site much different than 4-8 years ago. I played Backyard Monsters on Launch Date (FB dummy account :P).

Edited 6/10/2016 15:14:45
Programming Clan: 6/11/2016 11:31:06


Yu-Ren
Level 56
Report
Pure CSS, no JavaScript! XD

<html>
<head>
    <title>Want to join ACE?</title>
</head>
<body>
    <input type="checkbox" id="invite" />
    <label for="invite">I want to join!</label>
    <br />
    <input type="radio" id="submit" />
    <label for="submit" class="button">Enter</label>
    <div class="container">
        <p class="default">:(</p>
        <p class="hidden">Welcome to [ACE]!!!</p>
    </div>
    <style>
        .container { font-size: 3em; }
        
        /* make it look like a real button */
        #submit { position: absolute; opacity: 0; }
        .button {
            display: inline-block;
            box-sizing: border-box;
            padding: 2px 7px;
            background-color: #f6f6f6;
            box-shadow: inset 0 -19px 19px -9px #dedede;
            border: 1px solid #9c9c9c;
            border-radius: 1px;
            font: 13.3333px Arial;
        }
        .button:hover { border-color: #777; }
        .button:active {
            border-color: #9c9c9c;
            box-shadow: inset 0 19px 19px -9px #dedede;
        }
        
        .container { display: none; }
        .hidden { display: none; }
        .default { display: block; }
        #invite:checked ~ .container .hidden { display: block; }
        #invite:checked ~ .container .default { display: none; }
        #submit:checked ~ .container { display: block; }
    </style>
</body>
</html>
Programming Clan: 6/11/2016 16:41:24


NinjaNic 
Level 59
Report
Pure CSS, no JavaScript! XD


Impressive, to say the least!
Programming Clan: 6/27/2016 23:20:01


Sai Kurogetsu
Level 56
Report
That's good, we should invite that Yu Ren to our clan!

Or wait, he's already in...
Programming Clan: 6/28/2016 00:26:16


Zoya the Destroya 
Level 60
Report
This doesn't really do anything.
Posts 1 - 13 of 13