Skip to content

Instantly share code, notes, and snippets.

Jon Robson jdlrobson

Block or report user

Report or block jdlrobson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jdlrobson
jdlrobson / CustomElement.html
Created Aug 18, 2017
CustomElement.html - autocomplete
View CustomElement.html
<!DOCTYPE HTML>
<html>
<head>
<title>Custom element autocomplete</title>
</head>
<body>
<h1>CustomElement AutoComplete</h1>
<p>
Upgrades a standard select element to work like an autocomplete by using CustomElements.
It will degrade on older browsers that do not support elements to a select dropdown.
View thumbfloatrefs.less
.reference a {
font-size: 8pt;
color: @pureBlack;
border-bottom: none;
}
.refbegin ul li,
.references li{
font-size: 10pt;
View wikitable.less
table.wikitable {
margin: 1em 0;
background-color: #FFF;
border: 1px solid #aaa;
border-collapse: collapse;
color: @pureBlack;
font-size: 10pt !important;
}
table.wikitable caption {
View siteSub.less
/* brand */
#siteSub {
font-size: 13px;
padding-bottom: 5px;
color: #333;
&:after {
content: " ";
display: block;
View footer.less
View gallery.less
View toc.less
.toc {
page-break-before: always;
page-break-after: always;
font-family: serif;
}
.toc ul {
list-style: none;
}
.toc > ul > li {
View gist:042538101b09162bf15a9bf0d01f91ef
.toc {
page-break-before: always;
page-break-after: always;
font-family: serif;
}
.toc ul {
list-style: none;
}
.toc > ul > li {
View infobox.less
/*
- Basic infobox styling
- Remove background colors, they are hard to print
*/
.infobox {
border: 1px solid #aaa;
border-spacing: 3px;
background-color: #fff;
View bucketme.js
weightedBoolean = function ( name, trueWeight, token ) {
return mw.experiments.getBucket( {
enabled: true,
name: name,
buckets: {
'true': trueWeight,
'false': 1 - trueWeight
}
}, token ) === 'true';
You can’t perform that action at this time.