case 'Clear'
instead of case Clear
.
git add *
function confirmEnding(str, target) {
if (str.substr(-(target.length))=== target){
return true;
}else{
return false;
}
}
confirmEnding("Bastian", "n");
function confirmEnding(str, target) {
return str.substr(-target.length)===target;
}
peioa sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star2: 4748 | @masd925 |http://www.freecodecamp.org/masd925
peioa sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
console.log
to show the results in your browser console or use some other way (like updating your html with the results)). Finally, open the html file in your browser.
codernewby sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2442 | @darrenfj |http://www.freecodecamp.org/darrenfj
zappy555 sends brownie points to @gulsvi :sparkles: :thumbsup: :sparkles:
:star2: 2693 | @gulsvi |http://www.freecodecamp.org/gulsvi
align: center
i guess
height: 100vh; width: 100vh;
display:flex;
width: 50vw; height: 100vh
frosty427 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 9145 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
<div class="full-width-row">
<div>experience</div><!-- I'll be half width -->
<div>text</div>
</div>
<div class="full-width-row">
<div>experience</div> <!-- I'll be full width -->
</div>
<div class="full-width-row">
<div>text</div>
</div>
sort
function in javascript. You might also make your own object that would store the elements in separate lists, and then when you wanted the whole list you could just concatenate them - for another idea.
sh4r10 sends brownie points to @khaduch and @marmiz :sparkles: :thumbsup: :sparkles:
:star2: 1196 | @marmiz |http://www.freecodecamp.org/marmiz
:star2: 3831 | @khaduch |http://www.freecodecamp.org/khaduch
#Publications
that makes it scroll to the bottom of the page that it redirects to. Interesting!
njm8 sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3832 | @khaduch |http://www.freecodecamp.org/khaduch
url = "https://google.com/search?query="+query;
window.open(url)
window.close();
Can anyone please explain to me why this code runs properly the first time and then the second time it opens the query in a new tab but also replaces the current tab with google.com
@sh4r10
it opens the query in a new tab but also replaces the current tab with google.com
it did this in the first time for me
.preventDefault()
and control the search action from your own page? I guess I'm not 100% sure how it should be working.
Hi,
https://stackblitz.com/edit/angular-okulty?file=app/fontcolor.directive.ts
isNumber(evt) {
evt = (evt) ? evt : window.event;
var charCode = (evt.which) ? evt.which : evt.keyCode;
if (charCode > 31 && (charCode < 48 || charCode > 57)) {
return false;
}
return true;
}
mustimuu sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3834 | @khaduch |http://www.freecodecamp.org/khaduch
giltorch sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 9146 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
travisttk sends brownie points to @njm8 :sparkles: :thumbsup: :sparkles:
:cookie: 372 | @njm8 |http://www.freecodecamp.org/njm8
@zootechdrum
Setting the top, right, bottom, and left properties of a relatively-positioned element will cause it to be adjusted away from its normal position. Other content will not be adjusted to fit into any gap left by the element.
So, what's happening here is that the image with the .faceprofile
class is taking up that space because it is set to position: relative. The quick fix is to do what @sjames1958gm recommends.
figcaption
have a relative position and change the .faceprofile
to absolute position instead of adjusting the bottom margin
.profile1 figcaption {
position: relative;
}
.profile1 .faceProfile {
position: absolute;
border-radius: 50%;
max-width: 90px;
opacity: 1;
bottom: 100px;
left: 25px;
}