Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
buiphuking
@buiphuking
hi guys
how can i fix this error
Refused to execute script from 'https://raw.githubusercontent.com/shinnn/AudioContext-Polyfill/master/audiocontext-polyfill.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
Sorin Ruse
@sorinr
@buiphuking how do you link this lib?
buiphuking
@buiphuking
<script src="https://raw.githubusercontent.com/shinnn/AudioContext-Polyfill/master/audiocontext-polyfill.js"></script>
Sorin Ruse
@sorinr
@buiphuking try give it a type
buiphuking
@buiphuking
i did, same error
Sorin Ruse
@sorinr
@buiphuking like type="application/js" ?
buiphuking
@buiphuking
not error anymore but not working
Sorin Ruse
@sorinr
@buiphuking maybe its the way you are calling the functions in that lib
buiphuking
@buiphuking
@sorinr thanks
CamperBot
@camperbot
buiphuking sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:cookie: 469 | @sorinr |http://www.freecodecamp.com/sorinr
Pratik Chaudhary
@abs-zero
does any one know how to use twitter tweet api?
Greg Duncan
@GregatGit
@AbsoluteZero273 if it is for the quote generator this web site has a good how-to for twitter http://gpiot.com/blog/elegant-twitter-share-button-and-dialog-with-jquery/
Pratik Chaudhary
@abs-zero
@GregatGit thanks!
CamperBot
@camperbot
absolutezero273 sends brownie points to @gregatgit :sparkles: :thumbsup: :sparkles:
:cookie: 690 | @gregatgit |http://www.freecodecamp.com/gregatgit
Pratik Chaudhary
@abs-zero

@GregatGit ```js

<script>window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);

t._e = [];
t.ready = function(f) {
t._e.push(f);
};

return t;
}(document, "script", "twitter-wjs"));</script>```
Do I not have to use this at all?

window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));
.
Greg Duncan
@GregatGit
did you go to there demo page http://gpiot.s1.cotidia.com/twitter-share-demo/
@AbsoluteZero273 Yours looks very complicated - they provide a very simple work through
Pratik Chaudhary
@abs-zero
I got that from twitter's website itself
https://dev.twitter.com/web/javascript/loading
yeah theirs is simple :)
Greg Duncan
@GregatGit
@AbsoluteZero273 I couldn't get my head around twitter's example and was fortunate to find that one. It only takes about 10 lines of js and a little bit of html to tweet out
shweta rajput
@ShwetaRajput
hi everyone. i want too know about twich.tv project. can someone explain what i have to do?
to*
Dhruv Kumar
@IMDhruv
@ShwetaRajput What did you try and whats the error?
@ShwetaRajput you have to build something like https://codepen.io/FreeCodeCamp/full/Myvqmo/
Jack Lyons
@JackEdwardLyons
hey guys, i have a question -- how do you split an array into arrays?
like this
 ['a', 'b', 'c']  convert to
[['a'],['b'],[c']]
Pablo
@Olbap14

Hi, can someone help me?

This is my code:

 $(document).ready(function() {

   $("#randomBtn").on("click",function(){
     var answer="";
     var random= Math.floor(Math.random() * (3)+1);
     switch(random) {

       case 1:
         answer=['"La mujer es como la polvora, si no la tratas con cuidado, explota"', "Miguel Moyá"];
         break;
       case 2:
         answer= ['"Y los españoles, muy españoles y mucho españoles!!"', "Rajoy"];
         break;
       case 3:
         answer= ['"El mundo esta dividido en tres grandes grupos, el de los que sabe contar, y el de los que no."',"Homer J. Simpson"];}

     $(".message").html(answer[0]);
     $(".name").html(answer[1]);
     var tweet= "https://twitter.com/intent/tweet?text=+";
     answer=answer[0].split(" ");
     answer=answer[0].join("%20");
     tweet+= answer[0];
     tweet+= "%20"+ answer[1];
     console.log(answer);
     $("#tweetBtn").attr("href",tweet);
   });
});

My problem is that $("#tweetBtn").attr("href",tweet); don't work, also I write console.log(answer); for search problems, and console don't print anything

;_(
help please

Kevin Kuehler
@kevinkuehler
Does anyone know where, on the Open Weather API's website, you can find all possible API responses ?
Randy Goldsmith
@Dueldrawer8
Kevin Kuehler
@kevinkuehler
@Dueldrawer8 yeah it shows examples. cant find all possible responses
baaank
@baaank
Randy Goldsmith
@Dueldrawer8
@kevinkuehler the best way to do it IMO is to try it out in your codepen..first get an api key.. then put it in a .getJSON or .ajax call with a callback function and console.log it
Kevin Kuehler
@kevinkuehler
@Dueldrawer8 THX
CamperBot
@camperbot
kevinkuehler sends brownie points to @dueldrawer8 :sparkles: :thumbsup: :sparkles:
:cookie: 411 | @dueldrawer8 |http://www.freecodecamp.com/dueldrawer8
Randy Goldsmith
@Dueldrawer8
@kevinkuehler dunno if that helps answer your question.. be sure to use JSON.stringify() to make the JSON data easier to read
if you need help ill be on for maybe another 15-20 min
@kevinkuehler take a look at mine..
http://codepen.io/duel_drawer8/pen/bpoozL?editors=1112
just open the console and you should see all the info it provides.. although thats only on the current weathe
@kevinkuehler here is a link for all the weather conditions which is what you mainly need.. http://openweathermap.org/weather-conditions
Kevin Kuehler
@kevinkuehler
@Dueldrawer8 your site looks nice. i like that you used a geo-locator api instead of the default javascript one... no need to confirm
Randy Goldsmith
@Dueldrawer8
@kevinkuehler indeed, thanks man :) i still need to do some work on it.. i'm going back and touching some things up on it specifically making my projects responsive/mobile
CamperBot
@camperbot
dueldrawer8 sends brownie points to @kevinkuehler :sparkles: :thumbsup: :sparkles:
:cookie: 275 | @kevinkuehler |http://www.freecodecamp.com/kevinkuehler
Andrew Perrin
@Pezz18
hi, can someone help me out with mediaqueries / fluid grids??
Sai
@gsr3568
how to add image from internet