#HTMLQuiz what happens?
<iframe id=x></iframe> <script> x.contentDocument.body.appendChild(x); </script>
- wild DOMException appears
- iframe escapes
|<link rel="icon" type="image/png" sizes="192x192" href="/favicons/android-chrome-192x192.png">|
|<link rel="manifest" href="/manifest.json">|
|<meta name="mobile-web-app-capable" content="yes">|
|<meta name="theme-color" content="#ffffff">|
|<meta name="application-name" content="AMP by Example">|
|<link rel="apple-touch-icon" sizes="57x57" href="/favicons/apple-touch-icon-57x57.png">|
|<link rel="apple-touch-icon" sizes="60x60" href="/favicons/apple-touch-icon-60x60.png">|
|<link rel="apple-touch-icon" sizes="72x72" href="/favicons/apple-touch-icon-72x72.png">|
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.
This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:
*nixbased command prompt (but not the default Windows Command Prompt!)
cd ~/.ssh. This will take you to the root directory for Git (Likely
.sshfolder, there should be these two files:
id_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type
lsto see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named
id_rsa.pubin order for Git, GitHub, and BitBucket to recognize them by default.
ssh-keygen -t rsa -C "email@example.com". Th