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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Latest Tweets Ordered by Date</title> | |
<meta name="robots" content="noindex, nofollow" /> | |
</head> | |
<body> | |
<select id="test"> | |
<option selected="selected" value="dateDesc">Date Descending</option> |
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
<html> | |
<head> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> | |
<title>Select/Change option</title> | |
<style type="text/css"> | |
.red {color: red;} | |
.black {color: black;} |
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
<html> | |
<head> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> | |
<title>Read More Example (with character count)</title> | |
<style type="text/css"> | |
a:visited {color:#0254eb} | |
.ccount {width:400px; background-color:#f0f0f0; margin:10px} |
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
// placeholder text support in IE8/IE9 | |
$(function() { | |
if(!$.support.placeholder) { | |
var active = document.activeElement; | |
$(':text').focus(function () { | |
if ($(this).attr('placeholder') != '' && $(this).val() == $(this).attr('placeholder')) { | |
$(this).val('').removeClass('hasPlaceholder'); | |
} | |
}).blur(function () { | |
if ($(this).attr('placeholder') != '' && ($(this).val() == '' || $(this).val() == $(this).attr('placeholder'))) { |
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
$('#formID').keypress(function(event){ | |
// prevent enter key action | |
if (event.keyCode == 10 || event.keyCode == 13) { | |
event.preventDefault(); | |
// still want to try and submit form when enter key pressed | |
this.submit(); | |
} | |
}); |
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
<html> | |
<head> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> | |
<title>Identify first item</title> | |
<script type="text/javascript"> | |
$(function() { |
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
<html> | |
<head> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> | |
<title>.children() method</title> | |
<script type="text/javascript"> | |
$(function() { |
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
// declare our Strava Class | |
class Strava { | |
// define our constructor method | |
// pass in the Running Routes object | |
constructor(application) { | |
this.CLIENT_ID = application.CLIENT_ID; | |
this.AUTHORIZATION_ENDPOINT = application.AUTHORIZATION_ENDPOINT; | |
this.ACCESS_TOKEN = application.ACCESS_TOKEN; | |
this.ACCESS_TOKEN_AUTHORIZED = null; | |
} |
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
const editly = require('../index'); | |
const { easeOutExpo } = require('../transitions'); | |
const { getPosition } = require('./utils/position'); | |
const NAME = 'nicole-thea'; | |
const PRIMARY_COLOUR = '#FFFFFF'; | |
const SECONDARY_FONT_FAMILY = 'Roboto Light Italic'; | |
const SECONDARY_FONT_URL = 'Roboto-LightItalic.ttf'; |
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
import {spring, useCurrentFrame, interpolate, Easing, useVideoConfig} from 'remotion'; | |
/* | |
Pass params into component like this: | |
<TitleThree titleText={`But I watch | |
and learn from them. | |
I like the little they know, | |
which is so much.`} titleColor="white" backgroundColor="black" fontSize={60} fontFamily="Lora" /> | |
*/ |
OlderNewer