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
barba.hooks.beforeEnter(({ next }) => { | |
const parser = new DOMParser(); | |
const source = parser.parseFromString(next.html, "text/html"); | |
const body = source.querySelector('body'); | |
const classnames = body.getAttribute('class'); | |
console.log(classnames); | |
if( classnames ) document.querySelector('body').setAttribute('class', classnames); | |
}); |
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
table.table-a11y { | |
display: block; | |
} | |
table.table-a11y thead, | |
table.table-a11y tbody, | |
table.table-a11y tfoot { | |
display: block; | |
} |
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
/** | |
* A-Frame Spritesheet Component for A-Frame. | |
* Enables dynamic control of animation spritesheets | |
*/ | |
AFRAME.registerComponent('sprite-sheet', { | |
schema: { | |
progress: { type: 'number', default: 0 }, | |
frameName: { type: 'string', default: null }, | |
firstFrame: { type: 'number', default: 0 }, | |
lastFrame: { type: 'number', default: 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
aspect = image width / image height | |
height = (2 * Math.PI * radius * theta-length) / (360 * aspect) |
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
// script start here | |
var canvas = document.getElementById('canvas'), | |
source = document.createElement('canvas'), | |
width = window.innerWidth, | |
height = window.innerHeight, | |
context = canvas.getContext('2d'), | |
path1x = 0.0, | |
path2x = -0.1; |
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
var canvas = document.getElementById('canvas'), | |
source = document.createElement('canvas'), | |
width = window.innerWidth, | |
height = window.innerHeight, | |
context = canvas.getContext('2d'), | |
path1x = 0.0, | |
path2x = 0.0; | |
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
0 info it worked if it ends with ok | |
1 verbose cli [ 'node', | |
1 verbose cli '/usr/local/bin/npm', | |
1 verbose cli 'install', | |
1 verbose cli 'node-spritesheet', | |
1 verbose cli '--save-dev' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose readDependencies using package.json deps | |
5 verbose cache add [ 'node-spritesheet', 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
{ | |
"character-cancel-come-back-later": "Come back later", | |
"character-cancel-talk-later": "Talk later", | |
"dashboard-open": "Open my dashboard", | |
"screen-turn-off": "Turn off TV" | |
} |
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
var n:int = _$cuePoints.length, | |
time:Number = _$videoLoader.time, | |
cuePoint:Object; | |
while( --n >= 0 ) | |
{ | |
cuePoint = _$cuePoints[n]; | |
if( cuePoint.time > time ) continue; | |
if( n === _$cuePointsIndex ) break; |
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
{ | |
"cuePoints": [{ "name": "skip", "time": 21 }, { "name": "start", "time": 23 }, { "name": "end", "time": 30 }] | |
} |
NewerOlder