These are chat archives for FreeCodeCamp/HelpFrontEnd

11th
Sep 2018
AbrisM
@AbrisM
Sep 11 2018 01:09
https://jsfiddle.net/sz2oxhq1/2/#&togetherjs=rysLVJyqVu Anyone that can take quick look at code? Figuring out how to initiate an on-click event
cumibulat
@cumibulat
Sep 11 2018 01:22
@AbrisM which element you want to add onclick event ?
AbrisM
@AbrisM
Sep 11 2018 01:28
to the first function
cumibulat
@cumibulat
Sep 11 2018 01:29
did you copy your code from other tutorial ?
it have a lot mispelled code
AbrisM
@AbrisM
Sep 11 2018 01:31
No
I see two errors in the JS though
Kinda strange it won't accept a variable named fullname though
cumibulat
@cumibulat
Sep 11 2018 01:46

how bout this ?

if (gender == 1)
document.write("Female") = innerHTML.calculateresult;
if (gender == 0)
document.write("Male") innerHTML = calculateresult;

}

AbrisM
@AbrisM
Sep 11 2018 02:20
Hello, think I have something similar to that
but it's weird its throwing an error for the use of <script> in javascript
AbrisM
@AbrisM
Sep 11 2018 02:25
Still not proccessing input from the above table, even with innerHTML
and the method associated
AbrisM
@AbrisM
Sep 11 2018 02:53
the button id should be working <button id="push" onclick="acceptinput(calculateresult())">Report it!</button>
unless it can only accept one method at a time and not inner-one?
Dany Din
@danydin
Sep 11 2018 07:42
anybody who wants to pair on projects through mic and share screen message me :)
Mandeep
@mandeephub
Sep 11 2018 10:05
hey
here is a css question
.img_ht{
    height : 100px;
    overflow: hidden;
}

.hover_effect:hover .img_ht{
    height: 40px !important ; 
    overflow: hidden;
}
The img link on this page has failed.
Aditya
@ezioda004
Sep 11 2018 10:52
@doraeige The images are inaccessible, http://qlip.in/images/avatar.jpg
Bradley Sands
@sandsbe
Sep 11 2018 11:21
Easy one that won't work for some reason
[type="radio"] {
    margin-top: 10px;
    margin-bottom: 15px;
  }
Not sure why this won't work. Matches everything: https://www.w3.org/wiki/Css/Training/padding_and_margin
Aditya
@ezioda004
Sep 11 2018 11:28
@sandsbe Shouldnt it be input[type = "radio"]?
Bradley Sands
@sandsbe
Sep 11 2018 11:29
I thought so too. Just tried that @ezioda004 . Thanks for the suggestion.
Lia-Sue-Kim
@Lia-Sue-Kim
Sep 11 2018 16:07
@bradtaniguchi thank you
shoud your privacy policy, term of use and about pages be in every page or just putting them in home page is fine"?
rk
@rajkumart08_twitter
Sep 11 2018 16:14

hi,

  • for the below error I googled and used this command npm install node-sass@latest to fix the below eror.
  • but still its not going away.
  • do I need to install any packages to fix it.
  • providing my package.json and error below.

error
```
C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke>npm install

node-sass@3.13.1 install C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\wintersmith-sassy\node_modules\node-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

  npm config set proxy http://example.com:8080

node-sass@3.13.1 postinstall C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\wintersmith-sassy\node_modules\node-sass
node scripts/build.js

Building: C:\Program Files\nodejs\node.exe C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\Program Files\nodejs\node.exe',
gyp verb cli 'C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp@3.8.0
gyp info using node@8.11.4 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\which\which.js:13:12)
gyp verb which failed at F (C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\which\which.js:68:19)
gyp verb which failed at E (C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\which\which.js:80:29)
gyp verb which failed at C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\which\which.js:89:16
gyp verb which failed at C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\isexe\index.js:42:5
gyp verb which failed at C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed python2 { Error: not found: python2
gyp verb which failed at getNotFoundError (C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\which\which.js:13:12)
gyp verb which failed at F (C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\which\which.js:68:19)
gyp verb which failed at E (C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\which\which.js:80:29)
gyp verb which failed at C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\which\which.js:89:16
gyp verb which failed at C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\isexe\index.js:42:5
gyp verb which failed at C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed stack: 'Error: not found: python2\n at getNotFoundError (C:\codebase\branches\2019.05.01\Client\jkerjkerjkerjkejkrjke\node_modules\which\which.js:13:12)\n at F (C:\codebase\branches\2019

Zerka1982
@Zerka1982
Sep 11 2018 18:50
Hello guys
Anybody here ?
Brad
@bradtaniguchi
Sep 11 2018 18:56
nope :trollface:
Bram Peirs
@brampeirs
Sep 11 2018 19:06

Hello,
I am looking for a plugin to play a video in a modal.
I have found magnific popup http://dimsemenov.com/plugins/magnific-popup/ but I was wondering if there are any more popular/newer plugins available for this use case?

(see image for desired effect)
alt

Tiago Correia
@tiagocorreiaalmeida
Sep 11 2018 19:55
you can atually write a simple popup with css an element with a fixed position and then another div on top of it for the video