@NitinNair89 <form name = "quizQ1">
<b>Question 1: How long was it before an AI became rampant?</b><br></br>
<input type = "radio" name = "getAnswer1" onclick = "getAnswer('a')"> 7 years<br>
<input type = "radio" name = "getAnswer1" onclick = "getAnswer('b')"> 12 years <br>
<input type = "radio" name = "getAnswer1" onclick = "getAnswer('c')"> 3 years <br>
<input type = "radio" name = "getAnswer1" onclick = "getAnswer('d')"> None of the above, they didn't become rampant, they just developed issues regaurding their colons. </br><br></br>
</form>
<script type = "text/javascript">
function getAnswer(input) {
if (input == "a") {alert ("Be proud you got the first one right, now lets up the difficulty.")}
else {alert ("Ya done screwed up son!")}
}
</script>
<form name ="quizQ2">
<b>Question 2: What is the ark?</b><br> <br>
<input type = "radio" name="getAnswer2" onclick = "getAnswer('a')"> A gold-covered wooden box described in the book of exodus. </br>
<input type = "radio" name="getAnswer2" onclick = "getAnswer('b')"> FOB(forward operating base) for all covenant grunts. </br>
<input type = "radio" name="getAnswer2" onclick = "getAnswer('c')"> A giant ship that could fire all installations at the same time and from the same place. </br>
<input type = "radio" name="getAnswer2" onclick = "getAnswer('d')"> A giant construct that could fire all installations at the same time and from the same place. </br>
<br></br>
</form>
<script type = "text/javascript">
function getAnswer(input) {
if (input == "d") {alert ("Thats two correct, was it hard?")}
else {alert ("More screwing up you do! No rice for you!")}
}
</script>
form[name="quizQ1"] {
margin-bottom: 15px;
}
<button class="btn btn-success btn-md" id="playerLetter"
data-toggle="tooltip" title="X GOES FIRST"
data-placement="bottom"
onclick="handlers.changeTokens()">X <i class="fa fa-refresh" aria-hidden="true"></i>
</button>
I am trying to change the "X" to "0" using only vanilla js and leave <i class="fa fa-refresh" aria-hidden="true"></i>
as is - any one know how to?
gregatgit sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 726 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
gregatgit sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:warning: gregatgit already gave jdtdesigns points
function rot13(str) { // LBH QVQ VG!
str=str.split("");
for(var i=0;i<str.length;i++){
if(str[i]>='A'&&str[i]<='M'){
str[i]+=13;
}
else if(str[i]>='N'&&str[i]<='Z'){
str[i]-=13;
}
}
str=str.join("");
return str;
}
// Change the inputs below to test
rot13("SERR PBQR PNZC");
allanpooley sends brownie points to @fattone225 :sparkles: :thumbsup: :sparkles:
:cookie: 366 | @fattone225 |http://www.freecodecamp.com/fattone225
// Place this in the HTML file, NOT the CSS!
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Montserrat"/>
koolhany sends brownie points to @sok213 :sparkles: :thumbsup: :sparkles:
:cookie: 678 | @sok213 |http://www.freecodecamp.com/sok213
skfwnelf sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 727 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
I just finished the Weather App. Tell me what you guys think and send me a screen shot if you can: http://codepen.io/emmanuelamador/full/VKqqQm/
The background and icon changes based on the weather description.
I have no idea how it looks on other resolutions.
Oh and I admit my code is a mess. lol I couldn't find the right Api so i ended up using three weather apis because one of them only gave me only one part information that I needed due to it being not completely free.
adosae1 sends brownie points to @danjp2016 :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for danjp2016
h20ohno sends brownie points to @danjp2016 :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for danjp2016
desmondezo1 sends brownie points to @allanpooley :sparkles: :thumbsup: :sparkles:
:cookie: 270 | @allanpooley |http://www.freecodecamp.com/allanpooley
wlotherington4 sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 728 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
@skfwnelf Hey Frank. I think you have to first convert the character / string to unicode before performing your shift.
You can get the unicode value of any character (a letter in the string) using the charCodeAt() method.
You can then convert a unicode value back into a string by using: String.fromCharCode(<unicode value>)
h1{
margin-bottom:15px;
}
adosae1 sends brownie points to @kurumkan :sparkles: :thumbsup: :sparkles:
:cookie: 370 | @kurumkan |http://www.freecodecamp.com/kurumkan
adosae1 sends brownie points to @kat-mag :sparkles: :thumbsup: :sparkles:
:cookie: 383 | @kat-mag |http://www.freecodecamp.com/kat-mag
align="left" style="color:lightgrey"
still left in your html
adosae1 sends brownie points to @kat-mag :sparkles: :thumbsup: :sparkles:
:warning: adosae1 already gave kat-mag points
skfwnelf sends brownie points to @allanpooley :sparkles: :thumbsup: :sparkles:
:cookie: 271 | @allanpooley |http://www.freecodecamp.com/allanpooley
dotkoven sends brownie points to @kirbyedy :sparkles: :thumbsup: :sparkles:
:star2: 1481 | @kirbyedy |http://www.freecodecamp.com/kirbyedy
tasmaniakrama sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star2: 2781 | @masd925 |http://www.freecodecamp.com/masd925
gastikirs sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 4011 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
I've some variables in JSON-file
and wanted to load them to my angular app
import myVar from './variables.json';
but these one says that
Cannot find module './variables.json'.
Please help
gastikirs sends brownie points to @otto-aa :sparkles: :thumbsup: :sparkles:
:cookie: 319 | @otto-aa |http://www.freecodecamp.com/otto-aa
gastikirs sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:cookie: 796 | @sorinr |http://www.freecodecamp.com/sorinr
border-sytle
jeanneh125 sends brownie points to @otto-aa and @kirbyedy :sparkles: :thumbsup: :sparkles:
:cookie: 320 | @otto-aa |http://www.freecodecamp.com/otto-aa
:star2: 1482 | @kirbyedy |http://www.freecodecamp.com/kirbyedy
jeanneh125 sends brownie points to @otto-aa :sparkles: :thumbsup: :sparkles:
:warning: jeanneh125 already gave otto-aa points
can someone help me with my page?
i don't understand why my background image is not all the way up, you can se that the top portion their is not covered, does anyone know why ?
position: fixed
all over the place, you have to set your background image div to also be position: fixed
AND in the HTML place it before the other divs so it remains on the background.
makstheimba sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 729 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
<script src="javascript.js"></script>
in her HTML. But the JS-section of the pen will get called automatically without that script-tag in HTML
@NitinNair89 <form name = "quizQ1">
<b>Question 1: How long was it before an AI became rampant?</b><br></br>
<input type = "radio" name = "getAnswer1" onclick = "getAnswer('a')"> 7 years<br>
<input type = "radio" name = "getAnswer1" onclick = "getAnswer('b')"> 12 years <br>
<input type = "radio" name = "getAnswer1" onclick = "getAnswer('c')"> 3 years <br>
<input type = "radio" name = "getAnswer1" onclick = "getAnswer('d')"> None of the above, they didn't become rampant, they just developed issues regaurding their colons. </br><br></br>
</form>
<script type = "text/javascript">
function getAnswer(input) {
if (input == "a") {alert ("Be proud you got the first one right, now lets up the difficulty.")}
else {alert ("Ya done screwed up son!")}
}
</script>
<form name ="quizQ2">
<b>Question 2: What is the ark?</b><br> <br>
<input type = "radio" name="getAnswer2" onclick = "getAnswer('a')"> A gold-covered wooden box described in the book of exodus. </br>
<input type = "radio" name="getAnswer2" onclick = "getAnswer('b')"> FOB(forward operating base) for all covenant grunts. </br>
<input type = "radio" name="getAnswer2" onclick = "getAnswer('c')"> A giant ship that could fire all installations at the same time and from the same place. </br>
<input type = "radio" name="getAnswer2" onclick = "getAnswer('d')"> A giant construct that could fire all installations at the same time and from the same place. </br>
<br></br>
</form>
<script type = "text/javascript">
function getAnswer(input) {
if (input == "d") {alert ("Thats two correct, was it hard?")}
else {alert ("More screwing up you do! No rice for you!")}
}
</script>
@hamiefuzzy why was this sent to me?
@NitinNair89 haha, How do i do that on a real project?
@edqu3 I don't know :P
mhdavis sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 730 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
otto-aa sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 731 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
codercooooder sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 732 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
switch(info) {
case 'option1','option2':
code;
break;
}
switch(info) {
case 'option1':
case 'option2':
case 'option3':
//code
break;
}
accimeesterlin sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 733 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
mhdavis sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:warning: mhdavis already gave jdtdesigns points
tcao2 sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 734 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
tcao2 sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:warning: tcao2 already gave jdtdesigns points
jbpulley sends brownie points to @otto-aa :sparkles: :thumbsup: :sparkles:
:cookie: 321 | @otto-aa |http://www.freecodecamp.com/otto-aa
I can't understand what is wrong with my code the computer plays a move but after playing several moves with human player it stops to respond and onlu human player can play his/her move
I am using a random number generator
gonzalezi2 sends brownie points to @kirbyedy :sparkles: :thumbsup: :sparkles:
:star2: 1483 | @kirbyedy |http://www.freecodecamp.com/kirbyedy
.well {
background-image:url("http://img.freepik.com/free-vector/background-with-white-squares_23-2147501484.jpg?size=338&ext=jpg");
}
'
s
jumpship91 sends brownie points to @otto-aa :sparkles: :thumbsup: :sparkles:
:cookie: 322 | @otto-aa |http://www.freecodecamp.com/otto-aa
jumpship91 sends brownie points to @nitinnair89 :sparkles: :thumbsup: :sparkles:
:cookie: 317 | @nitinnair89 |http://www.freecodecamp.com/nitinnair89
mohammadhasham sends brownie points to @nitinnair89 :sparkles: :thumbsup: :sparkles:
:cookie: 318 | @nitinnair89 |http://www.freecodecamp.com/nitinnair89
color: #E5E4E2;
and for the icons: http://stackoverflow.com/questions/14474452/can-i-change-the-color-of-font-awesomes-icon-color
:cookie: 323 | @otto-aa |http://www.freecodecamp.com/otto-aa
atharvajava sends brownie points to @otto-aa :sparkles: :thumbsup: :sparkles:
jbpulley sends brownie points to @nitinnair89 :sparkles: :thumbsup: :sparkles:
:cookie: 319 | @nitinnair89 |http://www.freecodecamp.com/nitinnair89
background: rgba(255, 0, 0, 0.4);
on #screen it will become a darker red. Isn't that how it should work?
:cookie: 384 | @kat-mag |http://www.freecodecamp.com/kat-mag
ryanwfile sends brownie points to @kat-mag :sparkles: :thumbsup: :sparkles:
ryanwfile sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 735 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
ryanwfile sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:warning: ryanwfile already gave jdtdesigns points
sneak8288 sends brownie points to @adventurebear :sparkles: :thumbsup: :sparkles:
:cookie: 531 | @adventurebear |http://www.freecodecamp.com/adventurebear
j1417 sends brownie points to @mfukano :sparkles: :thumbsup: :sparkles:
:cookie: 281 | @mfukano |http://www.freecodecamp.com/mfukano
ozairashfaque sends brownie points to @makstheimba :sparkles: :thumbsup: :sparkles:
:cookie: 350 | @makstheimba |http://www.freecodecamp.com/makstheimba