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
#wrapper #logo { | |
display: none !important; | |
} | |
p { | |
font-family: 'futura-pt', 'sans-serif'; | |
} | |
.app-title, | |
#board_title { |
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 fs from 'fs'; | |
const folderUnderDirname = 'folder'; | |
const fileExtension = '.html.twig'; | |
const files = [ | |
'filename-goes-here', | |
]; | |
files.forEach(async file => { | |
await fs.promises.writeFile(`${__dirname}/${folderUnderDirname}/${file}${fileExtension}`, file, { flag: 'wx' }); |
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 React from 'react'; | |
export const dump = data => { | |
return ( | |
<pre | |
style={{ | |
width: '100%', | |
wordWrap: 'break-word', | |
whiteSpace: 'pre-wrap', | |
padding: 20, |
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 React, { Component } from 'react'; | |
import { Controlled as CodeMirror } from 'react-codemirror2'; | |
import 'codemirror/mode/xml/xml'; | |
import { countColumn } from 'codemirror'; | |
class RenderCodeMirror extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
source: '<p>test</p>', |
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
<select> | |
<option value="Afghanistan">Afghanistan</option> | |
<option value="Åland Islands">Åland Islands</option> | |
<option value="Albania">Albania</option> | |
<option value="Algeria">Algeria</option> | |
<option value="American Samoa">American Samoa</option> | |
<option value="Andorra">Andorra</option> | |
<option value="Angola">Angola</option> | |
<option value="Anguilla">Anguilla</option> | |
<option value="Antarctica">Antarctica</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
{% if page.header.documentSection == 'resources' %} | |
{% set documentCollection = taxonomy.findTaxonomy({'documentSection': 'resources' }) %} | |
{% elseif page.header.documentSection == 'materials' %} | |
{% set documentCollection = taxonomy.findTaxonomy({'documentSection': 'materials' }) %} | |
{% elseif page.header.documentSection == 'governance' %} |
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
setTimeout(function(){ | |
// Scroll into to view for percentage graphs | |
function isElementInViewport( elem ) { | |
var $elem = $( elem ); | |
// Get the scroll position of the page. | |
var scrollElem = ((navigator.userAgent.toLowerCase().indexOf( 'webkit' ) != -1) ? 'body' : 'html'); | |
var viewportTop = $( scrollElem ).scrollTop(); | |
var viewportBottom = viewportTop + $( window ).height(); |