zbigy comments on The first two questions from Trump's official poll released to...
source link: https://www.reddit.com/r/facepalm/comments/7llkwf/the_first_two_questions_from_trumps_official_poll/drnk9la/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
The first two questions from Trump's official poll released today
Did you guys look at the page's html source? Check out their error handling...
if ($('.error-title-wrapper').length != 0) { errorCode = $('.error-title-wrapper legend').text().split(' ')[0]; if (errorCode = '404') { var errorMessage = 'What do Hillary Clinton and this link have in common? They're both <span>"dead broke."' } else if (errorCode = '500') { var errorMessage = 'Oops! Something went wrong. Unlike Obama, we are working to fix the problem... and not on the golf course.' } else { var errorMessage = 'An Unknown Error Occurred'; } }
The fact he would still have a reference to Obama being on the golf course too much is baffling..
It's ironic that their error handling has errors and that their dig on fixing the problem will never be evaluated. "if (errorCode = '404')" is evaluating an assignment (=) instead of a condition (==), which will evaluate to true in this case. So, the error message will always represent a 404 error even if there's a 500 error.
It's old and part of the gop.com, not just that specific poll page.
What the FUCK is that code. if (errorCode = '404')??? That assigns '404' to the variable errorCode instead of verifying if they are equal (needs to be == in that case). This is something learned probably in the first class of a computer science degree. Most student probably know this long before school starts.
On top of that, the Obama references are pathetic.
On top of that, still using jQuery m8???
Really? Assignment operators in conditions? That’s what we have on the official GOP website’s poll???
At least someone's nephew who "knows computers" has a job again...
I shouldn’t even be surprised at the childishness of these twats anymore, but something in my mind is still amazed that grown adults would act this way.
This, coming from the guy spending US taxpayer money on building a seawall to protect his favourite golf course, IN IRELAND.
How can Hillary be dead broke? I thought she made millions in the uranium ore deal?
There is also if ($('.error-title-wrapper').length != 0) { errorCode = $('.error-title-wrapper legend').text().split(' ')[0]; if (errorCode = '404') { var errorMessage = 'What do Hillary Clinton and this link have in common? They're both <span>"dead broke."' } else if (errorCode = '500') {
Everything is a big joke to politicians, its just a a game, and we are the game pieces. Thats what happens when the people's voice stops mattering.
Wow this is amazing.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK