mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-11-25 04:56:07 -05:00
syntax highlighting!
This commit is contained in:
@@ -11,7 +11,7 @@ tags:
|
||||
draft: false
|
||||
---
|
||||
|
||||
If you examine [my homepage](https://jarv.is/) long enough, you might notice the 👋 hand emoji at the top subtly waving at you. This was easily accomplished using a few lines of CSS with a feature called [`@keyframes`](https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes) -- no bulky GIFs involved, and no messy JS or jQuery overkill required.
|
||||
If you examine [my homepage](https://jarv.is/) long enough, you might notice the 👋 hand emoji at the top subtly waving at you. This was easily accomplished using a few lines of CSS with a feature called [`@keyframes`](https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes) -- no awkward GIFs involved, and no messy JS or jQuery overkill required.
|
||||
|
||||
Below are the code snippets you can grab and customize to make your own
|
||||
["waving hand" 👋](https://emojipedia.org/waving-hand-sign/) emojis ***actually wave***, and a [CodePen playground](https://codepen.io/jakejarvis/pen/pBZWZw) for live testing.
|
||||
@@ -20,11 +20,11 @@ Below are the code snippets you can grab and customize to make your own
|
||||
|
||||
### CSS:
|
||||
|
||||
```
|
||||
```css
|
||||
span#wave {
|
||||
animation-name: wave-animation; /* refers to the name of your @keyframes element below */
|
||||
animation-duration: 2.5s; /* change to speed up or slow down */
|
||||
animation-iteration-count: infinite; /* never stop waving! */
|
||||
animation-iteration-count: infinite; /* never stop waving! :) */
|
||||
transform-origin: 70% 70%;
|
||||
display: inline-block;
|
||||
}
|
||||
@@ -42,10 +42,10 @@ span#wave {
|
||||
|
||||
### HTML:
|
||||
|
||||
```
|
||||
```html
|
||||
<span id="wave">👋</span>
|
||||
```
|
||||
|
||||
That's it! Different hand variations and skin tones can be [found on 📕Emojipedia](https://emojipedia.org/search/?q=waving+hand).
|
||||
That's it! All skin tones and different hands can be [found on 📕Emojipedia](https://emojipedia.org/search/?q=waving+hand).
|
||||
|
||||
👋🏼 Toodles!
|
||||
@@ -101,7 +101,7 @@ I removed the company's name because an important part of responsible *disclosur
|
||||
|
||||
The `poc-d4ca9e8ceb.html` proof-of-concept file contained this single, hidden line:
|
||||
|
||||
```
|
||||
```html
|
||||
<!-- subdomain takeover POC by @jakejarvis on Bugcrowd -->
|
||||
```
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ If you run your own server, these can be added by way of your Apache or nginx co
|
||||
|
||||
The following script can be added as a Worker and customized to your needs. Some can be extremely picky with syntax, so be sure to [read the documentation](https://www.netsparker.com/whitepaper-http-security-headers/) carefully. You can fiddle with it in [the playground](https://cloudflareworkers.com/), too. Simply modify the current headers to your needs, or add new ones to the `newHeaders` or `removeHeaders` arrays.
|
||||
|
||||
```
|
||||
```js
|
||||
let newHeaders = {
|
||||
"Content-Security-Policy": "default-src 'self'; upgrade-insecure-requests",
|
||||
"Strict-Transport-Security" : "max-age=1000",
|
||||
|
||||
Reference in New Issue
Block a user