This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WARNING: CAN ONLY BE USED FOR SAME-ORIGIN URLS | |
// THIS IS NOT CONFIGURED FOR CROSS-ORIGIN DOMAINS | |
import React, { useEffect } from 'react'; | |
import onResize from './onResize'; | |
import iFrameResizer from './iFrameResizer'; | |
const DynamicInlineFrame = ({ src, title }) => { | |
// create callback to be called on an interval until height is actual height of iframe content | |
const resizeCallback = () => iFrameResizer({ triggerInterval: true }); |
Fair warning, these might be a little dated but I found them to be invaluable when I was first learning. They do an excellent job of giving visual representations of concepts. jQuery's good to know about, but also, no one really uses it anymore because pretty much everything it was used for is natively in JavaScript now.
FreeCodeCamp.com (amazing free interactive coding series)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<form class="col s12"> | |
<div class="row"> | |
<div class="input-field col s12"> | |
<input placeholder="Event title" id="title" type="text" class="validate"> | |
<label for="title">Title</label> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="input-field col s6"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id='calendar'></div> |