MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/4nckzl/jquery_30_released/d43m5gx
r/programming • u/[deleted] • Jun 09 '16
354 comments sorted by
View all comments
Show parent comments
40
Guys, I wrote this function to jQuery to do just that. How do I get the jQuery devs to include it in the main library?
function $_add(n1, n2) { result = null; $.ajax({ url : "https://www.google.com/search?q=" + n1.toString() + "%2B" + n2.toString(), context: document.body }) .done(function() { result = parseInt($(this).find("#cwcot").text()); }); return result; }
5 u/kirbyfan64sos Jun 10 '16 +1 Did not see this coming. At all. 5 u/tasty_cupcakes Jun 10 '16 Can you create a npm package for it? Thx, it's the last thing i need to finish my webscale pacemaker. 3 u/thrilldigger Jun 10 '16 /r/shittyprogramming would love this
5
+1 Did not see this coming. At all.
Can you create a npm package for it? Thx, it's the last thing i need to finish my webscale pacemaker.
3
/r/shittyprogramming would love this
40
u/El_Impresionante Jun 10 '16
Guys, I wrote this function to jQuery to do just that. How do I get the jQuery devs to include it in the main library?