hi,
I am working on the Random Quote Machine challenge.
I decided to use Jquery so I remember I had to add the CDN link in the HTML head . And since I had to use twitter icon I had to add bootstrap/fontAwesome link to get the glyphicon.
(by the way, I had a look at other projects and I haven’t seen those link/script added at all!)
Then, in the JS file I started with some simple Jquery manipulation (es hiding the
oh, I was not aware about adding external scripts/links in that way.
However, i added Jquery CDN and font awesome for the twitter glyphicon but again no results
In my atom editor I manage to have at least the twitter glyphicon but again, I cannot perform Jquery not even something as simple as (for example) $(‘p’).hide()
i managed to add the glyphicon ( added it in the HTML head via the setting menu. Then I tried to import the cdn jquery (it is the same that you kindly provided) there, but again no results.
is there a way to reset everything?
when i open the console i get lots of warnings ( but not for my code !)
yes, i then added the closing for the function but no
hiding as i requested
btw, the cdn for jquery should be imported in the JS setting or in the htmlsetting?
I remember from the course that it sould be in the html head but not sure here, in the code pen
(and in my atom editor i have same problem )
ok, i put it in JS settings
I have the console full of warning about timeout adn event listeners
My console logs instead work as expected
but again no result for Jquery operations…i am really getting mad
[Violation] Forced reflow while executing JavaScript took 144ms
VM1673:5 Refused to execute inline script because it violates the following Content Security Policy directive: “script-src ‘self’ ‘unsafe-eval’ ‘nonce-PRzLqfrHsLE=’ cpwebassets.codepen.io *.appcues.com *.buysellads.com *.carbonads.com *.carbonads.net *.filestackapi.com *.firebaseio.com *.stripe.com *.wufoo.com *.speedcurve.com wufoo.comwww.google.com”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-S+X8s301GQoAcOI+8hj231fxePS+QG94YC0px7AraoQ=’), or a nonce (‘nonce-…’) is required to enable inline execution.
HTMLElement.appendChild @ VM1673:5
o @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
(anonymous) @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
n @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
(anonymous) @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
n @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
(anonymous) @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
(anonymous) @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
VM1673:5 Refused to execute inline script because it violates the following Content Security Policy directive: “script-src ‘self’ ‘unsafe-eval’ ‘nonce-PRzLqfrHsLE=’ cpwebassets.codepen.io *.appcues.com *.buysellads.com *.carbonads.com *.carbonads.net *.filestackapi.com *.firebaseio.com *.stripe.com *.wufoo.com *.speedcurve.com wufoo.comwww.google.com”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-S+X8s301GQoAcOI+8hj231fxePS+QG94YC0px7AraoQ=’), or a nonce (‘nonce-…’) is required to enable inline execution.
HTMLElement.appendChild @ VM1673:5
o @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
(anonymous) @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
n @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
(anonymous) @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
n @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
(anonymous) @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
(anonymous) @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
VM1673:5 Refused to execute inline script because it violates the following Content Security Policy directive: “script-src ‘self’ ‘unsafe-eval’ ‘nonce-PRzLqfrHsLE=’ cpwebassets.codepen.io *.appcues.com *.buysellads.com *.carbonads.com *.carbonads.net *.filestackapi.com *.firebaseio.com *.stripe.com *.wufoo.com *.speedcurve.com wufoo.comwww.google.com”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-S+X8s301GQoAcOI+8hj231fxePS+QG94YC0px7AraoQ=’), or a nonce (‘nonce-…’) is required to enable inline execution.
HTMLElement.appendChild @ VM1673:5
o @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
(anonymous) @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
n @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
(anonymous) @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
n @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
(anonymous) @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
(anonymous) @ appcues.main.9c284e64e39c3bf85b25a9fedc570e74d3f810c1.js:1
VM1673:5 Refused to execute inline script because it violates the following Content Security Policy directive: “script-src ‘self’ ‘unsafe-eval’ ‘nonce-PRzLqfrHsLE=’ cpwebassets.codepen.io *.appcues.com *.buysellads.com *.carbonads.com *.carbonads.net *.filestackapi.com *.firebaseio.com *.stripe.com *.wufoo.com *.speedcurve.com wufoo.comwww.google.com”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-S+X8s301GQoAcOI+8hj231fxePS+QG94YC0px7AraoQ=’), or a nonce (‘nonce-…’) is required to enable inline execution.