This file contains 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>GistRun</title> | |
</head> | |
<body> | |
<h1>Hello world!</h1> | |
<input type="number" id="index" /> |
This file contains 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
(async function () { | |
const year = document.querySelector('h1.rankings-page__heading').innerText.split(' ')[0]; | |
// const numberOfPages = 40; | |
let i = 2; | |
// for (let i = 0; i < numberOfPages; i++) { | |
while(true) { | |
const link = $('a[data-js="showmore"]'); |
This file contains 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
//Ashley Grant | |
//Project7.java | |
//A simple text editor | |
import java.awt.*; | |
import java.awt.event.*; | |
import java.io.*; | |
import javax.swing.*; | |
import java.util.*; | |
import java.text.*; |
This file contains 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
<template> | |
<require from="./some-element"></require> | |
<label for="hasFocus">Has Focus:</label> <input id="hasFocus" type="checkbox" checked.bind="focus" /> | |
<div> | |
Custom Element: | |
<some-element has-focus.bind="focus" text.bind="text"></some-element> | |
</div> | |
<div> |
This file contains 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
<template> | |
<require from="./some-element"></require> | |
<button click.trigger="showIt = !showIt">Toggle</button> | |
<div if.bind="showIt"> | |
<some-element></some-element> | |
</div> | |
</template> |
This file contains 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
<template> | |
<require from="./some-element"></require> | |
<button click.trigger="showIt = !showIt">Toggle</button> | |
<div if.bind="showIt"> | |
<some-element></some-element> | |
</div> | |
</template> |
This file contains 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
<template> | |
<require from="money-round"></require> | |
<div> | |
<input type="number" value.bind="a" /> | |
</div> | |
<div> | |
<input type="number" value.bind="b" /> | |
</div> | |
<div> | |
My result = ${ a * b | moneyRound } |
This file contains 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
<template> | |
<require from='./wizard'></require> | |
<wizard> | |
<page> | |
<p> | |
Page 1 | |
</p> | |
</page> | |
<page> |
This file contains 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
<template> | |
<require from='./card.html'></require> | |
<require from='./card-with-slot.html'></require> | |
<style> | |
b { font-weight: bold; } | |
label { display: block; } | |
</style> | |
<div ref="myDiv" | |
msg.bind='message' | |
fun-message.bind='myDiv.msg | fun' |
This file contains 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
<template> | |
<select value.bind="selectedValue" change.delegate="dropdownChanged(selectedValue)"> | |
<option model.bind="1">1</option> | |
<option model.bind="2">2</option> | |
<option model.bind="3">3</option> | |
<option model.bind="4">4</option> | |
</select> | |
<h1>Selected Value: ${selectedValue}</h1> |
NewerOlder